	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_cu_qp_delta_abs        ## -- Begin function ff_hevc_cu_qp_delta_abs
	.p2align	4, 0x90
_ff_hevc_cu_qp_delta_abs:               ## @ff_hevc_cu_qp_delta_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_elem_offset@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_CU_QP_DELTA@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_GET_CABAC
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%r15), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdi
	incq	%rdi
	callq	_GET_CABAC
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%r15), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdi
	incq	%rdi
	callq	_GET_CABAC
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	(%r15), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdi
	incq	%rdi
	callq	_GET_CABAC
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	(%r15), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdi
	incq	%rdi
	callq	_GET_CABAC
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	(%r14), %rdi
	callq	_get_cabac_bypass
	movl	$5, %r15d
	testl	%eax, %eax
	je	LBB0_25
## %bb.11:
	movq	(%r14), %rdi
	callq	_get_cabac_bypass
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movq	(%r14), %rdi
	callq	_get_cabac_bypass
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movq	(%r14), %rdi
	callq	_get_cabac_bypass
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movq	(%r14), %rdi
	callq	_get_cabac_bypass
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:
	movq	(%r14), %rdi
	callq	_get_cabac_bypass
	testl	%eax, %eax
	je	LBB0_20
## %bb.21:
	movq	(%r14), %rdi
	callq	_get_cabac_bypass
	testl	%eax, %eax
	je	LBB0_22
