	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rsi, -80(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %r14
	movq	(%rcx), %r13
	movl	(%rdi), %ecx
	movl	4(%rdi), %ebx
	movq	(%r14), %rax
	movl	12(%rax), %esi
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rax
	movl	8(%rax), %esi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_AV_CEIL_RSHIFT
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r13), %esi
	movl	4(%r13), %edx
	movq	%r13, %rdi
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_av_frame_copy_props
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leal	-1(%rbx), %eax
	imull	%edi, %eax
	xorl	%edx, %edx
	testl	%edi, %edi
	cmovgl	%edx, %eax
	cltq
	leaq	(%rcx,%rax,4), %r15
	callq	_FFABS
	imull	%ebx, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	8(%rbx), %rax
LBB0_4:
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leal	-1(%rbx), %eax
	imull	%edi, %eax
	xorl	%edx, %edx
	testl	%edi, %edi
	cmovgl	%edx, %eax
	cltq
	leaq	(%rcx,%rax,4), %r15
	callq	_FFABS
	imull	%ebx, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	8(%rbx), %rax
LBB0_6:
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leal	-1(%rbx), %eax
	imull	%edi, %eax
	xorl	%edx, %edx
	testl	%edi, %edi
	cmovgl	%edx, %eax
	cltq
	leaq	(%rcx,%rax,4), %r15
	callq	_FFABS
	imull	%ebx, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	8(%rbx), %rax
LBB0_8:
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	(%rbx), %rcx
	movl	12(%rcx), %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leal	-1(%rbx), %ecx
	imull	%edi, %ecx
	xorl	%edx, %edx
	testl	%edi, %edi
	cmovgl	%edx, %ecx
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %r15
	callq	_FFABS
	imull	%ebx, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
LBB0_10:
	movq	(%r14), %rcx
	movl	(%rcx), %eax
	movq	_AV_PIX_FMT_FLAG_PAL@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_12
## %bb.11:
	movq	8(%rbx), %rax
	movq	8(%rax), %rdi
	movq	8(%r12), %rax
	movq	8(%rax), %rsi
LBB0_15:
	movq	_AVPALETTE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	(%r14), %rcx
LBB0_16:
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	cmpl	$0, 4(%rcx)
	jle	LBB0_22
## %bb.17:
	xorl	%ebx, %ebx
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	incl	%ebx
	cmpl	4(%rcx), %ebx
	jge	LBB0_22
LBB0_18:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	leal	-1(%rbx), %eax
	cmpl	$2, %eax
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r14d
	cmovbl	-68(%rbp), %r14d                ## 4-byte Folded Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r12d
	cmovbl	-56(%rbp), %r12d                ## 4-byte Folded Reload
	testl	%r12d, %r12d
	jle	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%r13), %edi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	(%rsi), %rdx
	movq	8(%rsi), %rsi
	xorl	%r8d, %r8d
	movl	%r15d, %r9d
	pushq	$4
	pushq	$0
	pushq	%r14
	pushq	%rbx
	callq	_av_read_image_line2
	addq	$32, %rsp
	movl	8(%r13), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movq	8(%rax), %rsi
	movq	(%r13), %rcx
	subq	$8, %rsp
	xorl	%r8d, %r8d
	movl	%r15d, %r9d
	pushq	$4
	pushq	%r14
	pushq	%rbx
	callq	_av_write_image_line2
	addq	$32, %rsp
	incl	%r15d
	movq	(%r13), %rcx
	cmpl	%r15d, %r12d
	jne	LBB0_20
	jmp	LBB0_21
LBB0_22:
	leaq	-80(%rbp), %rdi
	callq	_av_frame_free
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ff_filter_frame
	jmp	LBB0_23
