# Model_Network_Oper_OperBIManager_48.luac
; fn @OperBIManager.lua  line 0-0 np=0 va=1 ms=2 code=41 consts=16 upvals=1 protos=10
;   K[0]='EOperBIEventType'
;   K[1]='first_pay'
;   K[2]='collect_item'
;   K[3]='start_purchase'
;   K[4]='OperBIManager'
;   K[5]='__index'
;   K[6]='TrackFirstInstall'
;   K[7]='TrackClientPurchase'
;   K[8]='OperLoginCallback'
;   K[9]='_SetGroupData'
;   K[10]='TrackEvent'
;   K[11]='TrackLevelUpEvent'
;   K[12]='TrackDayUpEvent'
;   K[13]='TrackIAPEvent'
;   K[14]='_TrackEventByAppsflyer'
;   K[15]='_LogFirebaseEventByEventName'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABLE  R0[K1('first_pay')] = K1('first_pay')
0002  SETTABLE  R0[K2('collect_item')] = K2('collect_item')
0003  SETTABLE  R0[K3('start_purchase')] = K3('start_purchase')
0004  SETTABUP  _ENV[K0('EOperBIEventType')] = R0
0005  NEWTABLE  R0 = {} (0 items)
0006  SETTABUP  _ENV[K4('OperBIManager')] = R0
0007  GETTABUP  R0 = _ENV[K4('OperBIManager')]
0008  GETTABUP  R1 = _ENV[K4('OperBIManager')]
0009  SETTABLE  R0[K5('__index')] = R1
0010  GETTABUP  R0 = _ENV[K4('OperBIManager')]
0011  CLOSURE   R1 = closure proto0
0012  SETTABLE  R0[K6('TrackFirstInstall')] = R1
0013  GETTABUP  R0 = _ENV[K4('OperBIManager')]
0014  CLOSURE   R1 = closure proto1
0015  SETTABLE  R0[K7('TrackClientPurchase')] = R1
0016  GETTABUP  R0 = _ENV[K4('OperBIManager')]
0017  CLOSURE   R1 = closure proto2
0018  SETTABLE  R0[K8('OperLoginCallback')] = R1
0019  GETTABUP  R0 = _ENV[K4('OperBIManager')]
0020  CLOSURE   R1 = closure proto3
0021  SETTABLE  R0[K9('_SetGroupData')] = R1
0022  GETTABUP  R0 = _ENV[K4('OperBIManager')]
0023  CLOSURE   R1 = closure proto4
0024  SETTABLE  R0[K10('TrackEvent')] = R1
0025  GETTABUP  R0 = _ENV[K4('OperBIManager')]
0026  CLOSURE   R1 = closure proto5
0027  SETTABLE  R0[K11('TrackLevelUpEvent')] = R1
0028  GETTABUP  R0 = _ENV[K4('OperBIManager')]
0029  CLOSURE   R1 = closure proto6
0030  SETTABLE  R0[K12('TrackDayUpEvent')] = R1
0031  GETTABUP  R0 = _ENV[K4('OperBIManager')]
0032  CLOSURE   R1 = closure proto7
0033  SETTABLE  R0[K13('TrackIAPEvent')] = R1
0034  GETTABUP  R0 = _ENV[K4('OperBIManager')]
0035  CLOSURE   R1 = closure proto8
0036  SETTABLE  R0[K14('_TrackEventByAppsflyer')] = R1
0037  GETTABUP  R0 = _ENV[K4('OperBIManager')]
0038  CLOSURE   R1 = closure proto9
0039  SETTABLE  R0[K15('_LogFirebaseEventByEventName')] = R1
0040  RETURN    return R0..R-1
; ---------- proto0 [TrackFirstInstall] ----------
  ; fn ?  line 10-13 np=2 va=0 ms=8 code=13 consts=7 upvals=1 protos=0
  ;   K[0]='CSAppsFlyerManager'
  ;   K[1]='TrackEventWithUidAndTime'
  ;   K[2]='mf_install'
  ;   K[3]='tostring'
  ;   K[4]='GM'
  ;   K[5]='UserModel'
  ;   K[6]='GetUserId'
  ;   upvals: _ENV
  ;   locals: self(0-13), serverTime(0-13)
  0000  GETTABUP  R2 = _ENV[K0('CSAppsFlyerManager')]
  0001  SELF      R3 = R2[K1('TrackEventWithUidAndTime')] (self)
  0002  LOADK     R4 = K2 'mf_install'
  0003  GETTABUP  R5 = _ENV[K3('tostring')]
  0004  GETTABUP  R6 = _ENV[K4('GM')]
  0005  GETTABLE  R6 = R6[K5('UserModel')]
  0006  SELF      R7 = R6[K6('GetUserId')] (self)
  0007  CALL      R6 = call(R6, -1 args, 1 rets)
  0008  CALL      R5 = call(R5, 1 args, -1 rets)
  0009  MOVE      R6 = R0
  0010  LOADBOOL  R7 = true
  0011  CALL      R2 = call(R2, 0 args, 5 rets)
  0012  RETURN    return R0..R-1
