# DoubleWheelActivity_View_DoubleWheelActivityCollectEntry_1999.luac
; fn @DoubleWheelActivityCollectEntry.lua  line 0-0 np=0 va=1 ms=3 code=18 consts=7 upvals=1 protos=3
;   K[0]='DoubleWheelActivityCollectEntry'
;   K[1]='setmetatable'
;   K[2]='DoubleWheelActivityMainEntry'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='SetSortingOrder'
;   K[6]='OnGameModeChanged'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('DoubleWheelActivityMainEntry')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('DoubleWheelActivityCollectEntry')] = R0
0005  GETTABUP  R0 = _ENV[K0('DoubleWheelActivityCollectEntry')]
0006  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityCollectEntry')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('DoubleWheelActivityCollectEntry')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('DoubleWheelActivityCollectEntry')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('SetSortingOrder')] = R1
0014  GETTABUP  R0 = _ENV[K0('DoubleWheelActivityCollectEntry')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('OnGameModeChanged')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 10-14 np=3 va=0 ms=6 code=7 consts=3 upvals=1 protos=0
  ;   K[0]='DoubleWheelActivityMainEntry'
  ;   K[1]='Init'
  ;   K[2]='m_boardEntry'
  ;   upvals: _ENV
  ;   locals: self(0-7), model(0-7), boardEntry(0-7)
  0000  GETTABUP  R3 = _ENV[K0('DoubleWheelActivityMainEntry')]
  0001  GETTABLE  R3 = R3[K1('Init')]
  0002  MOVE      R4 = R0
  0003  MOVE      R5 = R0
  0004  CALL      R3 = call(R3, 0 args, 2 rets)
  0005  SETTABLE  R0[K2('m_boardEntry')] = R2
  0006  RETURN    return R0..R-1
; ---------- proto1 [SetSortingOrder] ----------
  ; fn ?  line 17-19 np=2 va=0 ms=3 code=3 consts=2 upvals=0 protos=0
  ;   K[0]='m_canvas'
  ;   K[1]='sortingOrder'
  ;   locals: self(0-3), sortingOrder(0-3)
  0000  GETTABLE  R2 = R0[K0('m_canvas')]
  0001  SETTABLE  R2[K1('sortingOrder')] = R1
  0002  RETURN    return R0..R-1
; ---------- proto2 [OnGameModeChanged] ----------
  ; fn ?  line 22-30 np=1 va=0 ms=4 code=25 consts=10 upvals=1 protos=0
  ;   K[0]='DoubleWheelActivityMainEntry'
  ;   K[1]='OnGameModeChanged'
  ;   K[2]='PropertyAnimationManager'
  ;   K[3]='FinishAllTweens'
  ;   K[4]='m_boardEntry'
  ;   K[5]=nil
  ;   K[6]='UIUtil'
  ;   K[7]='IsEmptyComponent'
  ;   K[8]='gameObject'
  ;   K[9]='SetActive'
  ;   upvals: _ENV
  ;   locals: self(0-25)
  0000  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityMainEntry')]
  0001  GETTABLE  R1 = R1[K1('OnGameModeChanged')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('PropertyAnimationManager')]
  0005  GETTABLE  R1 = R1[K3('FinishAllTweens')]
  0006  CALL      R1 = call(R1, 0 args, 0 rets)
  0007  GETTABLE  R1 = R0[K4('m_boardEntry')]
  0008  EQ        if R1 eq K5(nil)   -> -130289
  0009  JMP       (jump)   -> 17
  0010  GETTABUP  R1 = _ENV[K6('UIUtil')]
  0011  GETTABLE  R1 = R1[K7('IsEmptyComponent')]
  0012  GETTABLE  R2 = R0[K4('m_boardEntry')]
  0013  GETTABLE  R2 = R2[K8('gameObject')]
  0014  CALL      R1 = call(R1, 1 args, 1 rets)
  0015  TEST      if not R1 then   -> -131055
  0016  JMP       (jump)   -> 18
  0017  RETURN    return R0..R-1
  0018  GETTABUP  R1 = _ENV[K6('UIUtil')]
  0019  GETTABLE  R1 = R1[K9('SetActive')]
  0020  GETTABLE  R2 = R0[K4('m_boardEntry')]
  0021  GETTABLE  R2 = R2[K8('gameObject')]
  0022  LOADBOOL  R3 = false
  0023  CALL      R1 = call(R1, 0 args, 2 rets)
  0024  RETURN    return R0..R-1
