	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_log2_res_scale_abs     ## -- Begin function ff_hevc_log2_res_scale_abs
	.p2align	4, 0x90
_ff_hevc_log2_res_scale_abs:            ## @ff_hevc_log2_res_scale_abs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	shll	$2, %esi
	movslq	%esi, %rbx
	movq	_elem_offset@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_LOG2_RES_SCALE_ABS@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	addq	%rbx, %rdi
	callq	_GET_CABAC
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%r14), %rax
	movq	(%r15), %rcx
	movq	%rbx, %rdi
	orq	$1, %rdi
	addq	(%rax,%rcx,8), %rdi
	callq	_GET_CABAC
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%r14), %rax
	movq	(%r15), %rcx
	movq	%rbx, %rdi
	orq	$2, %rdi
	addq	(%rax,%rcx,8), %rdi
	callq	_GET_CABAC
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	(%r14), %rax
	movq	(%r15), %rcx
	orq	$3, %rbx
	addq	(%rax,%rcx,8), %rbx
	movq	%rbx, %rdi
	callq	_GET_CABAC
	cmpq	$1, %rax
	movl	$4, %eax
	sbbl	$0, %eax
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_3:
	movl	$1, %eax
	jmp	LBB0_7
LBB0_5:
	movl	$2, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_elem_offset,8,3                ## @elem_offset
	.comm	_LOG2_RES_SCALE_ABS,8,3         ## @LOG2_RES_SCALE_ABS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_log2_res_scale_abs     ; -- Begin function ff_hevc_log2_res_scale_abs
	.p2align	2
_ff_hevc_log2_res_scale_abs:            ; @ff_hevc_log2_res_scale_abs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	lsl	w8, w1, #2
	sxtw	x19, w8
Lloh0:
	adrp	x20, _elem_offset@GOTPAGE
Lloh1:
	ldr	x20, [x20, _elem_offset@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x21, _LOG2_RES_SCALE_ABS@GOTPAGE
Lloh3:
	ldr	x21, [x21, _LOG2_RES_SCALE_ABS@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	add	x0, x8, x19
	bl	_GET_CABAC
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	orr	x9, x19, #0x1
	add	x0, x9, x8
	bl	_GET_CABAC
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	orr	x9, x19, #0x2
	add	x0, x9, x8
	bl	_GET_CABAC
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	orr	x9, x19, #0x3
	add	x0, x9, x8
	bl	_GET_CABAC
	cmp	x0, #0
	mov	w8, #3
	cinc	w0, w8, ne
	b	LBB0_6
LBB0_4:
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #2
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_elem_offset,8,3                ; @elem_offset
	.comm	_LOG2_RES_SCALE_ABS,8,3         ; @LOG2_RES_SCALE_ABS
.subsections_via_symbols
