	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_av1_parse_seq_header        ## -- Begin function ff_av1_parse_seq_header
	.p2align	4, 0x90
_ff_av1_parse_seq_header:               ## @ff_av1_parse_seq_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	jle	LBB0_7
## %bb.1:
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %r13
	leaq	-44(%rbp), %r14
	leaq	-72(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-68(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r15, %rdi
	movl	%ebx, %esi
	leaq	-52(%rbp), %rdx
	movq	%r13, %rcx
	movq	%r14, %r8
	movq	%r12, %r9
	callq	_parse_obu_header
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, -44(%rbp)
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
	leaq	(%r15,%rcx,4), %r15
	subl	%eax, %ebx
	jg	LBB0_2
	jmp	LBB0_7
LBB0_4:
	movl	-52(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_7
## %bb.5:
	movslq	-48(%rbp), %rax
	leaq	(%r15,%rax,4), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_parse_sequence_header
	jmp	LBB0_8
LBB0_7:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_av1_parse_seq_header        ; -- Begin function ff_av1_parse_seq_header
	.p2align	2
_ff_av1_parse_seq_header:               ; @ff_av1_parse_seq_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cmp	w2, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #28
	add	x3, sp, #24
	add	x4, sp, #20
	add	x5, sp, #16
	add	x6, sp, #12
	mov	x0, x20
	mov	x1, x21
	bl	_parse_obu_header
	tbnz	w0, #31, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #20]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w21, w21, w0
	add	x20, x20, w0, uxtw #2
	cmp	w21, #0
	b.gt	LBB0_2
	b	LBB0_7
LBB0_5:
	ldr	w2, [sp, #28]
	cbz	w2, LBB0_7
; %bb.6:
	ldrsw	x8, [sp, #24]
	add	x1, x20, x8, lsl #2
	mov	x0, x19
	bl	_parse_sequence_header
	b	LBB0_8
LBB0_7:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
.subsections_via_symbols
