# UI_Window_Bundle_ActivityBundleEntryRoot_520.luac
; fn @ActivityBundleEntryRoot.lua  line 0-0 np=0 va=1 ms=2 code=42 consts=14 upvals=1 protos=12
;   K[0]='ActivityBundleEntryRoot'
;   K[1]='__index'
;   K[2]='Awake'
;   K[3]='OnDestroy'
;   K[4]='Init'
;   K[5]='_AddListeners'
;   K[6]='GetContentRoot'
;   K[7]='GetEntryCount'
;   K[8]='IconScaleAnimation'
;   K[9]='OnBundleDataRefreshed'
;   K[10]='_OnBundleDataRefreshed'
;   K[11]='_OnExtraBoardBpActivityStateChanged'
;   K[12]='_OnEntryUpdated'
;   K[13]='_RefreshLayout'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('ActivityBundleEntryRoot')] = R0
0002  GETTABUP  R0 = _ENV[K0('ActivityBundleEntryRoot')]
0003  GETTABUP  R1 = _ENV[K0('ActivityBundleEntryRoot')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('ActivityBundleEntryRoot')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Awake')] = R1
0008  GETTABUP  R0 = _ENV[K0('ActivityBundleEntryRoot')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('OnDestroy')] = R1
0011  GETTABUP  R0 = _ENV[K0('ActivityBundleEntryRoot')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('ActivityBundleEntryRoot')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('_AddListeners')] = R1
0017  GETTABUP  R0 = _ENV[K0('ActivityBundleEntryRoot')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('GetContentRoot')] = R1
0020  GETTABUP  R0 = _ENV[K0('ActivityBundleEntryRoot')]
0021  CLOSURE   R1 = closure proto5
0022  SETTABLE  R0[K7('GetEntryCount')] = R1
0023  GETTABUP  R0 = _ENV[K0('ActivityBundleEntryRoot')]
0024  CLOSURE   R1 = closure proto6
0025  SETTABLE  R0[K8('IconScaleAnimation')] = R1
0026  GETTABUP  R0 = _ENV[K0('ActivityBundleEntryRoot')]
0027  CLOSURE   R1 = closure proto7
0028  SETTABLE  R0[K9('OnBundleDataRefreshed')] = R1
0029  GETTABUP  R0 = _ENV[K0('ActivityBundleEntryRoot')]
0030  CLOSURE   R1 = closure proto8
0031  SETTABLE  R0[K10('_OnBundleDataRefreshed')] = R1
0032  GETTABUP  R0 = _ENV[K0('ActivityBundleEntryRoot')]
0033  CLOSURE   R1 = closure proto9
0034  SETTABLE  R0[K11('_OnExtraBoardBpActivityStateChanged')] = R1
0035  GETTABUP  R0 = _ENV[K0('ActivityBundleEntryRoot')]
0036  CLOSURE   R1 = closure proto10
0037  SETTABLE  R0[K12('_OnEntryUpdated')] = R1
0038  GETTABUP  R0 = _ENV[K0('ActivityBundleEntryRoot')]
0039  CLOSURE   R1 = closure proto11
0040  SETTABLE  R0[K13('_RefreshLayout')] = R1
0041  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 4-6 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='_AddListeners'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('_AddListeners')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 8-10 np=1 va=0 ms=3 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='RemoveTarget'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('RemoveTarget')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto2 [Init] ----------
  ; fn ?  line 12-34 np=2 va=0 ms=17 code=47 consts=16 upvals=1 protos=0
  ;   K[0]='m_mapHudButton'
  ;   K[1]='m_activityType'
  ;   K[2]='ipairs'
  ;   K[3]='BundleTypeOrderList'
  ;   K[4]='GM'
  ;   K[5]='BundleManager'
  ;   K[6]='GetModel'
  ;   K[7]=nil
  ;   K[8]='GetAllGroupDatas'
  ;   K[9]='_OnBundleDataRefreshed'
  ;   K[10]='gameObject'
  ;   K[11]='activeInHierarchy'
  ;   K[12]='_AddListeners'
  ;   K[13]='UIBoardActivityModel'
  ;   K[14]='IsUIBoardActivityType'
  ;   K[15]='_OnExtraBoardBpActivityStateChanged'
  ;   upvals: _ENV
  ;   locals: self(0-47), activityType(0-47), model(4-47), (for generator)(7-32), (for state)(7-32), (for control)(7-32), _(8-30), bundleType(8-30), (for generator)(23-30), (for state)(23-30), (for control)(23-30), _(24-28), dataGroup(24-28)
  0000  NEWTABLE  R2 = {} (0 items)
  0001  SETTABLE  R0[K0('m_mapHudButton')] = R2
  0002  SETTABLE  R0[K1('m_activityType')] = R1
  0003  LOADNIL   R2..R2 = nil
  0004  GETTABUP  R3 = _ENV[K2('ipairs')]
  0005  GETTABUP  R4 = _ENV[K3('BundleTypeOrderList')]
  0006  CALL      R3 = call(R3, 3 args, 1 rets)
  0007  JMP       (jump)   -> 30
  0008  GETTABUP  R8 = _ENV[K4('GM')]
  0009  GETTABLE  R8 = R8[K5('BundleManager')]
  0010  SELF      R9 = R8[K6('GetModel')] (self)
  0011  MOVE      R10 = R0
  0012  CALL      R8 = call(R8, 1 args, 2 rets)
  0013  MOVE      R2 = R0
  0014  EQ        if R1 eq K7(nil)   -> -129769
  0015  JMP       (jump)   -> 30
  0016  GETTABUP  R8 = _ENV[K2('ipairs')]
  0017  SELF      R10 = R2[K8('GetAllGroupDatas')] (self)
  0018  CALL      R9 = call(R9, 1 args, 1 rets)
  0019  TEST      if not R9 then   -> -131050
  0020  JMP       (jump)   -> 22
  0021  NEWTABLE  R9 = {} (0 items)
  0022  CALL      R8 = call(R8, 3 args, 1 rets)
  0023  JMP       (jump)   -> 28
  0024  SELF      R14 = R0[K9('_OnBundleDataRefreshed')] (self)
  0025  MOVE      R15 = R0
  0026  MOVE      R16 = R0
  0027  CALL      R13 = call(R13, 0 args, 3 rets)
  0028  TFORCALL  tforcall R8
  0029  TFORLOOP  tforloop R10(sBx=-6)   -> 24
  0030  TFORCALL  tforcall R3
  0031  TFORLOOP  tforloop R5(sBx=-24)   -> 8
  0032  GETTABLE  R3 = R0[K10('gameObject')]
  0033  GETTABLE  R3 = R3[K11('activeInHierarchy')]
  0034  TEST      if not R3 then   -> -131036
  0035  JMP       (jump)   -> 38
  0036  SELF      R4 = R0[K12('_AddListeners')] (self)
  0037  CALL      R3 = call(R3, 0 args, 1 rets)
  0038  GETTABUP  R3 = _ENV[K13('UIBoardActivityModel')]
  0039  GETTABLE  R3 = R3[K14('IsUIBoardActivityType')]
  0040  MOVE      R4 = R0
  0041  CALL      R3 = call(R3, 1 args, 1 rets)
  0042  TEST      if not R3 then   -> -131028
  0043  JMP       (jump)   -> 46
  0044  SELF      R4 = R0[K15('_OnExtraBoardBpActivityStateChanged')] (self)
  0045  CALL      R3 = call(R3, 0 args, 1 rets)
  0046  RETURN    return R0..R-1
; ---------- proto3 [_AddListeners] ----------
  ; fn ?  line 36-44 np=1 va=0 ms=11 code=31 consts=12 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='AddListener'
  ;   K[2]='EEventType'
  ;   K[3]='BundleDataRefreshed'
  ;   K[4]='OnBundleDataRefreshed'
  ;   K[5]='m_activityType'
  ;   K[6]='UIBoardActivityModel'
  ;   K[7]='IsUIBoardActivityType'
  ;   K[8]='pairs'
  ;   K[9]='ExtraBoardBpActivityDefinition'
  ;   K[10]='StateChangedEvent'
  ;   K[11]='_OnExtraBoardBpActivityStateChanged'
  ;   upvals: _ENV
  ;   locals: self(0-31), (for generator)(20-30), (for state)(20-30), (for control)(20-30), _(21-28), definition(21-28)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('AddListener')]
  0002  GETTABUP  R2 = _ENV[K2('EEventType')]
  0003  GETTABLE  R2 = R2[K3('BundleDataRefreshed')]
  0004  MOVE      R3 = R0
  0005  GETTABLE  R4 = R0[K4('OnBundleDataRefreshed')]
  0006  LOADBOOL  R5 = true
  0007  CALL      R1 = call(R1, 0 args, 4 rets)
  0008  GETTABLE  R1 = R0[K5('m_activityType')]
  0009  TEST      if not R1 then   -> -131061
  0010  JMP       (jump)   -> 30
  0011  GETTABUP  R1 = _ENV[K6('UIBoardActivityModel')]
  0012  GETTABLE  R1 = R1[K7('IsUIBoardActivityType')]
  0013  GETTABLE  R2 = R0[K5('m_activityType')]
  0014  CALL      R1 = call(R1, 1 args, 1 rets)
  0015  TEST      if not R1 then   -> -131055
  0016  JMP       (jump)   -> 30
  0017  GETTABUP  R1 = _ENV[K8('pairs')]
  0018  GETTABUP  R2 = _ENV[K9('ExtraBoardBpActivityDefinition')]
  0019  CALL      R1 = call(R1, 3 args, 1 rets)
  0020  JMP       (jump)   -> 28
  0021  GETTABUP  R6 = _ENV[K0('EventDispatcher')]
  0022  GETTABLE  R6 = R6[K1('AddListener')]
  0023  GETTABLE  R7 = R5[K10('StateChangedEvent')]
  0024  MOVE      R8 = R0
  0025  GETTABLE  R9 = R0[K11('_OnExtraBoardBpActivityStateChanged')]
  0026  LOADBOOL  R10 = true
  0027  CALL      R6 = call(R6, 0 args, 4 rets)
  0028  TFORCALL  tforcall R1
  0029  TFORLOOP  tforloop R3(sBx=-9)   -> 21
  0030  RETURN    return R0..R-1
