# ExtraBoardActivity_View_ExtraBoardPrompt_1034.luac
; fn @ExtraBoardPrompt.lua  line 0-0 np=0 va=1 ms=3 code=12 consts=5 upvals=1 protos=1
;   K[0]='ExtraBoardPrompt'
;   K[1]='setmetatable'
;   K[2]='Prompt'
;   K[3]='__index'
;   K[4]='Init'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('Prompt')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('ExtraBoardPrompt')] = R0
0005  GETTABUP  R0 = _ENV[K0('ExtraBoardPrompt')]
0006  GETTABUP  R1 = _ENV[K0('ExtraBoardPrompt')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('ExtraBoardPrompt')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 4-17 np=1 va=1 ms=12 code=42 consts=18 upvals=1 protos=0
  ;   K[0]='Prompt'
  ;   K[1]='Init'
  ;   K[2]='pairs'
  ;   K[3]='UIBoardActivityModel'
  ;   K[4]='GetAllUIBoardActivityDefinition'
  ;   K[5]='GM'
  ;   K[6]='UIManager'
  ;   K[7]='GetOpenedViewByName'
  ;   K[8]='MainWindowPrefabName'
  ;   K[9]=nil
  ;   K[10]='ActivityManager'
  ;   K[11]='GetModel'
  ;   K[12]='ItemDataModel'
  ;   K[13]='GetSpriteName'
  ;   K[14]='GetCommonPropertyType'
  ;   K[15]='m_iconImg'
  ;   K[16]='SpriteUtil'
  ;   K[17]='SetImage'
  ;   upvals: _ENV
  ;   locals: self(0-42), (for generator)(10-41), (for state)(10-41), (for control)(10-41), activityType(11-39), activityDefinition(11-39), adventureActivityMainWindow(16-39), model(23-39), activityTokenIcon(29-39)
  0000  GETTABUP  R1 = _ENV[K0('Prompt')]
  0001  GETTABLE  R1 = R1[K1('Init')]
  0002  MOVE      R2 = R0
  0003  VARARG    R3 = vararg(0)
  0004  CALL      R1 = call(R1, 0 args, -1 rets)
  0005  GETTABUP  R1 = _ENV[K2('pairs')]
  0006  GETTABUP  R2 = _ENV[K3('UIBoardActivityModel')]
  0007  GETTABLE  R2 = R2[K4('GetAllUIBoardActivityDefinition')]
  0008  CALL      R2 = call(R2, -1 args, 0 rets)
  0009  CALL      R1 = call(R1, 3 args, -1 rets)
  0010  JMP       (jump)   -> 39
  0011  GETTABUP  R6 = _ENV[K5('GM')]
  0012  GETTABLE  R6 = R6[K6('UIManager')]
  0013  SELF      R7 = R6[K7('GetOpenedViewByName')] (self)
  0014  GETTABLE  R8 = R5[K8('MainWindowPrefabName')]
  0015  CALL      R6 = call(R6, 1 args, 2 rets)
  0016  EQ        if R1 eq K9(nil)   -> -127717
  0017  JMP       (jump)   -> 39
  0018  GETTABUP  R7 = _ENV[K5('GM')]
  0019  GETTABLE  R7 = R7[K10('ActivityManager')]
  0020  SELF      R8 = R7[K11('GetModel')] (self)
  0021  MOVE      R9 = R0
  0022  CALL      R7 = call(R7, 1 args, 2 rets)
  0023  GETTABUP  R8 = _ENV[K5('GM')]
  0024  GETTABLE  R8 = R8[K12('ItemDataModel')]
  0025  SELF      R9 = R8[K13('GetSpriteName')] (self)
  0026  SELF      R11 = R7[K14('GetCommonPropertyType')] (self)
  0027  CALL      R10 = call(R10, -1 args, 1 rets)
  0028  CALL      R8 = call(R8, 1 args, -1 rets)
  0029  EQ        if R1 eq K9(nil)   -> -126680
  0030  JMP       (jump)   -> 39
  0031  GETTABLE  R9 = R0[K15('m_iconImg')]
  0032  EQ        if R1 eq K9(nil)   -> -126165
  0033  JMP       (jump)   -> 39
  0034  GETTABUP  R9 = _ENV[K16('SpriteUtil')]
  0035  GETTABLE  R9 = R9[K17('SetImage')]
  0036  GETTABLE  R10 = R0[K15('m_iconImg')]
  0037  MOVE      R11 = R0
  0038  CALL      R9 = call(R9, 0 args, 2 rets)
  0039  TFORCALL  tforcall R1
  0040  TFORLOOP  tforloop R3(sBx=-30)   -> 11
  0041  RETURN    return R0..R-1
