# AlbumActivity_View_JokerExchangeCardSetsCell_1144.luac
; fn @JokerExchangeCardSetsCell.lua  line 0-0 np=0 va=1 ms=2 code=12 consts=4 upvals=1 protos=2
;   K[0]='JokerExchangeCardSetsCell'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='UpdateSelectState'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('JokerExchangeCardSetsCell')] = R0
0002  GETTABUP  R0 = _ENV[K0('JokerExchangeCardSetsCell')]
0003  GETTABUP  R1 = _ENV[K0('JokerExchangeCardSetsCell')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('JokerExchangeCardSetsCell')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('JokerExchangeCardSetsCell')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('UpdateSelectState')] = R1
0011  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 12-71 np=6 va=0 ms=27 code=148 consts=55 upvals=1 protos=1
  ;   K[0]='m_model'
  ;   K[1]='m_activityDefinition'
  ;   K[2]='GetActivityDefinition'
  ;   K[3]='m_setConfig'
  ;   K[4]='m_bShowNoneCard'
  ;   K[5]='m_exchangeWindow'
  ;   K[6]='GetAlbumConfig'
  ;   K[7]='GetCardSetPicId'
  ;   K[8]='setId'
  ;   K[9]='m_titleText'
  ;   K[10]='text'
  ;   K[11]='GM'
  ;   K[12]='GameTextModel'
  ;   K[13]='GetText'
  ;   K[14]='_name'
  ;   K[15]='SpriteUtil'
  ;   K[16]='SetImage'
  ;   K[17]='m_setIcon'
  ;   K[18]='ImageFileConfigName'
  ;   K[19]='JokerSetCellBgPrefabName'
  ;   K[20]='UIUtil'
  ;   K[21]='SetActive'
  ;   K[22]='m_normalBgGo'
  ;   K[23]=nil
  ;   K[24]='m_specialRootRect'
  ;   K[25]='DestroyAllChildren'
  ;   K[26]='ResourceLoader'
  ;   K[27]='LoadPrefab'
  ;   K[28]='DataResource'
  ;   K[29]='UIPrefabConfig'
  ;   K[30]='GetConfig'
  ;   K[31]='V3Zero'
  ;   K[32]='reward'
  ;   K[33]='m_rewardContent'
  ;   K[34]='Init'
  ;   K[35]='ERewardScene'
  ;   K[36]='Other'
  ;   K[37]='GetSetCollectProgress'
  ;   K[38]=1
  ;   K[39]='Table'
  ;   K[40]='ShallowCopy'
  ;   K[41]='cardGroup'
  ;   K[42]='table'
  ;   K[43]='sort'
  ;   K[44]='m_cards'
  ;   K[45]='ipairs'
  ;   K[46]='Object'
  ;   K[47]='Instantiate'
  ;   K[48]='m_jokerExchangeCardCellPrefab'
  ;   K[49]='m_cardTransform'
  ;   K[50]='GetLuaTable'
  ;   K[51]='gameObject'
  ;   K[52]='LayoutRebuilder'
  ;   K[53]='ForceRebuildLayoutImmediate'
  ;   K[54]='m_JokerExchangeCardSetsCellRectTrans'
  ;   upvals: _ENV
  ;   locals: self(0-148), wnd(0-148), setConfig(0-148), model(0-148), bShowOnlyNone(0-148), selectCallback(0-148), albumCfg(11-148), picId(16-148), specialBgPrefabName(33-148), rewards(60-148), cur(71-148), max(71-148), bOnlyOne(76-148), cards(81-148), (for generator)(94-126), (for state)(94-126), (for control)(94-126), i(95-124), v(95-124), (for index)(131-139), (for limit)(131-139), (for step)(131-139), i(132-138)
  0000  SETTABLE  R0[K0('m_model')] = R3
  0001  GETTABLE  R6 = R0[K0('m_model')]
  0002  SELF      R7 = R6[K2('GetActivityDefinition')] (self)
  0003  CALL      R6 = call(R6, 1 args, 1 rets)
  0004  SETTABLE  R0[K1('m_activityDefinition')] = R6
  0005  SETTABLE  R0[K3('m_setConfig')] = R2
  0006  SETTABLE  R0[K4('m_bShowNoneCard')] = R4
  0007  SETTABLE  R0[K5('m_exchangeWindow')] = R1
  0008  GETTABLE  R6 = R0[K0('m_model')]
  0009  SELF      R7 = R6[K6('GetAlbumConfig')] (self)
  0010  CALL      R6 = call(R6, 1 args, 1 rets)
  0011  GETTABLE  R7 = R0[K0('m_model')]
  0012  SELF      R8 = R7[K7('GetCardSetPicId')] (self)
  0013  GETTABLE  R9 = R0[K3('m_setConfig')]
  0014  GETTABLE  R9 = R9[K8('setId')]
  0015  CALL      R7 = call(R7, 1 args, 2 rets)
  0016  GETTABLE  R8 = R0[K9('m_titleText')]
  0017  GETTABUP  R9 = _ENV[K11('GM')]
  0018  GETTABLE  R9 = R9[K12('GameTextModel')]
  0019  SELF      R10 = R9[K13('GetText')] (self)
  0020  MOVE      R11 = R0
  0021  LOADK     R12 = K14 '_name'
  0022  CONCAT    R11 = concat(R11..R11)
  0023  CALL      R9 = call(R9, 1 args, 2 rets)
  0024  SETTABLE  R8[K10('text')] = R9
  0025  GETTABUP  R8 = _ENV[K15('SpriteUtil')]
  0026  GETTABLE  R8 = R8[K16('SetImage')]
  0027  GETTABLE  R9 = R0[K17('m_setIcon')]
  0028  GETTABUP  R10 = _ENV[K18('ImageFileConfigName')]
  0029  GETTABLE  R10 = R10[R7]
  0030  CALL      R8 = call(R8, 0 args, 2 rets)
  0031  GETTABLE  R8 = R0[K1('m_activityDefinition')]
  0032  GETTABLE  R8 = R8[K19('JokerSetCellBgPrefabName')]
  0033  GETTABUP  R9 = _ENV[K20('UIUtil')]
  0034  GETTABLE  R9 = R9[K21('SetActive')]
  0035  GETTABLE  R10 = R0[K22('m_normalBgGo')]
  0036  EQ        if R1 eq K23(nil)   -> -126659
  0037  JMP       (jump)   -> 39
  0038  LOADBOOL  R11 = false
  0039  LOADBOOL  R11 = true
  0040  CALL      R9 = call(R9, 0 args, 2 rets)
  0041  GETTABLE  R9 = R0[K24('m_specialRootRect')]
  0042  SELF      R10 = R9[K25('DestroyAllChildren')] (self)
  0043  CALL      R9 = call(R9, 0 args, 1 rets)
  0044  EQ        if R1 eq K23(nil)   -> -126651
  0045  JMP       (jump)   -> 58
  0046  GETTABUP  R9 = _ENV[K11('GM')]
  0047  GETTABLE  R9 = R9[K26('ResourceLoader')]
  0048  SELF      R10 = R9[K27('LoadPrefab')] (self)
  0049  GETTABUP  R11 = _ENV[K11('GM')]
  0050  GETTABLE  R11 = R11[K28('DataResource')]
  0051  GETTABLE  R11 = R11[K29('UIPrefabConfig')]
  0052  SELF      R12 = R11[K30('GetConfig')] (self)
  0053  MOVE      R13 = R0
  0054  CALL      R11 = call(R11, 1 args, 2 rets)
  0055  GETTABLE  R12 = R0[K24('m_specialRootRect')]
  0056  GETTABUP  R13 = _ENV[K31('V3Zero')]
  0057  CALL      R9 = call(R9, 0 args, 4 rets)
  0058  GETTABLE  R9 = R0[K3('m_setConfig')]
  0059  GETTABLE  R9 = R9[K32('reward')]
  0060  GETTABLE  R10 = R0[K33('m_rewardContent')]
  0061  SELF      R11 = R10[K34('Init')] (self)
  0062  MOVE      R12 = R0
  0063  GETTABUP  R13 = _ENV[K35('ERewardScene')]
  0064  GETTABLE  R13 = R13[K36('Other')]
  0065  CALL      R10 = call(R10, 0 args, 3 rets)
  0066  GETTABLE  R10 = R0[K0('m_model')]
  0067  SELF      R11 = R10[K37('GetSetCollectProgress')] (self)
  0068  GETTABLE  R12 = R0[K3('m_setConfig')]
  0069  GETTABLE  R12 = R12[K8('setId')]
  0070  CALL      R10 = call(R10, 2 args, 2 rets)
  0071  SUB       R12 = R10 sub R11
  0072  EQ        if R1 eq K38(1)   -> -124560
  0073  JMP       (jump)   -> 75
  0074  LOADBOOL  R12 = false
  0075  LOADBOOL  R12 = true
  0076  GETTABUP  R13 = _ENV[K39('Table')]
  0077  GETTABLE  R13 = R13[K40('ShallowCopy')]
  0078  GETTABLE  R14 = R0[K3('m_setConfig')]
  0079  GETTABLE  R14 = R14[K41('cardGroup')]
  0080  CALL      R13 = call(R13, 1 args, 1 rets)
  0081  GETTABUP  R14 = _ENV[K42('table')]
  0082  GETTABLE  R14 = R14[K43('sort')]
  0083  MOVE      R15 = R0
  0084  CLOSURE   R16 = closure proto0
  0085  CALL      R14 = call(R14, 0 args, 2 rets)
  0086  GETTABLE  R14 = R0[K44('m_cards')]
  0087  TEST      if not R14 then   -> -130982
  0088  JMP       (jump)   -> 90
  0089  NEWTABLE  R14 = {} (0 items)
  0090  SETTABLE  R0[K44('m_cards')] = R14
  0091  GETTABUP  R14 = _ENV[K45('ipairs')]
  0092  MOVE      R15 = R0
  0093  CALL      R14 = call(R14, 3 args, 1 rets)
  0094  JMP       (jump)   -> 124
  0095  GETTABLE  R19 = R0[K44('m_cards')]
  0096  GETTABLE  R19 = R19[R17]
  0097  TEST      if not R19 then   -> -130972
  0098  JMP       (jump)   -> 108
  0099  GETTABLE  R19 = R0[K44('m_cards')]
  0100  GETTABUP  R20 = _ENV[K46('Object')]
  0101  GETTABLE  R20 = R20[K47('Instantiate')]
  0102  GETTABLE  R21 = R0[K48('m_jokerExchangeCardCellPrefab')]
  0103  GETTABLE  R22 = R0[K49('m_cardTransform')]
  0104  CALL      R20 = call(R20, 1 args, 2 rets)
  0105  SELF      R21 = R20[K50('GetLuaTable')] (self)
  0106  CALL      R20 = call(R20, 1 args, 1 rets)
  0107  SETTABLE  R19[R17] = R20
  0108  GETTABLE  R19 = R0[K44('m_cards')]
  0109  GETTABLE  R19 = R19[R17]
  0110  GETTABLE  R19 = R19[K51('gameObject')]
  0111  SELF      R20 = R19[K21('SetActive')] (self)
  0112  LOADBOOL  R21 = true
  0113  CALL      R19 = call(R19, 0 args, 2 rets)
  0114  GETTABLE  R19 = R0[K44('m_cards')]
  0115  GETTABLE  R19 = R19[R17]
  0116  SELF      R20 = R19[K34('Init')] (self)
  0117  MOVE      R21 = R0
  0118  GETTABLE  R22 = R0[K0('m_model')]
  0119  GETTABLE  R23 = R0[K4('m_bShowNoneCard')]
  0120  MOVE      R24 = R0
  0121  GETTABLE  R25 = R0[K5('m_exchangeWindow')]
  0122  MOVE      R26 = R0
  0123  CALL      R19 = call(R19, 0 args, 7 rets)
  0124  TFORCALL  tforcall R14
  0125  TFORLOOP  tforloop R16(sBx=-31)   -> 95
  0126  LEN       R14 = len R0
  0127  ADD       R14 = K38(1) add R14
  0128  GETTABLE  R15 = R0[K44('m_cards')]
  0129  LEN       R15 = len R0
  0130  LOADK     R16 = K38 1
  0131  FORPREP   forprep R14(sBx=6)   -> 138
  0132  GETTABLE  R18 = R0[K44('m_cards')]
  0133  GETTABLE  R18 = R18[R17]
  0134  GETTABLE  R18 = R18[K51('gameObject')]
  0135  SELF      R19 = R18[K21('SetActive')] (self)
  0136  LOADBOOL  R20 = false
  0137  CALL      R18 = call(R18, 0 args, 2 rets)
  0138  FORLOOP   forloop R14(sBx=-7)   -> 132
  0139  GETTABUP  R14 = _ENV[K52('LayoutRebuilder')]
  0140  GETTABLE  R14 = R14[K53('ForceRebuildLayoutImmediate')]
  0141  GETTABLE  R15 = R0[K49('m_cardTransform')]
  0142  CALL      R14 = call(R14, 0 args, 1 rets)
  0143  GETTABUP  R14 = _ENV[K52('LayoutRebuilder')]
  0144  GETTABLE  R14 = R14[K53('ForceRebuildLayoutImmediate')]
  0145  GETTABLE  R15 = R0[K54('m_JokerExchangeCardSetsCellRectTrans')]
  0146  CALL      R14 = call(R14, 0 args, 1 rets)
  0147  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 47-55 np=2 va=0 ms=8 code=35 consts=5 upvals=1 protos=0
    ;   K[0]='m_model'
    ;   K[1]='GetCardCount'
    ;   K[2]=0
    ;   K[3]='GetCardInfo'
    ;   K[4]='star'
    ;   upvals: self
    ;   locals: a(0-35), b(0-35), bNewA(8-35), bNewB(16-35)
    0000  GETTABUP  R2 = self[K0('m_model')]
    0001  SELF      R3 = R2[K1('GetCardCount')] (self)
    0002  MOVE      R4 = R0
    0003  CALL      R2 = call(R2, 1 args, 2 rets)
    0004  EQ        if R1 eq K2(0)   -> -129784
    0005  JMP       (jump)   -> 7
    0006  LOADBOOL  R2 = false
    0007  LOADBOOL  R2 = true
    0008  GETTABUP  R3 = self[K0('m_model')]
    0009  SELF      R4 = R3[K1('GetCardCount')] (self)
    0010  MOVE      R5 = R0
    0011  CALL      R3 = call(R3, 1 args, 2 rets)
    0012  EQ        if R1 eq K2(0)   -> -129264
    0013  JMP       (jump)   -> 15
    0014  LOADBOOL  R3 = false
    0015  LOADBOOL  R3 = true
    0016  EQ        if R1 eq R3   -> -130027
    0017  JMP       (jump)   -> 19
    0018  RETURN    return R2..R1
    0019  GETTABUP  R4 = self[K0('m_model')]
    0020  SELF      R5 = R4[K3('GetCardInfo')] (self)
    0021  MOVE      R6 = R0
    0022  CALL      R4 = call(R4, 1 args, 2 rets)
    0023  GETTABLE  R4 = R4[K4('star')]
    0024  GETTABUP  R5 = self[K0('m_model')]
    0025  SELF      R6 = R5[K3('GetCardInfo')] (self)
    0026  MOVE      R7 = R0
    0027  CALL      R5 = call(R5, 1 args, 2 rets)
    0028  GETTABLE  R5 = R5[K4('star')]
    0029  LT        if R1 lt R4   -> -128477
    0030  JMP       (jump)   -> 32
    0031  LOADBOOL  R4 = false
    0032  LOADBOOL  R4 = true
    0033  RETURN    return R4..R3
    0034  RETURN    return R0..R-1