; ---------- proto1 [TrackClientPurchase] ----------
  ; fn ?  line 15-22 np=4 va=0 ms=11 code=34 consts=12 upvals=1 protos=0
  ;   K[0]='CSAppsFlyerManager'
  ;   K[1]='TrackIAP'
  ;   K[2]='client_purchase'
  ;   K[3]='tostring'
  ;   K[4]='GM'
  ;   K[5]='UserModel'
  ;   K[6]='GetUserId'
  ;   K[7]='TrackEventWithUidAndTime'
  ;   K[8]='abc'
  ;   K[9]='GameModel'
  ;   K[10]='GetServerTime'
  ;   K[11]='_LogFirebaseEventByEventName'
  ;   upvals: _ENV
  ;   locals: self(0-34), realMoney(0-34), currency(0-34), orderId(0-34)
  0000  GETTABUP  R4 = _ENV[K0('CSAppsFlyerManager')]
  0001  SELF      R5 = R4[K1('TrackIAP')] (self)
  0002  LOADK     R6 = K2 'client_purchase'
  0003  GETTABUP  R7 = _ENV[K3('tostring')]
  0004  GETTABUP  R8 = _ENV[K4('GM')]
  0005  GETTABLE  R8 = R8[K5('UserModel')]
  0006  SELF      R9 = R8[K6('GetUserId')] (self)
  0007  CALL      R8 = call(R8, -1 args, 1 rets)
  0008  CALL      R7 = call(R7, 1 args, -1 rets)
  0009  MOVE      R8 = R0
  0010  MOVE      R9 = R0
  0011  MOVE      R10 = R0
  0012  CALL      R4 = call(R4, 0 args, 6 rets)
  0013  GETTABUP  R4 = _ENV[K0('CSAppsFlyerManager')]
  0014  SELF      R5 = R4[K7('TrackEventWithUidAndTime')] (self)
  0015  LOADK     R6 = K8 'abc'
  0016  GETTABUP  R7 = _ENV[K3('tostring')]
  0017  GETTABUP  R8 = _ENV[K4('GM')]
  0018  GETTABLE  R8 = R8[K5('UserModel')]
  0019  SELF      R9 = R8[K6('GetUserId')] (self)
  0020  CALL      R8 = call(R8, -1 args, 1 rets)
  0021  CALL      R7 = call(R7, 1 args, -1 rets)
  0022  GETTABUP  R8 = _ENV[K3('tostring')]
  0023  GETTABUP  R9 = _ENV[K4('GM')]
  0024  GETTABLE  R9 = R9[K9('GameModel')]
  0025  SELF      R10 = R9[K10('GetServerTime')] (self)
  0026  CALL      R9 = call(R9, -1 args, 1 rets)
  0027  CALL      R8 = call(R8, 1 args, -1 rets)
  0028  LOADBOOL  R9 = true
  0029  CALL      R4 = call(R4, 0 args, 5 rets)
  0030  SELF      R5 = R0[K11('_LogFirebaseEventByEventName')] (self)
  0031  LOADK     R6 = K8 'abc'
  0032  CALL      R4 = call(R4, 0 args, 2 rets)
  0033  RETURN    return R0..R-1