## %bb.27:
	movl	8(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	$7, %ecx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_26
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_25
LBB0_3:
	movl	$1, %r15d
	jmp	LBB0_25
LBB0_5:
	movl	$2, %r15d
	jmp	LBB0_25
LBB0_7:
	movl	$3, %r15d
	jmp	LBB0_25
LBB0_9:
	movl	$4, %r15d
	jmp	LBB0_25
LBB0_12:
	movl	$1, %ebx
	movl	$1, %r12d
	jmp	LBB0_23
LBB0_14:
	movl	$3, %r12d
	movl	$2, %ebx
	jmp	LBB0_23
LBB0_16:
	movl	$7, %r12d
	movl	$3, %ebx
	jmp	LBB0_23
LBB0_18:
	movl	$15, %r12d
	movl	$4, %ebx
	jmp	LBB0_23
LBB0_20:
	movl	$31, %r12d
	movl	$5, %ebx
	jmp	LBB0_23
LBB0_22:
	movl	$63, %r12d
	movl	$6, %ebx
LBB0_23:
	decl	%ebx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	callq	_get_cabac_bypass
	movl	%ebx, %ecx
	shll	%cl, %eax
	addl	%eax, %r12d
	addl	$-1, %ebx
	jb	LBB0_24
LBB0_25:
	addl	%r12d, %r15d
LBB0_26:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_elem_offset,8,3                ## @elem_offset
	.comm	_CU_QP_DELTA,8,3                ## @CU_QP_DELTA
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CABAC_MAX_BIN : %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_cu_qp_delta_abs        ; -- Begin function ff_hevc_cu_qp_delta_abs
	.p2align	2
_ff_hevc_cu_qp_delta_abs:               ; @ff_hevc_cu_qp_delta_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
	mov	x19, x0
Lloh0:
	adrp	x20, _elem_offset@GOTPAGE
Lloh1:
	ldr	x20, [x20, _elem_offset@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x21, _CU_QP_DELTA@GOTPAGE
Lloh3:
	ldr	x21, [x21, _CU_QP_DELTA@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x0, [x8, x9, lsl #3]
	bl	_GET_CABAC
	cbz	x0, LBB0_13
; %bb.1:
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	add	x0, x8, #1
	bl	_GET_CABAC
	cbz	x0, LBB0_14
; %bb.2:
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	add	x0, x8, #1
	bl	_GET_CABAC
	cbz	x0, LBB0_15
; %bb.3:
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	add	x0, x8, #1
	bl	_GET_CABAC
	cbz	x0, LBB0_16
; %bb.4:
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	add	x0, x8, #1
	bl	_GET_CABAC
	cbz	x0, LBB0_17
; %bb.5:
	ldr	x0, [x19]
	bl	_get_cabac_bypass
	cbz	w0, LBB0_18
; %bb.6:
	ldr	x0, [x19]
	bl	_get_cabac_bypass
	mov	x20, x0
	cbz	w0, LBB0_19
; %bb.7:
	ldr	x0, [x19]
	bl	_get_cabac_bypass
	cbz	w0, LBB0_20
; %bb.8:
	ldr	x0, [x19]
	bl	_get_cabac_bypass
	cbz	w0, LBB0_21
; %bb.9:
	ldr	x0, [x19]
	bl	_get_cabac_bypass
	cbz	w0, LBB0_22
; %bb.10:
	ldr	x0, [x19]
	bl	_get_cabac_bypass
	cbz	w0, LBB0_23
; %bb.11:
	ldr	x0, [x19]
	bl	_get_cabac_bypass
	cbz	w0, LBB0_24
; %bb.12:
	ldr	w0, [x19, #8]
Lloh4:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	w3, #7
	bl	_av_log
Lloh9:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_33
LBB0_13:
	mov	w8, #0
	mov	w21, #0
	b	LBB0_32
LBB0_14:
	mov	w21, #0
	mov	w8, #1
	b	LBB0_32
LBB0_15:
	mov	w21, #0
	mov	w8, #2
	b	LBB0_32
LBB0_16:
	mov	w21, #0
	mov	w8, #3
	b	LBB0_32
LBB0_17:
	mov	w21, #0
	mov	w8, #4
	b	LBB0_32
LBB0_18:
	mov	w21, #0
	b	LBB0_31
LBB0_19:
	mov	w22, #0
	mov	w21, #1
	b	LBB0_25
LBB0_20:
	mov	w21, #3
	mov	w22, #1
	b	LBB0_25
LBB0_21:
	mov	w21, #7
	mov	w22, #2
	b	LBB0_25
LBB0_22:
	mov	w21, #15
	mov	w22, #3
	b	LBB0_25
LBB0_23:
	mov	w21, #31
	mov	w22, #4
	b	LBB0_25
LBB0_24:
	mov	w21, #63
	mov	w22, #5
LBB0_25:
	ldr	x0, [x19]
	bl	_get_cabac_bypass
	lsl	w8, w0, w22
	add	w21, w8, w21
	cbz	w20, LBB0_31
; %bb.26:
	sub	w20, w22, #1
	ldr	x0, [x19]
	bl	_get_cabac_bypass
	lsl	w8, w0, w20
	add	w21, w8, w21
	cbz	w20, LBB0_31
; %bb.27:
	sub	w20, w22, #2
	ldr	x0, [x19]
	bl	_get_cabac_bypass
	lsl	w8, w0, w20
	add	w21, w8, w21
	cbz	w20, LBB0_31
; %bb.28:
	sub	w20, w22, #3
	ldr	x0, [x19]
	bl	_get_cabac_bypass
	lsl	w8, w0, w20
	add	w21, w8, w21
	cbz	w20, LBB0_31
; %bb.29:
	sub	w20, w22, #4
	ldr	x0, [x19]
	bl	_get_cabac_bypass
	lsl	w8, w0, w20
	add	w21, w8, w21
	cbz	w20, LBB0_31
; %bb.30:
	sub	w20, w22, #5
	ldr	x0, [x19]
	bl	_get_cabac_bypass
	lsl	w8, w0, w20
	add	w21, w8, w21
LBB0_31:
	mov	w8, #5
LBB0_32:
	add	w0, w21, w8
LBB0_33:
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_elem_offset,8,3                ; @elem_offset
	.comm	_CU_QP_DELTA,8,3                ; @CU_QP_DELTA
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CABAC_MAX_BIN : %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
.subsections_via_symbols