LBB0_1:
	leaq	-80(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_23:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_FF_PSEUDOPAL@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_16
## %bb.13:
	movq	8(%rbx), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.14:
	movq	8(%r12), %rax
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	jne	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_PIX_FMT_FLAG_PAL,4,2        ## @AV_PIX_FMT_FLAG_PAL
	.comm	_FF_PSEUDOPAL,4,2               ## @FF_PSEUDOPAL
	.comm	_AVPALETTE_SIZE,4,2             ## @AVPALETTE_SIZE
	.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, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	str	x1, [sp, #40]
	ldr	x8, [x0, #8]
	ldp	x8, x19, [x8]
	ldr	x21, [x8]
	ldp	w9, w22, [x0]
	ldr	x8, [x19]
	ldr	w1, [x8, #12]
	str	w9, [sp, #32]                   ; 4-byte Folded Spill
	mov	x0, x9
	bl	_AV_CEIL_RSHIFT
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	ldr	x8, [x19]
	ldr	w1, [x8, #8]
	mov	x0, x22
	bl	_AV_CEIL_RSHIFT
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
	ldp	w1, w2, [x21]
	mov	x0, x21
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_19
; %bb.1:
	mov	x25, x0
	mov	x1, x20
	bl	_av_frame_copy_props
	ldr	x8, [x25, #8]
	ldr	x9, [x8]
	cbz	x9, LBB0_3
; %bb.2:
	ldr	x8, [x25]
	ldr	w0, [x8]
	sub	w8, w22, #1
	mul	w8, w0, w8
	cmp	w0, #0
	csel	w8, wzr, w8, gt
	add	x26, x9, w8, sxtw #2
	bl	_FFABS
	mul	w2, w0, w22
	mov	x0, x26
	mov	w1, #0
	bl	_memset
	ldr	x8, [x25, #8]
LBB0_3:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_5
; %bb.4:
	ldr	x8, [x25]
	ldr	w0, [x8, #4]
	ldr	w23, [sp, #36]                  ; 4-byte Folded Reload
	sub	w8, w23, #1
	mul	w8, w0, w8
	cmp	w0, #0
	csel	w8, wzr, w8, gt
	add	x26, x9, w8, sxtw #2
	bl	_FFABS
	mul	w2, w0, w23
	mov	x0, x26
	mov	w1, #0
	bl	_memset
	ldr	x8, [x25, #8]
LBB0_5:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_7
; %bb.6:
	ldr	x8, [x25]
	ldr	w0, [x8, #8]
	ldr	w23, [sp, #36]                  ; 4-byte Folded Reload
	sub	w8, w23, #1
	mul	w8, w0, w8
	cmp	w0, #0
	csel	w8, wzr, w8, gt
	add	x26, x9, w8, sxtw #2
	bl	_FFABS
	mul	w2, w0, w23
	mov	x0, x26
	mov	w1, #0
	bl	_memset
	ldr	x8, [x25, #8]
LBB0_7:
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x9, [x25]
	ldr	w0, [x9, #12]
	sub	w9, w22, #1
	mul	w9, w0, w9
	cmp	w0, #0
	csel	w9, wzr, w9, gt
	add	x26, x8, w9, sxtw #2
	bl	_FFABS
	mul	w2, w0, w22
	mov	x0, x26
	mov	w1, #0
	bl	_memset
LBB0_9:
	ldr	x3, [x19]
	ldr	w8, [x3]
Lloh0:
	adrp	x9, _AV_PIX_FMT_FLAG_PAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PIX_FMT_FLAG_PAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
	b.eq	LBB0_21
; %bb.10:
	ldr	x8, [x25, #8]
	ldr	x0, [x8, #8]
	ldr	x8, [x20, #8]
	ldr	x1, [x8, #8]
LBB0_11:
Lloh3:
	adrp	x8, _AVPALETTE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVPALETTE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	x3, [x19]
LBB0_12:
	ldr	w8, [x3, #4]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.13:
	mov	w26, #0
	mov	x23, #17179869184
	mov	w21, #4
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w26, w26, #1
	ldr	w8, [x3, #4]
	cmp	w26, w8
	b.ge	LBB0_18
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	sub	w8, w26, #1
	cmp	w8, #2
	ldp	w9, w8, [sp, #28]               ; 8-byte Folded Reload
	csel	w27, w9, w8, lo
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	csel	w24, w8, w22, lo
	cmp	w24, #1
	b.lt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	w28, #0
LBB0_17:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x19, #8]
	ldp	x2, x1, [x20]
	str	x23, [sp]
	mov	w4, #0
	mov	x5, x28
	mov	x6, x26
	mov	x7, x27
	bl	_av_read_image_line2
	ldr	w0, [x19, #8]
	ldp	x2, x1, [x25]
	ldr	x3, [x19]
	str	w21, [sp]
	mov	w4, #0
	mov	x5, x28
	mov	x6, x26
	mov	x7, x27
	bl	_av_write_image_line2
	add	w28, w28, #1
	ldr	x3, [x19]
	cmp	w24, w28
	b.ne	LBB0_17
	b	LBB0_14
LBB0_18:
	add	x0, sp, #40
	bl	_av_frame_free
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x25
	bl	_ff_filter_frame
	b	LBB0_20
LBB0_19:
	add	x0, sp, #40
	bl	_av_frame_free
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_20:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_21:
Lloh9:
	adrp	x9, _FF_PSEUDOPAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FF_PSEUDOPAL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.22:
	ldr	x8, [x25, #8]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_12
; %bb.23:
	ldr	x8, [x20, #8]
	ldr	x1, [x8, #8]
	cbnz	x1, LBB0_11
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_PIX_FMT_FLAG_PAL,4,2        ; @AV_PIX_FMT_FLAG_PAL
	.comm	_FF_PSEUDOPAL,4,2               ; @FF_PSEUDOPAL
	.comm	_AVPALETTE_SIZE,4,2             ; @AVPALETTE_SIZE
	.no_dead_strip	_filter_frame
.subsections_via_symbols
