# DoubleWheelActivity_View_DoubleWheelActivityPurchaseWindowRewardItem_2019.luac
; fn @DoubleWheelActivityPurchaseWindowRewardItem.lua  line 0-0 np=0 va=1 ms=3 code=15 consts=7 upvals=1 protos=1
;   K[0]='DoubleWheelActivityPurchaseWindowRewardItem'
;   K[1]='setmetatable'
;   K[2]='RewardItemWithItemTipButton'
;   K[3]='__index'
;   K[4]='Index'
;   K[5]='Update'
;   K[6]='UpdateIndex'
;   upvals: _ENV
;   locals: ERewardAnimationKey(11-15)
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('RewardItemWithItemTipButton')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('DoubleWheelActivityPurchaseWindowRewardItem')] = R0
0005  GETTABUP  R0 = _ENV[K0('DoubleWheelActivityPurchaseWindowRewardItem')]
0006  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityPurchaseWindowRewardItem')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  NEWTABLE  R0 = {} (0 items)
0009  SETTABLE  R0[K4('Index')] = K4('Index')
0010  SETTABLE  R0[K5('Update')] = K5('Update')
0011  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityPurchaseWindowRewardItem')]
0012  CLOSURE   R2 = closure proto0
0013  SETTABLE  R1[K6('UpdateIndex')] = R2
0014  RETURN    return R0..R-1
; ---------- proto0 [UpdateIndex] ----------
  ; fn ?  line 18-27 np=2 va=0 ms=6 code=18 consts=7 upvals=1 protos=0
  ;   K[0]='m_index'
  ;   K[1]='m_rewardAnimator'
  ;   K[2]='SetInteger'
  ;   K[3]='Index'
  ;   K[4]=nil
  ;   K[5]='SetTrigger'
  ;   K[6]='Update'
  ;   upvals: ERewardAnimationKey
  ;   locals: self(0-18), index(0-18)
  0000  GETTABLE  R2 = R0[K0('m_index')]
  0001  EQ        if R0 eq R1   -> -130044
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  GETTABLE  R2 = R0[K1('m_rewardAnimator')]
  0005  SELF      R3 = R2[K2('SetInteger')] (self)
  0006  GETTABUP  R4 = ERewardAnimationKey[K3('Index')]
  0007  MOVE      R5 = R0
  0008  CALL      R2 = call(R2, 0 args, 3 rets)
  0009  GETTABLE  R2 = R0[K0('m_index')]
  0010  EQ        if R1 eq K4(nil)   -> -129776
  0011  JMP       (jump)   -> 16
  0012  GETTABLE  R2 = R0[K1('m_rewardAnimator')]
  0013  SELF      R3 = R2[K5('SetTrigger')] (self)
  0014  GETTABUP  R4 = ERewardAnimationKey[K6('Update')]
  0015  CALL      R2 = call(R2, 0 args, 2 rets)
  0016  SETTABLE  R0[K0('m_index')] = R1
  0017  RETURN    return R0..R-1