; ---------- proto1 [UpdateSelectState] ----------
  ; fn ?  line 73-81 np=2 va=0 ms=10 code=15 consts=5 upvals=1 protos=0
  ;   K[0]='gameObject'
  ;   K[1]='activeSelf'
  ;   K[2]='ipairs'
  ;   K[3]='m_cards'
  ;   K[4]='UpdateSelectState'
  ;   upvals: _ENV
  ;   locals: self(0-15), cardId(0-15), (for generator)(8-14), (for state)(8-14), (for control)(8-14), i(9-12), v(9-12)
  0000  GETTABLE  R2 = R0[K0('gameObject')]
  0001  GETTABLE  R2 = R2[K1('activeSelf')]
  0002  TEST      if not R2 then   -> -131067
  0003  JMP       (jump)   -> 5
  0004  RETURN    return R0..R-1
  0005  GETTABUP  R2 = _ENV[K2('ipairs')]
  0006  GETTABLE  R3 = R0[K3('m_cards')]
  0007  CALL      R2 = call(R2, 3 args, 1 rets)
  0008  JMP       (jump)   -> 12
  0009  SELF      R8 = R6[K4('UpdateSelectState')] (self)
  0010  MOVE      R9 = R0
  0011  CALL      R7 = call(R7, 0 args, 2 rets)
  0012  TFORCALL  tforcall R2
  0013  TFORLOOP  tforloop R4(sBx=-5)   -> 9
  0014  RETURN    return R0..R-1