; ---------- proto2 [OperLoginCallback] ----------
  ; fn ?  line 24-36 np=2 va=0 ms=10 code=49 consts=21 upvals=1 protos=0
  ;   K[0]='IsTable'
  ;   K[1]='m_biData'
  ;   K[2]='pairs'
  ;   K[3]='json'
  ;   K[4]='decode'
  ;   K[5]='_SetGroupData'
  ;   K[6]='levelup'
  ;   K[7]='level'
  ;   K[8]='dayup'
  ;   K[9]='day'
  ;   K[10]='iap'
  ;   K[11]='pay_id'
  ;   K[12]='GM'
  ;   K[13]='BIManager'
  ;   K[14]='LogErrorInfo'
  ;   K[15]='EBIType'
  ;   K[16]='OperCallbackError'
  ;   K[17]='[OperCallback] Invalid adjust data. '
  ;   K[18]='Log'
  ;   K[19]='Encode'
  ;   K[20]=''
  ;   upvals: _ENV
  ;   locals: self(0-49), respData(0-49), (for generator)(12-21), (for state)(12-21), (for control)(12-21), eventType(13-19), str(13-19)
  0000  TEST      if not R1 then   -> -131070
  0001  JMP       (jump)   -> 34
  0002  GETTABUP  R2 = _ENV[K0('IsTable')]
  0003  MOVE      R3 = R0
  0004  CALL      R2 = call(R2, 1 args, 1 rets)
  0005  TEST      if not R2 then   -> -131065
  0006  JMP       (jump)   -> 34
  0007  NEWTABLE  R2 = {} (0 items)
  0008  SETTABLE  R0[K1('m_biData')] = R2
  0009  GETTABUP  R2 = _ENV[K2('pairs')]
  0010  MOVE      R3 = R0
  0011  CALL      R2 = call(R2, 3 args, 1 rets)
  0012  JMP       (jump)   -> 19
  0013  GETTABLE  R7 = R0[K1('m_biData')]
  0014  GETTABUP  R8 = _ENV[K3('json')]
  0015  GETTABLE  R8 = R8[K4('decode')]
  0016  MOVE      R9 = R0
  0017  CALL      R8 = call(R8, 1 args, 1 rets)
  0018  SETTABLE  R7[R5] = R8
  0019  TFORCALL  tforcall R2
  0020  TFORLOOP  tforloop R4(sBx=-8)   -> 13
  0021  SELF      R3 = R0[K5('_SetGroupData')] (self)
  0022  LOADK     R4 = K6 'levelup'
  0023  LOADK     R5 = K7 'level'
  0024  CALL      R2 = call(R2, 0 args, 3 rets)
  0025  SELF      R3 = R0[K5('_SetGroupData')] (self)
  0026  LOADK     R4 = K8 'dayup'
  0027  LOADK     R5 = K9 'day'
  0028  CALL      R2 = call(R2, 0 args, 3 rets)
  0029  SELF      R3 = R0[K5('_SetGroupData')] (self)
  0030  LOADK     R4 = K10 'iap'
  0031  LOADK     R5 = K11 'pay_id'
  0032  CALL      R2 = call(R2, 0 args, 3 rets)
  0033  JMP       (jump)   -> 48
  0034  GETTABUP  R2 = _ENV[K12('GM')]
  0035  GETTABLE  R2 = R2[K13('BIManager')]
  0036  SELF      R3 = R2[K14('LogErrorInfo')] (self)
  0037  GETTABUP  R4 = _ENV[K15('EBIType')]
  0038  GETTABLE  R4 = R4[K16('OperCallbackError')]
  0039  LOADK     R5 = K17 '[OperCallback] Invalid adjust data. '
  0040  GETTABUP  R6 = _ENV[K18('Log')]
  0041  GETTABLE  R6 = R6[K19('Encode')]
  0042  TESTSET   if R1 then R7   -> -130515
  0043  JMP       (jump)   -> 45
  0044  LOADK     R7 = K20 ''
  0045  CALL      R6 = call(R6, 1 args, 1 rets)
  0046  CONCAT    R5 = concat(R5..R5)
  0047  CALL      R2 = call(R2, 0 args, 3 rets)
  0048  RETURN    return R0..R-1
