# Model_ShareLink_ShareLinkModel_226.luac
; fn @ShareLinkModel.lua  line 0-0 np=0 va=1 ms=4 code=39 consts=20 upvals=1 protos=9
;   K[0]='ShareLinkModel'
;   K[1]='__index'
;   K[2]='Unknown'
;   K[3]=1
;   K[4]='CanGet'
;   K[5]=2
;   K[6]='Rewarded'
;   K[7]=3
;   K[8]='Expiry'
;   K[9]=4
;   K[10]='facebook_link_rewards'
;   K[11]='SetShareLinkData'
;   K[12]='SetRewardContentData'
;   K[13]='OnSceneViewLoaded'
;   K[14]='_CheckRewardStatus'
;   K[15]='GetOpenWindowInfo'
;   K[16]='_UpdateFBLinkGotRewards'
;   K[17]='_AddFBLinkGotRewards'
;   K[18]='AcquireReward'
;   K[19]='Clear'
;   upvals: _ENV
;   locals: ELinkRewardStatus(10-39), FacebookLinkRewardCampaign(11-39)
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('ShareLinkModel')] = R0
0002  GETTABUP  R0 = _ENV[K0('ShareLinkModel')]
0003  GETTABUP  R1 = _ENV[K0('ShareLinkModel')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  NEWTABLE  R0 = {} (0 items)
0006  SETTABLE  R0[K2('Unknown')] = K3(1)
0007  SETTABLE  R0[K4('CanGet')] = K5(2)
0008  SETTABLE  R0[K6('Rewarded')] = K7(3)
0009  SETTABLE  R0[K8('Expiry')] = K9(4)
0010  LOADK     R1 = K10 'facebook_link_rewards'
0011  GETTABUP  R2 = _ENV[K0('ShareLinkModel')]
0012  CLOSURE   R3 = closure proto0
0013  SETTABLE  R2[K11('SetShareLinkData')] = R3
0014  GETTABUP  R2 = _ENV[K0('ShareLinkModel')]
0015  CLOSURE   R3 = closure proto1
0016  SETTABLE  R2[K12('SetRewardContentData')] = R3
0017  GETTABUP  R2 = _ENV[K0('ShareLinkModel')]
0018  CLOSURE   R3 = closure proto2
0019  SETTABLE  R2[K13('OnSceneViewLoaded')] = R3
0020  GETTABUP  R2 = _ENV[K0('ShareLinkModel')]
0021  CLOSURE   R3 = closure proto3
0022  SETTABLE  R2[K14('_CheckRewardStatus')] = R3
0023  GETTABUP  R2 = _ENV[K0('ShareLinkModel')]
0024  CLOSURE   R3 = closure proto4
0025  SETTABLE  R2[K15('GetOpenWindowInfo')] = R3
0026  GETTABUP  R2 = _ENV[K0('ShareLinkModel')]
0027  CLOSURE   R3 = closure proto5
0028  SETTABLE  R2[K16('_UpdateFBLinkGotRewards')] = R3
0029  GETTABUP  R2 = _ENV[K0('ShareLinkModel')]
0030  CLOSURE   R3 = closure proto6
0031  SETTABLE  R2[K17('_AddFBLinkGotRewards')] = R3
0032  GETTABUP  R2 = _ENV[K0('ShareLinkModel')]
0033  CLOSURE   R3 = closure proto7
0034  SETTABLE  R2[K18('AcquireReward')] = R3
0035  GETTABUP  R2 = _ENV[K0('ShareLinkModel')]
0036  CLOSURE   R3 = closure proto8
0037  SETTABLE  R2[K19('Clear')] = R3
0038  RETURN    return R0..R-1
; ---------- proto0 [SetShareLinkData] ----------
  ; fn ?  line 13-49 np=2 va=0 ms=9 code=69 consts=25 upvals=3 protos=0
  ;   K[0]='StringUtil'
  ;   K[1]='IsNilOrEmpty'
  ;   K[2]='json'
  ;   K[3]='decode'
  ;   K[4]='IsTable'
  ;   K[5]='DeviceInfo'
  ;   K[6]='IsSystemIOS'
  ;   K[7]='Table'
  ;   K[8]='IsEmpty'
  ;   K[9]='click_event'
  ;   K[10]='campaign'
  ;   K[11]='deep_link_value'
  ;   K[12]='invite_friends'
  ;   K[13]='GM'
  ;   K[14]='BIManager'
  ;   K[15]='LogAction'
  ;   K[16]='EBIType'
  ;   K[17]='InviteLinkPullUp'
  ;   K[18]='m_rewardKey'
  ;   K[19]='m_rewardStatus'
  ;   K[20]='Unknown'
  ;   K[21]='Log'
  ;   K[22]='Info'
  ;   K[23]='ShareLinkModel reward key in link is '
  ;   K[24]='_CheckRewardStatus'
  ;   upvals: _ENV, FacebookLinkRewardCampaign, ELinkRewardStatus
  ;   locals: self(0-69), data(0-69), shareLinkData(11-69), campaign(30-69), deepLinkValue(31-69)
  0000  GETTABUP  R2 = _ENV[K0('StringUtil')]
  0001  GETTABLE  R2 = R2[K1('IsNilOrEmpty')]
  0002  MOVE      R3 = R0
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  TEST      if not R2 then   -> -131066
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  GETTABUP  R2 = _ENV[K2('json')]
  0008  GETTABLE  R2 = R2[K3('decode')]
  0009  MOVE      R3 = R0
  0010  CALL      R2 = call(R2, 1 args, 1 rets)
  0011  GETTABUP  R3 = _ENV[K4('IsTable')]
  0012  MOVE      R4 = R0
  0013  CALL      R3 = call(R3, 1 args, 1 rets)
  0014  TEST      if not R3 then   -> -131055
  0015  JMP       (jump)   -> 17
  0016  RETURN    return R0..R-1
  0017  GETTABUP  R3 = _ENV[K5('DeviceInfo')]
  0018  GETTABLE  R3 = R3[K6('IsSystemIOS')]
  0019  CALL      R3 = call(R3, 1 args, 0 rets)
  0020  TEST      if not R3 then   -> -131050
  0021  JMP       (jump)   -> 29
  0022  GETTABUP  R3 = _ENV[K7('Table')]
  0023  GETTABLE  R3 = R3[K8('IsEmpty')]
  0024  GETTABLE  R4 = R2[K9('click_event')]
  0025  CALL      R3 = call(R3, 1 args, 1 rets)
  0026  TEST      if not R3 then   -> -131043
  0027  JMP       (jump)   -> 29
  0028  GETTABLE  R2 = R2[K9('click_event')]
  0029  GETTABLE  R3 = R2[K10('campaign')]
  0030  GETTABLE  R4 = R2[K11('deep_link_value')]
  0031  GETTABUP  R5 = _ENV[K0('StringUtil')]
  0032  GETTABLE  R5 = R5[K1('IsNilOrEmpty')]
  0033  MOVE      R6 = R0
  0034  CALL      R5 = call(R5, 1 args, 1 rets)
  0035  TEST      if not R5 then   -> -131034
  0036  JMP       (jump)   -> 43
  0037  GETTABUP  R5 = _ENV[K0('StringUtil')]
  0038  GETTABLE  R5 = R5[K1('IsNilOrEmpty')]
  0039  MOVE      R6 = R0
  0040  CALL      R5 = call(R5, 1 args, 1 rets)
  0041  TEST      if not R5 then   -> -131029
  0042  JMP       (jump)   -> 44
  0043  RETURN    return R0..R-1
  0044  EQ        if R0 eq K12('invite_friends')   -> -129222
  0045  JMP       (jump)   -> 53
  0046  GETTABUP  R5 = _ENV[K13('GM')]
  0047  GETTABLE  R5 = R5[K14('BIManager')]
  0048  SELF      R6 = R5[K15('LogAction')] (self)
  0049  GETTABUP  R7 = _ENV[K16('EBIType')]
  0050  GETTABLE  R7 = R7[K17('InviteLinkPullUp')]
  0051  MOVE      R8 = R0
  0052  CALL      R5 = call(R5, 0 args, 3 rets)
  0053  GETUPVAL  R5 = _ENV
  0054  EQ        if R1 eq R5   -> -129475
  0055  JMP       (jump)   -> 57
  0056  RETURN    return R0..R-1
  0057  SETTABLE  R0[K18('m_rewardKey')] = R4
  0058  GETTABUP  R5 = ELinkRewardStatus[K20('Unknown')]
  0059  SETTABLE  R0[K19('m_rewardStatus')] = R5
  0060  GETTABUP  R5 = _ENV[K21('Log')]
  0061  GETTABLE  R5 = R5[K22('Info')]
  0062  LOADK     R6 = K23 'ShareLinkModel reward key in link is '
  0063  GETTABLE  R7 = R0[K18('m_rewardKey')]
  0064  CONCAT    R6 = concat(R6..R6)
  0065  CALL      R5 = call(R5, 0 args, 1 rets)
  0066  SELF      R6 = R0[K24('_CheckRewardStatus')] (self)
  0067  CALL      R5 = call(R5, 0 args, 1 rets)
  0068  RETURN    return R0..R-1
; ---------- proto1 [SetRewardContentData] ----------
  ; fn ?  line 51-70 np=2 va=0 ms=12 code=50 consts=19 upvals=1 protos=0
  ;   K[0]='m_arrServerConfig'
  ;   K[1]='ipairs'
  ;   K[2]='key'
  ;   K[3]='Table'
  ;   K[4]='DeepCopy'
  ;   K[5]='reward'
  ;   K[6]='RewardApi'
  ;   K[7]='CryptRewards'
  ;   K[8]='endTime'
  ;   K[9]='GameConfig'
  ;   K[10]='IsTestMode'
  ;   K[11]='GetKeys'
  ;   K[12]='Log'
  ;   K[13]='Info'
  ;   K[14]='ShareLinkModel reward keys from oper login: '
  ;   K[15]='table'
  ;   K[16]='concat'
  ;   K[17]=','
  ;   K[18]='_CheckRewardStatus'
  ;   upvals: _ENV
  ;   locals: self(0-50), data(0-50), key(3-50), reward(3-50), (for generator)(8-28), (for state)(8-28), (for control)(8-28), _(9-26), config(9-26), keys(37-47)
  0000  NEWTABLE  R2 = {} (0 items)
  0001  SETTABLE  R0[K0('m_arrServerConfig')] = R2
  0002  LOADNIL   R2..R2 = nil
  0003  GETTABUP  R4 = _ENV[K1('ipairs')]
  0004  TESTSET   if R1 then R5   -> -130553
  0005  JMP       (jump)   -> 7
  0006  NEWTABLE  R5 = {} (0 items)
  0007  CALL      R4 = call(R4, 3 args, 1 rets)
  0008  JMP       (jump)   -> 26
  0009  GETTABLE  R2 = R8[K2('key')]
  0010  GETTABUP  R9 = _ENV[K3('Table')]
  0011  GETTABLE  R9 = R9[K4('DeepCopy')]
  0012  GETTABLE  R10 = R8[K5('reward')]
  0013  LOADBOOL  R11 = true
  0014  CALL      R9 = call(R9, 1 args, 2 rets)
  0015  MOVE      R3 = R0
  0016  GETTABUP  R9 = _ENV[K6('RewardApi')]
  0017  GETTABLE  R9 = R9[K7('CryptRewards')]
  0018  MOVE      R10 = R0
  0019  CALL      R9 = call(R9, 0 args, 1 rets)
  0020  GETTABLE  R9 = R0[K0('m_arrServerConfig')]
  0021  NEWTABLE  R10 = {} (0 items)
  0022  SETTABLE  R10[K5('reward')] = R3
  0023  GETTABLE  R11 = R8[K8('endTime')]
  0024  SETTABLE  R10[K8('endTime')] = R11
  0025  SETTABLE  R9[R2] = R10
  0026  TFORCALL  tforcall R4
  0027  TFORLOOP  tforloop R6(sBx=-19)   -> 9
  0028  GETTABUP  R4 = _ENV[K9('GameConfig')]
  0029  GETTABLE  R4 = R4[K10('IsTestMode')]
  0030  CALL      R4 = call(R4, 1 args, 0 rets)
  0031  TEST      if not R4 then   -> -131039
  0032  JMP       (jump)   -> 47
  0033  GETTABUP  R4 = _ENV[K3('Table')]
  0034  GETTABLE  R4 = R4[K11('GetKeys')]
  0035  GETTABLE  R5 = R0[K0('m_arrServerConfig')]
  0036  CALL      R4 = call(R4, 1 args, 1 rets)
  0037  GETTABUP  R5 = _ENV[K12('Log')]
  0038  GETTABLE  R5 = R5[K13('Info')]
  0039  LOADK     R6 = K14 'ShareLinkModel reward keys from oper login: '
  0040  GETTABUP  R7 = _ENV[K15('table')]
  0041  GETTABLE  R7 = R7[K16('concat')]
  0042  MOVE      R8 = R0
  0043  LOADK     R9 = K17 ','
  0044  CALL      R7 = call(R7, 1 args, 2 rets)
  0045  CONCAT    R6 = concat(R6..R6)
  0046  CALL      R5 = call(R5, 0 args, 1 rets)
  0047  SELF      R5 = R0[K18('_CheckRewardStatus')] (self)
  0048  CALL      R4 = call(R4, 0 args, 1 rets)
  0049  RETURN    return R0..R-1
; ---------- proto2 [OnSceneViewLoaded] ----------
  ; fn ?  line 72-74 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='_CheckRewardStatus'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('_CheckRewardStatus')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto3 [_CheckRewardStatus] ----------
  ; fn ?  line 76-112 np=1 va=0 ms=6 code=89 consts=35 upvals=2 protos=0
  ;   K[0]='m_rewardKey'
  ;   K[1]=nil
  ;   K[2]='m_rewardStatus'
  ;   K[3]='Unknown'
  ;   K[4]='GM'
  ;   K[5]='SceneManager'
  ;   K[6]='GetGameMode'
  ;   K[7]='EGameMode'
  ;   K[8]='Loading'
  ;   K[9]='EventDispatcher'
  ;   K[10]='DispatchEvent'
  ;   K[11]='EEventType'
  ;   K[12]='FBShareLinkReward'
  ;   K[13]='_UpdateFBLinkGotRewards'
  ;   K[14]='Table'
  ;   K[15]='IsEmpty'
  ;   K[16]='m_arrGotRewards'
  ;   K[17]='ListContain'
  ;   K[18]='Rewarded'
  ;   K[19]='Log'
  ;   K[20]='Info'
  ;   K[21]='ShareLinkModel reward already got '
  ;   K[22]='m_arrServerConfig'
  ;   K[23]='OperManager'
  ;   K[24]='Login'
  ;   K[25]='ShareLinkModel oper login'
  ;   K[26]='GameModel'
  ;   K[27]='GetServerTime'
  ;   K[28]='endTime'
  ;   K[29]='m_arrReward'
  ;   K[30]='reward'
  ;   K[31]='CanGet'
  ;   K[32]='ShareLinkModel reward can get '
  ;   K[33]='Expiry'
  ;   K[34]='ShareLinkModel reward expiry '
  ;   upvals: ELinkRewardStatus, _ENV
  ;   locals: self(0-89), serverTime(61-89), config(64-89)
  0000  GETTABLE  R1 = R0[K0('m_rewardKey')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 15
  0003  GETTABLE  R1 = R0[K2('m_rewardStatus')]
  0004  GETTABUP  R2 = ELinkRewardStatus[K3('Unknown')]
  0005  EQ        if R0 eq R2   -> -130551
  0006  JMP       (jump)   -> 15
  0007  GETTABUP  R1 = _ENV[K4('GM')]
  0008  GETTABLE  R1 = R1[K5('SceneManager')]
  0009  SELF      R2 = R1[K6('GetGameMode')] (self)
  0010  CALL      R1 = call(R1, 1 args, 1 rets)
  0011  GETTABUP  R2 = _ENV[K7('EGameMode')]
  0012  GETTABLE  R2 = R2[K8('Loading')]
  0013  EQ        if R0 eq R2   -> -130543
  0014  JMP       (jump)   -> 16
  0015  RETURN    return R0..R-1
  0016  GETTABUP  R1 = _ENV[K9('EventDispatcher')]
  0017  GETTABLE  R1 = R1[K10('DispatchEvent')]
  0018  GETTABUP  R2 = _ENV[K11('EEventType')]
  0019  GETTABLE  R2 = R2[K12('FBShareLinkReward')]
  0020  CALL      R1 = call(R1, 0 args, 1 rets)
  0021  SELF      R2 = R0[K13('_UpdateFBLinkGotRewards')] (self)
  0022  CALL      R1 = call(R1, 0 args, 1 rets)
  0023  GETTABUP  R1 = _ENV[K14('Table')]
  0024  GETTABLE  R1 = R1[K15('IsEmpty')]
  0025  GETTABLE  R2 = R0[K16('m_arrGotRewards')]
  0026  CALL      R1 = call(R1, 1 args, 1 rets)
  0027  TEST      if not R1 then   -> -131042
  0028  JMP       (jump)   -> 45
  0029  GETTABUP  R1 = _ENV[K14('Table')]
  0030  GETTABLE  R1 = R1[K17('ListContain')]
  0031  GETTABLE  R2 = R0[K16('m_arrGotRewards')]
  0032  GETTABLE  R3 = R0[K0('m_rewardKey')]
  0033  CALL      R1 = call(R1, 1 args, 2 rets)
  0034  TEST      if not R1 then   -> -131036
  0035  JMP       (jump)   -> 45
  0036  GETTABUP  R1 = ELinkRewardStatus[K18('Rewarded')]
  0037  SETTABLE  R0[K2('m_rewardStatus')] = R1
  0038  GETTABUP  R1 = _ENV[K19('Log')]
  0039  GETTABLE  R1 = R1[K20('Info')]
  0040  LOADK     R2 = K21 'ShareLinkModel reward already got '
  0041  GETTABLE  R3 = R0[K0('m_rewardKey')]
  0042  CONCAT    R2 = concat(R2..R2)
  0043  CALL      R1 = call(R1, 0 args, 1 rets)
  0044  RETURN    return R0..R-1
  0045  GETTABLE  R1 = R0[K22('m_arrServerConfig')]
  0046  EQ        if R0 eq K1(nil)   -> -130255
  0047  JMP       (jump)   -> 57
  0048  GETTABUP  R1 = _ENV[K4('GM')]
  0049  GETTABLE  R1 = R1[K23('OperManager')]
  0050  SELF      R2 = R1[K24('Login')] (self)
  0051  CALL      R1 = call(R1, 0 args, 1 rets)
  0052  GETTABUP  R1 = _ENV[K19('Log')]
  0053  GETTABLE  R1 = R1[K20('Info')]
  0054  LOADK     R2 = K25 'ShareLinkModel oper login'
  0055  CALL      R1 = call(R1, 0 args, 1 rets)
  0056  RETURN    return R0..R-1
  0057  GETTABUP  R1 = _ENV[K4('GM')]
  0058  GETTABLE  R1 = R1[K26('GameModel')]
  0059  SELF      R2 = R1[K27('GetServerTime')] (self)
  0060  CALL      R1 = call(R1, 1 args, 1 rets)
  0061  GETTABLE  R2 = R0[K22('m_arrServerConfig')]
  0062  GETTABLE  R3 = R0[K0('m_rewardKey')]
  0063  GETTABLE  R2 = R2[R3]
  0064  EQ        if R1 eq K1(nil)   -> -129725
  0065  JMP       (jump)   -> 80
  0066  GETTABLE  R3 = R2[K28('endTime')]
  0067  LE        if R0 le R3   -> -130488
  0068  JMP       (jump)   -> 80
  0069  GETTABLE  R3 = R2[K30('reward')]
  0070  SETTABLE  R0[K29('m_arrReward')] = R3
  0071  GETTABUP  R3 = ELinkRewardStatus[K31('CanGet')]
  0072  SETTABLE  R0[K2('m_rewardStatus')] = R3
  0073  GETTABUP  R3 = _ENV[K19('Log')]
  0074  GETTABLE  R3 = R3[K20('Info')]
  0075  LOADK     R4 = K32 'ShareLinkModel reward can get '
  0076  GETTABLE  R5 = R0[K0('m_rewardKey')]
  0077  CONCAT    R4 = concat(R4..R4)
  0078  CALL      R3 = call(R3, 0 args, 1 rets)
  0079  JMP       (jump)   -> 88
  0080  GETTABUP  R3 = ELinkRewardStatus[K33('Expiry')]
  0081  SETTABLE  R0[K2('m_rewardStatus')] = R3
  0082  GETTABUP  R3 = _ENV[K19('Log')]
  0083  GETTABLE  R3 = R3[K20('Info')]
  0084  LOADK     R4 = K34 'ShareLinkModel reward expiry '
  0085  GETTABLE  R5 = R0[K0('m_rewardKey')]
  0086  CONCAT    R4 = concat(R4..R4)
  0087  CALL      R3 = call(R3, 0 args, 1 rets)
  0088  RETURN    return R0..R-1
; ---------- proto4 [GetOpenWindowInfo] ----------
  ; fn ?  line 114-134 np=1 va=0 ms=7 code=78 consts=23 upvals=2 protos=0
  ;   K[0]='m_rewardKey'
  ;   K[1]=nil
  ;   K[2]='m_rewardStatus'
  ;   K[3]='Expiry'
  ;   K[4]='GM'
  ;   K[5]='GameTextModel'
  ;   K[6]='GetText'
  ;   K[7]='fblinkrewardwindow_expired_desc'
  ;   K[8]='UIPrefabConfigName'
  ;   K[9]='ShareLinkTipWindow'
  ;   K[10]='expire'
  ;   K[11]='Rewarded'
  ;   K[12]='fblinkrewardwindow_alreadyhave_desc'
  ;   K[13]='alreadyHave'
  ;   K[14]='CanGet'
  ;   K[15]='m_arrReward'
  ;   K[16]='ShareLinkRewardWindow'
  ;   K[17]='Application'
  ;   K[18]='internetReachability'
  ;   K[19]='NetworkReachability'
  ;   K[20]='NotReachable'
  ;   K[21]='network_error_desc'
  ;   K[22]='noNet'
  ;   upvals: ELinkRewardStatus, _ENV
  ;   locals: self(0-78), desc(16-24), desc(34-42), desc(69-77)
  0000  GETTABLE  R1 = R0[K0('m_rewardKey')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 6
  0003  GETTABLE  R1 = R0[K2('m_rewardStatus')]
  0004  EQ        if R0 eq K1(nil)   -> -130297
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  GETTABLE  R1 = R0[K2('m_rewardStatus')]
  0008  GETTABUP  R2 = ELinkRewardStatus[K3('Expiry')]
  0009  EQ        if R0 eq R2   -> -130547
  0010  JMP       (jump)   -> 25
  0011  GETTABUP  R1 = _ENV[K4('GM')]
  0012  GETTABLE  R1 = R1[K5('GameTextModel')]
  0013  SELF      R2 = R1[K6('GetText')] (self)
  0014  LOADK     R3 = K7 'fblinkrewardwindow_expired_desc'
  0015  CALL      R1 = call(R1, 1 args, 2 rets)
  0016  GETTABUP  R2 = _ENV[K8('UIPrefabConfigName')]
  0017  GETTABLE  R2 = R2[K9('ShareLinkTipWindow')]
  0018  NEWTABLE  R3 = {} (3 items)
  0019  MOVE      R4 = R0
  0020  GETTABLE  R5 = R0[K0('m_rewardKey')]
  0021  LOADK     R6 = K10 'expire'
  0022  SETLIST   setlist R3[B=1,C=3]
  0023  RETURN    return R2..R1
  0024  JMP       (jump)   -> 77
  0025  GETTABLE  R1 = R0[K2('m_rewardStatus')]
  0026  GETTABUP  R2 = ELinkRewardStatus[K11('Rewarded')]
  0027  EQ        if R0 eq R2   -> -130529
  0028  JMP       (jump)   -> 43
  0029  GETTABUP  R1 = _ENV[K4('GM')]
  0030  GETTABLE  R1 = R1[K5('GameTextModel')]
  0031  SELF      R2 = R1[K6('GetText')] (self)
  0032  LOADK     R3 = K12 'fblinkrewardwindow_alreadyhave_desc'
  0033  CALL      R1 = call(R1, 1 args, 2 rets)
  0034  GETTABUP  R2 = _ENV[K8('UIPrefabConfigName')]
  0035  GETTABLE  R2 = R2[K9('ShareLinkTipWindow')]
  0036  NEWTABLE  R3 = {} (3 items)
  0037  MOVE      R4 = R0
  0038  GETTABLE  R5 = R0[K0('m_rewardKey')]
  0039  LOADK     R6 = K13 'alreadyHave'
  0040  SETLIST   setlist R3[B=1,C=3]
  0041  RETURN    return R2..R1
  0042  JMP       (jump)   -> 77
  0043  GETTABLE  R1 = R0[K2('m_rewardStatus')]
  0044  GETTABUP  R2 = ELinkRewardStatus[K14('CanGet')]
  0045  EQ        if R0 eq R2   -> -130511
  0046  JMP       (jump)   -> 58
  0047  GETTABLE  R1 = R0[K15('m_arrReward')]
  0048  EQ        if R1 eq K1(nil)   -> -130253
  0049  JMP       (jump)   -> 58
  0050  GETTABUP  R1 = _ENV[K8('UIPrefabConfigName')]
  0051  GETTABLE  R1 = R1[K16('ShareLinkRewardWindow')]
  0052  NEWTABLE  R2 = {} (2 items)
  0053  GETTABLE  R3 = R0[K15('m_arrReward')]
  0054  GETTABLE  R4 = R0[K0('m_rewardKey')]
  0055  SETLIST   setlist R2[B=1,C=2]
  0056  RETURN    return R1..R0
  0057  JMP       (jump)   -> 77
  0058  GETTABUP  R1 = _ENV[K17('Application')]
  0059  GETTABLE  R1 = R1[K18('internetReachability')]
  0060  GETTABUP  R2 = _ENV[K19('NetworkReachability')]
  0061  GETTABLE  R2 = R2[K20('NotReachable')]
  0062  EQ        if R0 eq R2   -> -130494
  0063  JMP       (jump)   -> 77
  0064  GETTABUP  R1 = _ENV[K4('GM')]
  0065  GETTABLE  R1 = R1[K5('GameTextModel')]
  0066  SELF      R2 = R1[K6('GetText')] (self)
  0067  LOADK     R3 = K21 'network_error_desc'
  0068  CALL      R1 = call(R1, 1 args, 2 rets)
  0069  GETTABUP  R2 = _ENV[K8('UIPrefabConfigName')]
  0070  GETTABLE  R2 = R2[K9('ShareLinkTipWindow')]
  0071  NEWTABLE  R3 = {} (3 items)
  0072  MOVE      R4 = R0
  0073  GETTABLE  R5 = R0[K0('m_rewardKey')]
  0074  LOADK     R6 = K22 'noNet'
  0075  SETLIST   setlist R3[B=1,C=3]
  0076  RETURN    return R2..R1
  0077  RETURN    return R0..R-1
; ---------- proto5 [_UpdateFBLinkGotRewards] ----------
  ; fn ?  line 136-142 np=1 va=0 ms=5 code=18 consts=9 upvals=1 protos=0
  ;   K[0]='Table'
  ;   K[1]='IsEmpty'
  ;   K[2]='m_arrGotRewards'
  ;   K[3]='GM'
  ;   K[4]='MiscModel'
  ;   K[5]='GetFBLinkGotRewards'
  ;   K[6]='StringUtil'
  ;   K[7]='Split'
  ;   K[8]=';'
  ;   upvals: _ENV
  ;   locals: self(0-18), str(11-18)
  0000  GETTABUP  R1 = _ENV[K0('Table')]
  0001  GETTABLE  R1 = R1[K1('IsEmpty')]
  0002  GETTABLE  R2 = R0[K2('m_arrGotRewards')]
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131065
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  GETTABUP  R1 = _ENV[K3('GM')]
  0008  GETTABLE  R1 = R1[K4('MiscModel')]
  0009  SELF      R2 = R1[K5('GetFBLinkGotRewards')] (self)
  0010  CALL      R1 = call(R1, 1 args, 1 rets)
  0011  GETTABUP  R2 = _ENV[K6('StringUtil')]
  0012  GETTABLE  R2 = R2[K7('Split')]
  0013  MOVE      R3 = R0
  0014  LOADK     R4 = K8 ';'
  0015  CALL      R2 = call(R2, 1 args, 2 rets)
  0016  SETTABLE  R0[K2('m_arrGotRewards')] = R2
  0017  RETURN    return R0..R-1
; ---------- proto6 [_AddFBLinkGotRewards] ----------
  ; fn ?  line 144-158 np=2 va=0 ms=9 code=37 consts=14 upvals=1 protos=0
  ;   K[0]='_UpdateFBLinkGotRewards'
  ;   K[1]='m_arrServerConfig'
  ;   K[2]=nil
  ;   K[3]='m_arrGotRewards'
  ;   K[4]=1
  ;   K[5]=-1
  ;   K[6]='table'
  ;   K[7]='remove'
  ;   K[8]='insert'
  ;   K[9]='GM'
  ;   K[10]='MiscModel'
  ;   K[11]='SetFBLinkGotRewards'
  ;   K[12]='concat'
  ;   K[13]=';'
  ;   upvals: _ENV
  ;   locals: self(0-37), key(0-37), (for index)(9-22), (for limit)(9-22), (for step)(9-22), i(10-21)
  0000  SELF      R3 = R0[K0('_UpdateFBLinkGotRewards')] (self)
  0001  CALL      R2 = call(R2, 0 args, 1 rets)
  0002  GETTABLE  R2 = R0[K1('m_arrServerConfig')]
  0003  EQ        if R1 eq K2(nil)   -> -129785
  0004  JMP       (jump)   -> 22
  0005  GETTABLE  R2 = R0[K3('m_arrGotRewards')]
  0006  LEN       R2 = len R0
  0007  LOADK     R3 = K4 1
  0008  LOADK     R4 = K5 -1
  0009  FORPREP   forprep R2(sBx=11)   -> 21
  0010  GETTABLE  R6 = R0[K1('m_arrServerConfig')]
  0011  GETTABLE  R7 = R0[K3('m_arrGotRewards')]
  0012  GETTABLE  R7 = R7[R5]
  0013  GETTABLE  R6 = R6[R7]
  0014  EQ        if R0 eq K2(nil)   -> -127726
  0015  JMP       (jump)   -> 21
  0016  GETTABUP  R6 = _ENV[K6('table')]
  0017  GETTABLE  R6 = R6[K7('remove')]
  0018  GETTABLE  R7 = R0[K3('m_arrGotRewards')]
  0019  MOVE      R8 = R0
  0020  CALL      R6 = call(R6, 0 args, 2 rets)
  0021  FORLOOP   forloop R2(sBx=-12)   -> 10
  0022  GETTABUP  R2 = _ENV[K6('table')]
  0023  GETTABLE  R2 = R2[K8('insert')]
  0024  GETTABLE  R3 = R0[K3('m_arrGotRewards')]
  0025  MOVE      R4 = R0
  0026  CALL      R2 = call(R2, 0 args, 2 rets)
  0027  GETTABUP  R2 = _ENV[K9('GM')]
  0028  GETTABLE  R2 = R2[K10('MiscModel')]
  0029  SELF      R3 = R2[K11('SetFBLinkGotRewards')] (self)
  0030  GETTABUP  R4 = _ENV[K6('table')]
  0031  GETTABLE  R4 = R4[K12('concat')]
  0032  GETTABLE  R5 = R0[K3('m_arrGotRewards')]
  0033  LOADK     R6 = K13 ';'
  0034  CALL      R4 = call(R4, -1 args, 2 rets)
  0035  CALL      R2 = call(R2, 0 args, -1 rets)
  0036  RETURN    return R0..R-1
; ---------- proto7 [AcquireReward] ----------
  ; fn ?  line 160-174 np=1 va=0 ms=8 code=27 consts=17 upvals=1 protos=0
  ;   K[0]='m_rewardKey'
  ;   K[1]=nil
  ;   K[2]='m_arrReward'
  ;   K[3]='_AddFBLinkGotRewards'
  ;   K[4]='RewardApi'
  ;   K[5]='AcquireRewardsLogic'
  ;   K[6]='EPropertySource'
  ;   K[7]='Give'
  ;   K[8]='EBIType'
  ;   K[9]='FacebookShareLinkReward'
  ;   K[10]='ERewardScene'
  ;   K[11]='Other'
  ;   K[12]='EGameMode'
  ;   K[13]='Board'
  ;   K[14]='CacheItemType'
  ;   K[15]='Stack'
  ;   K[16]='Clear'
  ;   upvals: _ENV
  ;   locals: self(0-27)
  0000  GETTABLE  R1 = R0[K0('m_rewardKey')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 6
  0003  GETTABLE  R1 = R0[K2('m_arrReward')]
  0004  EQ        if R0 eq K1(nil)   -> -130297
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  SELF      R2 = R0[K3('_AddFBLinkGotRewards')] (self)
  0008  GETTABLE  R3 = R0[K0('m_rewardKey')]
  0009  CALL      R1 = call(R1, 0 args, 2 rets)
  0010  GETTABUP  R1 = _ENV[K4('RewardApi')]
  0011  GETTABLE  R1 = R1[K5('AcquireRewardsLogic')]
  0012  GETTABLE  R2 = R0[K2('m_arrReward')]
  0013  GETTABUP  R3 = _ENV[K6('EPropertySource')]
  0014  GETTABLE  R3 = R3[K7('Give')]
  0015  GETTABUP  R4 = _ENV[K8('EBIType')]
  0016  GETTABLE  R4 = R4[K9('FacebookShareLinkReward')]
  0017  GETTABUP  R5 = _ENV[K10('ERewardScene')]
  0018  GETTABLE  R5 = R5[K11('Other')]
  0019  GETTABUP  R6 = _ENV[K12('EGameMode')]
  0020  GETTABLE  R6 = R6[K13('Board')]
  0021  GETTABUP  R7 = _ENV[K14('CacheItemType')]
  0022  GETTABLE  R7 = R7[K15('Stack')]
  0023  CALL      R1 = call(R1, 0 args, 6 rets)
  0024  SELF      R2 = R0[K16('Clear')] (self)
  0025  CALL      R1 = call(R1, 0 args, 1 rets)
  0026  RETURN    return R0..R-1
; ---------- proto8 [Clear] ----------
  ; fn ?  line 176-180 np=1 va=0 ms=2 code=4 consts=4 upvals=0 protos=0
  ;   K[0]='m_rewardKey'
  ;   K[1]=nil
  ;   K[2]='m_rewardStatus'
  ;   K[3]='m_arrReward'
  ;   locals: self(0-4)
  0000  SETTABLE  R0[K0('m_rewardKey')] = K1(nil)
  0001  SETTABLE  R0[K2('m_rewardStatus')] = K1(nil)
  0002  SETTABLE  R0[K3('m_arrReward')] = K1(nil)
  0003  RETURN    return R0..R-1
