# BigDayRaceActivity_View_BigDayRaceFailWindow_1343.luac
; fn @BigDayRaceFailWindow.lua  line 0-0 np=0 va=1 ms=4 code=17 consts=8 upvals=1 protos=2
;   K[0]='BigDayRaceFailWindow'
;   K[1]='setmetatable'
;   K[2]='BigDayRaceBaseWindow'
;   K[3]='__index'
;   K[4]=210
;   K[5]=355
;   K[6]='Init'
;   K[7]='OnCloseView'
;   upvals: _ENV
;   locals: normalHeight(9-17), rewardHeight(10-17)
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BigDayRaceBaseWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('BigDayRaceFailWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('BigDayRaceFailWindow')]
0006  GETTABUP  R1 = _ENV[K0('BigDayRaceFailWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  LOADK     R0 = K4 210
0009  LOADK     R1 = K5 355
0010  GETTABUP  R2 = _ENV[K0('BigDayRaceFailWindow')]
0011  CLOSURE   R3 = closure proto0
0012  SETTABLE  R2[K6('Init')] = R3
0013  GETTABUP  R2 = _ENV[K0('BigDayRaceFailWindow')]
0014  CLOSURE   R3 = closure proto1
0015  SETTABLE  R2[K7('OnCloseView')] = R3
0016  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 8-30 np=2 va=0 ms=10 code=79 consts=35 upvals=3 protos=0
  ;   K[0]='BigDayRaceBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_model'
  ;   K[3]='GetCurrentRoundFailReward'
  ;   K[4]='m_failRewards'
  ;   K[5]='Table'
  ;   K[6]='IsEmpty'
  ;   K[7]='RewardApi'
  ;   K[8]='CryptRewards'
  ;   K[9]='AcquireRewardsLogic'
  ;   K[10]='EPropertySource'
  ;   K[11]='Give'
  ;   K[12]='EBIType'
  ;   K[13]='BigDayRaceFailReward'
  ;   K[14]='ERewardScene'
  ;   K[15]='Other'
  ;   K[16]='EGameMode'
  ;   K[17]='Board'
  ;   K[18]='CacheItemType'
  ;   K[19]='Stack'
  ;   K[20]='m_rewardContent'
  ;   K[21]='UIUtil'
  ;   K[22]='SetSizeDelta'
  ;   K[23]='m_descBgRect'
  ;   K[24]='GetTargetScore'
  ;   K[25]=0
  ;   K[26]='m_curDay'
  ;   K[27]='GM'
  ;   K[28]='MainBoardModel'
  ;   K[29]='GetCurOrderDay'
  ;   K[30]='m_startDay'
  ;   K[31]='GetStartDay'
  ;   K[32]='m_targetDay'
  ;   K[33]='GetTargetDay'
  ;   K[34]='m_bigDayCalendar'
  ;   upvals: _ENV, rewardHeight, normalHeight
  ;   locals: self(0-79), activityType(0-79), failRewards(9-79), day(59-79)
  0000  GETTABUP  R2 = _ENV[K0('BigDayRaceBaseWindow')]
  0001  GETTABLE  R2 = R2[K1('Init')]
  0002  MOVE      R3 = R0
  0003  MOVE      R4 = R0
  0004  LOADBOOL  R5 = true
  0005  CALL      R2 = call(R2, 0 args, 3 rets)
  0006  GETTABLE  R2 = R0[K2('m_model')]
  0007  SELF      R3 = R2[K3('GetCurrentRoundFailReward')] (self)
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  SETTABLE  R0[K4('m_failRewards')] = R2
  0010  GETTABUP  R3 = _ENV[K5('Table')]
  0011  GETTABLE  R3 = R3[K6('IsEmpty')]
  0012  MOVE      R4 = R0
  0013  CALL      R3 = call(R3, 1 args, 1 rets)
  0014  TEST      if not R3 then   -> -131055
  0015  JMP       (jump)   -> 47
  0016  GETTABUP  R3 = _ENV[K7('RewardApi')]
  0017  GETTABLE  R3 = R3[K8('CryptRewards')]
  0018  GETTABLE  R4 = R0[K4('m_failRewards')]
  0019  CALL      R3 = call(R3, 0 args, 1 rets)
  0020  GETTABUP  R3 = _ENV[K7('RewardApi')]
  0021  GETTABLE  R3 = R3[K9('AcquireRewardsLogic')]
  0022  GETTABLE  R4 = R0[K4('m_failRewards')]
  0023  GETTABUP  R5 = _ENV[K10('EPropertySource')]
  0024  GETTABLE  R5 = R5[K11('Give')]
  0025  GETTABUP  R6 = _ENV[K12('EBIType')]
  0026  GETTABLE  R6 = R6[K13('BigDayRaceFailReward')]
  0027  GETTABUP  R7 = _ENV[K14('ERewardScene')]
  0028  GETTABLE  R7 = R7[K15('Other')]
  0029  GETTABUP  R8 = _ENV[K16('EGameMode')]
  0030  GETTABLE  R8 = R8[K17('Board')]
  0031  GETTABUP  R9 = _ENV[K18('CacheItemType')]
  0032  GETTABLE  R9 = R9[K19('Stack')]
  0033  CALL      R3 = call(R3, 0 args, 6 rets)
  0034  GETTABLE  R3 = R0[K20('m_rewardContent')]
  0035  SELF      R4 = R3[K1('Init')] (self)
  0036  MOVE      R5 = R0
  0037  GETTABUP  R6 = _ENV[K14('ERewardScene')]
  0038  GETTABLE  R6 = R6[K15('Other')]
  0039  CALL      R3 = call(R3, 0 args, 3 rets)
  0040  GETTABUP  R3 = _ENV[K21('UIUtil')]
  0041  GETTABLE  R3 = R3[K22('SetSizeDelta')]
  0042  GETTABLE  R4 = R0[K23('m_descBgRect')]
  0043  LOADNIL   R5..R5 = nil
  0044  GETUPVAL  R6 = _ENV
  0045  CALL      R3 = call(R3, 0 args, 3 rets)
  0046  JMP       (jump)   -> 53
  0047  GETTABUP  R3 = _ENV[K21('UIUtil')]
  0048  GETTABLE  R3 = R3[K22('SetSizeDelta')]
  0049  GETTABLE  R4 = R0[K23('m_descBgRect')]
  0050  LOADNIL   R5..R5 = nil
  0051  GETUPVAL  R6 = _ENV
  0052  CALL      R3 = call(R3, 0 args, 3 rets)
  0053  GETTABLE  R3 = R0[K2('m_model')]
  0054  SELF      R4 = R3[K24('GetTargetScore')] (self)
  0055  CALL      R3 = call(R3, 1 args, 1 rets)
  0056  TEST      if not R3 then   -> -131013
  0057  JMP       (jump)   -> 59
  0058  LOADK     R3 = K25 0
  0059  GETTABUP  R4 = _ENV[K27('GM')]
  0060  GETTABLE  R4 = R4[K28('MainBoardModel')]
  0061  SELF      R5 = R4[K29('GetCurOrderDay')] (self)
  0062  CALL      R4 = call(R4, 1 args, 1 rets)
  0063  SETTABLE  R0[K26('m_curDay')] = R4
  0064  GETTABLE  R4 = R0[K2('m_model')]
  0065  SELF      R5 = R4[K31('GetStartDay')] (self)
  0066  CALL      R4 = call(R4, 1 args, 1 rets)
  0067  SETTABLE  R0[K30('m_startDay')] = R4
  0068  GETTABLE  R4 = R0[K2('m_model')]
  0069  SELF      R5 = R4[K33('GetTargetDay')] (self)
  0070  CALL      R4 = call(R4, 1 args, 1 rets)
  0071  SETTABLE  R0[K32('m_targetDay')] = R4
  0072  GETTABLE  R4 = R0[K34('m_bigDayCalendar')]
  0073  SELF      R5 = R4[K1('Init')] (self)
  0074  GETTABLE  R6 = R0[K30('m_startDay')]
  0075  GETTABLE  R7 = R0[K32('m_targetDay')]
  0076  GETTABLE  R8 = R0[K26('m_curDay')]
  0077  CALL      R4 = call(R4, 0 args, 4 rets)
  0078  RETURN    return R0..R-1
; ---------- proto1 [OnCloseView] ----------
  ; fn ?  line 32-37 np=1 va=0 ms=3 code=14 consts=7 upvals=1 protos=0
  ;   K[0]='BigDayRaceBaseWindow'
  ;   K[1]='OnCloseView'
  ;   K[2]='Table'
  ;   K[3]='IsEmpty'
  ;   K[4]='m_failRewards'
  ;   K[5]='m_rewardContent'
  ;   K[6]='PlayRewardAnimation'
  ;   upvals: _ENV
  ;   locals: self(0-14)
  0000  GETTABUP  R1 = _ENV[K0('BigDayRaceBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnCloseView')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('Table')]
  0005  GETTABLE  R1 = R1[K3('IsEmpty')]
  0006  GETTABLE  R2 = R0[K4('m_failRewards')]
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  TEST      if not R1 then   -> -131061
  0009  JMP       (jump)   -> 13
  0010  GETTABLE  R1 = R0[K5('m_rewardContent')]
  0011  SELF      R2 = R1[K6('PlayRewardAnimation')] (self)
  0012  CALL      R1 = call(R1, 0 args, 1 rets)
  0013  RETURN    return R0..R-1
