# UpgradeRace_View_UpgradeRaceActivityBaseEntryWindow_1569.luac
; fn @UpgradeRaceActivityBaseEntryWindow.lua  line 0-0 np=0 va=1 ms=3 code=22 consts=10 upvals=1 protos=4
;   K[0]='UpgradeRaceActivityBaseEntryWindow'
;   K[1]='setmetatable'
;   K[2]='canCloseByAndroidBack'
;   K[3]=false
;   K[4]='UpgradeRaceActivityBaseWindow'
;   K[5]='__index'
;   K[6]='Init'
;   K[7]='OnBtnClicked'
;   K[8]='_OnEntry'
;   K[9]='_TryCompetitionEntry'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('canCloseByAndroidBack')] = K3(false)
0003  GETTABUP  R2 = _ENV[K4('UpgradeRaceActivityBaseWindow')]
0004  CALL      R0 = call(R0, 1 args, 2 rets)
0005  SETTABUP  _ENV[K0('UpgradeRaceActivityBaseEntryWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('UpgradeRaceActivityBaseEntryWindow')]
0007  GETTABUP  R1 = _ENV[K0('UpgradeRaceActivityBaseEntryWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('UpgradeRaceActivityBaseEntryWindow')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('Init')] = R1
0012  GETTABUP  R0 = _ENV[K0('UpgradeRaceActivityBaseEntryWindow')]
0013  CLOSURE   R1 = closure proto1
0014  SETTABLE  R0[K7('OnBtnClicked')] = R1
0015  GETTABUP  R0 = _ENV[K0('UpgradeRaceActivityBaseEntryWindow')]
0016  CLOSURE   R1 = closure proto2
0017  SETTABLE  R0[K8('_OnEntry')] = R1
0018  GETTABUP  R0 = _ENV[K0('UpgradeRaceActivityBaseEntryWindow')]
0019  CLOSURE   R1 = closure proto3
0020  SETTABLE  R0[K9('_TryCompetitionEntry')] = R1
0021  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 15-22 np=4 va=0 ms=9 code=16 consts=7 upvals=1 protos=0
  ;   K[0]='UpgradeRaceActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='GetModel'
  ;   K[3]='SetWindowOpened'
  ;   K[4]='ActivityState'
  ;   K[5]='Started'
  ;   K[6]='RecordWindowDailyOpenTime'
  ;   upvals: _ENV
  ;   locals: self(0-16), activityType(0-16), id(0-16), bAutoPop(0-16), model(9-16)
  0000  GETTABUP  R4 = _ENV[K0('UpgradeRaceActivityBaseWindow')]
  0001  GETTABLE  R4 = R4[K1('Init')]
  0002  MOVE      R5 = R0
  0003  MOVE      R6 = R0
  0004  MOVE      R7 = R0
  0005  MOVE      R8 = R0
  0006  CALL      R4 = call(R4, 0 args, 4 rets)
  0007  SELF      R5 = R0[K2('GetModel')] (self)
  0008  CALL      R4 = call(R4, 1 args, 1 rets)
  0009  SELF      R6 = R4[K3('SetWindowOpened')] (self)
  0010  GETTABUP  R7 = _ENV[K4('ActivityState')]
  0011  GETTABLE  R7 = R7[K5('Started')]
  0012  CALL      R5 = call(R5, 0 args, 2 rets)
  0013  SELF      R6 = R4[K6('RecordWindowDailyOpenTime')] (self)
  0014  CALL      R5 = call(R5, 0 args, 1 rets)
  0015  RETURN    return R0..R-1
; ---------- proto1 [OnBtnClicked] ----------
  ; fn ?  line 24-26 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='_OnEntry'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('_OnEntry')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto2 [_OnEntry] ----------
  ; fn ?  line 29-59 np=1 va=0 ms=15 code=65 consts=30 upvals=1 protos=1
  ;   K[0]='m_bClicked'
  ;   K[1]=true
  ;   K[2]='GetModel'
  ;   K[3]='GetState'
  ;   K[4]='ActivityState'
  ;   K[5]='Started'
  ;   K[6]='Close'
  ;   K[7]='MathUtil'
  ;   K[8]='Random'
  ;   K[9]=1
  ;   K[10]=2
  ;   K[11]='_TryCompetitionEntry'
  ;   K[12]='GM'
  ;   K[13]='UIManager'
  ;   K[14]='SetEventLock'
  ;   K[15]='UIUtil'
  ;   K[16]='SetActive'
  ;   K[17]='m_buttonCircleIconGo'
  ;   K[18]='m_buttonTextGo'
  ;   K[19]=900
  ;   K[20]=1260
  ;   K[21]=720
  ;   K[22]='DOTween'
  ;   K[23]='Sequence'
  ;   K[24]='Append'
  ;   K[25]='m_buttonCircleIconRectTransform'
  ;   K[26]='DORotate'
  ;   K[27]='Vector3'
  ;   K[28]=0
  ;   K[29]='AppendCallback'
  ;   upvals: _ENV
  ;   locals: self(0-65), model(7-65), state(9-65), r(21-65), rate(46-65), time(47-65), seq(50-65)
  0000  GETTABLE  R1 = R0[K0('m_bClicked')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  SETTABLE  R0[K0('m_bClicked')] = K1(true)
  0005  SELF      R2 = R0[K2('GetModel')] (self)
  0006  CALL      R1 = call(R1, 1 args, 1 rets)
  0007  SELF      R3 = R1[K3('GetState')] (self)
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  GETTABUP  R3 = _ENV[K4('ActivityState')]
  0010  GETTABLE  R3 = R3[K5('Started')]
  0011  EQ        if R1 eq R3   -> -130032
  0012  JMP       (jump)   -> 16
  0013  SELF      R4 = R0[K6('Close')] (self)
  0014  CALL      R3 = call(R3, 0 args, 1 rets)
  0015  RETURN    return R0..R-1
  0016  GETTABUP  R3 = _ENV[K7('MathUtil')]
  0017  GETTABLE  R3 = R3[K8('Random')]
  0018  LOADK     R4 = K9 1
  0019  LOADK     R5 = K10 2
  0020  CALL      R3 = call(R3, 1 args, 2 rets)
  0021  EQ        if R0 eq K9(1)   -> -129248
  0022  JMP       (jump)   -> 26
  0023  SELF      R5 = R0[K11('_TryCompetitionEntry')] (self)
  0024  CALL      R4 = call(R4, 0 args, 1 rets)
  0025  RETURN    return R0..R-1
  0026  GETTABUP  R4 = _ENV[K12('GM')]
  0027  GETTABLE  R4 = R4[K13('UIManager')]
  0028  SELF      R5 = R4[K14('SetEventLock')] (self)
  0029  LOADBOOL  R6 = true
  0030  CALL      R4 = call(R4, 0 args, 2 rets)
  0031  GETTABUP  R4 = _ENV[K15('UIUtil')]
  0032  GETTABLE  R4 = R4[K16('SetActive')]
  0033  GETTABLE  R5 = R0[K17('m_buttonCircleIconGo')]
  0034  LOADBOOL  R6 = true
  0035  CALL      R4 = call(R4, 0 args, 2 rets)
  0036  GETTABUP  R4 = _ENV[K15('UIUtil')]
  0037  GETTABLE  R4 = R4[K16('SetActive')]
  0038  GETTABLE  R5 = R0[K18('m_buttonTextGo')]
  0039  LOADBOOL  R6 = false
  0040  CALL      R4 = call(R4, 0 args, 2 rets)
  0041  GETTABUP  R4 = _ENV[K7('MathUtil')]
  0042  GETTABLE  R4 = R4[K8('Random')]
  0043  LOADK     R5 = K19 900
  0044  LOADK     R6 = K20 1260
  0045  CALL      R4 = call(R4, 1 args, 2 rets)
  0046  DIV       R5 = K21(720) div R4
  0047  GETTABUP  R6 = _ENV[K22('DOTween')]
  0048  GETTABLE  R6 = R6[K23('Sequence')]
  0049  CALL      R6 = call(R6, 1 args, 0 rets)
  0050  SELF      R8 = R6[K24('Append')] (self)
  0051  GETTABLE  R9 = R0[K25('m_buttonCircleIconRectTransform')]
  0052  SELF      R10 = R9[K26('DORotate')] (self)
  0053  GETTABUP  R11 = _ENV[K27('Vector3')]
  0054  LOADK     R12 = K28 0
  0055  LOADK     R13 = K28 0
  0056  UNM       R14 = unm R0
  0057  CALL      R11 = call(R11, 1 args, 3 rets)
  0058  MOVE      R12 = R0
  0059  CALL      R9 = call(R9, -1 args, 3 rets)
  0060  CALL      R7 = call(R7, 0 args, -1 rets)
  0061  SELF      R8 = R6[K29('AppendCallback')] (self)
  0062  CLOSURE   R9 = closure proto0
  0063  CALL      R7 = call(R7, 0 args, 2 rets)
  0064  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 55-58 np=0 va=0 ms=3 code=9 consts=4 upvals=2 protos=0
    ;   K[0]='GM'
    ;   K[1]='UIManager'
    ;   K[2]='SetEventLock'
    ;   K[3]='_TryCompetitionEntry'
    ;   upvals: _ENV, self
    0000  GETTABUP  R0 = _ENV[K0('GM')]
    0001  GETTABLE  R0 = R0[K1('UIManager')]
    0002  SELF      R1 = R0[K2('SetEventLock')] (self)
    0003  LOADBOOL  R2 = false
    0004  CALL      R0 = call(R0, 0 args, 2 rets)
    0005  GETUPVAL  R0 = _ENV
    0006  SELF      R1 = R0[K3('_TryCompetitionEntry')] (self)
    0007  CALL      R0 = call(R0, 0 args, 1 rets)
    0008  RETURN    return R0..R-1
; ---------- proto3 [_TryCompetitionEntry] ----------
  ; fn ?  line 61-68 np=1 va=0 ms=6 code=9 consts=3 upvals=0 protos=1
  ;   K[0]='GetModel'
  ;   K[1]='TryCompetitionEntry'
  ;   K[2]='Close'
  ;   locals: self(0-9), model(2-9), successCallback(3-9)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  CLOSURE   R2 = closure proto0
  0003  SELF      R4 = R1[K1('TryCompetitionEntry')] (self)
  0004  MOVE      R5 = R0
  0005  CALL      R3 = call(R3, 0 args, 2 rets)
  0006  SELF      R4 = R0[K2('Close')] (self)
  0007  CALL      R3 = call(R3, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 63-65 np=0 va=0 ms=3 code=5 consts=1 upvals=1 protos=0
    ;   K[0]='OpenMainWindow'
    ;   upvals: model
    0000  GETUPVAL  R0 = model
    0001  SELF      R1 = R0[K0('OpenMainWindow')] (self)
    0002  LOADBOOL  R2 = true
    0003  CALL      R0 = call(R0, 0 args, 2 rets)
    0004  RETURN    return R0..R-1
