# ExtraBoardActivity_View_ExtraBoardActivityLevelProgressCell_1027.luac
; fn @ExtraBoardActivityLevelProgressCell.lua  line 0-0 np=0 va=1 ms=3 code=29 consts=10 upvals=1 protos=5
;   K[0]='ExtraBoardActivityLevelProgressCell'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='UpdateLevelContent'
;   K[4]='GetIconArea'
;   K[5]='ExtraBoardActivityLevelProgressCellButton'
;   K[6]='setmetatable'
;   K[7]='HudBaseButton'
;   K[8]='SetParent'
;   K[9]='IconScaleAnimation'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('ExtraBoardActivityLevelProgressCell')] = R0
0002  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityLevelProgressCell')]
0003  GETTABUP  R1 = _ENV[K0('ExtraBoardActivityLevelProgressCell')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityLevelProgressCell')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityLevelProgressCell')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('UpdateLevelContent')] = R1
0011  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityLevelProgressCell')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('GetIconArea')] = R1
0014  GETTABUP  R0 = _ENV[K6('setmetatable')]
0015  NEWTABLE  R1 = {} (0 items)
0016  GETTABUP  R2 = _ENV[K7('HudBaseButton')]
0017  CALL      R0 = call(R0, 1 args, 2 rets)
0018  SETTABUP  _ENV[K5('ExtraBoardActivityLevelProgressCellButton')] = R0
0019  GETTABUP  R0 = _ENV[K5('ExtraBoardActivityLevelProgressCellButton')]
0020  GETTABUP  R1 = _ENV[K5('ExtraBoardActivityLevelProgressCellButton')]
0021  SETTABLE  R0[K1('__index')] = R1
0022  GETTABUP  R0 = _ENV[K5('ExtraBoardActivityLevelProgressCellButton')]
0023  CLOSURE   R1 = closure proto3
0024  SETTABLE  R0[K8('SetParent')] = R1
0025  GETTABUP  R0 = _ENV[K5('ExtraBoardActivityLevelProgressCellButton')]
0026  CLOSURE   R1 = closure proto4
0027  SETTABLE  R0[K9('IconScaleAnimation')] = R1
0028  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 8-27 np=5 va=0 ms=12 code=55 consts=20 upvals=1 protos=0
  ;   K[0]='m_index'
  ;   K[1]=1
  ;   K[2]='m_model'
  ;   K[3]='m_window'
  ;   K[4]='m_bEnd'
  ;   K[5]='m_iconArea'
  ;   K[6]='SetParent'
  ;   K[7]='GetItemTypeByIndex'
  ;   K[8]='GM'
  ;   K[9]='ItemDataModel'
  ;   K[10]='GetSpriteName'
  ;   K[11]='SpriteUtil'
  ;   K[12]='SetImage'
  ;   K[13]='m_iconImage'
  ;   K[14]='m_shadowImage'
  ;   K[15]='GetActivityDefinition'
  ;   K[16]='MergeLineScales'
  ;   K[17]='tonumber'
  ;   K[18]='transform'
  ;   K[19]='SetLocalScaleXY'
  ;   upvals: _ENV
  ;   locals: self(0-55), level(0-55), model(0-55), window(0-55), bEnd(0-55), itemType(14-55), spriteName(19-55), arrMergeLineScales(38-55), scale(42-55)
  0000  ADD       R5 = K1(1) add R1
  0001  SETTABLE  R0[K0('m_index')] = R5
  0002  SETTABLE  R0[K2('m_model')] = R2
  0003  SETTABLE  R0[K3('m_window')] = R3
  0004  SETTABLE  R0[K4('m_bEnd')] = R4
  0005  GETTABLE  R5 = R0[K5('m_iconArea')]
  0006  SELF      R6 = R5[K6('SetParent')] (self)
  0007  MOVE      R7 = R0
  0008  GETTABLE  R8 = R0[K0('m_index')]
  0009  CALL      R5 = call(R5, 0 args, 3 rets)
  0010  GETTABLE  R5 = R0[K2('m_model')]
  0011  SELF      R6 = R5[K7('GetItemTypeByIndex')] (self)
  0012  GETTABLE  R7 = R0[K0('m_index')]
  0013  CALL      R5 = call(R5, 1 args, 2 rets)
  0014  GETTABUP  R6 = _ENV[K8('GM')]
  0015  GETTABLE  R6 = R6[K9('ItemDataModel')]
  0016  SELF      R7 = R6[K10('GetSpriteName')] (self)
  0017  MOVE      R8 = R0
  0018  CALL      R6 = call(R6, 1 args, 2 rets)
  0019  GETTABUP  R7 = _ENV[K11('SpriteUtil')]
  0020  GETTABLE  R7 = R7[K12('SetImage')]
  0021  GETTABLE  R8 = R0[K13('m_iconImage')]
  0022  MOVE      R9 = R0
  0023  LOADBOOL  R10 = false
  0024  CALL      R7 = call(R7, 0 args, 3 rets)
  0025  GETTABUP  R7 = _ENV[K11('SpriteUtil')]
  0026  GETTABLE  R7 = R7[K12('SetImage')]
  0027  GETTABLE  R8 = R0[K14('m_shadowImage')]
  0028  MOVE      R9 = R0
  0029  LOADBOOL  R10 = false
  0030  CALL      R7 = call(R7, 0 args, 3 rets)
  0031  GETTABLE  R7 = R0[K2('m_model')]
  0032  SELF      R8 = R7[K15('GetActivityDefinition')] (self)
  0033  CALL      R7 = call(R7, 1 args, 1 rets)
  0034  GETTABLE  R7 = R7[K16('MergeLineScales')]
  0035  TEST      if not R7 then   -> -131034
  0036  JMP       (jump)   -> 38
  0037  NEWTABLE  R7 = {} (0 items)
  0038  GETTABUP  R8 = _ENV[K17('tonumber')]
  0039  GETTABLE  R9 = R0[K0('m_index')]
  0040  GETTABLE  R9 = R7[R9]
  0041  CALL      R8 = call(R8, 1 args, 1 rets)
  0042  TEST      if not R8 then   -> -131028
  0043  JMP       (jump)   -> 54
  0044  GETTABLE  R9 = R0[K13('m_iconImage')]
  0045  GETTABLE  R9 = R9[K18('transform')]
  0046  SELF      R10 = R9[K19('SetLocalScaleXY')] (self)
  0047  MOVE      R11 = R0
  0048  CALL      R9 = call(R9, 0 args, 2 rets)
  0049  GETTABLE  R9 = R0[K14('m_shadowImage')]
  0050  GETTABLE  R9 = R9[K18('transform')]
  0051  SELF      R10 = R9[K19('SetLocalScaleXY')] (self)
  0052  MOVE      R11 = R0
  0053  CALL      R9 = call(R9, 0 args, 2 rets)
  0054  RETURN    return R0..R-1
