	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cbs_av1_get_payload_bytes_left
_cbs_av1_get_payload_bytes_left:        ## @cbs_av1_get_payload_bytes_left
	.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
	movl	(%rdi), %eax
	movl	%eax, -28(%rbp)
	leaq	-28(%rbp), %rdi
	callq	_get_bits_left
	cmpl	$8, %eax
	jl	LBB0_1
## %bb.3:
	xorl	%ebx, %ebx
	leaq	-28(%rbp), %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	testq	%rax, %rax
	cmovneq	%rbx, %r15
	incq	%rbx
	movq	%r14, %rdi
	callq	_get_bits_left
	cmpl	$7, %eax
	jg	LBB0_4
	jmp	LBB0_2
LBB0_1:
	xorl	%r15d, %r15d
LBB0_2:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cbs_av1_get_payload_bytes_left
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cbs_av1_get_payload_bytes_left
_cbs_av1_get_payload_bytes_left:        ; @cbs_av1_get_payload_bytes_left
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w8, [x0]
	str	w8, [sp, #12]
	add	x0, sp, #12
	bl	_get_bits_left
	cmp	w0, #8
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
	mov	x19, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	mov	w1, #8
	bl	_get_bits
	cmp	x0, #0
	csel	x19, x19, x20, eq
	add	x20, x20, #1
	add	x0, sp, #12
	bl	_get_bits_left
	cmp	w0, #7
	b.gt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cbs_av1_get_payload_bytes_left
.subsections_via_symbols
