# UI_Animation_PopupAvatarAnimation_236.luac
; fn @PopupAvatarAnimation.lua  line 0-0 np=0 va=1 ms=2 code=15 consts=5 upvals=1 protos=3
;   K[0]='PopupAvatarAnimation'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='OnDestroy'
;   K[4]='StopOnComplete'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('PopupAvatarAnimation')] = R0
0002  GETTABUP  R0 = _ENV[K0('PopupAvatarAnimation')]
0003  GETTABUP  R1 = _ENV[K0('PopupAvatarAnimation')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('PopupAvatarAnimation')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('PopupAvatarAnimation')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('OnDestroy')] = R1
0011  GETTABUP  R0 = _ENV[K0('PopupAvatarAnimation')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('StopOnComplete')] = R1
0014  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 5-10 np=2 va=0 ms=8 code=28 consts=10 upvals=1 protos=0
  ;   K[0]='m_animation'
  ;   K[1]='color'
  ;   K[2]='CSColor'
  ;   K[3]='white'
  ;   K[4]='AnimationState'
  ;   K[5]='AddAnimation'
  ;   K[6]=0
  ;   K[7]='_popup'
  ;   K[8]='_idle'
  ;   K[9]='Update'
  ;   upvals: _ENV
  ;   locals: self(0-28), expression(0-28)
  0000  GETTABLE  R2 = R0[K0('m_animation')]
  0001  GETTABUP  R3 = _ENV[K2('CSColor')]
  0002  GETTABLE  R3 = R3[K3('white')]
  0003  SETTABLE  R2[K1('color')] = R3
  0004  GETTABLE  R2 = R0[K0('m_animation')]
  0005  GETTABLE  R2 = R2[K4('AnimationState')]
  0006  SELF      R3 = R2[K5('AddAnimation')] (self)
  0007  LOADK     R4 = K6 0
  0008  MOVE      R5 = R0
  0009  LOADK     R6 = K7 '_popup'
  0010  CONCAT    R5 = concat(R5..R5)
  0011  LOADBOOL  R6 = false
  0012  LOADK     R7 = K6 0
  0013  CALL      R2 = call(R2, 0 args, 5 rets)
  0014  GETTABLE  R2 = R0[K0('m_animation')]
  0015  GETTABLE  R2 = R2[K4('AnimationState')]
  0016  SELF      R3 = R2[K5('AddAnimation')] (self)
  0017  LOADK     R4 = K6 0
  0018  MOVE      R5 = R0
  0019  LOADK     R6 = K8 '_idle'
  0020  CONCAT    R5 = concat(R5..R5)
  0021  LOADBOOL  R6 = true
  0022  LOADK     R7 = K6 0
  0023  CALL      R2 = call(R2, 0 args, 5 rets)
  0024  GETTABLE  R2 = R0[K0('m_animation')]
  0025  SELF      R3 = R2[K9('Update')] (self)
  0026  CALL      R2 = call(R2, 0 args, 1 rets)
  0027  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 12-16 np=1 va=0 ms=5 code=10 consts=6 upvals=0 protos=0
  ;   K[0]='m_onComplete'
  ;   K[1]=nil
  ;   K[2]='m_animation'
  ;   K[3]='AnimationState'
  ;   K[4]='Complete'
  ;   K[5]='-'
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('m_onComplete')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 9
  0003  GETTABLE  R1 = R0[K2('m_animation')]
  0004  GETTABLE  R1 = R1[K3('AnimationState')]
  0005  SELF      R2 = R1[K4('Complete')] (self)
  0006  LOADK     R3 = K5 '-'
  0007  GETTABLE  R4 = R0[K0('m_onComplete')]
  0008  CALL      R1 = call(R1, 0 args, 3 rets)
  0009  RETURN    return R0..R-1
; ---------- proto2 [StopOnComplete] ----------
  ; fn ?  line 18-24 np=1 va=0 ms=5 code=9 consts=5 upvals=0 protos=1
  ;   K[0]='m_onComplete'
  ;   K[1]='m_animation'
  ;   K[2]='AnimationState'
  ;   K[3]='Complete'
  ;   K[4]='+'
  ;   locals: self(0-9)
  0000  CLOSURE   R1 = closure proto0
  0001  SETTABLE  R0[K0('m_onComplete')] = R1
  0002  GETTABLE  R1 = R0[K1('m_animation')]
  0003  GETTABLE  R1 = R1[K2('AnimationState')]
  0004  SELF      R2 = R1[K3('Complete')] (self)
  0005  LOADK     R3 = K4 '+'
  0006  GETTABLE  R4 = R0[K0('m_onComplete')]
  0007  CALL      R1 = call(R1, 0 args, 3 rets)
  0008  RETURN    return R0..R-1
  ; ---------- proto0 [m_onComplete] ----------
    ; fn ?  line 19-22 np=0 va=0 ms=2 code=7 consts=5 upvals=1 protos=0
    ;   K[0]='m_animation'
    ;   K[1]='AnimationState'
    ;   K[2]='ClearTracks'
    ;   K[3]='freeze'
    ;   K[4]=true
    ;   upvals: self
    0000  GETTABUP  R0 = self[K0('m_animation')]
    0001  GETTABLE  R0 = R0[K1('AnimationState')]
    0002  SELF      R1 = R0[K2('ClearTracks')] (self)
    0003  CALL      R0 = call(R0, 0 args, 1 rets)
    0004  GETTABUP  R0 = self[K0('m_animation')]
    0005  SETTABLE  R0[K3('freeze')] = K4(true)
    0006  RETURN    return R0..R-1