; ---------- proto3 [_SetGroupData] ----------
  ; fn ?  line 38-48 np=3 va=0 ms=10 code=23 consts=2 upvals=1 protos=0
  ;   K[0]='m_biData'
  ;   K[1]='pairs'
  ;   upvals: _ENV
  ;   locals: self(0-23), adjustKey(0-23), targetKey(0-23), newTb(1-23), (for generator)(12-20), (for state)(12-20), (for control)(12-20), _(13-18), data(13-18)
  0000  NEWTABLE  R3 = {} (0 items)
  0001  GETTABLE  R4 = R0[K0('m_biData')]
  0002  TEST      if not R4 then   -> -131068
  0003  JMP       (jump)   -> 22
  0004  GETTABLE  R4 = R0[K0('m_biData')]
  0005  GETTABLE  R4 = R4[R1]
  0006  TEST      if not R4 then   -> -131064
  0007  JMP       (jump)   -> 22
  0008  GETTABUP  R4 = _ENV[K1('pairs')]
  0009  GETTABLE  R5 = R0[K0('m_biData')]
  0010  GETTABLE  R5 = R5[R1]
  0011  CALL      R4 = call(R4, 3 args, 1 rets)
  0012  JMP       (jump)   -> 18
  0013  GETTABLE  R9 = R8[R2]
  0014  TEST      if not R9 then   -> -131056
  0015  JMP       (jump)   -> 18
  0016  GETTABLE  R9 = R8[R2]
  0017  SETTABLE  R3[R9] = R8
  0018  TFORCALL  tforcall R4
  0019  TFORLOOP  tforloop R6(sBx=-7)   -> 13
  0020  GETTABLE  R4 = R0[K0('m_biData')]
  0021  SETTABLE  R4[R1] = R3
  0022  RETURN    return R0..R-1
; ---------- proto4 [TrackEvent] ----------
  ; fn ?  line 50-55 np=2 va=0 ms=5 code=18 consts=5 upvals=0 protos=0
  ;   K[0]='m_biData'
  ;   K[1]='_TrackEventByAppsflyer'
  ;   K[2]='appsflyer'
  ;   K[3]='_LogFirebaseEventByEventName'
  ;   K[4]='fben'
  ;   locals: self(0-18), operBIEventName(0-18)
  0000  GETTABLE  R2 = R0[K0('m_biData')]
  0001  TEST      if not R2 then   -> -131069
  0002  JMP       (jump)   -> 17
  0003  GETTABLE  R2 = R0[K0('m_biData')]
  0004  GETTABLE  R2 = R2[R1]
  0005  TEST      if not R2 then   -> -131065
  0006  JMP       (jump)   -> 17
  0007  SELF      R3 = R0[K1('_TrackEventByAppsflyer')] (self)
  0008  GETTABLE  R4 = R0[K0('m_biData')]
  0009  GETTABLE  R4 = R4[R1]
  0010  GETTABLE  R4 = R4[K2('appsflyer')]
  0011  CALL      R2 = call(R2, 0 args, 2 rets)
  0012  SELF      R3 = R0[K3('_LogFirebaseEventByEventName')] (self)
  0013  GETTABLE  R4 = R0[K0('m_biData')]
  0014  GETTABLE  R4 = R4[R1]
  0015  GETTABLE  R4 = R4[K4('fben')]
  0016  CALL      R2 = call(R2, 0 args, 2 rets)
  0017  RETURN    return R0..R-1
