# UI_Window_Bundle_BundleBaseWindow_517.luac
; fn @BundleBaseWindow.lua  line 0-0 np=0 va=1 ms=3 code=24 consts=9 upvals=1 protos=5
;   K[0]='BundleBaseWindow'
;   K[1]='setmetatable'
;   K[2]='BaseWindow'
;   K[3]='__index'
;   K[4]='BeforeOpenCheck'
;   K[5]='Init'
;   K[6]='GetPurchaseIds'
;   K[7]='OnDestroy'
;   K[8]='OnBundleDataRefreshed'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BaseWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('BundleBaseWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('BundleBaseWindow')]
0006  GETTABUP  R1 = _ENV[K0('BundleBaseWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('BundleBaseWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('BeforeOpenCheck')] = R1
0011  GETTABUP  R0 = _ENV[K0('BundleBaseWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('BundleBaseWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('GetPurchaseIds')] = R1
0017  GETTABUP  R0 = _ENV[K0('BundleBaseWindow')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('OnDestroy')] = R1
0020  GETTABUP  R0 = _ENV[K0('BundleBaseWindow')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('OnBundleDataRefreshed')] = R1
0023  RETURN    return R0..R-1
; ---------- proto0 [BeforeOpenCheck] ----------
  ; fn ?  line 4-12 np=5 va=0 ms=9 code=26 consts=9 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='BundleManager'
  ;   K[2]='GetModel'
  ;   K[3]=nil
  ;   K[4]='GetBundleState'
  ;   K[5]='EBundleState'
  ;   K[6]='Opening'
  ;   K[7]='GetLastDuration'
  ;   K[8]=0
  ;   upvals: _ENV
  ;   locals: self(0-26), bundleType(0-26), dataGroup(0-26), bUserClick(0-26), eTriggerType(0-26), model(5-26), bundleState(14-26)
  0000  GETTABUP  R5 = _ENV[K0('GM')]
  0001  GETTABLE  R5 = R5[K1('BundleManager')]
  0002  SELF      R6 = R5[K2('GetModel')] (self)
  0003  MOVE      R7 = R0
  0004  CALL      R5 = call(R5, 1 args, 2 rets)
  0005  EQ        if R1 eq K3(nil)   -> -128246
  0006  JMP       (jump)   -> 9
  0007  EQ        if R0 eq K3(nil)   -> -129780
  0008  JMP       (jump)   -> 11
  0009  LOADBOOL  R6 = false
  0010  RETURN    return R6..R5
  0011  SELF      R7 = R5[K4('GetBundleState')] (self)
  0012  MOVE      R8 = R0
  0013  CALL      R6 = call(R6, 1 args, 2 rets)
  0014  GETTABUP  R7 = _ENV[K5('EBundleState')]
  0015  GETTABLE  R7 = R7[K6('Opening')]
  0016  EQ        if R1 eq R7   -> -127975
  0017  JMP       (jump)   -> 23
  0018  SELF      R8 = R2[K7('GetLastDuration')] (self)
  0019  CALL      R7 = call(R7, 1 args, 1 rets)
  0020  EQ        if R1 eq K8(0)   -> -127202
  0021  JMP       (jump)   -> 23
  0022  LOADBOOL  R7 = false
  0023  LOADBOOL  R7 = true
  0024  RETURN    return R7..R6
  0025  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 14-26 np=5 va=0 ms=11 code=43 consts=22 upvals=1 protos=0
  ;   K[0]='m_bundleType'
  ;   K[1]='m_dataGroup'
  ;   K[2]='m_model'
  ;   K[3]='GM'
  ;   K[4]='BundleManager'
  ;   K[5]='GetModel'
  ;   K[6]='LogWindowAction'
  ;   K[7]='EBIType'
  ;   K[8]='UIActionType'
  ;   K[9]='Open'
  ;   K[10]='EBIReferType'
  ;   K[11]='UserClick'
  ;   K[12]='AutoPopup'
  ;   K[13]='GetPurchaseIds'
  ;   K[14]='EventDispatcher'
  ;   K[15]='AddListener'
  ;   K[16]='EEventType'
  ;   K[17]='BundleDataRefreshed'
  ;   K[18]='OnBundleDataRefreshed'
  ;   K[19]='m_bundleTestInfo'
  ;   K[20]=nil
  ;   K[21]='Init'
  ;   upvals: _ENV
  ;   locals: self(0-43), bundleType(0-43), dataGroup(0-43), bUserClick(0-43), eTriggerType(0-43)
  0000  SETTABLE  R0[K0('m_bundleType')] = R1
  0001  SETTABLE  R0[K1('m_dataGroup')] = R2
  0002  GETTABUP  R5 = _ENV[K3('GM')]
  0003  GETTABLE  R5 = R5[K4('BundleManager')]
  0004  SELF      R6 = R5[K5('GetModel')] (self)
  0005  GETTABLE  R7 = R0[K0('m_bundleType')]
  0006  CALL      R5 = call(R5, 1 args, 2 rets)
  0007  SETTABLE  R0[K2('m_model')] = R5
  0008  SELF      R6 = R0[K6('LogWindowAction')] (self)
  0009  GETTABUP  R7 = _ENV[K7('EBIType')]
  0010  GETTABLE  R7 = R7[K8('UIActionType')]
  0011  GETTABLE  R7 = R7[K9('Open')]
  0012  NEWTABLE  R8 = {} (2 items)
  0013  TEST      if not R3 then   -> -131057
  0014  JMP       (jump)   -> 19
  0015  GETTABUP  R9 = _ENV[K10('EBIReferType')]
  0016  GETTABLE  R9 = R9[K11('UserClick')]
  0017  TEST      if not R9 then   -> -131052
  0018  JMP       (jump)   -> 21
  0019  GETTABUP  R9 = _ENV[K10('EBIReferType')]
  0020  GETTABLE  R9 = R9[K12('AutoPopup')]
  0021  MOVE      R10 = R0
  0022  SETLIST   setlist R8[B=1,C=2]
  0023  SELF      R10 = R0[K13('GetPurchaseIds')] (self)
  0024  CALL      R9 = call(R9, -1 args, 1 rets)
  0025  CALL      R5 = call(R5, 0 args, -1 rets)
  0026  GETTABUP  R5 = _ENV[K14('EventDispatcher')]
  0027  GETTABLE  R5 = R5[K15('AddListener')]
  0028  GETTABUP  R6 = _ENV[K16('EEventType')]
  0029  GETTABLE  R6 = R6[K17('BundleDataRefreshed')]
  0030  MOVE      R7 = R0
  0031  GETTABLE  R8 = R0[K18('OnBundleDataRefreshed')]
  0032  CALL      R5 = call(R5, 0 args, 3 rets)
  0033  GETTABLE  R5 = R0[K19('m_bundleTestInfo')]
  0034  EQ        if R1 eq K20(nil)   -> -128200
  0035  JMP       (jump)   -> 42
  0036  GETTABLE  R5 = R0[K19('m_bundleTestInfo')]
  0037  SELF      R6 = R5[K21('Init')] (self)
  0038  GETTABLE  R7 = R0[K2('m_model')]
  0039  GETTABLE  R8 = R0[K1('m_dataGroup')]
  0040  MOVE      R9 = R0
  0041  CALL      R5 = call(R5, 0 args, 4 rets)
  0042  RETURN    return R0..R-1
; ---------- proto2 [GetPurchaseIds] ----------
  ; fn ?  line 29-31 np=1 va=0 ms=3 code=5 consts=3 upvals=1 protos=0
  ;   K[0]='Log'
  ;   K[1]='Error'
  ;   K[2]='GetPurchaseIds接口未重写, 请检查'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('Log')]
  0001  GETTABLE  R1 = R1[K1('Error')]
  0002  LOADK     R2 = K2 'GetPurchaseIds接口未重写, 请检查'
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto3 [OnDestroy] ----------
  ; fn ?  line 33-36 np=1 va=0 ms=3 code=9 consts=4 upvals=1 protos=0
  ;   K[0]='BaseWindow'
  ;   K[1]='OnDestroy'
  ;   K[2]='EventDispatcher'
  ;   K[3]='RemoveTarget'
  ;   upvals: _ENV
  ;   locals: self(0-9)
  0000  GETTABUP  R1 = _ENV[K0('BaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnDestroy')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0005  GETTABLE  R1 = R1[K3('RemoveTarget')]
  0006  MOVE      R2 = R0
  0007  CALL      R1 = call(R1, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto4 [OnBundleDataRefreshed] ----------
  ; fn ?  line 39-53 np=2 va=0 ms=5 code=24 consts=9 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='m_dataGroup'
  ;   K[3]='GetLastDuration'
  ;   K[4]=0
  ;   K[5]='GetBundleState'
  ;   K[6]='EBundleState'
  ;   K[7]='Opening'
  ;   K[8]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-24), msg(0-24), bundleState(17-24)
  0000  GETTABLE  R2 = R0[K0('m_model')]
  0001  EQ        if R1 eq K1(nil)   -> -129788
  0002  JMP       (jump)   -> 6
  0003  GETTABLE  R2 = R0[K2('m_dataGroup')]
  0004  EQ        if R0 eq K1(nil)   -> -129785
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  GETTABLE  R2 = R0[K2('m_dataGroup')]
  0008  SELF      R3 = R2[K3('GetLastDuration')] (self)
  0009  CALL      R2 = call(R2, 1 args, 1 rets)
  0010  EQ        if R0 eq K4(0)   -> -129776
  0011  JMP       (jump)   -> 13
  0012  RETURN    return R0..R-1
  0013  GETTABLE  R2 = R0[K0('m_model')]
  0014  SELF      R3 = R2[K5('GetBundleState')] (self)
  0015  GETTABLE  R4 = R0[K2('m_dataGroup')]
  0016  CALL      R2 = call(R2, 1 args, 2 rets)
  0017  GETTABUP  R3 = _ENV[K6('EBundleState')]
  0018  GETTABLE  R3 = R3[K7('Opening')]
  0019  EQ        if R1 eq R3   -> -130024
  0020  JMP       (jump)   -> 23
  0021  SELF      R4 = R0[K8('Close')] (self)
  0022  CALL      R3 = call(R3, 0 args, 1 rets)
  0023  RETURN    return R0..R-1