; ---------- proto4 [GetContentRoot] ----------
  ; fn ?  line 46-48 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_bundleEntryNode'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_bundleEntryNode')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto5 [GetEntryCount] ----------
  ; fn ?  line 50-52 np=1 va=0 ms=2 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_bundleEntryNode'
  ;   K[1]='childCount'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_bundleEntryNode')]
  0001  GETTABLE  R1 = R1[K1('childCount')]
  0002  RETURN    return R1..R0
  0003  RETURN    return R0..R-1
; ---------- proto6 [IconScaleAnimation] ----------
  ; fn ?  line 54-74 np=2 va=0 ms=7 code=26 consts=7 upvals=0 protos=0
  ;   K[0]='m_bundleEntryNode'
  ;   K[1]='childCount'
  ;   K[2]=0
  ;   K[3]='GetChild'
  ;   K[4]='gameObject'
  ;   K[5]='GetLuaTable'
  ;   K[6]='IconScaleAnimation'
  ;   locals: self(0-26), needEffect(0-26), firstChild(9-26), firstBundleButton(15-26)
  0000  GETTABLE  R2 = R0[K0('m_bundleEntryNode')]
  0001  GETTABLE  R2 = R2[K1('childCount')]
  0002  EQ        if R0 eq K2(0)   -> -129786
  0003  JMP       (jump)   -> 5
  0004  RETURN    return R0..R-1
  0005  GETTABLE  R2 = R0[K0('m_bundleEntryNode')]
  0006  SELF      R3 = R2[K3('GetChild')] (self)
  0007  LOADK     R4 = K2 0
  0008  CALL      R2 = call(R2, 1 args, 2 rets)
  0009  TEST      if not R2 then   -> -131060
  0010  JMP       (jump)   -> 12
  0011  RETURN    return R0..R-1
  0012  GETTABLE  R3 = R2[K4('gameObject')]
  0013  SELF      R4 = R3[K5('GetLuaTable')] (self)
  0014  CALL      R3 = call(R3, 1 args, 1 rets)
  0015  TEST      if not R3 then   -> -131054
  0016  JMP       (jump)   -> 18
  0017  RETURN    return R0..R-1
  0018  GETTABLE  R4 = R3[K6('IconScaleAnimation')]
  0019  TEST      if not R4 then   -> -131050
  0020  JMP       (jump)   -> 22
  0021  RETURN    return R0..R-1
  0022  SELF      R5 = R3[K6('IconScaleAnimation')] (self)
  0023  MOVE      R6 = R0
  0024  CALL      R4 = call(R4, 0 args, 2 rets)
  0025  RETURN    return R0..R-1
