	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function av1_parser_split
_av1_parser_split:                      ## @av1_parser_split
	.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
	xorl	%eax, %eax
	testl	%edx, %edx
	jle	LBB0_8
## %bb.1:
	movl	%edx, %r13d
	movq	%rdi, %r12
	movslq	%edx, %rax
	leaq	(%rsi,%rax,4), %r15
	leaq	-56(%rbp), %r14
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movq	%r12, %rcx
	callq	_ff_av1_extract_obu
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx
	movq	_AV1_OBU_FRAME_HEADER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_AV1_OBU_FRAME@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
	leaq	(%rbx,%rcx,4), %rbx
	subl	%eax, %r13d
	cmpq	%r15, %rbx
	jb	LBB0_2
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	subq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	shrq	$2, %rbx
	movl	%ebx, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV1_OBU_FRAME_HEADER,8,3       ## @AV1_OBU_FRAME_HEADER
	.comm	_AV1_OBU_FRAME,8,3              ## @AV1_OBU_FRAME
	.no_dead_strip	_av1_parser_split
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function av1_parser_split
_av1_parser_split:                      ; @av1_parser_split
	.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
	cmp	w2, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _AV1_OBU_FRAME_HEADER@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AV1_OBU_FRAME_HEADER@GOTPAGEOFF]
Lloh2:
	adrp	x24, _AV1_OBU_FRAME@GOTPAGE
Lloh3:
	ldr	x24, [x24, _AV1_OBU_FRAME@GOTPAGEOFF]
	mov	x22, x1
	add	x25, x1, w2, sxtw #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_ff_av1_extract_obu
	tbnz	w0, #31, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x23]
	ldr	x10, [x24]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, w0, uxtw #2
	sub	w20, w20, w0
	cmp	x22, x25
	b.lo	LBB0_2
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	sub	x8, x22, x19
	lsr	x0, x8, #2
LBB0_7:
                                        ; kill: def $w0 killed $w0 killed $x0
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AV1_OBU_FRAME_HEADER,8,3       ; @AV1_OBU_FRAME_HEADER
	.comm	_AV1_OBU_FRAME,8,3              ; @AV1_OBU_FRAME
	.no_dead_strip	_av1_parser_split
.subsections_via_symbols
