# CrownLevelUp_View_CrownLevelUpBoxRewardWindow_1273.luac
; fn @CrownLevelUpBoxRewardWindow.lua  line 0-0 np=0 va=1 ms=3 code=31 consts=12 upvals=1 protos=7
;   K[0]='CrownLevelUpBoxRewardWindow'
;   K[1]='setmetatable'
;   K[2]='BoxRewardWindow'
;   K[3]='__index'
;   K[4]=0.4
;   K[5]='BeforeOpenCheck'
;   K[6]='_CanOpenWindow'
;   K[7]='Init'
;   K[8]='GetModel'
;   K[9]='_IsModelIdChanged'
;   K[10]='_IsActivityValid'
;   K[11]='OnAnimationEnd'
;   upvals: _ENV
;   locals: AUTO_CLOSE_DELAY(9-31)
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BoxRewardWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('CrownLevelUpBoxRewardWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('CrownLevelUpBoxRewardWindow')]
0006  GETTABUP  R1 = _ENV[K0('CrownLevelUpBoxRewardWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  LOADK     R0 = K4 0.4
0009  GETTABUP  R1 = _ENV[K0('CrownLevelUpBoxRewardWindow')]
0010  CLOSURE   R2 = closure proto0
0011  SETTABLE  R1[K5('BeforeOpenCheck')] = R2
0012  GETTABUP  R1 = _ENV[K0('CrownLevelUpBoxRewardWindow')]
0013  CLOSURE   R2 = closure proto1
0014  SETTABLE  R1[K6('_CanOpenWindow')] = R2
0015  GETTABUP  R1 = _ENV[K0('CrownLevelUpBoxRewardWindow')]
0016  CLOSURE   R2 = closure proto2
0017  SETTABLE  R1[K7('Init')] = R2
0018  GETTABUP  R1 = _ENV[K0('CrownLevelUpBoxRewardWindow')]
0019  CLOSURE   R2 = closure proto3
0020  SETTABLE  R1[K8('GetModel')] = R2
0021  GETTABUP  R1 = _ENV[K0('CrownLevelUpBoxRewardWindow')]
0022  CLOSURE   R2 = closure proto4
0023  SETTABLE  R1[K9('_IsModelIdChanged')] = R2
0024  GETTABUP  R1 = _ENV[K0('CrownLevelUpBoxRewardWindow')]
0025  CLOSURE   R2 = closure proto5
0026  SETTABLE  R1[K10('_IsActivityValid')] = R2
0027  GETTABUP  R1 = _ENV[K0('CrownLevelUpBoxRewardWindow')]
0028  CLOSURE   R2 = closure proto6
0029  SETTABLE  R1[K11('OnAnimationEnd')] = R2
0030  RETURN    return R0..R-1
; ---------- proto0 [BeforeOpenCheck] ----------
  ; fn ?  line 13-16 np=3 va=0 ms=7 code=20 consts=5 upvals=0 protos=0
  ;   K[0]='GetState'
  ;   K[1]=nil
  ;   K[2]='_CanOpenWindow'
  ;   K[3]='GetId'
  ;   K[4]='GetClaimedRewards'
  ;   locals: self(0-20), model(0-20), id(0-20), state(2-20)
  0000  SELF      R4 = R1[K0('GetState')] (self)
  0001  CALL      R3 = call(R3, 1 args, 1 rets)
  0002  EQ        if R1 eq K1(nil)   -> -130299
  0003  JMP       (jump)   -> 16
  0004  SELF      R5 = R0[K2('_CanOpenWindow')] (self)
  0005  MOVE      R6 = R0
  0006  CALL      R4 = call(R4, 1 args, 2 rets)
  0007  TEST      if not R4 then   -> -131063
  0008  JMP       (jump)   -> 18
  0009  SELF      R5 = R1[K3('GetId')] (self)
  0010  CALL      R4 = call(R4, 1 args, 1 rets)
  0011  EQ        if R0 eq R2   -> -129009
  0012  JMP       (jump)   -> 16
  0013  SELF      R5 = R1[K4('GetClaimedRewards')] (self)
  0014  CALL      R4 = call(R4, 1 args, 1 rets)
  0015  JMP       (jump)   -> 18
  0016  LOADBOOL  R4 = false
  0017  LOADBOOL  R4 = true
  0018  RETURN    return R4..R3
  0019  RETURN    return R0..R-1
; ---------- proto1 [_CanOpenWindow] ----------
  ; fn ?  line 19-22 np=2 va=0 ms=4 code=14 consts=4 upvals=1 protos=0
  ;   K[0]='GetState'
  ;   K[1]='ActivityState'
  ;   K[2]='Started'
  ;   K[3]='Ended'
  ;   upvals: _ENV
  ;   locals: self(0-14), model(0-14), state(2-14)
  0000  SELF      R3 = R1[K0('GetState')] (self)
  0001  CALL      R2 = call(R2, 1 args, 1 rets)
  0002  GETTABUP  R3 = _ENV[K1('ActivityState')]
  0003  GETTABLE  R3 = R3[K2('Started')]
  0004  EQ        if R1 eq R3   -> -130039
  0005  JMP       (jump)   -> 11
  0006  GETTABUP  R3 = _ENV[K1('ActivityState')]
  0007  GETTABLE  R3 = R3[K3('Ended')]
  0008  EQ        if R1 eq R3   -> -130035
  0009  JMP       (jump)   -> 11
  0010  LOADBOOL  R3 = false
  0011  LOADBOOL  R3 = true
  0012  RETURN    return R3..R2
  0013  RETURN    return R0..R-1
; ---------- proto2 [Init] ----------
  ; fn ?  line 24-42 np=11 va=0 ms=23 code=61 consts=21 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='m_id'
  ;   K[2]='m_activityDefinition'
  ;   K[3]='GetActivityDefinition'
  ;   K[4]='GetClaimedRewards'
  ;   K[5]='BoxRewardWindow'
  ;   K[6]='Init'
  ;   K[7]='SetClaimedRewards'
  ;   K[8]='GetFinishCount'
  ;   K[9]='GetMaxOrderNum'
  ;   K[10]='m_descText'
  ;   K[11]='text'
  ;   K[12]='GM'
  ;   K[13]='GameTextModel'
  ;   K[14]='GetText'
  ;   K[15]='crownlevelup_text_5'
  ;   K[16]='crownlevelup_text_2'
  ;   K[17]='Log'
  ;   K[18]='Error'
  ;   K[19]='[王冠冲刺] 记录的已完成王冠数量finishCount异常'
  ;   K[20]='m_box'
  ;   upvals: _ENV
  ;   locals: self(0-61), model(0-61), id(0-61), position(0-61), scaleX(0-61), eBoxRewardType(0-61), titleTextKey(0-61), playRewardAnim(0-61), rewardScene(0-61), initCallback(0-61), closeCallback(0-61), arrRewards(9-61), finishCount(27-61)
  0000  SETTABLE  R0[K0('m_model')] = R1
  0001  SETTABLE  R0[K1('m_id')] = R2
  0002  GETTABLE  R11 = R0[K0('m_model')]
  0003  SELF      R12 = R11[K3('GetActivityDefinition')] (self)
  0004  CALL      R11 = call(R11, 1 args, 1 rets)
  0005  SETTABLE  R0[K2('m_activityDefinition')] = R11
  0006  GETTABLE  R11 = R0[K0('m_model')]
  0007  SELF      R12 = R11[K4('GetClaimedRewards')] (self)
  0008  CALL      R11 = call(R11, 1 args, 1 rets)
  0009  GETTABUP  R12 = _ENV[K5('BoxRewardWindow')]
  0010  GETTABLE  R12 = R12[K6('Init')]
  0011  MOVE      R13 = R0
  0012  MOVE      R14 = R0
  0013  MOVE      R15 = R0
  0014  MOVE      R16 = R0
  0015  MOVE      R17 = R0
  0016  MOVE      R18 = R0
  0017  MOVE      R19 = R0
  0018  MOVE      R20 = R0
  0019  MOVE      R21 = R0
  0020  MOVE      R22 = R0
  0021  CALL      R12 = call(R12, 0 args, 10 rets)
  0022  GETTABLE  R12 = R0[K0('m_model')]
  0023  SELF      R13 = R12[K7('SetClaimedRewards')] (self)
  0024  CALL      R12 = call(R12, 0 args, 1 rets)
  0025  SELF      R13 = R1[K8('GetFinishCount')] (self)
  0026  CALL      R12 = call(R12, 1 args, 1 rets)
  0027  SELF      R14 = R1[K9('GetMaxOrderNum')] (self)
  0028  CALL      R13 = call(R13, 1 args, 1 rets)
  0029  EQ        if R0 eq R13   -> -124884
  0030  JMP       (jump)   -> 39
  0031  GETTABLE  R13 = R0[K10('m_descText')]
  0032  GETTABUP  R14 = _ENV[K12('GM')]
  0033  GETTABLE  R14 = R14[K13('GameTextModel')]
  0034  SELF      R15 = R14[K14('GetText')] (self)
  0035  LOADK     R16 = K15 'crownlevelup_text_5'
  0036  CALL      R14 = call(R14, 1 args, 2 rets)
  0037  SETTABLE  R13[K11('text')] = R14
  0038  JMP       (jump)   -> 56
  0039  SELF      R14 = R1[K9('GetMaxOrderNum')] (self)
  0040  CALL      R13 = call(R13, 1 args, 1 rets)
  0041  LT        if R0 lt R13   -> -124872
  0042  JMP       (jump)   -> 52
  0043  GETTABLE  R13 = R0[K10('m_descText')]
  0044  GETTABUP  R14 = _ENV[K12('GM')]
  0045  GETTABLE  R14 = R14[K13('GameTextModel')]
  0046  SELF      R15 = R14[K14('GetText')] (self)
  0047  LOADK     R16 = K16 'crownlevelup_text_2'
  0048  MOVE      R17 = R0
  0049  CALL      R14 = call(R14, 1 args, 3 rets)
  0050  SETTABLE  R13[K11('text')] = R14
  0051  JMP       (jump)   -> 56
  0052  GETTABUP  R13 = _ENV[K17('Log')]
  0053  GETTABLE  R13 = R13[K18('Error')]
  0054  LOADK     R14 = K19 '[王冠冲刺] 记录的已完成王冠数量finishCount异常'
  0055  CALL      R13 = call(R13, 0 args, 1 rets)
  0056  GETTABLE  R13 = R0[K20('m_box')]
  0057  SELF      R14 = R13[K6('Init')] (self)
  0058  MOVE      R15 = R0
  0059  CALL      R13 = call(R13, 0 args, 2 rets)
  0060  RETURN    return R0..R-1
; ---------- proto3 [GetModel] ----------
  ; fn ?  line 44-46 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto4 [_IsModelIdChanged] ----------
  ; fn ?  line 48-50 np=1 va=0 ms=4 code=11 consts=3 upvals=0 protos=0
  ;   K[0]='m_id'
  ;   K[1]='GetModel'
  ;   K[2]='GetId'
  ;   locals: self(0-11)
  0000  GETTABLE  R1 = R0[K0('m_id')]
  0001  SELF      R3 = R0[K1('GetModel')] (self)
  0002  CALL      R2 = call(R2, 1 args, 1 rets)
  0003  SELF      R3 = R2[K2('GetId')] (self)
  0004  CALL      R2 = call(R2, 1 args, 1 rets)
  0005  EQ        if R0 eq R2   -> -130551
  0006  JMP       (jump)   -> 8
  0007  LOADBOOL  R1 = false
  0008  LOADBOOL  R1 = true
  0009  RETURN    return R1..R0
  0010  RETURN    return R0..R-1
; ---------- proto5 [_IsActivityValid] ----------
  ; fn ?  line 53-55 np=1 va=0 ms=3 code=11 consts=3 upvals=0 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='IsActivityOpen'
  ;   K[2]='_IsModelIdChanged'
  ;   locals: self(0-11)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R2 = R1[K1('IsActivityOpen')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131066
  0005  JMP       (jump)   -> 9
  0006  SELF      R2 = R0[K2('_IsModelIdChanged')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  NOT       R1 = not R0
  0009  RETURN    return R1..R0
  0010  RETURN    return R0..R-1
; ---------- proto6 [OnAnimationEnd] ----------
  ; fn ?  line 57-61 np=1 va=0 ms=5 code=6 consts=1 upvals=2 protos=1
  ;   K[0]='DelayExecuteFuncInView'
  ;   upvals: _ENV, AUTO_CLOSE_DELAY
  ;   locals: self(0-6)
  0000  GETTABUP  R1 = _ENV[K0('DelayExecuteFuncInView')]
  0001  CLOSURE   R2 = closure proto0
  0002  GETUPVAL  R3 = _ENV
  0003  MOVE      R4 = R0
  0004  CALL      R1 = call(R1, 0 args, 3 rets)
  0005  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 58-60 np=0 va=0 ms=2 code=4 consts=1 upvals=1 protos=0
    ;   K[0]='Close'
    ;   upvals: self
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('Close')] (self)
    0002  CALL      R0 = call(R0, 0 args, 1 rets)
    0003  RETURN    return R0..R-1