; ---------- proto5 [TrackLevelUpEvent] ----------
  ; fn ?  line 57-62 np=2 va=0 ms=5 code=25 consts=6 upvals=0 protos=0
  ;   K[0]='m_biData'
  ;   K[1]='levelup'
  ;   K[2]='_TrackEventByAppsflyer'
  ;   K[3]='appsflyer'
  ;   K[4]='_LogFirebaseEventByEventName'
  ;   K[5]='fben'
  ;   locals: self(0-25), level(0-25)
  0000  GETTABLE  R2 = R0[K0('m_biData')]
  0001  TEST      if not R2 then   -> -131069
  0002  JMP       (jump)   -> 24
  0003  GETTABLE  R2 = R0[K0('m_biData')]
  0004  GETTABLE  R2 = R2[K1('levelup')]
  0005  TEST      if not R2 then   -> -131065
  0006  JMP       (jump)   -> 24
  0007  GETTABLE  R2 = R0[K0('m_biData')]
  0008  GETTABLE  R2 = R2[K1('levelup')]
  0009  GETTABLE  R2 = R2[R1]
  0010  TEST      if not R2 then   -> -131060
  0011  JMP       (jump)   -> 24
  0012  SELF      R3 = R0[K2('_TrackEventByAppsflyer')] (self)
  0013  GETTABLE  R4 = R0[K0('m_biData')]
  0014  GETTABLE  R4 = R4[K1('levelup')]
  0015  GETTABLE  R4 = R4[R1]
  0016  GETTABLE  R4 = R4[K3('appsflyer')]
  0017  CALL      R2 = call(R2, 0 args, 2 rets)
  0018  SELF      R3 = R0[K4('_LogFirebaseEventByEventName')] (self)
  0019  GETTABLE  R4 = R0[K0('m_biData')]
  0020  GETTABLE  R4 = R4[K1('levelup')]
  0021  GETTABLE  R4 = R4[R1]
  0022  GETTABLE  R4 = R4[K5('fben')]
  0023  CALL      R2 = call(R2, 0 args, 2 rets)
  0024  RETURN    return R0..R-1
; ---------- proto6 [TrackDayUpEvent] ----------
  ; fn ?  line 64-69 np=2 va=0 ms=5 code=25 consts=6 upvals=0 protos=0
  ;   K[0]='m_biData'
  ;   K[1]='dayup'
  ;   K[2]='_TrackEventByAppsflyer'
  ;   K[3]='appsflyer'
  ;   K[4]='_LogFirebaseEventByEventName'
  ;   K[5]='fben'
  ;   locals: self(0-25), day(0-25)
  0000  GETTABLE  R2 = R0[K0('m_biData')]
  0001  TEST      if not R2 then   -> -131069
  0002  JMP       (jump)   -> 24
  0003  GETTABLE  R2 = R0[K0('m_biData')]
  0004  GETTABLE  R2 = R2[K1('dayup')]
  0005  TEST      if not R2 then   -> -131065
  0006  JMP       (jump)   -> 24
  0007  GETTABLE  R2 = R0[K0('m_biData')]
  0008  GETTABLE  R2 = R2[K1('dayup')]
  0009  GETTABLE  R2 = R2[R1]
  0010  TEST      if not R2 then   -> -131060
  0011  JMP       (jump)   -> 24
  0012  SELF      R3 = R0[K2('_TrackEventByAppsflyer')] (self)
  0013  GETTABLE  R4 = R0[K0('m_biData')]
  0014  GETTABLE  R4 = R4[K1('dayup')]
  0015  GETTABLE  R4 = R4[R1]
  0016  GETTABLE  R4 = R4[K3('appsflyer')]
  0017  CALL      R2 = call(R2, 0 args, 2 rets)
  0018  SELF      R3 = R0[K4('_LogFirebaseEventByEventName')] (self)
  0019  GETTABLE  R4 = R0[K0('m_biData')]
  0020  GETTABLE  R4 = R4[K1('dayup')]
  0021  GETTABLE  R4 = R4[R1]
  0022  GETTABLE  R4 = R4[K5('fben')]
  0023  CALL      R2 = call(R2, 0 args, 2 rets)
  0024  RETURN    return R0..R-1
; ---------- proto7 [TrackIAPEvent] ----------
  ; fn ?  line 71-76 np=2 va=0 ms=5 code=25 consts=6 upvals=0 protos=0
  ;   K[0]='m_biData'
  ;   K[1]='iap'
  ;   K[2]='_TrackEventByAppsflyer'
  ;   K[3]='appsflyer'
  ;   K[4]='_LogFirebaseEventByEventName'
  ;   K[5]='fben'
  ;   locals: self(0-25), payId(0-25)
  0000  GETTABLE  R2 = R0[K0('m_biData')]
  0001  TEST      if not R2 then   -> -131069
  0002  JMP       (jump)   -> 24
  0003  GETTABLE  R2 = R0[K0('m_biData')]
  0004  GETTABLE  R2 = R2[K1('iap')]
  0005  TEST      if not R2 then   -> -131065
  0006  JMP       (jump)   -> 24
  0007  GETTABLE  R2 = R0[K0('m_biData')]
  0008  GETTABLE  R2 = R2[K1('iap')]
  0009  GETTABLE  R2 = R2[R1]
  0010  TEST      if not R2 then   -> -131060
  0011  JMP       (jump)   -> 24
  0012  SELF      R3 = R0[K2('_TrackEventByAppsflyer')] (self)
  0013  GETTABLE  R4 = R0[K0('m_biData')]
  0014  GETTABLE  R4 = R4[K1('iap')]
  0015  GETTABLE  R4 = R4[R1]
  0016  GETTABLE  R4 = R4[K3('appsflyer')]
  0017  CALL      R2 = call(R2, 0 args, 2 rets)
  0018  SELF      R3 = R0[K4('_LogFirebaseEventByEventName')] (self)
  0019  GETTABLE  R4 = R0[K0('m_biData')]
  0020  GETTABLE  R4 = R4[K1('iap')]
  0021  GETTABLE  R4 = R4[R1]
  0022  GETTABLE  R4 = R4[K5('fben')]
  0023  CALL      R2 = call(R2, 0 args, 2 rets)
  0024  RETURN    return R0..R-1