; ---------- proto1 [UpdateLevelContent] ----------
  ; fn ?  line 29-50 np=3 va=0 ms=11 code=66 consts=23 upvals=1 protos=1
  ;   K[0]='m_iconImage'
  ;   K[1]='gameObject'
  ;   K[2]='activeSelf'
  ;   K[3]='m_index'
  ;   K[4]='transform'
  ;   K[5]='localScale'
  ;   K[6]='DOTween'
  ;   K[7]='Sequence'
  ;   K[8]='Append'
  ;   K[9]='m_shadowImage'
  ;   K[10]='DOScale'
  ;   K[11]=0.5
  ;   K[12]=0.13
  ;   K[13]='AppendCallback'
  ;   K[14]='m_iconImage'
  ;   K[15]='transform'
  ;   K[16]=1.2
  ;   K[17]=0.1
  ;   K[18]=0.67
  ;   K[19]='UIUtil'
  ;   K[20]='SetActive'
  ;   K[21]='gameObject'
  ;   K[22]='m_shadowImage'
  ;   upvals: _ENV
  ;   locals: self(0-66), currentLevel(0-66), needAnimation(0-66), originalScale(13-44), sequence(16-44)
  0000  TEST      if not R2 then   -> -131070
  0001  JMP       (jump)   -> 45
  0002  GETTABLE  R3 = R0[K0('m_iconImage')]
  0003  GETTABLE  R3 = R3[K1('gameObject')]
  0004  GETTABLE  R3 = R3[K2('activeSelf')]
  0005  TEST      if not R3 then   -> -131064
  0006  JMP       (jump)   -> 45
  0007  GETTABLE  R3 = R0[K3('m_index')]
  0008  LE        if R0 le R1   -> -129525
  0009  JMP       (jump)   -> 45
  0010  GETTABLE  R3 = R0[K0('m_iconImage')]
  0011  GETTABLE  R3 = R3[K4('transform')]
  0012  GETTABLE  R3 = R3[K5('localScale')]
  0013  GETTABUP  R4 = _ENV[K6('DOTween')]
  0014  GETTABLE  R4 = R4[K7('Sequence')]
  0015  CALL      R4 = call(R4, 1 args, 0 rets)
  0016  SELF      R6 = R4[K8('Append')] (self)
  0017  GETTABLE  R7 = R0[K9('m_shadowImage')]
  0018  GETTABLE  R7 = R7[K4('transform')]
  0019  SELF      R8 = R7[K10('DOScale')] (self)
  0020  MUL       R9 = K11(0.5) mul R3
  0021  LOADK     R10 = K12 0.13
  0022  CALL      R7 = call(R7, -1 args, 3 rets)
  0023  CALL      R5 = call(R5, 0 args, -1 rets)
  0024  SELF      R6 = R4[K13('AppendCallback')] (self)
  0025  CLOSURE   R7 = closure proto0
  0026  CALL      R5 = call(R5, 0 args, 2 rets)
  0027  SELF      R6 = R4[K8('Append')] (self)
  0028  GETTABLE  R7 = R0[K14('m_iconImage')]
  0029  GETTABLE  R7 = R7[K15('transform')]
  0030  SELF      R8 = R7[K10('DOScale')] (self)
  0031  MUL       R9 = K16(1.2) mul R3
  0032  LOADK     R10 = K17 0.1
  0033  CALL      R7 = call(R7, -1 args, 3 rets)
  0034  CALL      R5 = call(R5, 0 args, -1 rets)
  0035  SELF      R6 = R4[K8('Append')] (self)
  0036  GETTABLE  R7 = R0[K14('m_iconImage')]
  0037  GETTABLE  R7 = R7[K15('transform')]
  0038  SELF      R8 = R7[K10('DOScale')] (self)
  0039  MOVE      R9 = R0
  0040  LOADK     R10 = K18 0.67
  0041  CALL      R7 = call(R7, -1 args, 3 rets)
  0042  CALL      R5 = call(R5, 0 args, -1 rets)
  0043  JMP       (jump)   -> 65
  0044  JMP       (jump)   -> 65
  0045  GETTABUP  R3 = _ENV[K19('UIUtil')]
  0046  GETTABLE  R3 = R3[K20('SetActive')]
  0047  GETTABLE  R4 = R0[K14('m_iconImage')]
  0048  GETTABLE  R4 = R4[K21('gameObject')]
  0049  GETTABLE  R5 = R0[K3('m_index')]
  0050  LE        if R1 le R1   -> -128459
  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[K19('UIUtil')]
  0056  GETTABLE  R3 = R3[K20('SetActive')]
  0057  GETTABLE  R4 = R0[K22('m_shadowImage')]
  0058  GETTABLE  R4 = R4[K21('gameObject')]
  0059  GETTABLE  R5 = R0[K3('m_index')]
  0060  LT        if R1 lt R5   -> -130493
  0061  JMP       (jump)   -> 63
  0062  LOADBOOL  R5 = false
  0063  LOADBOOL  R5 = true
  0064  CALL      R3 = call(R3, 0 args, 2 rets)
  0065  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 36-43 np=0 va=0 ms=3 code=23 consts=9 upvals=3 protos=0
    ;   K[0]='UIUtil'
    ;   K[1]='IsEmptyComponent'
    ;   K[2]='m_iconImage'
    ;   K[3]='transform'
    ;   K[4]='localScale'
    ;   K[5]=0.5
    ;   K[6]='gameObject'
    ;   K[7]='SetActive'
    ;   K[8]='m_shadowImage'
    ;   upvals: _ENV, self, originalScale
    0000  GETTABUP  R0 = _ENV[K0('UIUtil')]
    0001  GETTABLE  R0 = R0[K1('IsEmptyComponent')]
    0002  GETUPVAL  R1 = _ENV
    0003  CALL      R0 = call(R0, 1 args, 1 rets)
    0004  TEST      if not R0 then   -> -131066
    0005  JMP       (jump)   -> 7
    0006  RETURN    return R0..R-1
    0007  GETTABUP  R0 = self[K2('m_iconImage')]
    0008  GETTABLE  R0 = R0[K3('transform')]
    0009  GETUPVAL  R1 = _ENV
    0010  MUL       R1 = K5(0.5) mul R1
    0011  SETTABLE  R0[K4('localScale')] = R1
    0012  GETTABUP  R0 = self[K2('m_iconImage')]
    0013  GETTABLE  R0 = R0[K6('gameObject')]
    0014  SELF      R1 = R0[K7('SetActive')] (self)
    0015  LOADBOOL  R2 = true
    0016  CALL      R0 = call(R0, 0 args, 2 rets)
    0017  GETTABUP  R0 = self[K8('m_shadowImage')]
    0018  GETTABLE  R0 = R0[K6('gameObject')]
    0019  SELF      R1 = R0[K7('SetActive')] (self)
    0020  LOADBOOL  R2 = false
    0021  CALL      R0 = call(R0, 0 args, 2 rets)
    0022  RETURN    return R0..R-1