; ---------- proto7 [OnBundleDataRefreshed] ----------
  ; fn ?  line 76-78 np=2 va=0 ms=6 code=5 consts=3 upvals=0 protos=0
  ;   K[0]='_OnBundleDataRefreshed'
  ;   K[1]='dataGroup'
  ;   K[2]='bundleType'
  ;   locals: self(0-5), msg(0-5)
  0000  SELF      R3 = R0[K0('_OnBundleDataRefreshed')] (self)
  0001  GETTABLE  R4 = R1[K1('dataGroup')]
  0002  GETTABLE  R5 = R1[K2('bundleType')]
  0003  CALL      R2 = call(R2, 0 args, 3 rets)
  0004  RETURN    return R0..R-1
; ---------- proto8 [_OnBundleDataRefreshed] ----------
  ; fn ?  line 80-94 np=3 va=0 ms=17 code=39 consts=11 upvals=1 protos=1
  ;   K[0]='GM'
  ;   K[1]='BundleManager'
  ;   K[2]='GetModel'
  ;   K[3]=nil
  ;   K[4]='GetActivityEntryShowConfig'
  ;   K[5]='GetBundleHudKey'
  ;   K[6]='GetGroupId'
  ;   K[7]='BundleUIType'
  ;   K[8]='GetBundleUIType'
  ;   K[9]='entryPrefabName'
  ;   K[10]='_OnEntryUpdated'
  ;   upvals: _ENV
  ;   locals: self(0-39), dataGroup(0-39), bundleType(0-39), model(5-39), entryConfig(13-39), hudKey(18-39), uiDefinition(22-39), prefabName(28-39), checkFunc(29-39)
  0000  GETTABUP  R3 = _ENV[K0('GM')]
  0001  GETTABLE  R3 = R3[K1('BundleManager')]
  0002  SELF      R4 = R3[K2('GetModel')] (self)
  0003  MOVE      R5 = R0
  0004  CALL      R3 = call(R3, 1 args, 2 rets)
  0005  EQ        if R1 eq K3(nil)   -> -129270
  0006  JMP       (jump)   -> 10
  0007  GETTABLE  R4 = R3[K4('GetActivityEntryShowConfig')]
  0008  EQ        if R0 eq K3(nil)   -> -128755
  0009  JMP       (jump)   -> 11
  0010  RETURN    return R0..R-1
  0011  SELF      R5 = R3[K4('GetActivityEntryShowConfig')] (self)
  0012  CALL      R4 = call(R4, 1 args, 1 rets)
  0013  GETTABUP  R5 = _ENV[K5('GetBundleHudKey')]
  0014  MOVE      R6 = R0
  0015  SELF      R8 = R1[K6('GetGroupId')] (self)
  0016  CALL      R7 = call(R7, -1 args, 1 rets)
  0017  CALL      R5 = call(R5, 1 args, -1 rets)
  0018  GETTABUP  R6 = _ENV[K7('BundleUIType')]
  0019  SELF      R8 = R1[K8('GetBundleUIType')] (self)
  0020  CALL      R7 = call(R7, 1 args, 1 rets)
  0021  GETTABLE  R6 = R6[R7]
  0022  TEST      if not R6 then   -> -131048
  0023  JMP       (jump)   -> 27
  0024  GETTABLE  R7 = R6[K9('entryPrefabName')]
  0025  TEST      if not R7 then   -> -131044
  0026  JMP       (jump)   -> 28
  0027  GETTABLE  R7 = R4[K9('entryPrefabName')]
  0028  CLOSURE   R8 = closure proto0
  0029  SELF      R10 = R0[K10('_OnEntryUpdated')] (self)
  0030  MOVE      R11 = R0
  0031  MOVE      R12 = R0
  0032  MOVE      R13 = R0
  0033  NEWTABLE  R14 = {} (2 items)
  0034  MOVE      R15 = R0
  0035  MOVE      R16 = R0
  0036  SETLIST   setlist R14[B=1,C=2]
  0037  CALL      R9 = call(R9, 0 args, 5 rets)
  0038  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 90-92 np=0 va=0 ms=3 code=6 consts=2 upvals=3 protos=0
    ;   K[0]='checkFun'
    ;   K[1]='m_activityType'
    ;   upvals: entryConfig, dataGroup, self
    0000  GETTABUP  R0 = entryConfig[K0('checkFun')]
    0001  GETUPVAL  R1 = entryConfig
    0002  GETTABUP  R2 = self[K1('m_activityType')]
    0003  TAILCALL  tailcall(R0, 0)
    0004  RETURN    return R0..R-1
    0005  RETURN    return R0..R-1
