# UI_Window_Notice_NoticeContentWindow_676.luac
; fn @NoticeContentWindow.lua  line 0-0 np=0 va=1 ms=3 code=39 consts=21 upvals=1 protos=7
;   K[0]='NoticeContentWindow'
;   K[1]='setmetatable'
;   K[2]='canClickWindowMask'
;   K[3]=true
;   K[4]='BaseWindow'
;   K[5]='__index'
;   K[6]='ScrollViewHeightNoReward'
;   K[7]=1040
;   K[8]='ScrollViewHeightNoButton'
;   K[9]='MinRewardContentWidth'
;   K[10]=749
;   K[11]='RewardDistance'
;   K[12]=160
;   K[13]='Init'
;   K[14]='NoticeContentWindow'
;   K[15]='_InitContent'
;   K[16]='_AddContentText'
;   K[17]='_AddContentImage'
;   K[18]='_UpdateButtonDisplay'
;   K[19]='_OnButtonClicked'
;   K[20]='_AcquireRewards'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('canClickWindowMask')] = K3(true)
0003  GETTABUP  R2 = _ENV[K4('BaseWindow')]
0004  CALL      R0 = call(R0, 1 args, 2 rets)
0005  SETTABUP  _ENV[K0('NoticeContentWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('NoticeContentWindow')]
0007  GETTABUP  R1 = _ENV[K0('NoticeContentWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('NoticeContentWindow')]
0010  SETTABLE  R0[K6('ScrollViewHeightNoReward')] = K7(1040)
0011  GETTABUP  R0 = _ENV[K0('NoticeContentWindow')]
0012  SETTABLE  R0[K8('ScrollViewHeightNoButton')] = K7(1040)
0013  GETTABUP  R0 = _ENV[K0('NoticeContentWindow')]
0014  SETTABLE  R0[K9('MinRewardContentWidth')] = K10(749)
0015  GETTABUP  R0 = _ENV[K0('NoticeContentWindow')]
0016  SETTABLE  R0[K11('RewardDistance')] = K12(160)
0017  GETTABUP  R0 = _ENV[K0('NoticeContentWindow')]
0018  CLOSURE   R1 = closure proto0
0019  SETTABLE  R0[K13('Init')] = R1
0020  GETTABUP  R0 = _ENV[K14('NoticeContentWindow')]
0021  CLOSURE   R1 = closure proto1
0022  SETTABLE  R0[K15('_InitContent')] = R1
0023  GETTABUP  R0 = _ENV[K14('NoticeContentWindow')]
0024  CLOSURE   R1 = closure proto2
0025  SETTABLE  R0[K16('_AddContentText')] = R1
0026  GETTABUP  R0 = _ENV[K14('NoticeContentWindow')]
0027  CLOSURE   R1 = closure proto3
0028  SETTABLE  R0[K17('_AddContentImage')] = R1
0029  GETTABUP  R0 = _ENV[K14('NoticeContentWindow')]
0030  CLOSURE   R1 = closure proto4
0031  SETTABLE  R0[K18('_UpdateButtonDisplay')] = R1
0032  GETTABUP  R0 = _ENV[K14('NoticeContentWindow')]
0033  CLOSURE   R1 = closure proto5
0034  SETTABLE  R0[K19('_OnButtonClicked')] = R1
0035  GETTABUP  R0 = _ENV[K14('NoticeContentWindow')]
0036  CLOSURE   R1 = closure proto6
0037  SETTABLE  R0[K20('_AcquireRewards')] = R1
0038  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 15-56 np=2 va=0 ms=12 code=113 consts=51 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='NoticeModel'
  ;   K[2]='GetNoticeState'
  ;   K[3]='NoticeState'
  ;   K[4]='Unread'
  ;   K[5]='BIManager'
  ;   K[6]='LogAction'
  ;   K[7]='EBIType'
  ;   K[8]='ReadNotice'
  ;   K[9]='tostring'
  ;   K[10]='Id'
  ;   K[11]='OnNoticeOpen'
  ;   K[12]='m_notice'
  ;   K[13]='m_titleText'
  ;   K[14]='text'
  ;   K[15]='Title'
  ;   K[16]='Rewards'
  ;   K[17]=nil
  ;   K[18]='ipairs'
  ;   K[19]='Object'
  ;   K[20]='Instantiate'
  ;   K[21]='m_rewardCellPrefab'
  ;   K[22]='m_rewardContent'
  ;   K[23]='GetLuaTable'
  ;   K[24]='Init'
  ;   K[25]='m_rewardClaimedMask'
  ;   K[26]='SetActive'
  ;   K[27]='Read'
  ;   K[28]='LayoutRebuilder'
  ;   K[29]='ForceRebuildLayoutImmediate'
  ;   K[30]='m_rewardLayoutGroup'
  ;   K[31]='preferredWidth'
  ;   K[32]='NoticeContentWindow'
  ;   K[33]='MinRewardContentWidth'
  ;   K[34]='UIUtil'
  ;   K[35]='SetSizeDelta'
  ;   K[36]='m_rewardScrollRect'
  ;   K[37]='enabled'
  ;   K[38]=false
  ;   K[39]='m_rewardGo'
  ;   K[40]='_UpdateButtonDisplay'
  ;   K[41]='m_button'
  ;   K[42]='gameObject'
  ;   K[43]='activeSelf'
  ;   K[44]='m_scrollView'
  ;   K[45]='ScrollViewHeightNoButton'
  ;   K[46]='ScrollViewHeightNoReward'
  ;   K[47]='_InitContent'
  ;   K[48]='m_contentTrans'
  ;   K[49]='SetAnchoredPosY'
  ;   K[50]=0
  ;   upvals: _ENV
  ;   locals: self(0-113), notice(0-113), state(5-113), (for generator)(33-46), (for state)(33-46), (for control)(33-46), index(34-44), reward(34-44), cell(41-44)
  0000  GETTABUP  R2 = _ENV[K0('GM')]
  0001  GETTABLE  R2 = R2[K1('NoticeModel')]
  0002  SELF      R3 = R2[K2('GetNoticeState')] (self)
  0003  MOVE      R4 = R0
  0004  CALL      R2 = call(R2, 1 args, 2 rets)
  0005  GETTABUP  R3 = _ENV[K3('NoticeState')]
  0006  GETTABLE  R3 = R3[K4('Unread')]
  0007  EQ        if R0 eq R3   -> -130036
  0008  JMP       (jump)   -> 23
  0009  GETTABUP  R3 = _ENV[K0('GM')]
  0010  GETTABLE  R3 = R3[K5('BIManager')]
  0011  SELF      R4 = R3[K6('LogAction')] (self)
  0012  GETTABUP  R5 = _ENV[K7('EBIType')]
  0013  GETTABLE  R5 = R5[K8('ReadNotice')]
  0014  GETTABUP  R6 = _ENV[K9('tostring')]
  0015  GETTABLE  R7 = R1[K10('Id')]
  0016  CALL      R6 = call(R6, -1 args, 1 rets)
  0017  CALL      R3 = call(R3, 0 args, -1 rets)
  0018  GETTABUP  R3 = _ENV[K0('GM')]
  0019  GETTABLE  R3 = R3[K1('NoticeModel')]
  0020  SELF      R4 = R3[K11('OnNoticeOpen')] (self)
  0021  MOVE      R5 = R0
  0022  CALL      R3 = call(R3, 0 args, 2 rets)
  0023  SETTABLE  R0[K12('m_notice')] = R1
  0024  GETTABLE  R3 = R0[K13('m_titleText')]
  0025  GETTABLE  R4 = R1[K15('Title')]
  0026  SETTABLE  R3[K14('text')] = R4
  0027  GETTABLE  R3 = R1[K16('Rewards')]
  0028  EQ        if R1 eq K17(nil)   -> -129233
  0029  JMP       (jump)   -> 76
  0030  GETTABUP  R3 = _ENV[K18('ipairs')]
  0031  GETTABLE  R4 = R1[K16('Rewards')]
  0032  CALL      R3 = call(R3, 3 args, 1 rets)
  0033  JMP       (jump)   -> 44
  0034  GETTABUP  R8 = _ENV[K19('Object')]
  0035  GETTABLE  R8 = R8[K20('Instantiate')]
  0036  GETTABLE  R9 = R0[K21('m_rewardCellPrefab')]
  0037  GETTABLE  R10 = R0[K22('m_rewardContent')]
  0038  CALL      R8 = call(R8, 1 args, 2 rets)
  0039  SELF      R9 = R8[K23('GetLuaTable')] (self)
  0040  CALL      R8 = call(R8, 1 args, 1 rets)
  0041  SELF      R10 = R8[K24('Init')] (self)
  0042  MOVE      R11 = R0
  0043  CALL      R9 = call(R9, 0 args, 2 rets)
  0044  TFORCALL  tforcall R3
  0045  TFORLOOP  tforloop R5(sBx=-12)   -> 34
  0046  GETTABLE  R3 = R0[K25('m_rewardClaimedMask')]
  0047  SELF      R4 = R3[K26('SetActive')] (self)
  0048  GETTABUP  R5 = _ENV[K3('NoticeState')]
  0049  GETTABLE  R5 = R5[K27('Read')]
  0050  EQ        if R1 eq R5   -> -129991
  0051  JMP       (jump)   -> 53
  0052  LOADBOOL  R5 = false
  0053  LOADBOOL  R5 = true
  0054  CALL      R3 = call(R3, 0 args, 2 rets)
  0055  GETTABUP  R3 = _ENV[K28('LayoutRebuilder')]
  0056  GETTABLE  R3 = R3[K29('ForceRebuildLayoutImmediate')]
  0057  GETTABLE  R4 = R0[K22('m_rewardContent')]
  0058  CALL      R3 = call(R3, 0 args, 1 rets)
  0059  GETTABLE  R3 = R0[K30('m_rewardLayoutGroup')]
  0060  GETTABLE  R3 = R3[K31('preferredWidth')]
  0061  GETTABUP  R4 = _ENV[K32('NoticeContentWindow')]
  0062  GETTABLE  R4 = R4[K33('MinRewardContentWidth')]
  0063  LT        if R0 lt R3   -> -128956
  0064  JMP       (jump)   -> 73
  0065  GETTABUP  R3 = _ENV[K34('UIUtil')]
  0066  GETTABLE  R3 = R3[K35('SetSizeDelta')]
  0067  GETTABLE  R4 = R0[K22('m_rewardContent')]
  0068  GETTABLE  R5 = R0[K30('m_rewardLayoutGroup')]
  0069  GETTABLE  R5 = R5[K31('preferredWidth')]
  0070  LOADNIL   R6..R6 = nil
  0071  CALL      R3 = call(R3, 0 args, 3 rets)
  0072  JMP       (jump)   -> 80
  0073  GETTABLE  R3 = R0[K36('m_rewardScrollRect')]
  0074  SETTABLE  R3[K37('enabled')] = K38(false)
  0075  JMP       (jump)   -> 80
  0076  GETTABLE  R3 = R0[K39('m_rewardGo')]
  0077  SELF      R4 = R3[K26('SetActive')] (self)
  0078  LOADBOOL  R5 = false
  0079  CALL      R3 = call(R3, 0 args, 2 rets)
  0080  SELF      R4 = R0[K40('_UpdateButtonDisplay')] (self)
  0081  CALL      R3 = call(R3, 0 args, 1 rets)
  0082  GETTABLE  R3 = R0[K41('m_button')]
  0083  GETTABLE  R3 = R3[K42('gameObject')]
  0084  GETTABLE  R3 = R3[K43('activeSelf')]
  0085  TEST      if not R3 then   -> -130984
  0086  JMP       (jump)   -> 95
  0087  GETTABUP  R3 = _ENV[K34('UIUtil')]
  0088  GETTABLE  R3 = R3[K35('SetSizeDelta')]
  0089  GETTABLE  R4 = R0[K44('m_scrollView')]
  0090  LOADNIL   R5..R5 = nil
  0091  GETTABUP  R6 = _ENV[K32('NoticeContentWindow')]
  0092  GETTABLE  R6 = R6[K45('ScrollViewHeightNoButton')]
  0093  CALL      R3 = call(R3, 0 args, 3 rets)
  0094  JMP       (jump)   -> 106
  0095  GETTABLE  R3 = R0[K39('m_rewardGo')]
  0096  GETTABLE  R3 = R3[K43('activeSelf')]
  0097  TEST      if not R3 then   -> -130972
  0098  JMP       (jump)   -> 106
  0099  GETTABUP  R3 = _ENV[K34('UIUtil')]
  0100  GETTABLE  R3 = R3[K35('SetSizeDelta')]
  0101  GETTABLE  R4 = R0[K44('m_scrollView')]
  0102  LOADNIL   R5..R5 = nil
  0103  GETTABUP  R6 = _ENV[K32('NoticeContentWindow')]
  0104  GETTABLE  R6 = R6[K46('ScrollViewHeightNoReward')]
  0105  CALL      R3 = call(R3, 0 args, 3 rets)
  0106  SELF      R4 = R0[K47('_InitContent')] (self)
  0107  CALL      R3 = call(R3, 0 args, 1 rets)
  0108  GETTABLE  R3 = R0[K48('m_contentTrans')]
  0109  SELF      R4 = R3[K49('SetAnchoredPosY')] (self)
  0110  LOADK     R5 = K50 0
  0111  CALL      R3 = call(R3, 0 args, 2 rets)
  0112  RETURN    return R0..R-1
; ---------- proto1 [_InitContent] ----------
  ; fn ?  line 58-69 np=1 va=0 ms=11 code=35 consts=14 upvals=1 protos=0
  ;   K[0]='StringUtil'
  ;   K[1]='Split'
  ;   K[2]='m_notice'
  ;   K[3]='Content'
  ;   K[4]='<<<img='
  ;   K[5]='ipairs'
  ;   K[6]='string'
  ;   K[7]='find'
  ;   K[8]='>>>'
  ;   K[9]=nil
  ;   K[10]='_AddContentText'
  ;   K[11]='_AddContentImage'
  ;   K[12]=1
  ;   K[13]=2
  ;   upvals: _ENV
  ;   locals: self(0-35), parts(6-35), (for generator)(9-34), (for state)(9-34), (for control)(9-34), _(10-32), part(10-32), subParts(26-32)
  0000  GETTABUP  R1 = _ENV[K0('StringUtil')]
  0001  GETTABLE  R1 = R1[K1('Split')]
  0002  GETTABLE  R2 = R0[K2('m_notice')]
  0003  GETTABLE  R2 = R2[K3('Content')]
  0004  LOADK     R3 = K4 '<<<img='
  0005  CALL      R1 = call(R1, 1 args, 2 rets)
  0006  GETTABUP  R2 = _ENV[K5('ipairs')]
  0007  MOVE      R3 = R0
  0008  CALL      R2 = call(R2, 3 args, 1 rets)
  0009  JMP       (jump)   -> 32
  0010  GETTABUP  R7 = _ENV[K6('string')]
  0011  GETTABLE  R7 = R7[K7('find')]
  0012  MOVE      R8 = R0
  0013  LOADK     R9 = K8 '>>>'
  0014  CALL      R7 = call(R7, 1 args, 2 rets)
  0015  EQ        if R0 eq K9(nil)   -> -127206
  0016  JMP       (jump)   -> 21
  0017  SELF      R8 = R0[K10('_AddContentText')] (self)
  0018  MOVE      R9 = R0
  0019  CALL      R7 = call(R7, 0 args, 2 rets)
  0020  JMP       (jump)   -> 32
  0021  GETTABUP  R7 = _ENV[K0('StringUtil')]
  0022  GETTABLE  R7 = R7[K1('Split')]
  0023  MOVE      R8 = R0
  0024  LOADK     R9 = K8 '>>>'
  0025  CALL      R7 = call(R7, 1 args, 2 rets)
  0026  SELF      R9 = R0[K11('_AddContentImage')] (self)
  0027  GETTABLE  R10 = R7[K12(1)]
  0028  CALL      R8 = call(R8, 0 args, 2 rets)
  0029  SELF      R9 = R0[K10('_AddContentText')] (self)
  0030  GETTABLE  R10 = R7[K13(2)]
  0031  CALL      R8 = call(R8, 0 args, 2 rets)
  0032  TFORCALL  tforcall R2
  0033  TFORLOOP  tforloop R4(sBx=-24)   -> 10
  0034  RETURN    return R0..R-1
; ---------- proto2 [_AddContentText] ----------
  ; fn ?  line 71-78 np=2 va=0 ms=6 code=19 consts=11 upvals=1 protos=0
  ;   K[0]=''
  ;   K[1]='Object'
  ;   K[2]='Instantiate'
  ;   K[3]='m_contentTextPrefab'
  ;   K[4]='m_contentTrans'
  ;   K[5]='GetComponent'
  ;   K[6]='typeof'
  ;   K[7]='Text'
  ;   K[8]='text'
  ;   K[9]='StringUtil'
  ;   K[10]='Trim'
  ;   upvals: _ENV
  ;   locals: self(0-19), text(0-19), contentText(13-19)
  0000  EQ        if R0 eq K0('')   -> -130302
  0001  JMP       (jump)   -> 3
  0002  RETURN    return R0..R-1
  0003  GETTABUP  R2 = _ENV[K1('Object')]
  0004  GETTABLE  R2 = R2[K2('Instantiate')]
  0005  GETTABLE  R3 = R0[K3('m_contentTextPrefab')]
  0006  GETTABLE  R4 = R0[K4('m_contentTrans')]
  0007  CALL      R2 = call(R2, 1 args, 2 rets)
  0008  SELF      R3 = R2[K5('GetComponent')] (self)
  0009  GETTABUP  R4 = _ENV[K6('typeof')]
  0010  GETTABUP  R5 = _ENV[K7('Text')]
  0011  CALL      R4 = call(R4, -1 args, 1 rets)
  0012  CALL      R2 = call(R2, 1 args, -1 rets)
  0013  GETTABUP  R3 = _ENV[K9('StringUtil')]
  0014  GETTABLE  R3 = R3[K10('Trim')]
  0015  MOVE      R4 = R0
  0016  CALL      R3 = call(R3, 1 args, 1 rets)
  0017  SETTABLE  R2[K8('text')] = R3
  0018  RETURN    return R0..R-1
; ---------- proto3 [_AddContentImage] ----------
  ; fn ?  line 80-89 np=2 va=0 ms=8 code=17 consts=9 upvals=1 protos=1
  ;   K[0]='Object'
  ;   K[1]='Instantiate'
  ;   K[2]='m_contentImagePrefab'
  ;   K[3]='m_contentTrans'
  ;   K[4]='GetComponent'
  ;   K[5]='typeof'
  ;   K[6]='Image'
  ;   K[7]='LoadUrlImage'
  ;   K[8]='LoadSprite'
  ;   upvals: _ENV
  ;   locals: self(0-17), url(0-17), contentImage(10-17), callback(11-17)
  0000  GETTABUP  R2 = _ENV[K0('Object')]
  0001  GETTABLE  R2 = R2[K1('Instantiate')]
  0002  GETTABLE  R3 = R0[K2('m_contentImagePrefab')]
  0003  GETTABLE  R4 = R0[K3('m_contentTrans')]
  0004  CALL      R2 = call(R2, 1 args, 2 rets)
  0005  SELF      R3 = R2[K4('GetComponent')] (self)
  0006  GETTABUP  R4 = _ENV[K5('typeof')]
  0007  GETTABUP  R5 = _ENV[K6('Image')]
  0008  CALL      R4 = call(R4, -1 args, 1 rets)
  0009  CALL      R2 = call(R2, 1 args, -1 rets)
  0010  CLOSURE   R3 = closure proto0
  0011  GETTABUP  R4 = _ENV[K7('LoadUrlImage')]
  0012  SELF      R5 = R4[K8('LoadSprite')] (self)
  0013  MOVE      R6 = R0
  0014  MOVE      R7 = R0
  0015  CALL      R4 = call(R4, 0 args, 3 rets)
  0016  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 82-87 np=2 va=0 ms=4 code=12 consts=3 upvals=1 protos=0
    ;   K[0]='IsNull'
    ;   K[1]='sprite'
    ;   K[2]='SetNativeSize'
    ;   upvals: contentImage
    ;   locals: result(0-12), sprite(0-12)
    0000  TEST      if not R0 then   -> -131070
    0001  JMP       (jump)   -> 11
    0002  GETUPVAL  R2 = contentImage
    0003  SELF      R3 = R2[K0('IsNull')] (self)
    0004  CALL      R2 = call(R2, 1 args, 1 rets)
    0005  TEST      if not R2 then   -> -131064
    0006  JMP       (jump)   -> 11
    0007  SETTABUP  contentImage[K1('sprite')] = R1
    0008  GETUPVAL  R2 = contentImage
    0009  SELF      R3 = R2[K2('SetNativeSize')] (self)
    0010  CALL      R2 = call(R2, 0 args, 1 rets)
    0011  RETURN    return R0..R-1
; ---------- proto4 [_UpdateButtonDisplay] ----------
  ; fn ?  line 91-116 np=1 va=0 ms=6 code=91 consts=25 upvals=1 protos=0
  ;   K[0]='m_notice'
  ;   K[1]='Link'
  ;   K[2]=nil
  ;   K[3]='Rewards'
  ;   K[4]='m_button'
  ;   K[5]='gameObject'
  ;   K[6]='SetActive'
  ;   K[7]='GM'
  ;   K[8]='GameModel'
  ;   K[9]='GetServerTime'
  ;   K[10]='DisappearTime'
  ;   K[11]='GameTextModel'
  ;   K[12]='GetText'
  ;   K[13]='mail_window_timeout_reward_button'
  ;   K[14]='SetText'
  ;   K[15]='SetEnabled'
  ;   K[16]='NoticeModel'
  ;   K[17]='GetNoticeState'
  ;   K[18]='NoticeState'
  ;   K[19]='GetRewards'
  ;   K[20]='mail_window_get_reward_button'
  ;   K[21]='Read'
  ;   K[22]='mail_window_no_reward_button'
  ;   K[23]='m_rewardClaimedMask'
  ;   K[24]='mail_window_jump_button'
  ;   upvals: _ENV
  ;   locals: self(0-91), buttonText(27-35), state(41-90), buttonText(50-54), buttonText(68-80), buttonText(86-90)
  0000  GETTABLE  R1 = R0[K0('m_notice')]
  0001  GETTABLE  R1 = R1[K1('Link')]
  0002  EQ        if R0 eq K2(nil)   -> -130298
  0003  JMP       (jump)   -> 14
  0004  GETTABLE  R1 = R0[K0('m_notice')]
  0005  GETTABLE  R1 = R1[K3('Rewards')]
  0006  EQ        if R0 eq K2(nil)   -> -130294
  0007  JMP       (jump)   -> 14
  0008  GETTABLE  R1 = R0[K4('m_button')]
  0009  GETTABLE  R1 = R1[K5('gameObject')]
  0010  SELF      R2 = R1[K6('SetActive')] (self)
  0011  LOADBOOL  R3 = false
  0012  CALL      R1 = call(R1, 0 args, 2 rets)
  0013  JMP       (jump)   -> 90
  0014  GETTABUP  R1 = _ENV[K7('GM')]
  0015  GETTABLE  R1 = R1[K8('GameModel')]
  0016  SELF      R2 = R1[K9('GetServerTime')] (self)
  0017  CALL      R1 = call(R1, 1 args, 1 rets)
  0018  GETTABLE  R2 = R0[K0('m_notice')]
  0019  GETTABLE  R2 = R2[K10('DisappearTime')]
  0020  LT        if R0 lt R1   -> -130025
  0021  JMP       (jump)   -> 36
  0022  GETTABUP  R1 = _ENV[K7('GM')]
  0023  GETTABLE  R1 = R1[K11('GameTextModel')]
  0024  SELF      R2 = R1[K12('GetText')] (self)
  0025  LOADK     R3 = K13 'mail_window_timeout_reward_button'
  0026  CALL      R1 = call(R1, 1 args, 2 rets)
  0027  GETTABLE  R2 = R0[K4('m_button')]
  0028  SELF      R3 = R2[K14('SetText')] (self)
  0029  MOVE      R4 = R0
  0030  CALL      R2 = call(R2, 0 args, 2 rets)
  0031  GETTABLE  R2 = R0[K4('m_button')]
  0032  SELF      R3 = R2[K15('SetEnabled')] (self)
  0033  LOADBOOL  R4 = false
  0034  CALL      R2 = call(R2, 0 args, 2 rets)
  0035  JMP       (jump)   -> 90
  0036  GETTABUP  R1 = _ENV[K7('GM')]
  0037  GETTABLE  R1 = R1[K16('NoticeModel')]
  0038  SELF      R2 = R1[K17('GetNoticeState')] (self)
  0039  GETTABLE  R3 = R0[K0('m_notice')]
  0040  CALL      R1 = call(R1, 1 args, 2 rets)
  0041  GETTABUP  R2 = _ENV[K18('NoticeState')]
  0042  GETTABLE  R2 = R2[K19('GetRewards')]
  0043  EQ        if R0 eq R2   -> -130513
  0044  JMP       (jump)   -> 55
  0045  GETTABUP  R2 = _ENV[K7('GM')]
  0046  GETTABLE  R2 = R2[K11('GameTextModel')]
  0047  SELF      R3 = R2[K12('GetText')] (self)
  0048  LOADK     R4 = K20 'mail_window_get_reward_button'
  0049  CALL      R2 = call(R2, 1 args, 2 rets)
  0050  GETTABLE  R3 = R0[K4('m_button')]
  0051  SELF      R4 = R3[K14('SetText')] (self)
  0052  MOVE      R5 = R0
  0053  CALL      R3 = call(R3, 0 args, 2 rets)
  0054  JMP       (jump)   -> 90
  0055  GETTABUP  R2 = _ENV[K18('NoticeState')]
  0056  GETTABLE  R2 = R2[K21('Read')]
  0057  EQ        if R0 eq R2   -> -130499
  0058  JMP       (jump)   -> 81
  0059  GETTABLE  R2 = R0[K0('m_notice')]
  0060  GETTABLE  R2 = R2[K3('Rewards')]
  0061  EQ        if R1 eq K2(nil)   -> -129727
  0062  JMP       (jump)   -> 81
  0063  GETTABUP  R2 = _ENV[K7('GM')]
  0064  GETTABLE  R2 = R2[K11('GameTextModel')]
  0065  SELF      R3 = R2[K12('GetText')] (self)
  0066  LOADK     R4 = K22 'mail_window_no_reward_button'
  0067  CALL      R2 = call(R2, 1 args, 2 rets)
  0068  GETTABLE  R3 = R0[K4('m_button')]
  0069  SELF      R4 = R3[K14('SetText')] (self)
  0070  MOVE      R5 = R0
  0071  CALL      R3 = call(R3, 0 args, 2 rets)
  0072  GETTABLE  R3 = R0[K4('m_button')]
  0073  SELF      R4 = R3[K15('SetEnabled')] (self)
  0074  LOADBOOL  R5 = false
  0075  CALL      R3 = call(R3, 0 args, 2 rets)
  0076  GETTABLE  R3 = R0[K23('m_rewardClaimedMask')]
  0077  SELF      R4 = R3[K6('SetActive')] (self)
  0078  LOADBOOL  R5 = true
  0079  CALL      R3 = call(R3, 0 args, 2 rets)
  0080  JMP       (jump)   -> 90
  0081  GETTABUP  R2 = _ENV[K7('GM')]
  0082  GETTABLE  R2 = R2[K11('GameTextModel')]
  0083  SELF      R3 = R2[K12('GetText')] (self)
  0084  LOADK     R4 = K24 'mail_window_jump_button'
  0085  CALL      R2 = call(R2, 1 args, 2 rets)
  0086  GETTABLE  R3 = R0[K4('m_button')]
  0087  SELF      R4 = R3[K14('SetText')] (self)
  0088  MOVE      R5 = R0
  0089  CALL      R3 = call(R3, 0 args, 2 rets)
  0090  RETURN    return R0..R-1
; ---------- proto5 [_OnButtonClicked] ----------
  ; fn ?  line 118-127 np=1 va=0 ms=5 code=25 consts=12 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='NoticeModel'
  ;   K[2]='GetNoticeState'
  ;   K[3]='m_notice'
  ;   K[4]='NoticeState'
  ;   K[5]='GetRewards'
  ;   K[6]='_AcquireRewards'
  ;   K[7]='CSPlatform'
  ;   K[8]='OpenURL'
  ;   K[9]='Link'
  ;   K[10]='OnNoticeFollowLink'
  ;   K[11]='_UpdateButtonDisplay'
  ;   upvals: _ENV
  ;   locals: self(0-25), state(5-25)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('NoticeModel')]
  0002  SELF      R2 = R1[K2('GetNoticeState')] (self)
  0003  GETTABLE  R3 = R0[K3('m_notice')]
  0004  CALL      R1 = call(R1, 1 args, 2 rets)
  0005  GETTABUP  R2 = _ENV[K4('NoticeState')]
  0006  GETTABLE  R2 = R2[K5('GetRewards')]
  0007  EQ        if R0 eq R2   -> -130549
  0008  JMP       (jump)   -> 12
  0009  SELF      R3 = R0[K6('_AcquireRewards')] (self)
  0010  CALL      R2 = call(R2, 0 args, 1 rets)
  0011  JMP       (jump)   -> 24
  0012  GETTABUP  R2 = _ENV[K7('CSPlatform')]
  0013  SELF      R3 = R2[K8('OpenURL')] (self)
  0014  GETTABLE  R4 = R0[K3('m_notice')]
  0015  GETTABLE  R4 = R4[K9('Link')]
  0016  CALL      R2 = call(R2, 0 args, 2 rets)
  0017  GETTABUP  R2 = _ENV[K0('GM')]
  0018  GETTABLE  R2 = R2[K1('NoticeModel')]
  0019  SELF      R3 = R2[K10('OnNoticeFollowLink')] (self)
  0020  GETTABLE  R4 = R0[K3('m_notice')]
  0021  CALL      R2 = call(R2, 0 args, 2 rets)
  0022  SELF      R3 = R0[K11('_UpdateButtonDisplay')] (self)
  0023  CALL      R2 = call(R2, 0 args, 1 rets)
  0024  RETURN    return R0..R-1
; ---------- proto6 [_AcquireRewards] ----------
  ; fn ?  line 129-157 np=1 va=0 ms=6 code=8 consts=4 upvals=1 protos=1
  ;   K[0]='GM'
  ;   K[1]='NoticeModel'
  ;   K[2]='AcquireRewards'
  ;   K[3]='m_notice'
  ;   upvals: _ENV
  ;   locals: self(0-8), callback(1-8)
  0000  CLOSURE   R1 = closure proto0
  0001  GETTABUP  R2 = _ENV[K0('GM')]
  0002  GETTABLE  R2 = R2[K1('NoticeModel')]
  0003  SELF      R3 = R2[K2('AcquireRewards')] (self)
  0004  GETTABLE  R4 = R0[K3('m_notice')]
  0005  MOVE      R5 = R0
  0006  CALL      R2 = call(R2, 0 args, 3 rets)
  0007  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 130-155 np=1 va=0 ms=14 code=95 consts=40 upvals=2 protos=0
    ;   K[0]='ERewardRespStatus'
    ;   K[1]='Success'
    ;   K[2]='m_notice'
    ;   K[3]='Rewards'
    ;   K[4]=1
    ;   K[5]=2
    ;   K[6]=0.5
    ;   K[7]='NoticeContentWindow'
    ;   K[8]='RewardDistance'
    ;   K[9]='m_contentRect'
    ;   K[10]='TransformPoint'
    ;   K[11]='Vector3'
    ;   K[12]=60
    ;   K[13]=0
    ;   K[14]='table'
    ;   K[15]='insert'
    ;   K[16]='arrWorldPos'
    ;   K[17]='RewardApi'
    ;   K[18]='AcquireRewardsInView'
    ;   K[19]='ERewardScene'
    ;   K[20]='Other'
    ;   K[21]='GM'
    ;   K[22]='UserProfileModel'
    ;   K[23]='RefreshDisplay'
    ;   K[24]='HasReceived'
    ;   K[25]='UIManager'
    ;   K[26]='ShowPromptWithKey'
    ;   K[27]='mail_window_no_reward'
    ;   K[28]='Expired'
    ;   K[29]='mail_window_timeout_reward'
    ;   K[30]='RespFail'
    ;   K[31]='OpenView'
    ;   K[32]='UIPrefabConfigName'
    ;   K[33]='GeneralMsgWindow'
    ;   K[34]='GameTextModel'
    ;   K[35]='GetText'
    ;   K[36]='bad_network_window_title'
    ;   K[37]='bad_network_window_desc'
    ;   K[38]='common_button_ok'
    ;   K[39]='_UpdateButtonDisplay'
    ;   upvals: _ENV, self
    ;   locals: result(0-95), rewards(6-45), worldPositionArray(7-45), (for index)(10-32), (for limit)(10-32), (for step)(10-32), i(11-31), x(18-31), position(26-31), viewData(34-45)
    0000  GETTABUP  R1 = _ENV[K0('ERewardRespStatus')]
    0001  GETTABLE  R1 = R1[K1('Success')]
    0002  EQ        if R0 eq R1   -> -131067
    0003  JMP       (jump)   -> 46
    0004  GETTABUP  R1 = self[K2('m_notice')]
    0005  GETTABLE  R1 = R1[K3('Rewards')]
    0006  NEWTABLE  R2 = {} (0 items)
    0007  LOADK     R3 = K4 1
    0008  LEN       R4 = len R0
    0009  LOADK     R5 = K4 1
    0010  FORPREP   forprep R3(sBx=20)   -> 31
    0011  LEN       R7 = len R0
    0012  DIV       R7 = K5(2) div R7
    0013  SUB       R7 = R7 sub R6
    0014  SUB       R7 = K6(0.5) sub R7
    0015  GETTABUP  R8 = _ENV[K7('NoticeContentWindow')]
    0016  GETTABLE  R8 = R8[K8('RewardDistance')]
    0017  MUL       R7 = R8 mul R7
    0018  GETTABUP  R8 = self[K9('m_contentRect')]
    0019  SELF      R9 = R8[K10('TransformPoint')] (self)
    0020  GETTABUP  R10 = _ENV[K11('Vector3')]
    0021  MOVE      R11 = R0
    0022  LOADK     R12 = K12 60
    0023  LOADK     R13 = K13 0
    0024  CALL      R10 = call(R10, -1 args, 3 rets)
    0025  CALL      R8 = call(R8, 1 args, -1 rets)
    0026  GETTABUP  R9 = _ENV[K14('table')]
    0027  GETTABLE  R9 = R9[K15('insert')]
    0028  MOVE      R10 = R0
    0029  MOVE      R11 = R0
    0030  CALL      R9 = call(R9, 0 args, 2 rets)
    0031  FORLOOP   forloop R3(sBx=-21)   -> 11
    0032  NEWTABLE  R3 = {} (0 items)
    0033  SETTABLE  R3[K16('arrWorldPos')] = R2
    0034  GETTABUP  R4 = _ENV[K17('RewardApi')]
    0035  GETTABLE  R4 = R4[K18('AcquireRewardsInView')]
    0036  MOVE      R5 = R0
    0037  MOVE      R6 = R0
    0038  GETTABUP  R7 = _ENV[K19('ERewardScene')]
    0039  GETTABLE  R7 = R7[K20('Other')]
    0040  CALL      R4 = call(R4, 0 args, 3 rets)
    0041  GETTABUP  R4 = _ENV[K21('GM')]
    0042  GETTABLE  R4 = R4[K22('UserProfileModel')]
    0043  SELF      R5 = R4[K23('RefreshDisplay')] (self)
    0044  CALL      R4 = call(R4, 0 args, 1 rets)
    0045  JMP       (jump)   -> 91
    0046  GETTABUP  R1 = _ENV[K0('ERewardRespStatus')]
    0047  GETTABLE  R1 = R1[K24('HasReceived')]
    0048  EQ        if R0 eq R1   -> -131021
    0049  JMP       (jump)   -> 56
    0050  GETTABUP  R1 = _ENV[K21('GM')]
    0051  GETTABLE  R1 = R1[K25('UIManager')]
    0052  SELF      R2 = R1[K26('ShowPromptWithKey')] (self)
    0053  LOADK     R3 = K27 'mail_window_no_reward'
    0054  CALL      R1 = call(R1, 0 args, 2 rets)
    0055  JMP       (jump)   -> 91
    0056  GETTABUP  R1 = _ENV[K0('ERewardRespStatus')]
    0057  GETTABLE  R1 = R1[K28('Expired')]
    0058  EQ        if R0 eq R1   -> -131011
    0059  JMP       (jump)   -> 66
    0060  GETTABUP  R1 = _ENV[K21('GM')]
    0061  GETTABLE  R1 = R1[K25('UIManager')]
    0062  SELF      R2 = R1[K26('ShowPromptWithKey')] (self)
    0063  LOADK     R3 = K29 'mail_window_timeout_reward'
    0064  CALL      R1 = call(R1, 0 args, 2 rets)
    0065  JMP       (jump)   -> 91
    0066  GETTABUP  R1 = _ENV[K0('ERewardRespStatus')]
    0067  GETTABLE  R1 = R1[K30('RespFail')]
    0068  EQ        if R0 eq R1   -> -131001
    0069  JMP       (jump)   -> 91
    0070  GETTABUP  R1 = _ENV[K21('GM')]
    0071  GETTABLE  R1 = R1[K25('UIManager')]
    0072  SELF      R2 = R1[K31('OpenView')] (self)
    0073  GETTABUP  R3 = _ENV[K32('UIPrefabConfigName')]
    0074  GETTABLE  R3 = R3[K33('GeneralMsgWindow')]
    0075  GETTABUP  R4 = _ENV[K21('GM')]
    0076  GETTABLE  R4 = R4[K34('GameTextModel')]
    0077  SELF      R5 = R4[K35('GetText')] (self)
    0078  LOADK     R6 = K36 'bad_network_window_title'
    0079  CALL      R4 = call(R4, 1 args, 2 rets)
    0080  GETTABUP  R5 = _ENV[K21('GM')]
    0081  GETTABLE  R5 = R5[K34('GameTextModel')]
    0082  SELF      R6 = R5[K35('GetText')] (self)
    0083  LOADK     R7 = K37 'bad_network_window_desc'
    0084  CALL      R5 = call(R5, 1 args, 2 rets)
    0085  GETTABUP  R6 = _ENV[K21('GM')]
    0086  GETTABLE  R6 = R6[K34('GameTextModel')]
    0087  SELF      R7 = R6[K35('GetText')] (self)
    0088  LOADK     R8 = K38 'common_button_ok'
    0089  CALL      R6 = call(R6, -1 args, 2 rets)
    0090  CALL      R1 = call(R1, 0 args, -1 rets)
    0091  GETUPVAL  R1 = _ENV
    0092  SELF      R2 = R1[K39('_UpdateButtonDisplay')] (self)
    0093  CALL      R1 = call(R1, 0 args, 1 rets)
    0094  RETURN    return R0..R-1