; ---------- proto2 [GetIconArea] ----------
  ; fn ?  line 52-54 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_iconArea'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_iconArea')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto3 [SetParent] ----------
  ; fn ?  line 61-64 np=3 va=0 ms=3 code=3 consts=2 upvals=0 protos=0
  ;   K[0]='m_window'
  ;   K[1]='m_index'
  ;   locals: self(0-3), window(0-3), index(0-3)
  0000  SETTABLE  R0[K0('m_window')] = R1
  0001  SETTABLE  R0[K1('m_index')] = R2
  0002  RETURN    return R0..R-1
; ---------- proto4 [IconScaleAnimation] ----------
  ; fn ?  line 66-71 np=2 va=0 ms=5 code=23 consts=7 upvals=1 protos=0
  ;   K[0]='HudBaseButton'
  ;   K[1]='IconScaleAnimation'
  ;   K[2]='m_window'
  ;   K[3]='gameObject'
  ;   K[4]='IsNull'
  ;   K[5]='OnUnlockAnimationFinish'
  ;   K[6]='m_index'
  ;   upvals: _ENV
  ;   locals: self(0-23), needEffect(0-23)
  0000  GETTABUP  R2 = _ENV[K0('HudBaseButton')]
  0001  GETTABLE  R2 = R2[K1('IconScaleAnimation')]
  0002  MOVE      R3 = R0
  0003  MOVE      R4 = R0
  0004  CALL      R2 = call(R2, 0 args, 2 rets)
  0005  GETTABLE  R2 = R0[K2('m_window')]
  0006  TEST      if not R2 then   -> -131064
  0007  JMP       (jump)   -> 22
  0008  GETTABLE  R2 = R0[K2('m_window')]
  0009  GETTABLE  R2 = R2[K3('gameObject')]
  0010  TEST      if not R2 then   -> -131060
  0011  JMP       (jump)   -> 22
  0012  GETTABLE  R2 = R0[K2('m_window')]
  0013  GETTABLE  R2 = R2[K3('gameObject')]
  0014  SELF      R3 = R2[K4('IsNull')] (self)
  0015  CALL      R2 = call(R2, 1 args, 1 rets)
  0016  TEST      if not R2 then   -> -131053
  0017  JMP       (jump)   -> 22
  0018  GETTABLE  R2 = R0[K2('m_window')]
  0019  SELF      R3 = R2[K5('OnUnlockAnimationFinish')] (self)
  0020  GETTABLE  R4 = R0[K6('m_index')]
  0021  CALL      R2 = call(R2, 0 args, 2 rets)
  0022  RETURN    return R0..R-1
