# CookBoostActivity_View_CookBoostActivityRewardTip_1660.luac
; fn @CookBoostActivityRewardTip.lua  line 0-0 np=0 va=1 ms=3 code=12 consts=5 upvals=1 protos=1
;   K[0]='CookBoostActivityRewardTip'
;   K[1]='setmetatable'
;   K[2]='BaseTip'
;   K[3]='__index'
;   K[4]='Show'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BaseTip')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('CookBoostActivityRewardTip')] = R0
0005  GETTABUP  R0 = _ENV[K0('CookBoostActivityRewardTip')]
0006  GETTABUP  R1 = _ENV[K0('CookBoostActivityRewardTip')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('CookBoostActivityRewardTip')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Show')] = R1
0011  RETURN    return R0..R-1
; ---------- proto0 [Show] ----------
  ; fn ?  line 15-34 np=3 va=0 ms=11 code=71 consts=25 upvals=1 protos=0
  ;   K[0]='m_bgImage'
  ;   K[1]='sprite'
  ;   K[2]='GetTipBgSprite'
  ;   K[3]='m_titleText'
  ;   K[4]='text'
  ;   K[5]='GetConfigIndexTitle'
  ;   K[6]='m_descTopText'
  ;   K[7]='GetConfigIndexDesc'
  ;   K[8]=1
  ;   K[9]=3
  ;   K[10]='UIUtil'
  ;   K[11]='SetActive'
  ;   K[12]='string'
  ;   K[13]='format'
  ;   K[14]='m_pot%dGo'
  ;   K[15]='GetRewardTipIconTopRoot'
  ;   K[16]='m_rootRectTransform'
  ;   K[17]='localPosition'
  ;   K[18]='x'
  ;   K[19]='GetRewardTipRoot'
  ;   K[20]='AddLocalPosition'
  ;   K[21]='m_bgRectTransform'
  ;   K[22]='m_contentRectTransform'
  ;   K[23]='BaseTip'
  ;   K[24]='Show'
  ;   upvals: _ENV
  ;   locals: self(0-71), window(0-71), configIndex(0-71), (for index)(18-43), (for limit)(18-43), (for step)(18-43), index(19-42), localPositionX(46-71), deltaX(56-71)
  0000  GETTABLE  R3 = R0[K0('m_bgImage')]
  0001  SELF      R5 = R1[K2('GetTipBgSprite')] (self)
  0002  MOVE      R6 = R0
  0003  CALL      R4 = call(R4, 1 args, 2 rets)
  0004  SETTABLE  R3[K1('sprite')] = R4
  0005  GETTABLE  R3 = R0[K3('m_titleText')]
  0006  SELF      R5 = R1[K5('GetConfigIndexTitle')] (self)
  0007  MOVE      R6 = R0
  0008  CALL      R4 = call(R4, 1 args, 2 rets)
  0009  SETTABLE  R3[K4('text')] = R4
  0010  GETTABLE  R3 = R0[K6('m_descTopText')]
  0011  SELF      R5 = R1[K7('GetConfigIndexDesc')] (self)
  0012  MOVE      R6 = R0
  0013  CALL      R4 = call(R4, 1 args, 2 rets)
  0014  SETTABLE  R3[K4('text')] = R4
  0015  LOADK     R3 = K8 1
  0016  LOADK     R4 = K9 3
  0017  LOADK     R5 = K8 1
  0018  FORPREP   forprep R3(sBx=23)   -> 42
  0019  GETTABUP  R7 = _ENV[K10('UIUtil')]
  0020  GETTABLE  R7 = R7[K11('SetActive')]
  0021  GETTABUP  R8 = _ENV[K12('string')]
  0022  GETTABLE  R8 = R8[K13('format')]
  0023  LOADK     R9 = K14 'm_pot%dGo'
  0024  MOVE      R10 = R0
  0025  CALL      R8 = call(R8, 1 args, 2 rets)
  0026  GETTABLE  R8 = R0[R8]
  0027  EQ        if R1 eq R6   -> -130013
  0028  JMP       (jump)   -> 30
  0029  LOADBOOL  R9 = false
  0030  LOADBOOL  R9 = true
  0031  CALL      R7 = call(R7, 0 args, 2 rets)
  0032  GETTABUP  R7 = _ENV[K10('UIUtil')]
  0033  GETTABLE  R7 = R7[K11('SetActive')]
  0034  SELF      R9 = R1[K15('GetRewardTipIconTopRoot')] (self)
  0035  MOVE      R10 = R0
  0036  CALL      R8 = call(R8, 1 args, 2 rets)
  0037  EQ        if R1 eq R6   -> -130003
  0038  JMP       (jump)   -> 40
  0039  LOADBOOL  R9 = false
  0040  LOADBOOL  R9 = true
  0041  CALL      R7 = call(R7, 0 args, 2 rets)
  0042  FORLOOP   forloop R3(sBx=-24)   -> 19
  0043  GETTABLE  R3 = R0[K16('m_rootRectTransform')]
  0044  GETTABLE  R3 = R3[K17('localPosition')]
  0045  GETTABLE  R3 = R3[K18('x')]
  0046  GETTABLE  R4 = R0[K16('m_rootRectTransform')]
  0047  SELF      R6 = R1[K19('GetRewardTipRoot')] (self)
  0048  MOVE      R7 = R0
  0049  CALL      R5 = call(R5, 1 args, 2 rets)
  0050  GETTABLE  R5 = R5[K17('localPosition')]
  0051  SETTABLE  R4[K17('localPosition')] = R5
  0052  GETTABLE  R4 = R0[K16('m_rootRectTransform')]
  0053  GETTABLE  R4 = R4[K17('localPosition')]
  0054  GETTABLE  R4 = R4[K18('x')]
  0055  SUB       R4 = R4 sub R3
  0056  GETTABUP  R5 = _ENV[K10('UIUtil')]
  0057  GETTABLE  R5 = R5[K20('AddLocalPosition')]
  0058  GETTABLE  R6 = R0[K21('m_bgRectTransform')]
  0059  MOVE      R7 = R0
  0060  CALL      R5 = call(R5, 0 args, 2 rets)
  0061  GETTABUP  R5 = _ENV[K10('UIUtil')]
  0062  GETTABLE  R5 = R5[K20('AddLocalPosition')]
  0063  GETTABLE  R6 = R0[K22('m_contentRectTransform')]
  0064  MOVE      R7 = R0
  0065  CALL      R5 = call(R5, 0 args, 2 rets)
  0066  GETTABUP  R5 = _ENV[K23('BaseTip')]
  0067  GETTABLE  R5 = R5[K24('Show')]
  0068  MOVE      R6 = R0
  0069  CALL      R5 = call(R5, 0 args, 1 rets)
  0070  RETURN    return R0..R-1
