	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rgbToPlanarRgbWrapper
_rgbToPlanarRgbWrapper:                 ## @rgbToPlanarRgbWrapper
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rbp), %r10
	movq	___stack_chk_guard@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rbx
	movq	%rbx, -48(%rbp)
	movl	4(%r10), %ebx
	movl	%ebx, -60(%rbp)
	movl	(%r10), %eax
	movl	%eax, -56(%rbp)
	movl	8(%r10), %r10d
	movl	%r10d, -52(%rbp)
	movl	%r10d, -72(%rbp)
	movl	%eax, -68(%rbp)
	movl	%ebx, -64(%rbp)
	imull	%ecx, %ebx
	movslq	%ebx, %rbx
	shlq	$2, %rbx
	addq	8(%r9), %rbx
	movq	%rbx, -96(%rbp)
	imull	%ecx, %eax
	cltq
	shlq	$2, %rax
	addq	(%r9), %rax
	movq	%rax, -88(%rbp)
	imull	%ecx, %r10d
	movslq	%r10d, %rcx
	shlq	$2, %rcx
	addq	16(%r9), %rcx
	movl	%r8d, %r14d
	movq	%rdi, %r13
	movq	%rcx, -80(%rbp)
	movq	%rcx, -128(%rbp)
	movq	%rax, -120(%rbp)
	movq	%rbx, -112(%rbp)
	movl	(%rdi), %edi
	leal	-128(%rdi), %eax
	cmpl	$5, %eax
	ja	LBB0_11
## %bb.1:
	xorl	%r9d, %r9d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	(%rsi), %rdi
	movl	(%rdx), %esi
	movl	8(%r13), %eax
	leaq	-128(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	jmp	LBB0_3
LBB0_11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_av_get_pix_fmt_name
	movl	%eax, %r12d
	movl	4(%r13), %edi
	callq	_av_get_pix_fmt_name
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_av_log
	jmp	LBB0_12
LBB0_4:
	movq	(%rsi), %rdi
	movl	(%rdx), %esi
	movl	8(%r13), %eax
	leaq	-96(%rbp), %rdx
	leaq	-60(%rbp), %rcx
LBB0_3:
	movl	%r14d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$3
	jmp	LBB0_8
LBB0_5:
	movl	$1, %r9d
LBB0_6:
	movq	(%rsi), %rdi
	movl	(%rdx), %esi
	movl	8(%r13), %eax
	leaq	-128(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	jmp	LBB0_7
LBB0_9:
	movl	$1, %r9d
LBB0_10:
	movq	(%rsi), %rdi
	movl	(%rdx), %esi
	movl	8(%r13), %eax
	leaq	-96(%rbp), %rdx
	leaq	-60(%rbp), %rcx
LBB0_7:
	movl	%r14d, %r8d
	pushq	%rax
	pushq	$4
LBB0_8:
	callq	_packedtogbr24p
	addq	$16, %rsp
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_10
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported planar RGB conversion %s -> %s\n"

	.no_dead_strip	_rgbToPlanarRgbWrapper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rgbToPlanarRgbWrapper
_rgbToPlanarRgbWrapper:                 ; @rgbToPlanarRgbWrapper
	.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, x4
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldp	w9, w8, [x6]
	mul	w10, w8, w3
	ldp	x12, x11, [x5]
	add	x10, x11, w10, sxtw #2
	stp	w9, w8, [sp, #52]
	stp	w8, w9, [x29, #-52]
	ldr	w8, [x6, #8]
	stur	w8, [x29, #-44]
	str	w8, [sp, #48]
	mul	w9, w9, w3
	add	x9, x12, w9, sxtw #2
	stp	x10, x9, [sp, #24]
	ldr	x11, [x5, #16]
	mul	w8, w8, w3
	add	x8, x11, w8, sxtw #2
	str	x8, [sp, #40]
	stp	x8, x9, [sp]
	str	x10, [sp, #16]
	ldr	w0, [x0]
	sub	w9, w0, #128
	cmp	w9, #5
	b.hi	LBB0_3
; %bb.1:
	mov	w5, #0
	mov	w8, #0
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	ldr	x0, [x1]
	ldr	w1, [x2]
	ldr	w7, [x20, #8]
	mov	x2, sp
	add	x3, sp, #48
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	bl	_av_get_pix_fmt_name
	mov	x22, x0
	ldr	w0, [x20, #4]
	bl	_av_get_pix_fmt_name
	mov	x4, x0
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	bl	_av_log
	b	LBB0_12
LBB0_4:
	ldr	x0, [x1]
	ldr	w1, [x2]
	ldr	w7, [x20, #8]
	add	x2, sp, #24
	sub	x3, x29, #52
LBB0_5:
	mov	x4, x19
	mov	w5, #0
	mov	w6, #3
	b	LBB0_11
LBB0_6:
	mov	w5, #1
LBB0_7:
	ldr	x0, [x1]
	ldr	w1, [x2]
	ldr	w7, [x20, #8]
	mov	x2, sp
	add	x3, sp, #48
	mov	x4, x19
	b	LBB0_10
LBB0_8:
	mov	w8, #1
LBB0_9:
	ldr	x0, [x1]
	ldr	w1, [x2]
	ldr	w7, [x20, #8]
	add	x2, sp, #24
	sub	x3, x29, #52
	mov	x4, x19
	mov	x5, x8
LBB0_10:
	mov	w6, #4
LBB0_11:
	bl	_packedtogbr24p
LBB0_12:
	ldur	x8, [x29, #-40]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	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_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported planar RGB conversion %s -> %s\n"

	.no_dead_strip	_rgbToPlanarRgbWrapper
.subsections_via_symbols
