	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function planarRgbToRgbWrapper
_planarRgbToRgbWrapper:                 ## @planarRgbToRgbWrapper
	.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	%r12
	pushq	%rbx
	subq	$96, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	8(%rsi), %rax
	movq	%rax, -64(%rbp)
	movq	(%rsi), %rdi
	movq	%rdi, -56(%rbp)
	movq	16(%rsi), %rsi
	movq	%rsi, -48(%rbp)
	movq	%rsi, -96(%rbp)
	movq	%rdi, -88(%rbp)
	movq	%rax, -80(%rbp)
	movl	4(%rdx), %eax
	movl	%eax, -108(%rbp)
	movl	(%rdx), %esi
	movl	%esi, -104(%rbp)
	movl	8(%rdx), %edx
	movl	%edx, -100(%rbp)
	movl	%edx, -120(%rbp)
	movl	%esi, -116(%rbp)
	movl	%eax, -112(%rbp)
	movq	(%rbx), %rdi
	movq	_AV_PIX_FMT_GBRP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_11
## %bb.1:
	movl	8(%rbx), %esi
	addl	$-128, %esi
	cmpl	$5, %esi
	ja	LBB0_11
## %bb.2:
	movq	16(%rbp), %rdx
	xorl	%eax, %eax
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rdi, %rsi
	jmpq	*%rsi
LBB0_5:
	movl	(%rdx), %eax
	imull	%eax, %ecx
	movslq	%ecx, %rdx
	shlq	$2, %rdx
	addq	(%r9), %rdx
	movl	12(%rbx), %r9d
	leaq	-96(%rbp), %rdi
	leaq	-120(%rbp), %rsi
	jmp	LBB0_4
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	8(%rbx), %edi
	callq	_av_get_pix_fmt_name
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_av_log
	jmp	LBB0_12
LBB0_3:
	movl	(%rdx), %eax
	imull	%eax, %ecx
	movslq	%ecx, %rdx
	shlq	$2, %rdx
	addq	(%r9), %rdx
	movl	12(%rbx), %r9d
	leaq	-64(%rbp), %rdi
	leaq	-108(%rbp), %rsi
LBB0_4:
	movl	%eax, %ecx
	movl	%r14d, %r8d
	callq	_gbr24ptopacked24
	jmp	LBB0_12
LBB0_6:
	movl	$1, %eax
LBB0_7:
	movl	(%rdx), %r8d
	imull	%r8d, %ecx
	movslq	%ecx, %rdx
	shlq	$2, %rdx
	addq	(%r9), %rdx
	movl	12(%rbx), %ecx
	movl	%ecx, (%rsp)
	leaq	-96(%rbp), %rdi
	leaq	-120(%rbp), %rsi
	jmp	LBB0_8
LBB0_9:
	movl	$1, %eax
LBB0_10:
	movl	(%rdx), %r8d
	imull	%r8d, %ecx
	movslq	%ecx, %rdx
	shlq	$2, %rdx
	addq	(%r9), %rdx
	movl	12(%rbx), %ecx
	movl	%ecx, (%rsp)
	leaq	-64(%rbp), %rdi
	leaq	-108(%rbp), %rsi
LBB0_8:
	movl	%r8d, %ecx
	movl	%r14d, %r8d
	movl	%eax, %r9d
	callq	_gbr24ptopacked32
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r14d, %eax
	addq	$96, %rsp
	popq	%rbx
	popq	%r12
	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_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_AV_PIX_FMT_GBRP,8,3            ## @AV_PIX_FMT_GBRP
	.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	_planarRgbToRgbWrapper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function planarRgbToRgbWrapper
_planarRgbToRgbWrapper:                 ; @planarRgbToRgbWrapper
	.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	x9, x8, [x1]
	stp	x8, x9, [sp, #48]
	ldr	x10, [x1, #16]
	str	x10, [sp, #64]
	stp	x10, x9, [sp, #24]
	str	x8, [sp, #40]
	ldp	w9, w8, [x2]
	stp	w8, w9, [sp, #12]
	ldr	w10, [x2, #8]
	str	w10, [sp, #20]
	stp	w10, w9, [sp]
	str	w8, [sp, #8]
	ldr	x0, [x0]
Lloh3:
	adrp	x8, _AV_PIX_FMT_GBRP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_PIX_FMT_GBRP@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x20, #8]
	sub	w10, w8, #128
	cmp	w10, #5
	b.hi	LBB0_4
; %bb.2:
	mov	w8, #0
	mov	w9, #0
Lloh6:
	adrp	x11, lJTI0_0@PAGE
Lloh7:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_3
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_3:
	ldr	x9, [x5]
	ldr	w8, [x6]
	mul	w10, w8, w3
	add	x2, x9, w10, sxtw #2
	ldr	w5, [x20, #12]
	add	x0, sp, #24
	mov	x1, sp
	b	LBB0_8
LBB0_4:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_av_get_pix_fmt_name
	mov	x22, x0
	ldr	w0, [x20, #8]
	bl	_av_get_pix_fmt_name
	mov	x4, x0
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	bl	_av_log
LBB0_5:
	ldur	x8, [x29, #-40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.6:
	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_7:
	ldr	x9, [x5]
	ldr	w8, [x6]
	mul	w10, w8, w3
	add	x2, x9, w10, sxtw #2
	ldr	w5, [x20, #12]
	add	x0, sp, #48
	add	x1, sp, #12
LBB0_8:
	mov	x3, x8
	mov	x4, x19
	bl	_gbr24ptopacked24
	b	LBB0_5
LBB0_9:
	mov	w8, #1
LBB0_10:
	ldr	x10, [x5]
	ldr	w9, [x6]
	mul	w11, w9, w3
	add	x2, x10, w11, sxtw #2
	ldr	w6, [x20, #12]
	add	x0, sp, #24
	mov	x1, sp
	mov	x3, x9
	mov	x4, x19
	mov	x5, x8
	bl	_gbr24ptopacked32
	b	LBB0_5
LBB0_11:
	mov	w9, #1
LBB0_12:
	ldr	x10, [x5]
	ldr	w8, [x6]
	mul	w11, w8, w3
	add	x2, x10, w11, sxtw #2
	ldr	w6, [x20, #12]
	add	x0, sp, #48
	add	x1, sp, #12
	mov	x3, x8
	mov	x4, x19
	mov	x5, x9
	bl	_gbr24ptopacked32
	b	LBB0_5
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
                                        ; -- End function
	.comm	_AV_PIX_FMT_GBRP,8,3            ; @AV_PIX_FMT_GBRP
	.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	_planarRgbToRgbWrapper
.subsections_via_symbols
