	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_frame
_process_frame:                         ## @process_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	(%rdi), %r12
	movq	8(%rdi), %rbx
	movq	8(%rbx), %rax
	movq	(%rax), %r14
	leaq	28(%r12), %r15
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_ff_framesync_get_frame
	testl	%eax, %eax
	js	LBB0_15
## %bb.1:
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movl	$1, %esi
	xorl	%ecx, %ecx
	callq	_ff_framesync_get_frame
	testl	%eax, %eax
	js	LBB0_15
## %bb.2:
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.3:
	movq	-48(%rbp), %rdi
	callq	_av_frame_clone
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_4
LBB0_14:
	movl	28(%r12), %esi
	movl	32(%r12), %edi
	movl	(%r14), %edx
	callq	_av_rescale_q
	movl	%eax, 8(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ff_filter_frame
	jmp	LBB0_15
LBB0_5:
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	movq	%r14, %rdi
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %r15
	movq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_av_frame_copy_props
	cmpl	$0, (%r12)
	jle	LBB0_14
## %bb.7:
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r15), %rax
	movq	16(%r15), %rcx
	movq	(%rcx,%r13,8), %rdi
	movl	(%rax,%r13,4), %esi
	movq	-48(%rbp), %rax
	movq	(%rax), %rcx
	movq	16(%rax), %rax
	movq	(%rax,%r13,8), %rdx
	movl	(%rcx,%r13,4), %ecx
	movq	8(%r12), %rax
	movq	16(%r12), %rbx
	movl	(%rax,%r13,4), %r8d
	movl	(%rbx,%r13,4), %r9d
	callq	_av_image_copy_plane
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	movslq	(%r12), %rax
	cmpq	%rax, %r13
	jge	LBB0_14
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movl	4(%r12), %eax
	btl	%r13d, %eax
	jae	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%r12), %rax
	cmpl	$0, (%rax,%r13,4)
	jle	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rax
	movq	16(%r15), %rcx
	movslq	(%rax,%r13,4), %rdi
	movslq	%ebx, %rbx
	imulq	%rbx, %rdi
	addq	(%rcx,%r13,8), %rdi
	movq	8(%r12), %rax
	movl	(%rax,%r13,4), %edx
	xorl	%esi, %esi
	callq	_memset
	incl	%ebx
	movq	16(%r12), %rax
	cmpl	(%rax,%r13,4), %ebx
	jl	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	$-1, 24(%r12)
	movq	8(%r12), %rcx
	movq	56(%r12), %rdi
	movl	(%rax), %edx
	imull	(%rcx), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	48(%r12), %rdi
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movl	(%rax), %edx
	imull	(%rcx), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	-48(%rbp), %rax
	movq	(%rax), %rdi
	movq	16(%rax), %rax
	movq	(%rax,%r13,8), %rsi
	movq	-56(%rbp), %rax
	movq	(%rax), %rbx
	movq	16(%rax), %rax
	movq	(%rax,%r13,8), %rdx
	movq	(%r15), %rax
	movq	16(%r15), %rcx
	movq	(%rcx,%r13,8), %rcx
	movl	(%rdi,%r13,4), %r8d
	movl	(%rbx,%r13,4), %r9d
	movl	(%rax,%r13,4), %r10d
	movq	8(%r12), %rdi
	movq	16(%r12), %rbx
	movl	(%rdi,%r13,4), %eax
	movl	(%rbx,%r13,4), %ebx
	subq	$8, %rsp
	movq	%r12, %rdi
	pushq	%rbx
	pushq	%rax
	pushq	%r10
	callq	*40(%r12)
	addq	$32, %rsp
	jmp	LBB0_13
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_15:
	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	_process_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_frame
_process_frame:                         ; @process_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldp	x20, x22, [x0]
	ldr	x8, [x22, #8]
	ldr	x19, [x8]
	add	x21, x20, #28
	add	x2, sp, #24
	mov	x0, x21
	mov	w1, #0
	mov	w3, #0
	bl	_ff_framesync_get_frame
	tbnz	w0, #31, LBB0_16
; %bb.1:
	add	x2, sp, #16
	mov	x0, x21
	mov	w1, #1
	mov	w3, #0
	bl	_ff_framesync_get_frame
	tbnz	w0, #31, LBB0_16
; %bb.2:
	ldr	x8, [x22]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x0, [sp, #24]
	bl	_av_frame_clone
	mov	x21, x0
	cbz	x0, LBB0_15
LBB0_4:
	ldp	w1, w0, [x20, #28]
	ldr	w2, [x19]
	bl	_av_rescale_q
	str	w0, [x21, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_ff_filter_frame
	b	LBB0_16
LBB0_5:
	ldp	w2, w1, [x19, #4]
	mov	x0, x19
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_15
; %bb.6:
	mov	x21, x0
	ldr	x1, [sp, #24]
	bl	_av_frame_copy_props
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.7:
	mov	x22, #0
	mov	w23, #-1
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x21, #16]
	lsl	x9, x22, #3
	ldr	x0, [x8, x9]
	ldr	x8, [x21]
	lsl	x10, x22, #2
	ldr	w1, [x8, x10]
	ldr	x8, [sp, #24]
	ldr	x11, [x8, #16]
	ldr	x2, [x11, x9]
	ldr	x8, [x8]
	ldr	w3, [x8, x10]
	ldp	x8, x9, [x20, #8]
	ldr	w4, [x8, x10]
	ldr	w5, [x9, x10]
	bl	_av_image_copy_plane
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.ge	LBB0_4
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	w8, [x20, #4]
	lsr	w8, w8, w22
	tbz	w8, #0, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x20, #16]
	ldr	w9, [x8, x22, lsl #2]
	lsl	x24, x22, #2
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w25, #0
LBB0_13:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21, #16]
	ldr	x8, [x8, x22, lsl #3]
	ldr	x9, [x21]
	ldrsw	x9, [x9, x24]
	sxtw	x10, w25
	madd	x0, x9, x10, x8
	ldr	x8, [x20, #8]
	ldr	w2, [x8, x24]
	mov	w1, #0
	bl	_memset
	add	w25, w25, #1
	ldr	x8, [x20, #16]
	ldr	w9, [x8, x24]
	cmp	w25, w9
	b.lt	LBB0_13
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	str	w23, [x20, #24]
	ldr	x0, [x20, #56]
	ldr	x9, [x20, #8]
	ldr	w9, [x9]
	ldr	w8, [x8]
	mul	w2, w8, w9
	mov	w1, #0
	bl	_memset
	ldr	x0, [x20, #48]
	ldp	x8, x9, [x20, #8]
	ldr	w8, [x8]
	ldr	w9, [x9]
	mul	w8, w8, w9
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	ldr	x8, [x20, #40]
	ldr	x9, [sp, #24]
	ldr	x10, [x9, #16]
	lsl	x11, x22, #3
	ldr	x1, [x10, x11]
	ldr	x10, [sp, #16]
	ldr	x12, [x10, #16]
	ldr	x2, [x12, x11]
	ldr	x12, [x21, #16]
	ldr	x3, [x12, x11]
	ldr	x9, [x9]
	ldr	w4, [x9, x24]
	ldr	x9, [x10]
	ldr	w5, [x9, x24]
	ldr	x9, [x21]
	ldr	w6, [x9, x24]
	ldp	x9, x10, [x20, #8]
	ldr	w7, [x9, x24]
	ldr	w9, [x10, x24]
	str	w9, [sp]
	mov	x0, x20
	blr	x8
	b	LBB0_9
LBB0_15:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_process_frame
.subsections_via_symbols
