	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter_frame
_filter_frame:                          ## @filter_frame
	.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	%rsi, %r15
	movq	%rsi, -48(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %r13
	movq	(%rcx), %rbx
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_av_frame_copy_props
	cmpl	$0, (%r13)
	jle	LBB0_11
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movl	(%rcx,%rbx,4), %edi
	movl	(%rax,%rbx,4), %esi
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	movl	(%rcx,%rbx,4), %edx
	movl	(%rax,%rbx,4), %ecx
	movq	8(%r13), %r9
	movl	16(%r13), %r8d
	leal	7(%r8), %eax
	addl	$14, %r8d
	testl	%eax, %eax
	cmovnsl	%eax, %r8d
	sarl	$3, %r8d
	imull	(%r9,%rbx,4), %r8d
	movq	24(%r13), %rax
	movl	(%rax,%rbx,4), %r9d
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_av_image_copy_plane
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r13), %eax
	btl	%ebx, %eax
	jae	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$8, 16(%r13)
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	movl	(%rcx,%rbx,4), %esi
	movq	8(%r12), %rcx
	movl	(%rcx,%rbx,4), %edx
	movl	36(%r13), %ecx
	movl	32(%r13), %r8d
	movq	8(%r13), %rdi
	movl	(%rdi,%rbx,4), %r9d
	movq	24(%r13), %rdi
	movl	(%rdi,%rbx,4), %r10d
	movl	(%rax,%rbx,4), %r14d
	jg	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rdi
	movl	(%rdi,%rbx,4), %r11d
	subq	$8, %rsp
	movq	%r13, %rdi
	pushq	%r11
	pushq	%r14
	pushq	%r10
	callq	_bilateral_byte
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, %r11d
	shrl	$31, %r11d
	addl	%r14d, %r11d
	sarl	%r11d
	movq	(%r12), %rdi
	movl	(%rdi,%rbx,4), %edi
	movl	%edi, %eax
	shrl	$31, %eax
	addl	%edi, %eax
	sarl	%eax
	subq	$8, %rsp
	movq	%r13, %rdi
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_bilateral_word
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$32, %rsp
	jmp	LBB0_10
LBB0_11:
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_ff_filter_frame
	jmp	LBB0_12
LBB0_1:
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_filter_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_frame
_filter_frame:                          ; @filter_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	str	x1, [sp, #8]
	ldr	x8, [x0, #8]
	ldp	x8, x21, [x8]
	ldr	x19, [x8]
	ldp	w2, w1, [x19]
	mov	x0, x19
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_10
; %bb.1:
	mov	x22, x0
	mov	x1, x20
	bl	_av_frame_copy_props
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x23, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	lsl	x8, x23, #2
	ldp	x10, x9, [x22]
	ldr	w0, [x9, x8]
	ldr	w1, [x10, x8]
	ldp	x10, x9, [x20]
	ldr	w2, [x9, x8]
	ldr	w3, [x10, x8]
	ldr	x9, [x21, #8]
	ldr	w9, [x9, x8]
	ldr	w10, [x21, #16]
	add	w11, w10, #7
	add	w10, w10, #14
	cmp	w11, #0
	csel	w10, w10, w11, lt
	asr	w10, w10, #3
	mul	w4, w10, w9
	ldr	x9, [x21, #24]
	ldr	w5, [x9, x8]
	bl	_av_image_copy_plane
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x21]
	cmp	x23, x8
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, #4]
	lsr	w8, w8, w23
	tbz	w8, #0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	lsl	x8, x23, #2
	ldp	x10, x9, [x20]
	ldr	w1, [x9, x8]
	ldr	x9, [x22, #8]
	ldr	w2, [x9, x8]
	ldr	w9, [x21, #16]
	ldp	w4, w3, [x21, #32]
	ldr	x11, [x21, #8]
	ldr	w5, [x11, x8]
	ldr	x11, [x21, #24]
	ldr	w6, [x11, x8]
	ldr	w7, [x10, x8]
	cmp	w9, #8
	b.gt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22]
	ldr	w8, [x8, x23, lsl #2]
	str	w8, [sp]
	mov	x0, x21
	bl	_bilateral_byte
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w7, #0
	cinc	w8, w7, lt
	asr	w7, w8, #1
	ldr	x8, [x22]
	ldr	w8, [x8, x23, lsl #2]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	str	w8, [sp]
	mov	x0, x21
	bl	_bilateral_word
	b	LBB0_4
LBB0_9:
	add	x0, sp, #8
	bl	_av_frame_free
	mov	x0, x19
	mov	x1, x22
	bl	_ff_filter_frame
	b	LBB0_11
LBB0_10:
	add	x0, sp, #8
	bl	_av_frame_free
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_11:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_filter_frame
.subsections_via_symbols
