	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_consumed_bytes
_get_consumed_bytes:                    ## @get_consumed_bytes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	addq	$24, %rdi
	callq	_get_bits_count
	cmpq	$0, 16(%rbx)
	jne	LBB0_5
## %bb.1:
	movq	8(%rbx), %rdx
	cmpq	$0, 8(%rdx)
	je	LBB0_2
LBB0_5:
	movl	%r14d, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	addl	$7, %eax
	movl	%eax, %ecx
	sarl	$3, %ecx
	movq	_AV_CODEC_FLAG_TRUNCATED@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rdx)
	je	LBB0_4
## %bb.3:
	subl	(%rbx), %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	cmovgl	%ecx, %eax
	jmp	LBB0_6
LBB0_4:
	cmpl	$8, %eax
	movl	$1, %eax
	cmovbl	%eax, %ecx
	leal	10(%rcx), %eax
	cmpl	%r14d, %eax
	cmovgl	%r14d, %ecx
	movl	%ecx, %r14d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_FLAG_TRUNCATED,4,2    ## @AV_CODEC_FLAG_TRUNCATED
	.no_dead_strip	_get_consumed_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_consumed_bytes
_get_consumed_bytes:                    ; @get_consumed_bytes
	.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
	mov	x19, x1
	mov	x20, x0
	add	x0, x0, #24
	bl	_get_bits_count
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x10, [x20, #8]
	ldr	x8, [x10, #8]
	cbz	x8, LBB0_4
LBB0_2:
	mov	x0, x19
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	add	w9, w0, #7
	asr	w8, w9, #3
	ldr	w10, [x10]
Lloh0:
	adrp	x11, _AV_CODEC_FLAG_TRUNCATED@GOTPAGE
Lloh1:
	ldr	x11, [x11, _AV_CODEC_FLAG_TRUNCATED@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_6
; %bb.5:
	ldr	w9, [x20]
	sub	w8, w8, w9
	cmp	w8, #0
	csel	w0, w8, wzr, gt
	b	LBB0_3
LBB0_6:
	cmp	w9, #8
	csinc	w8, w8, wzr, hs
	add	w9, w8, #10
	cmp	w9, w19
	csel	w19, w19, w8, gt
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_FLAG_TRUNCATED,4,2    ; @AV_CODEC_FLAG_TRUNCATED
	.no_dead_strip	_get_consumed_bytes
.subsections_via_symbols
