# UI_UIFramework_CGPlayer_262.luac
; fn @CGPlayer.lua  line 0-0 np=0 va=1 ms=2 code=18 consts=6 upvals=1 protos=4
;   K[0]='CGPlayer'
;   K[1]='__index'
;   K[2]='_Init'
;   K[3]='Play'
;   K[4]='Skip'
;   K[5]='IsPlayingVideo'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('CGPlayer')] = R0
0002  GETTABUP  R0 = _ENV[K0('CGPlayer')]
0003  GETTABUP  R1 = _ENV[K0('CGPlayer')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('CGPlayer')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('_Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('CGPlayer')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('Play')] = R1
0011  GETTABUP  R0 = _ENV[K0('CGPlayer')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('Skip')] = R1
0014  GETTABUP  R0 = _ENV[K0('CGPlayer')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('IsPlayingVideo')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [_Init] ----------
  ; fn ?  line 10-25 np=1 va=0 ms=8 code=50 consts=30 upvals=1 protos=0
  ;   K[0]='ScreenFitter'
  ;   K[1]='NeedNotch'
  ;   K[2]='GetNotchHeight'
  ;   K[3]='UIUtil'
  ;   K[4]='AddAnchoredPosition'
  ;   K[5]='m_button'
  ;   K[6]=0
  ;   K[7]='CS'
  ;   K[8]='UnityEngine'
  ;   K[9]='RenderTexture'
  ;   K[10]=1080
  ;   K[11]=1920
  ;   K[12]='GM'
  ;   K[13]='UIManager'
  ;   K[14]='GetCanvasSize'
  ;   K[15]='m_render'
  ;   K[16]='transform'
  ;   K[17]='SetLocalScale'
  ;   K[18]='math'
  ;   K[19]='min'
  ;   K[20]='x'
  ;   K[21]='y'
  ;   K[22]='texture'
  ;   K[23]='m_video'
  ;   K[24]='targetTexture'
  ;   K[25]='m_renderTexture'
  ;   K[26]='gameObject'
  ;   K[27]='SetActive'
  ;   K[28]='ConfigModel'
  ;   K[29]='CanCGSkip'
  ;   upvals: _ENV
  ;   locals: self(0-50), notchHeight(8-14), tex(21-50), size(25-50)
  0000  GETTABUP  R1 = _ENV[K0('ScreenFitter')]
  0001  GETTABLE  R1 = R1[K1('NeedNotch')]
  0002  CALL      R1 = call(R1, 1 args, 0 rets)
  0003  TEST      if not R1 then   -> -131067
  0004  JMP       (jump)   -> 14
  0005  GETTABUP  R1 = _ENV[K0('ScreenFitter')]
  0006  GETTABLE  R1 = R1[K2('GetNotchHeight')]
  0007  CALL      R1 = call(R1, 1 args, 0 rets)
  0008  GETTABUP  R2 = _ENV[K3('UIUtil')]
  0009  GETTABLE  R2 = R2[K4('AddAnchoredPosition')]
  0010  GETTABLE  R3 = R0[K5('m_button')]
  0011  LOADK     R4 = K6 0
  0012  UNM       R5 = unm R0
  0013  CALL      R2 = call(R2, 0 args, 3 rets)
  0014  GETTABUP  R1 = _ENV[K7('CS')]
  0015  GETTABLE  R1 = R1[K8('UnityEngine')]
  0016  GETTABLE  R1 = R1[K9('RenderTexture')]
  0017  LOADK     R2 = K10 1080
  0018  LOADK     R3 = K11 1920
  0019  LOADK     R4 = K6 0
  0020  CALL      R1 = call(R1, 1 args, 3 rets)
  0021  GETTABUP  R2 = _ENV[K12('GM')]
  0022  GETTABLE  R2 = R2[K13('UIManager')]
  0023  SELF      R3 = R2[K14('GetCanvasSize')] (self)
  0024  CALL      R2 = call(R2, 1 args, 1 rets)
  0025  GETTABLE  R3 = R0[K15('m_render')]
  0026  GETTABLE  R3 = R3[K16('transform')]
  0027  SELF      R4 = R3[K17('SetLocalScale')] (self)
  0028  GETTABUP  R5 = _ENV[K18('math')]
  0029  GETTABLE  R5 = R5[K19('min')]
  0030  GETTABLE  R6 = R2[K20('x')]
  0031  DIV       R6 = K10(1080) div R6
  0032  GETTABLE  R7 = R2[K21('y')]
  0033  DIV       R7 = K11(1920) div R7
  0034  CALL      R5 = call(R5, -1 args, 2 rets)
  0035  CALL      R3 = call(R3, 0 args, -1 rets)
  0036  GETTABLE  R3 = R0[K15('m_render')]
  0037  SETTABLE  R3[K22('texture')] = R1
  0038  GETTABLE  R3 = R0[K23('m_video')]
  0039  SETTABLE  R3[K24('targetTexture')] = R1
  0040  SETTABLE  R0[K25('m_renderTexture')] = R1
  0041  GETTABLE  R3 = R0[K5('m_button')]
  0042  GETTABLE  R3 = R3[K26('gameObject')]
  0043  SELF      R4 = R3[K27('SetActive')] (self)
  0044  GETTABUP  R5 = _ENV[K12('GM')]
  0045  GETTABLE  R5 = R5[K28('ConfigModel')]
  0046  SELF      R6 = R5[K29('CanCGSkip')] (self)
  0047  CALL      R5 = call(R5, -1 args, 1 rets)
  0048  CALL      R3 = call(R3, 0 args, -1 rets)
  0049  RETURN    return R0..R-1
; ---------- proto1 [Play] ----------
  ; fn ?  line 27-43 np=3 va=0 ms=7 code=21 consts=11 upvals=1 protos=2
  ;   K[0]='_Init'
  ;   K[1]='m_callback'
  ;   K[2]='m_video'
  ;   K[3]='url'
  ;   K[4]='loopPointReached'
  ;   K[5]='+'
  ;   K[6]='errorReceived'
  ;   K[7]='Play'
  ;   K[8]='m_render'
  ;   K[9]='enabled'
  ;   K[10]=true
  ;   upvals: _ENV
  ;   locals: self(0-21), url(0-21), callback(0-21)
  0000  SELF      R4 = R0[K0('_Init')] (self)
  0001  CALL      R3 = call(R3, 0 args, 1 rets)
  0002  SETTABLE  R0[K1('m_callback')] = R2
  0003  GETTABLE  R3 = R0[K2('m_video')]
  0004  SETTABLE  R3[K3('url')] = R1
  0005  GETTABLE  R3 = R0[K2('m_video')]
  0006  SELF      R4 = R3[K4('loopPointReached')] (self)
  0007  LOADK     R5 = K5 '+'
  0008  CLOSURE   R6 = closure proto0
  0009  CALL      R3 = call(R3, 0 args, 3 rets)
  0010  GETTABLE  R3 = R0[K2('m_video')]
  0011  SELF      R4 = R3[K6('errorReceived')] (self)
  0012  LOADK     R5 = K5 '+'
  0013  CLOSURE   R6 = closure proto1
  0014  CALL      R3 = call(R3, 0 args, 3 rets)
  0015  GETTABLE  R3 = R0[K2('m_video')]
  0016  SELF      R4 = R3[K7('Play')] (self)
  0017  CALL      R3 = call(R3, 0 args, 1 rets)
  0018  GETTABLE  R3 = R0[K8('m_render')]
  0019  SETTABLE  R3[K9('enabled')] = K10(true)
  0020  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 31-35 np=1 va=0 ms=3 code=11 consts=5 upvals=3 protos=0
    ;   K[0]='Object'
    ;   K[1]='Destroy'
    ;   K[2]='gameObject'
    ;   K[3]='m_renderTexture'
    ;   K[4]='Release'
    ;   upvals: _ENV, self, callback
    ;   locals: vp(0-11)
    0000  GETTABUP  R1 = _ENV[K0('Object')]
    0001  GETTABLE  R1 = R1[K1('Destroy')]
    0002  GETTABUP  R2 = self[K2('gameObject')]
    0003  CALL      R1 = call(R1, 0 args, 1 rets)
    0004  GETTABUP  R1 = self[K3('m_renderTexture')]
    0005  SELF      R2 = R1[K4('Release')] (self)
    0006  CALL      R1 = call(R1, 0 args, 1 rets)
    0007  GETUPVAL  R1 = _ENV
    0008  LOADBOOL  R2 = true
    0009  CALL      R1 = call(R1, 0 args, 1 rets)
    0010  RETURN    return R0..R-1
  ; ---------- proto1 [] ----------
    ; fn ?  line 36-40 np=2 va=0 ms=5 code=12 consts=5 upvals=3 protos=0
    ;   K[0]='Object'
    ;   K[1]='Destroy'
    ;   K[2]='gameObject'
    ;   K[3]='m_renderTexture'
    ;   K[4]='Release'
    ;   upvals: _ENV, self, callback
    ;   locals: player(0-12), msg(0-12)
    0000  GETTABUP  R2 = _ENV[K0('Object')]
    0001  GETTABLE  R2 = R2[K1('Destroy')]
    0002  GETTABUP  R3 = self[K2('gameObject')]
    0003  CALL      R2 = call(R2, 0 args, 1 rets)
    0004  GETTABUP  R2 = self[K3('m_renderTexture')]
    0005  SELF      R3 = R2[K4('Release')] (self)
    0006  CALL      R2 = call(R2, 0 args, 1 rets)
    0007  GETUPVAL  R2 = _ENV
    0008  LOADBOOL  R3 = false
    0009  MOVE      R4 = R0
    0010  CALL      R2 = call(R2, 0 args, 2 rets)
    0011  RETURN    return R0..R-1
; ---------- proto2 [Skip] ----------
  ; fn ?  line 45-50 np=1 va=0 ms=3 code=14 consts=8 upvals=1 protos=0
  ;   K[0]='m_video'
  ;   K[1]='Stop'
  ;   K[2]='Object'
  ;   K[3]='Destroy'
  ;   K[4]='gameObject'
  ;   K[5]='m_renderTexture'
  ;   K[6]='Release'
  ;   K[7]='m_callback'
  ;   upvals: _ENV
  ;   locals: self(0-14)
  0000  GETTABLE  R1 = R0[K0('m_video')]
  0001  SELF      R2 = R1[K1('Stop')] (self)
  0002  CALL      R1 = call(R1, 0 args, 1 rets)
  0003  GETTABUP  R1 = _ENV[K2('Object')]
  0004  GETTABLE  R1 = R1[K3('Destroy')]
  0005  GETTABLE  R2 = R0[K4('gameObject')]
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  GETTABLE  R1 = R0[K5('m_renderTexture')]
  0008  SELF      R2 = R1[K6('Release')] (self)
  0009  CALL      R1 = call(R1, 0 args, 1 rets)
  0010  GETTABLE  R1 = R0[K7('m_callback')]
  0011  LOADBOOL  R2 = true
  0012  CALL      R1 = call(R1, 0 args, 1 rets)
  0013  RETURN    return R0..R-1
; ---------- proto3 [IsPlayingVideo] ----------
  ; fn ?  line 52-54 np=1 va=0 ms=2 code=7 consts=2 upvals=0 protos=0
  ;   K[0]='m_video'
  ;   K[1]='isPlaying'
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_video')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 5
  0003  GETTABLE  R1 = R0[K0('m_video')]
  0004  GETTABLE  R1 = R1[K1('isPlaying')]
  0005  RETURN    return R1..R0
  0006  RETURN    return R0..R-1
