	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_av1_filter_obus             ## -- Begin function ff_av1_filter_obus
	.p2align	4, 0x90
_ff_av1_filter_obus:                    ## @ff_av1_filter_obus
	.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
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movslq	%edx, %rax
	leaq	(%rsi,%rax,4), %r12
	xorl	%r13d, %r13d
	leaq	-64(%rbp), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %eax
	leaq	(%rbx,%rax,4), %rbx
	cmpq	%r12, %rbx
	jae	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rsi
	subq	%rbx, %rsi
	shrq	$2, %rsi
	leaq	-60(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	leaq	-72(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movq	%r15, %r9
	callq	_parse_obu_header
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %eax
	andl	$-4, %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_avio_write
	addl	%r14d, %r13d
	jmp	LBB0_7
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_8
LBB0_4:
	movl	%r14d, %r13d
LBB0_8:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_av1_filter_obus             ; -- Begin function ff_av1_filter_obus
	.p2align	2
_ff_av1_filter_obus:                    ; @ff_av1_filter_obus
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	cmp	w2, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	mov	w19, #0
	add	x23, x1, w2, sxtw #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, w22, uxtw #2
	cmp	x20, x23
	b.hs	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x23, x20
	lsr	x1, x8, #2
	add	x2, sp, #28
	add	x3, sp, #24
	add	x4, sp, #20
	add	x5, sp, #16
	add	x6, sp, #12
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_parse_obu_header
	mov	x22, x0
	tbnz	w0, #31, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #20]
	and	w8, w8, #0xfffffffc
	cmp	w8, #128
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_avio_write
	add	w19, w22, w19
	b	LBB0_2
LBB0_6:
	mov	w19, #0
	b	LBB0_8
LBB0_7:
	mov	x19, x22
LBB0_8:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
