	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cbs_av1_read_subexp
_cbs_av1_read_subexp:                   ## @cbs_av1_read_subexp
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%r13, %rdi
	callq	_get_bits_count
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_1:
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
LBB0_3:
	xorl	%edi, %edi
	testq	%r15, %r15
	setg	%dil
	callq	_av_assert0
	leaq	-1(%r15), %rdi
	callq	_av_log2
	movq	%rax, %rbx
	addq	$-3, %rbx
	leaq	L_.str(%rip), %r8
	leaq	-96(%rbp), %r9
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	callq	_cbs_av1_read_increment
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %rax
	leaq	2(%rax), %r12
	movl	$1, %edx
	movl	%r12d, %ecx
	shll	%cl, %edx
	testq	%rax, %rax
	movslq	%edx, %r14
	cmoveq	%rax, %r14
	cmpq	%rbx, %rax
	jge	LBB0_7
## %bb.6:
	testq	%rax, %rax
	movl	$3, %eax
	cmoveq	%rax, %r12
	movq	%r12, %rdi
	callq	_MAX_UINT_BITS
                                        ## kill: def $eax killed $eax def $rax
	leaq	L_.str.1(%rip), %rcx
	leaq	-48(%rbp), %r9
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	$0
	callq	_ff_cbs_read_unsigned
	addq	$16, %rsp
	jmp	LBB0_8
LBB0_4:
	movl	%eax, %r12d
	jmp	LBB0_12
LBB0_7:
	subq	%r14, %r15
	leaq	L_.str.2(%rip), %rcx
	leaq	-48(%rbp), %r9
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	xorl	%r8d, %r8d
	callq	_cbs_av1_read_ns
LBB0_8:
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_12
## %bb.9:
	addq	-48(%rbp), %r14
	movq	%r14, -48(%rbp)
	cmpq	$0, (%rbx)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %r8
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %r9
	callq	_ff_cbs_trace_syntax_element
	movq	-48(%rbp), %r14
LBB0_11:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
LBB0_12:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"subexp_more_bits"

L_.str.1:                               ## @.str.1
	.asciz	"subexp_bits"

L_.str.2:                               ## @.str.2
	.asciz	"subexp_final_bits"

L_.str.3:                               ## @.str.3
	.space	1

	.no_dead_strip	_cbs_av1_read_subexp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cbs_av1_read_subexp
_cbs_av1_read_subexp:                   ; @cbs_av1_read_subexp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x25, x2
	mov	x24, x1
	mov	x22, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x24
	bl	_get_bits_count
	mov	x23, x0
	b	LBB0_3
LBB0_2:
                                        ; implicit-def: $w23
LBB0_3:
	cmp	x25, #0
	cset	w0, gt
	bl	_av_assert0
	sub	x0, x25, #1
	bl	_av_log2
	sub	x27, x0, #3
Lloh0:
	adrp	x4, l_.str@PAGE
Lloh1:
	add	x4, x4, l_.str@PAGEOFF
	mov	x5, sp
	mov	x0, x22
	mov	x1, x24
	mov	w2, #0
	mov	x3, x27
	bl	_cbs_av1_read_increment
	tbnz	w0, #31, LBB0_6
; %bb.4:
	ldr	x9, [sp]
	add	x8, x9, #2
	mov	w10, #1
	lsl	w10, w10, w8
	sxtw	x10, w10
	cmp	x9, #0
	csel	x28, xzr, x10, eq
	cmp	x9, x27
	b.ge	LBB0_7
; %bb.5:
	mov	w10, #3
	cmp	x9, #0
	csel	x25, x10, x8, eq
	mov	x0, x25
	bl	_MAX_UINT_BITS
	mov	x7, x0
Lloh2:
	adrp	x3, l_.str.1@PAGE
Lloh3:
	add	x3, x3, l_.str.1@PAGEOFF
	add	x5, sp, #8
	mov	x0, x22
	mov	x1, x24
	mov	x2, x25
	mov	x4, #0
	mov	w6, #0
	bl	_ff_cbs_read_unsigned
	mov	x26, x0
	tbz	w0, #31, LBB0_8
	b	LBB0_11
LBB0_6:
	mov	x26, x0
	b	LBB0_11
LBB0_7:
	sub	x2, x25, x28
Lloh4:
	adrp	x3, l_.str.2@PAGE
Lloh5:
	add	x3, x3, l_.str.2@PAGEOFF
	add	x5, sp, #8
	mov	x0, x22
	mov	x1, x24
	mov	x4, #0
	bl	_cbs_av1_read_ns
	mov	x26, x0
	tbnz	w0, #31, LBB0_11
LBB0_8:
	ldr	x8, [sp, #8]
	add	x5, x8, x28
	str	x5, [sp, #8]
	ldr	x8, [x22]
	cbz	x8, LBB0_10
; %bb.9:
Lloh6:
	adrp	x4, l_.str.3@PAGE
Lloh7:
	add	x4, x4, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	bl	_ff_cbs_trace_syntax_element
	ldr	x5, [sp, #8]
LBB0_10:
	str	x5, [x19]
LBB0_11:
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"subexp_more_bits"

l_.str.1:                               ; @.str.1
	.asciz	"subexp_bits"

l_.str.2:                               ; @.str.2
	.asciz	"subexp_final_bits"

l_.str.3:                               ; @.str.3
	.space	1

	.no_dead_strip	_cbs_av1_read_subexp
.subsections_via_symbols
