	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_obu_header
_parse_obu_header:                      ## @parse_obu_header
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, %r15
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movl	%esi, %edi
	movl	$10, %esi
	callq	_FFMIN
	leaq	-44(%rbp), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_11
## %bb.1:
	leaq	-44(%rbp), %rdi
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_2
LBB0_10:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, (%r15)
	movq	%r14, %rdi
	callq	_get_bits1
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_get_bits1
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_skip_bits1
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_get_bits
	movl	%eax, (%r12)
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	16(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_skip_bits
	jmp	LBB0_5
LBB0_4:
	movq	16(%rbp), %rax
	movl	$0, (%rax)
	movl	$0, (%r12)
LBB0_5:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.6:
	leaq	-44(%rbp), %rdi
	callq	_leb128
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_7:
	notl	%ebx
	addl	%r13d, %ebx
LBB0_8:
	movl	%ebx, (%r14)
	leaq	-44(%rbp), %rdi
	callq	_get_bits_left
	testq	%rax, %rax
	js	LBB0_10
## %bb.9:
	leaq	-44(%rbp), %rdi
	callq	_get_bits_count
	movl	%eax, %ecx
	leal	7(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	addl	(%r14), %eax
	cmpl	%r13d, %eax
	jg	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_parse_obu_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_obu_header
_parse_obu_header:                      ; @parse_obu_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x22, x6
	mov	x23, x5
	mov	x24, x4
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x25, x0
	mov	x0, x1
	mov	w1, #10
	bl	_FFMIN
	mov	x2, x0
	add	x0, sp, #12
	mov	x1, x25
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_10
; %bb.1:
	add	x0, sp, #12
	bl	_get_bits1
	cbz	w0, LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_3:
	add	x0, sp, #12
	mov	w1, #4
	bl	_get_bits
	str	w0, [x24]
	add	x0, sp, #12
	bl	_get_bits1
	mov	x24, x0
	add	x0, sp, #12
	bl	_get_bits1
	mov	x25, x0
	add	x0, sp, #12
	bl	_skip_bits1
	cbz	w24, LBB0_6
; %bb.4:
	add	x0, sp, #12
	mov	w1, #3
	bl	_get_bits
	str	w0, [x23]
	add	x0, sp, #12
	mov	w1, #2
	bl	_get_bits
	str	w0, [x22]
	add	x0, sp, #12
	mov	w1, #3
	bl	_skip_bits
	cbz	w25, LBB0_7
LBB0_5:
	add	x0, sp, #12
	bl	_leb128
	b	LBB0_8
LBB0_6:
	str	wzr, [x22]
	str	wzr, [x23]
	cbnz	w25, LBB0_5
LBB0_7:
	mvn	w8, w24
	add	w0, w8, w19
LBB0_8:
	str	w0, [x20]
	add	x0, sp, #12
	bl	_get_bits_left
	tbnz	x0, #63, LBB0_2
; %bb.9:
	add	x0, sp, #12
	bl	_get_bits_count
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w8, w8, #3
	str	w8, [x21]
	ldr	w9, [x20]
Lloh3:
	adrp	x10, _AVERROR_INVALIDDATA@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	add	w8, w9, w8
	cmp	w8, w19
	csel	w0, w10, w8, gt
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_parse_obu_header
.subsections_via_symbols
