# UI_Window_Board_SkipTimeAutoEffectPopupHelper_633.luac
; fn @SkipTimeAutoEffectPopupHelper.lua  line 0-0 np=0 va=1 ms=4 code=24 consts=14 upvals=1 protos=3
;   K[0]='SkipTimeAutoEffectPopupHelper'
;   K[1]='setmetatable'
;   K[2]='canPopScene'
;   K[3]='EPopupScene'
;   K[4]='Board'
;   K[5]=true
;   K[6]='canIgnorePopup'
;   K[7]=false
;   K[8]='BasePopupHelper'
;   K[9]='__index'
;   K[10]='Create'
;   K[11]='SkipTimeAutoEffectPopupHelper'
;   K[12]='SetNeedCheckPopup'
;   K[13]='CheckPopup'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  NEWTABLE  R2 = {} (0 items)
0003  GETTABUP  R3 = _ENV[K3('EPopupScene')]
0004  GETTABLE  R3 = R3[K4('Board')]
0005  SETTABLE  R2[R3] = K5(true)
0006  SETTABLE  R1[K2('canPopScene')] = R2
0007  SETTABLE  R1[K6('canIgnorePopup')] = K7(false)
0008  GETTABUP  R2 = _ENV[K8('BasePopupHelper')]
0009  CALL      R0 = call(R0, 1 args, 2 rets)
0010  SETTABUP  _ENV[K0('SkipTimeAutoEffectPopupHelper')] = R0
0011  GETTABUP  R0 = _ENV[K0('SkipTimeAutoEffectPopupHelper')]
0012  GETTABUP  R1 = _ENV[K0('SkipTimeAutoEffectPopupHelper')]
0013  SETTABLE  R0[K9('__index')] = R1
0014  GETTABUP  R0 = _ENV[K0('SkipTimeAutoEffectPopupHelper')]
0015  CLOSURE   R1 = closure proto0
0016  SETTABLE  R0[K10('Create')] = R1
0017  GETTABUP  R0 = _ENV[K11('SkipTimeAutoEffectPopupHelper')]
0018  CLOSURE   R1 = closure proto1
0019  SETTABLE  R0[K12('SetNeedCheckPopup')] = R1
0020  GETTABUP  R0 = _ENV[K11('SkipTimeAutoEffectPopupHelper')]
0021  CLOSURE   R1 = closure proto2
0022  SETTABLE  R0[K13('CheckPopup')] = R1
0023  RETURN    return R0..R-1
; ---------- proto0 [Create] ----------
  ; fn ?  line 10-14 np=0 va=0 ms=3 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='setmetatable'
  ;   K[1]='SkipTimeAutoEffectPopupHelper'
  ;   K[2]='Init'
  ;   upvals: _ENV
  ;   locals: helper(4-8)
  0000  GETTABUP  R0 = _ENV[K0('setmetatable')]
  0001  NEWTABLE  R1 = {} (0 items)
  0002  GETTABUP  R2 = _ENV[K1('SkipTimeAutoEffectPopupHelper')]
  0003  CALL      R0 = call(R0, 1 args, 2 rets)
  0004  SELF      R2 = R0[K2('Init')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
  0007  RETURN    return R0..R-1
; ---------- proto1 [SetNeedCheckPopup] ----------
  ; fn ?  line 16-18 np=2 va=0 ms=2 code=1 consts=0 upvals=0 protos=0
  ;   locals: self(0-1), needCheck(0-1)
  0000  RETURN    return R0..R-1
; ---------- proto2 [CheckPopup] ----------
  ; fn ?  line 20-52 np=1 va=0 ms=15 code=69 consts=33 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='MainBoardModel'
  ;   K[2]='GetCachedItem'
  ;   K[3]=1
  ;   K[4]='RewardApi'
  ;   K[5]='IsImmediateEffectItem'
  ;   K[6]='RemoveCachedItem'
  ;   K[7]='ItemSpeeder'
  ;   K[8]='TakeEffect'
  ;   K[9]='Effect'
  ;   K[10]='EventDispatcher'
  ;   K[11]='DispatchEvent'
  ;   K[12]='EEventType'
  ;   K[13]='ChangeCachedItems'
  ;   K[14]='MainBoardView'
  ;   K[15]='GetInstance'
  ;   K[16]='GetOrderArea'
  ;   K[17]='GetBoardCacheRoot'
  ;   K[18]='transform'
  ;   K[19]='position'
  ;   K[20]='ConvertWorldPositionToScreenPosition'
  ;   K[21]='PositionUtil'
  ;   K[22]='UICameraScreen2World'
  ;   K[23]='AcquireRewardsInView'
  ;   K[24]='PROPERTY_TYPE'
  ;   K[25]='PROPERTY_COUNT'
  ;   K[26]='arrWorldPos'
  ;   K[27]='eventLock'
  ;   K[28]=true
  ;   K[29]='spriteScale'
  ;   K[30]='GetCacheElementScale'
  ;   K[31]='ERewardScene'
  ;   K[32]='Other'
  ;   upvals: _ENV
  ;   locals: self(0-69), boardModel(2-69), itemCode(5-69), isImmediate(12-69), config(12-69), boardView(32-69), boardCacheRoot(36-69), worldPosition(38-69), screenPosition(41-69), uiWorldPosition(45-69)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('MainBoardModel')]
  0002  SELF      R3 = R1[K2('GetCachedItem')] (self)
  0003  LOADK     R4 = K3 1
  0004  CALL      R2 = call(R2, 1 args, 2 rets)
  0005  TEST      if not R2 then   -> -131064
  0006  JMP       (jump)   -> 8
  0007  RETURN    return R0..R-1
  0008  GETTABUP  R3 = _ENV[K4('RewardApi')]
  0009  GETTABLE  R3 = R3[K5('IsImmediateEffectItem')]
  0010  MOVE      R4 = R0
  0011  CALL      R3 = call(R3, 2 args, 1 rets)
  0012  TEST      if not R3 then   -> -131057
  0013  JMP       (jump)   -> 15
  0014  RETURN    return R0..R-1
  0015  SELF      R6 = R1[K6('RemoveCachedItem')] (self)
  0016  LOADK     R7 = K3 1
  0017  CALL      R5 = call(R5, 0 args, 2 rets)
  0018  GETTABUP  R5 = _ENV[K7('ItemSpeeder')]
  0019  GETTABLE  R5 = R5[K8('TakeEffect')]
  0020  MOVE      R6 = R0
  0021  GETTABLE  R7 = R4[K9('Effect')]
  0022  MOVE      R8 = R0
  0023  CALL      R5 = call(R5, 0 args, 3 rets)
  0024  GETTABUP  R5 = _ENV[K10('EventDispatcher')]
  0025  GETTABLE  R5 = R5[K11('DispatchEvent')]
  0026  GETTABUP  R6 = _ENV[K12('EEventType')]
  0027  GETTABLE  R6 = R6[K13('ChangeCachedItems')]
  0028  CALL      R5 = call(R5, 0 args, 1 rets)
  0029  GETTABUP  R5 = _ENV[K14('MainBoardView')]
  0030  GETTABLE  R5 = R5[K15('GetInstance')]
  0031  CALL      R5 = call(R5, 1 args, 0 rets)
  0032  SELF      R7 = R5[K16('GetOrderArea')] (self)
  0033  CALL      R6 = call(R6, 1 args, 1 rets)
  0034  SELF      R7 = R6[K17('GetBoardCacheRoot')] (self)
  0035  CALL      R6 = call(R6, 1 args, 1 rets)
  0036  GETTABLE  R7 = R6[K18('transform')]
  0037  GETTABLE  R7 = R7[K19('position')]
  0038  SELF      R9 = R5[K20('ConvertWorldPositionToScreenPosition')] (self)
  0039  MOVE      R10 = R0
  0040  CALL      R8 = call(R8, 1 args, 2 rets)
  0041  GETTABUP  R9 = _ENV[K21('PositionUtil')]
  0042  GETTABLE  R9 = R9[K22('UICameraScreen2World')]
  0043  MOVE      R10 = R0
  0044  CALL      R9 = call(R9, 1 args, 1 rets)
  0045  GETTABUP  R10 = _ENV[K4('RewardApi')]
  0046  GETTABLE  R10 = R10[K23('AcquireRewardsInView')]
  0047  NEWTABLE  R11 = {} (1 items)
  0048  NEWTABLE  R12 = {} (0 items)
  0049  GETTABUP  R13 = _ENV[K24('PROPERTY_TYPE')]
  0050  SETTABLE  R12[R13] = R2
  0051  GETTABUP  R13 = _ENV[K25('PROPERTY_COUNT')]
  0052  SETTABLE  R12[R13] = K3(1)
  0053  SETLIST   setlist R11[B=1,C=1]
  0054  NEWTABLE  R12 = {} (0 items)
  0055  NEWTABLE  R13 = {} (1 items)
  0056  MOVE      R14 = R0
  0057  SETLIST   setlist R13[B=1,C=1]
  0058  SETTABLE  R12[K26('arrWorldPos')] = R13
  0059  SETTABLE  R12[K27('eventLock')] = K28(true)
  0060  SELF      R14 = R6[K30('GetCacheElementScale')] (self)
  0061  CALL      R13 = call(R13, 1 args, 1 rets)
  0062  SETTABLE  R12[K29('spriteScale')] = R13
  0063  GETTABUP  R13 = _ENV[K31('ERewardScene')]
  0064  GETTABLE  R13 = R13[K32('Other')]
  0065  CALL      R10 = call(R10, 0 args, 3 rets)
  0066  LOADBOOL  R10 = true
  0067  RETURN    return R10..R9
  0068  RETURN    return R0..R-1
