# DiscoSpin_View_DiscoSpinActivityInfoCell_1485.luac
; fn @DiscoSpinActivityInfoCell.lua  line 0-0 np=0 va=1 ms=2 code=18 consts=6 upvals=1 protos=4
;   K[0]='DiscoSpinActivityInfoCell'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='GetModel'
;   K[4]='GetIndex'
;   K[5]='_InitView'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('DiscoSpinActivityInfoCell')] = R0
0002  GETTABUP  R0 = _ENV[K0('DiscoSpinActivityInfoCell')]
0003  GETTABUP  R1 = _ENV[K0('DiscoSpinActivityInfoCell')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('DiscoSpinActivityInfoCell')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('DiscoSpinActivityInfoCell')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('GetModel')] = R1
0011  GETTABUP  R0 = _ENV[K0('DiscoSpinActivityInfoCell')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('GetIndex')] = R1
0014  GETTABUP  R0 = _ENV[K0('DiscoSpinActivityInfoCell')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('_InitView')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 16-21 np=3 va=0 ms=5 code=5 consts=3 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='m_index'
  ;   K[2]='_InitView'
  ;   locals: self(0-5), model(0-5), index(0-5)
  0000  SETTABLE  R0[K0('m_model')] = R1
  0001  SETTABLE  R0[K1('m_index')] = R2
  0002  SELF      R4 = R0[K2('_InitView')] (self)
  0003  CALL      R3 = call(R3, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto1 [GetModel] ----------
  ; fn ?  line 23-25 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
; ---------- proto2 [GetIndex] ----------
  ; fn ?  line 27-29 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_index'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_index')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto3 [_InitView] ----------
  ; fn ?  line 31-49 np=1 va=0 ms=11 code=65 consts=28 upvals=1 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='GetIndex'
  ;   K[2]='IsRewardTaken'
  ;   K[3]='GetActivityDefinition'
  ;   K[4]='RewardScene'
  ;   K[5]='m_rewardContent'
  ;   K[6]='Init'
  ;   K[7]='GetRewardByIndex'
  ;   K[8]='GetProbability'
  ;   K[9]=0
  ;   K[10]='m_probabilityText'
  ;   K[11]='text'
  ;   K[12]='string'
  ;   K[13]='format'
  ;   K[14]='%.2f%%'
  ;   K[15]='UIUtil'
  ;   K[16]='SetActive'
  ;   K[17]='m_probabilityTextGo'
  ;   K[18]='m_checkGo'
  ;   K[19]='GameConfig'
  ;   K[20]='IsTestMode'
  ;   K[21]='m_testTextIndex'
  ;   K[22]='tostring'
  ;   K[23]='m_testTextWeight'
  ;   K[24]='weight = '
  ;   K[25]='GetCurrentContentConfig'
  ;   K[26]='GetWeightInfoByIndex'
  ;   K[27]='Weight'
  ;   upvals: _ENV
  ;   locals: self(0-65), model(2-65), index(4-65), bRewardTaken(7-65), rewardScene(10-65), probability(25-32)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R3 = R0[K1('GetIndex')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  SELF      R4 = R1[K2('IsRewardTaken')] (self)
  0005  MOVE      R5 = R0
  0006  CALL      R3 = call(R3, 1 args, 2 rets)
  0007  SELF      R5 = R1[K3('GetActivityDefinition')] (self)
  0008  CALL      R4 = call(R4, 1 args, 1 rets)
  0009  GETTABLE  R4 = R4[K4('RewardScene')]
  0010  GETTABLE  R5 = R0[K5('m_rewardContent')]
  0011  SELF      R6 = R5[K6('Init')] (self)
  0012  SELF      R8 = R1[K7('GetRewardByIndex')] (self)
  0013  MOVE      R9 = R0
  0014  CALL      R7 = call(R7, 1 args, 2 rets)
  0015  MOVE      R8 = R0
  0016  CALL      R5 = call(R5, 0 args, 3 rets)
  0017  TEST      if not R3 then   -> -131052
  0018  JMP       (jump)   -> 32
  0019  SELF      R6 = R1[K8('GetProbability')] (self)
  0020  MOVE      R7 = R0
  0021  CALL      R5 = call(R5, 1 args, 2 rets)
  0022  TEST      if not R5 then   -> -131047
  0023  JMP       (jump)   -> 25
  0024  LOADK     R5 = K9 0
  0025  GETTABLE  R6 = R0[K10('m_probabilityText')]
  0026  GETTABUP  R7 = _ENV[K12('string')]
  0027  GETTABLE  R7 = R7[K13('format')]
  0028  LOADK     R8 = K14 '%.2f%%'
  0029  MOVE      R9 = R0
  0030  CALL      R7 = call(R7, 1 args, 2 rets)
  0031  SETTABLE  R6[K11('text')] = R7
  0032  GETTABUP  R5 = _ENV[K15('UIUtil')]
  0033  GETTABLE  R5 = R5[K16('SetActive')]
  0034  GETTABLE  R6 = R0[K17('m_probabilityTextGo')]
  0035  NOT       R7 = not R0
  0036  CALL      R5 = call(R5, 0 args, 2 rets)
  0037  GETTABUP  R5 = _ENV[K15('UIUtil')]
  0038  GETTABLE  R5 = R5[K16('SetActive')]
  0039  GETTABLE  R6 = R0[K18('m_checkGo')]
  0040  MOVE      R7 = R0
  0041  CALL      R5 = call(R5, 0 args, 2 rets)
  0042  GETTABUP  R5 = _ENV[K19('GameConfig')]
  0043  GETTABLE  R5 = R5[K20('IsTestMode')]
  0044  CALL      R5 = call(R5, 1 args, 0 rets)
  0045  TEST      if not R5 then   -> -131025
  0046  JMP       (jump)   -> 64
  0047  GETTABLE  R5 = R0[K21('m_testTextIndex')]
  0048  GETTABUP  R6 = _ENV[K22('tostring')]
  0049  MOVE      R7 = R0
  0050  CALL      R6 = call(R6, 1 args, 1 rets)
  0051  SETTABLE  R5[K11('text')] = R6
  0052  GETTABLE  R5 = R0[K23('m_testTextWeight')]
  0053  LOADK     R6 = K24 'weight = '
  0054  GETTABUP  R7 = _ENV[K22('tostring')]
  0055  SELF      R9 = R1[K25('GetCurrentContentConfig')] (self)
  0056  CALL      R8 = call(R8, 1 args, 1 rets)
  0057  SELF      R9 = R8[K26('GetWeightInfoByIndex')] (self)
  0058  MOVE      R10 = R0
  0059  CALL      R8 = call(R8, 1 args, 2 rets)
  0060  GETTABLE  R8 = R8[K27('Weight')]
  0061  CALL      R7 = call(R7, 1 args, 1 rets)
  0062  CONCAT    R6 = concat(R6..R6)
  0063  SETTABLE  R5[K11('text')] = R6
  0064  RETURN    return R0..R-1
