# UI_Window_Survey_SurveyTipWindowPopupHelper_697.luac
; fn @SurveyTipWindowPopupHelper.lua  line 0-0 np=0 va=1 ms=3 code=21 consts=9 upvals=1 protos=4
;   K[0]='SurveyTipWindowPopupHelper'
;   K[1]='setmetatable'
;   K[2]='BasePopupHelper'
;   K[3]='__index'
;   K[4]='Create'
;   K[5]='SurveyTipWindowPopupHelper'
;   K[6]='Init'
;   K[7]='_OnNeedOpenWindow'
;   K[8]='CheckPopup'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BasePopupHelper')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('SurveyTipWindowPopupHelper')] = R0
0005  GETTABUP  R0 = _ENV[K0('SurveyTipWindowPopupHelper')]
0006  GETTABUP  R1 = _ENV[K0('SurveyTipWindowPopupHelper')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('SurveyTipWindowPopupHelper')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Create')] = R1
0011  GETTABUP  R0 = _ENV[K5('SurveyTipWindowPopupHelper')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K6('Init')] = R1
0014  GETTABUP  R0 = _ENV[K5('SurveyTipWindowPopupHelper')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K7('_OnNeedOpenWindow')] = R1
0017  GETTABUP  R0 = _ENV[K5('SurveyTipWindowPopupHelper')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K8('CheckPopup')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [Create] ----------
  ; fn ?  line 4-8 np=0 va=0 ms=3 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='setmetatable'
  ;   K[1]='SurveyTipWindowPopupHelper'
  ;   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('SurveyTipWindowPopupHelper')]
  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 [Init] ----------
  ; fn ?  line 10-16 np=1 va=0 ms=6 code=16 consts=12 upvals=1 protos=0
  ;   K[0]='BasePopupHelper'
  ;   K[1]='Init'
  ;   K[2]='canPopWindow'
  ;   K[3]=false
  ;   K[4]='AddHandlerAndRecordMap'
  ;   K[5]='GM'
  ;   K[6]='SurveyModel'
  ;   K[7]='event'
  ;   K[8]='SurveyNeedOpen'
  ;   K[9]='obj'
  ;   K[10]='method'
  ;   K[11]='_OnNeedOpenWindow'
  ;   upvals: _ENV
  ;   locals: self(0-16)
  0000  GETTABUP  R1 = _ENV[K0('BasePopupHelper')]
  0001  GETTABLE  R1 = R1[K1('Init')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SETTABLE  R0[K2('canPopWindow')] = K3(false)
  0005  GETTABUP  R1 = _ENV[K4('AddHandlerAndRecordMap')]
  0006  GETTABUP  R2 = _ENV[K5('GM')]
  0007  GETTABLE  R2 = R2[K6('SurveyModel')]
  0008  GETTABLE  R2 = R2[K7('event')]
  0009  GETTABUP  R3 = _ENV[K8('SurveyNeedOpen')]
  0010  NEWTABLE  R4 = {} (0 items)
  0011  SETTABLE  R4[K9('obj')] = R0
  0012  GETTABLE  R5 = R0[K11('_OnNeedOpenWindow')]
  0013  SETTABLE  R4[K10('method')] = R5
  0014  CALL      R1 = call(R1, 0 args, 3 rets)
  0015  RETURN    return R0..R-1
; ---------- proto2 [_OnNeedOpenWindow] ----------
  ; fn ?  line 18-21 np=1 va=0 ms=4 code=5 consts=3 upvals=0 protos=0
  ;   K[0]='SetNeedCheckPopup'
  ;   K[1]='canPopWindow'
  ;   K[2]=true
  ;   locals: self(0-5)
  0000  SELF      R2 = R0[K0('SetNeedCheckPopup')] (self)
  0001  LOADBOOL  R3 = true
  0002  CALL      R1 = call(R1, 0 args, 2 rets)
  0003  SETTABLE  R0[K1('canPopWindow')] = K2(true)
  0004  RETURN    return R0..R-1
; ---------- proto3 [CheckPopup] ----------
  ; fn ?  line 23-29 np=1 va=0 ms=6 code=27 consts=11 upvals=1 protos=0
  ;   K[0]='canPopWindow'
  ;   K[1]='GM'
  ;   K[2]='SurveyModel'
  ;   K[3]='questionConfig'
  ;   K[4]=nil
  ;   K[5]=false
  ;   K[6]='UIPrefabConfigName'
  ;   K[7]='SurveyTipWindow'
  ;   K[8]='rewards'
  ;   K[9]='title'
  ;   K[10]='desc'
  ;   upvals: _ENV
  ;   locals: self(0-27)
  0000  GETTABLE  R1 = R0[K0('canPopWindow')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 8
  0003  GETTABUP  R1 = _ENV[K1('GM')]
  0004  GETTABLE  R1 = R1[K2('SurveyModel')]
  0005  GETTABLE  R1 = R1[K3('questionConfig')]
  0006  EQ        if R0 eq K4(nil)   -> -130292
  0007  JMP       (jump)   -> 9
  0008  RETURN    return R0..R-1
  0009  SETTABLE  R0[K0('canPopWindow')] = K5(false)
  0010  GETTABUP  R1 = _ENV[K6('UIPrefabConfigName')]
  0011  GETTABLE  R1 = R1[K7('SurveyTipWindow')]
  0012  NEWTABLE  R2 = {} (3 items)
  0013  GETTABUP  R3 = _ENV[K1('GM')]
  0014  GETTABLE  R3 = R3[K2('SurveyModel')]
  0015  GETTABLE  R3 = R3[K8('rewards')]
  0016  GETTABUP  R4 = _ENV[K1('GM')]
  0017  GETTABLE  R4 = R4[K2('SurveyModel')]
  0018  GETTABLE  R4 = R4[K3('questionConfig')]
  0019  GETTABLE  R4 = R4[K9('title')]
  0020  GETTABUP  R5 = _ENV[K1('GM')]
  0021  GETTABLE  R5 = R5[K2('SurveyModel')]
  0022  GETTABLE  R5 = R5[K3('questionConfig')]
  0023  GETTABLE  R5 = R5[K10('desc')]
  0024  SETLIST   setlist R2[B=1,C=3]
  0025  RETURN    return R1..R0
  0026  RETURN    return R0..R-1