; ---------- proto9 [_OnExtraBoardBpActivityStateChanged] ----------
  ; fn ?  line 96-104 np=1 va=0 ms=15 code=22 consts=7 upvals=1 protos=1
  ;   K[0]='pairs'
  ;   K[1]='ExtraBoardBpActivityDefinition'
  ;   K[2]='GM'
  ;   K[3]='ActivityManager'
  ;   K[4]='GetModel'
  ;   K[5]='_OnEntryUpdated'
  ;   K[6]='ExtraBoardEntryPrefabName'
  ;   upvals: _ENV
  ;   locals: self(0-22), (for generator)(3-21), (for state)(3-21), (for control)(3-21), activityType(4-19), definition(4-19), bpModel(9-19), checkFunc(10-19)
  0000  GETTABUP  R1 = _ENV[K0('pairs')]
  0001  GETTABUP  R2 = _ENV[K1('ExtraBoardBpActivityDefinition')]
  0002  CALL      R1 = call(R1, 3 args, 1 rets)
  0003  JMP       (jump)   -> 19
  0004  GETTABUP  R6 = _ENV[K2('GM')]
  0005  GETTABLE  R6 = R6[K3('ActivityManager')]
  0006  SELF      R7 = R6[K4('GetModel')] (self)
  0007  MOVE      R8 = R0
  0008  CALL      R6 = call(R6, 1 args, 2 rets)
  0009  CLOSURE   R7 = closure proto0
  0010  SELF      R9 = R0[K5('_OnEntryUpdated')] (self)
  0011  MOVE      R10 = R0
  0012  GETTABLE  R11 = R5[K6('ExtraBoardEntryPrefabName')]
  0013  MOVE      R12 = R0
  0014  NEWTABLE  R13 = {} (1 items)
  0015  MOVE      R14 = R0
  0016  SETLIST   setlist R13[B=1,C=1]
  0017  CALL      R8 = call(R8, 0 args, 5 rets)
  0018  JMP       (jump)   -> 19
  0019  TFORCALL  tforcall R1
  0020  TFORLOOP  tforloop R3(sBx=-17)   -> 4
  0021  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 99-101 np=0 va=0 ms=2 code=5 consts=1 upvals=1 protos=0
    ;   K[0]='IsActivityOpen'
    ;   upvals: bpModel
    0000  GETUPVAL  R0 = bpModel
    0001  SELF      R1 = R0[K0('IsActivityOpen')] (self)
    0002  TAILCALL  tailcall(R0, 0)
    0003  RETURN    return R0..R-1
    0004  RETURN    return R0..R-1