; ---------- proto8 [_TrackEventByAppsflyer] ----------
  ; fn ?  line 78-82 np=2 va=0 ms=9 code=19 consts=8 upvals=1 protos=0
  ;   K[0]='CSAppsFlyerManager'
  ;   K[1]='TrackEventWithUidAndTime'
  ;   K[2]='tostring'
  ;   K[3]='GM'
  ;   K[4]='UserModel'
  ;   K[5]='GetUserId'
  ;   K[6]='GameModel'
  ;   K[7]='GetServerTime'
  ;   upvals: _ENV
  ;   locals: self(0-19), appsflyer(0-19)
  0000  TEST      if not R1 then   -> -131070
  0001  JMP       (jump)   -> 18
  0002  GETTABUP  R2 = _ENV[K0('CSAppsFlyerManager')]
  0003  SELF      R3 = R2[K1('TrackEventWithUidAndTime')] (self)
  0004  MOVE      R4 = R0
  0005  GETTABUP  R5 = _ENV[K2('tostring')]
  0006  GETTABUP  R6 = _ENV[K3('GM')]
  0007  GETTABLE  R6 = R6[K4('UserModel')]
  0008  SELF      R7 = R6[K5('GetUserId')] (self)
  0009  CALL      R6 = call(R6, -1 args, 1 rets)
  0010  CALL      R5 = call(R5, 1 args, -1 rets)
  0011  GETTABUP  R6 = _ENV[K2('tostring')]
  0012  GETTABUP  R7 = _ENV[K3('GM')]
  0013  GETTABLE  R7 = R7[K6('GameModel')]
  0014  SELF      R8 = R7[K7('GetServerTime')] (self)
  0015  CALL      R7 = call(R7, -1 args, 1 rets)
  0016  CALL      R6 = call(R6, -1 args, -1 rets)
  0017  CALL      R2 = call(R2, 0 args, -1 rets)
  0018  RETURN    return R0..R-1
; ---------- proto9 [_LogFirebaseEventByEventName] ----------
  ; fn ?  line 84-91 np=2 va=0 ms=5 code=7 consts=1 upvals=1 protos=1
  ;   K[0]='SafeCall'
  ;   upvals: _ENV
  ;   locals: self(0-7), firebaseEventName(0-7), func(3-6)
  0000  TEST      if not R1 then   -> -131070
  0001  JMP       (jump)   -> 6
  0002  CLOSURE   R2 = closure proto0
  0003  GETTABUP  R3 = _ENV[K0('SafeCall')]
  0004  MOVE      R4 = R0
  0005  CALL      R3 = call(R3, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 86-88 np=0 va=0 ms=4 code=6 consts=3 upvals=2 protos=0
    ;   K[0]='CSFirebaseManager'
    ;   K[1]='LogEvent'
    ;   K[2]=''
    ;   upvals: _ENV, firebaseEventName
    0000  GETTABUP  R0 = _ENV[K0('CSFirebaseManager')]
    0001  SELF      R1 = R0[K1('LogEvent')] (self)
    0002  GETUPVAL  R2 = _ENV
    0003  LOADK     R3 = K2 ''
    0004  CALL      R0 = call(R0, 0 args, 3 rets)
    0005  RETURN    return R0..R-1
