	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shuffleplanes_filter_frame
_shuffleplanes_filter_frame:            ## @shuffleplanes_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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	%rsi, -88(%rbp)
	movq	(%rdi), %r15
	movq	8(%r15), %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	cmpl	$0, (%rbx)
	jle	LBB0_1
## %bb.2:
	movq	(%r14), %rax
	movq	16(%r14), %rdi
	movq	8(%rbx), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rcx,8), %rdx
	movq	(%rdi,%rdx,8), %rdx
	movq	%rdx, -64(%rbp,%rcx,8)
	movq	8(%rbx), %rdx
	movq	(%rdx,%rcx,8), %rsi
	movl	(%rax,%rsi,4), %esi
	movl	%esi, -80(%rbp,%rcx,4)
	incq	%rcx
	movslq	(%rbx), %rsi
	cmpq	%rsi, %rcx
	jl	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movq	16(%r14), %rdi
LBB0_4:
	leaq	-64(%rbp), %rsi
	movl	$32, %edx
	callq	_memcpy
	movq	(%r14), %rdi
	leaq	-80(%rbp), %rsi
	movl	$16, %edx
	callq	_memcpy
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.6:
	movq	(%r15), %rax
	movl	(%rax), %edi
	movl	8(%r14), %edx
	movl	12(%r14), %esi
	callq	_ff_get_video_buffer
	movq	%rax, -96(%rbp)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_av_frame_copy
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_av_frame_copy_props
	testl	%eax, %eax
	js	LBB0_9
## %bb.11:
	leaq	-88(%rbp), %rdi
	callq	_av_frame_free
	movq	%rbx, -88(%rbp)
	jmp	LBB0_12
LBB0_5:
	movq	%r14, %rbx
LBB0_12:
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_ff_filter_frame
	movl	%eax, %r14d
	jmp	LBB0_13
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r14d
	jmp	LBB0_10
LBB0_9:
	movl	%eax, %r14d
	leaq	-96(%rbp), %rdi
	callq	_av_frame_free
LBB0_10:
	leaq	-88(%rbp), %rdi
	callq	_av_frame_free
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_shuffleplanes_filter_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shuffleplanes_filter_frame
_shuffleplanes_filter_frame:            ; @shuffleplanes_filter_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	stp	x1, xzr, [sp, #8]
	ldr	x21, [x0]
	ldr	x20, [x21, #8]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	str	xzr, [sp, #24]
	ldr	w8, [x20]
	cmp	w8, #0
	b.le	LBB0_3
; %bb.1:
	mov	x8, #0
	ldr	x0, [x19, #16]
	ldr	x9, [x19]
	add	x10, sp, #32
	add	x11, sp, #16
	ldr	x12, [x20, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x13, x8, #3
	ldr	x12, [x12, x13]
	ldr	x12, [x0, x12, lsl #3]
	str	x12, [x10, x13]
	ldr	x12, [x20, #8]
	ldr	x13, [x12, x13]
	ldr	w13, [x9, x13, lsl #2]
	str	w13, [x11, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x13, [x20]
	cmp	x8, x13
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	ldr	x0, [x19, #16]
LBB0_4:
	add	x1, sp, #32
	mov	w2, #32
	bl	_memcpy
	ldr	x0, [x19]
	add	x1, sp, #16
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	x8, [x21]
	ldr	w0, [x8]
	ldp	w2, w1, [x19, #8]
	bl	_ff_get_video_buffer
	str	x0, [sp]
	cbz	x0, LBB0_10
; %bb.6:
	mov	x20, x0
	mov	x1, x19
	bl	_av_frame_copy
	mov	x0, x20
	mov	x1, x19
	bl	_av_frame_copy_props
	tbnz	w0, #31, LBB0_11
; %bb.7:
	add	x0, sp, #8
	bl	_av_frame_free
	str	x20, [sp, #8]
	b	LBB0_9
LBB0_8:
	mov	x20, x19
LBB0_9:
	ldr	x8, [x21]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_ff_filter_frame
	mov	x19, x0
	b	LBB0_13
LBB0_10:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x19, x0
	b	LBB0_12
LBB0_11:
	mov	x19, x0
	mov	x0, sp
	bl	_av_frame_free
LBB0_12:
	add	x0, sp, #8
	bl	_av_frame_free
LBB0_13:
	ldur	x8, [x29, #-40]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_shuffleplanes_filter_frame
.subsections_via_symbols