; ---------- proto10 [_OnEntryUpdated] ----------
  ; fn ?  line 106-147 np=5 va=0 ms=13 code=56 consts=19 upvals=1 protos=1
  ;   K[0]=nil
  ;   K[1]='UIUtil'
  ;   K[2]='SetActive'
  ;   K[3]='m_bundleEntryNode'
  ;   K[4]='gameObject'
  ;   K[5]='m_mapHudButton'
  ;   K[6]='GM'
  ;   K[7]='DataResource'
  ;   K[8]='UIPrefabConfig'
  ;   K[9]='GetConfig'
  ;   K[10]='ResourceLoader'
  ;   K[11]='LoadPrefab'
  ;   K[12]='V3Zero'
  ;   K[13]='m_mapHudButton'
  ;   K[14]=nil
  ;   K[15]='UIUtil'
  ;   K[16]='_RefreshLayout'
  ;   K[17]='AddressableLoader'
  ;   K[18]='Destroy'
  ;   upvals: _ENV
  ;   locals: self(0-56), hudType(0-56), entryPrefabConfigName(0-56), checkFunc(0-56), params(0-56), config(26-35), callback(27-35), btn(42-55)
  0000  EQ        if R0 eq K0(nil)   -> -128766
  0001  JMP       (jump)   -> 4
  0002  NEWTABLE  R5 = {} (0 items)
  0003  MOVE      R4 = R0
  0004  TEST      if not R3 then   -> -131066
  0005  JMP       (jump)   -> 36
  0006  MOVE      R5 = R0
  0007  CALL      R5 = call(R5, 1 args, 0 rets)
  0008  TEST      if not R5 then   -> -131062
  0009  JMP       (jump)   -> 36
  0010  GETTABUP  R5 = _ENV[K1('UIUtil')]
  0011  GETTABLE  R5 = R5[K2('SetActive')]
  0012  GETTABLE  R6 = R0[K3('m_bundleEntryNode')]
  0013  GETTABLE  R6 = R6[K4('gameObject')]
  0014  LOADBOOL  R7 = true
  0015  CALL      R5 = call(R5, 0 args, 2 rets)
  0016  GETTABLE  R5 = R0[K5('m_mapHudButton')]
  0017  GETTABLE  R5 = R5[R1]
  0018  EQ        if R0 eq K0(nil)   -> -128236
  0019  JMP       (jump)   -> 55
  0020  GETTABUP  R5 = _ENV[K6('GM')]
  0021  GETTABLE  R5 = R5[K7('DataResource')]
  0022  GETTABLE  R5 = R5[K8('UIPrefabConfig')]
  0023  SELF      R6 = R5[K9('GetConfig')] (self)
  0024  MOVE      R7 = R0
  0025  CALL      R5 = call(R5, 1 args, 2 rets)
  0026  CLOSURE   R6 = closure proto0
  0027  GETTABUP  R7 = _ENV[K6('GM')]
  0028  GETTABLE  R7 = R7[K10('ResourceLoader')]
  0029  SELF      R8 = R7[K11('LoadPrefab')] (self)
  0030  MOVE      R9 = R0
  0031  GETTABLE  R10 = R0[K3('m_bundleEntryNode')]
  0032  GETTABUP  R11 = _ENV[K12('V3Zero')]
  0033  MOVE      R12 = R0
  0034  CALL      R7 = call(R7, 0 args, 5 rets)
  0035  JMP       (jump)   -> 55
  0036  GETTABLE  R5 = R0[K13('m_mapHudButton')]
  0037  GETTABLE  R5 = R5[R1]
  0038  EQ        if R1 eq K14(nil)   -> -128202
  0039  JMP       (jump)   -> 55
  0040  GETTABLE  R5 = R0[K13('m_mapHudButton')]
  0041  GETTABLE  R5 = R5[R1]
  0042  GETTABLE  R6 = R0[K13('m_mapHudButton')]
  0043  SETTABLE  R6[R1] = K14(nil)
  0044  GETTABUP  R6 = _ENV[K15('UIUtil')]
  0045  GETTABLE  R6 = R6[K2('SetActive')]
  0046  GETTABLE  R7 = R5[K4('gameObject')]
  0047  LOADBOOL  R8 = false
  0048  CALL      R6 = call(R6, 0 args, 2 rets)
  0049  SELF      R7 = R0[K16('_RefreshLayout')] (self)
  0050  CALL      R6 = call(R6, 0 args, 1 rets)
  0051  GETTABUP  R6 = _ENV[K17('AddressableLoader')]
  0052  GETTABLE  R6 = R6[K18('Destroy')]
  0053  GETTABLE  R7 = R5[K4('gameObject')]
  0054  CALL      R6 = call(R6, 0 args, 1 rets)
  0055  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 116-132 np=1 va=0 ms=6 code=39 consts=13 upvals=5 protos=0
    ;   K[0]='m_mapHudButton'
    ;   K[1]=nil
    ;   K[2]='AddressableLoader'
    ;   K[3]='Destroy'
    ;   K[4]='GetLuaTable'
    ;   K[5]='Init'
    ;   K[6]='table'
    ;   K[7]='unpack'
    ;   K[8]='SetFlyTargetPosition'
    ;   K[9]='UIUtil'
    ;   K[10]='UpdateSortingOrder'
    ;   K[11]=21
    ;   K[12]='_RefreshLayout'
    ;   upvals: self, hudType, checkFunc, _ENV, params
    ;   locals: gameObject(0-39), entry(16-39)
    0000  GETTABUP  R1 = self[K0('m_mapHudButton')]
    0001  GETUPVAL  R2 = self
    0002  GETTABLE  R1 = R1[R2]
    0003  EQ        if R0 eq K1(nil)   -> -130298
    0004  JMP       (jump)   -> 9
    0005  GETUPVAL  R1 = self
    0006  CALL      R1 = call(R1, 1 args, 0 rets)
    0007  TEST      if not R1 then   -> -131062
    0008  JMP       (jump)   -> 14
    0009  GETTABUP  R1 = _ENV[K2('AddressableLoader')]
    0010  GETTABLE  R1 = R1[K3('Destroy')]
    0011  MOVE      R2 = R0
    0012  CALL      R1 = call(R1, 0 args, 1 rets)
    0013  RETURN    return R0..R-1
    0014  SELF      R2 = R0[K4('GetLuaTable')] (self)
    0015  CALL      R1 = call(R1, 1 args, 1 rets)
    0016  GETTABLE  R2 = R1[K5('Init')]
    0017  EQ        if R1 eq K1(nil)   -> -129772
    0018  JMP       (jump)   -> 25
    0019  SELF      R3 = R1[K5('Init')] (self)
    0020  GETTABUP  R4 = _ENV[K6('table')]
    0021  GETTABLE  R4 = R4[K7('unpack')]
    0022  GETUPVAL  R5 = self
    0023  CALL      R4 = call(R4, -1 args, 1 rets)
    0024  CALL      R2 = call(R2, 0 args, -1 rets)
    0025  SELF      R3 = R1[K8('SetFlyTargetPosition')] (self)
    0026  CALL      R2 = call(R2, 0 args, 1 rets)
    0027  GETTABUP  R2 = self[K0('m_mapHudButton')]
    0028  GETUPVAL  R3 = self
    0029  SETTABLE  R2[R3] = R1
    0030  GETTABUP  R2 = _ENV[K9('UIUtil')]
    0031  GETTABLE  R2 = R2[K10('UpdateSortingOrder')]
    0032  MOVE      R3 = R0
    0033  LOADK     R4 = K11 21
    0034  CALL      R2 = call(R2, 0 args, 2 rets)
    0035  GETUPVAL  R2 = self
    0036  SELF      R3 = R2[K12('_RefreshLayout')] (self)
    0037  CALL      R2 = call(R2, 0 args, 1 rets)
    0038  RETURN    return R0..R-1
