	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ref_to_update
_ref_to_update:                         ## @ref_to_update
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_VP56_FRAME_CURRENT@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movl	%edx, %ebx
	movl	$2, %esi
	callq	_vp8_rac_get_uint
	cmpl	$2, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.4:
	movq	_VP56_FRAME_PREVIOUS@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_VP56_FRAME_GOLDEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%ebx, %eax
	jne	LBB0_9
## %bb.6:
	movq	_VP56_FRAME_GOLDEN2@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_VP56_FRAME_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_VP56_FRAME_CURRENT,4,2         ## @VP56_FRAME_CURRENT
	.comm	_VP56_FRAME_PREVIOUS,4,2        ## @VP56_FRAME_PREVIOUS
	.comm	_VP56_FRAME_GOLDEN,4,2          ## @VP56_FRAME_GOLDEN
	.comm	_VP56_FRAME_GOLDEN2,4,2         ## @VP56_FRAME_GOLDEN2
	.comm	_VP56_FRAME_NONE,4,2            ## @VP56_FRAME_NONE
	.no_dead_strip	_ref_to_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ref_to_update
_ref_to_update:                         ; @ref_to_update
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	w1, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _VP56_FRAME_CURRENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VP56_FRAME_CURRENT@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x19, x2
	mov	w1, #2
	bl	_vp8_rac_get_uint
	cmp	w0, #2
	b.eq	LBB0_7
; %bb.5:
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.6:
Lloh2:
	adrp	x8, _VP56_FRAME_PREVIOUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VP56_FRAME_PREVIOUS@GOTPAGEOFF]
	b	LBB0_2
LBB0_7:
Lloh4:
	adrp	x8, _VP56_FRAME_GOLDEN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VP56_FRAME_GOLDEN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _VP56_FRAME_GOLDEN2@GOTPAGE
Lloh8:
	ldr	x9, [x9, _VP56_FRAME_GOLDEN2@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w19
	csel	w0, w9, w8, eq
	b	LBB0_3
LBB0_8:
Lloh10:
	adrp	x8, _VP56_FRAME_NONE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VP56_FRAME_NONE@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VP56_FRAME_CURRENT,4,2         ; @VP56_FRAME_CURRENT
	.comm	_VP56_FRAME_PREVIOUS,4,2        ; @VP56_FRAME_PREVIOUS
	.comm	_VP56_FRAME_GOLDEN,4,2          ; @VP56_FRAME_GOLDEN
	.comm	_VP56_FRAME_GOLDEN2,4,2         ; @VP56_FRAME_GOLDEN2
	.comm	_VP56_FRAME_NONE,4,2            ; @VP56_FRAME_NONE
	.no_dead_strip	_ref_to_update
.subsections_via_symbols