; ---------- proto11 [_RefreshLayout] ----------
  ; fn ?  line 149-168 np=1 va=0 ms=8 code=41 consts=14 upvals=1 protos=0
  ;   K[0]='LayoutRebuilder'
  ;   K[1]='ForceRebuildLayoutImmediate'
  ;   K[2]='m_bundleEntryNode'
  ;   K[3]='parent'
  ;   K[4]='GameConfig'
  ;   K[5]='IsTestMode'
  ;   K[6]='pairs'
  ;   K[7]='ExtraBoardBpActivityDefinition'
  ;   K[8]='m_mapHudButton'
  ;   K[9]='Log'
  ;   K[10]='Assert'
  ;   K[11]='childCount'
  ;   K[12]=1
  ;   K[13]='小棋盘 bp 不能和礼包一起开！'
  ;   upvals: _ENV
  ;   locals: self(0-41), hasUIBoardBP(16-41), (for generator)(19-28), (for state)(19-28), (for control)(19-28), activityType(20-26), definition(20-26)
  0000  GETTABUP  R1 = _ENV[K0('LayoutRebuilder')]
  0001  GETTABLE  R1 = R1[K1('ForceRebuildLayoutImmediate')]
  0002  GETTABLE  R2 = R0[K2('m_bundleEntryNode')]
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K0('LayoutRebuilder')]
  0005  GETTABLE  R1 = R1[K1('ForceRebuildLayoutImmediate')]
  0006  GETTABLE  R2 = R0[K2('m_bundleEntryNode')]
  0007  GETTABLE  R2 = R2[K3('parent')]
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  GETTABUP  R1 = _ENV[K4('GameConfig')]
  0010  GETTABLE  R1 = R1[K5('IsTestMode')]
  0011  CALL      R1 = call(R1, 1 args, 0 rets)
  0012  TEST      if not R1 then   -> -131057
  0013  JMP       (jump)   -> 15
  0014  RETURN    return R0..R-1
  0015  LOADBOOL  R1 = false
  0016  GETTABUP  R2 = _ENV[K6('pairs')]
  0017  GETTABUP  R3 = _ENV[K7('ExtraBoardBpActivityDefinition')]
  0018  CALL      R2 = call(R2, 3 args, 1 rets)
  0019  JMP       (jump)   -> 26
  0020  GETTABLE  R7 = R0[K8('m_mapHudButton')]
  0021  GETTABLE  R7 = R7[R5]
  0022  TEST      if not R7 then   -> -131048
  0023  JMP       (jump)   -> 26
  0024  LOADBOOL  R1 = true
  0025  JMP       (jump)   -> 28
  0026  TFORCALL  tforcall R2
  0027  TFORLOOP  tforloop R4(sBx=-8)   -> 20
  0028  GETTABUP  R2 = _ENV[K9('Log')]
  0029  GETTABLE  R2 = R2[K10('Assert')]
  0030  TEST      if not R1 then   -> -131040
  0031  JMP       (jump)   -> 37
  0032  GETTABLE  R3 = R0[K2('m_bundleEntryNode')]
  0033  GETTABLE  R3 = R3[K11('childCount')]
  0034  EQ        if R1 eq K12(1)   -> -129232
  0035  JMP       (jump)   -> 37
  0036  LOADBOOL  R3 = false
  0037  LOADBOOL  R3 = true
  0038  LOADK     R4 = K13 '小棋盘 bp 不能和礼包一起开！'
  0039  CALL      R2 = call(R2, 0 args, 2 rets)
  0040  RETURN    return R0..R-1
