	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function planarRgb16ToRgb16Wrapper
_planarRgb16ToRgb16Wrapper:             ## @planarRgb16ToRgb16Wrapper
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movl	%r8d, %r14d
	movl	%ecx, %r12d
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rsi), %rax
	movq	%rax, -80(%rbp)
	movq	(%rsi), %rcx
	movq	%rcx, -72(%rbp)
	movq	16(%rsi), %rdi
	movq	%rdi, -64(%rbp)
	movq	24(%rsi), %rsi
	movq	%rsi, -56(%rbp)
	movq	%rdi, -112(%rbp)
	movq	%rcx, -104(%rbp)
	movq	%rax, -96(%rbp)
	movq	%rsi, -88(%rbp)
	movdqu	(%rdx), %xmm0
	pshufd	$225, %xmm0, %xmm1              ## xmm1 = xmm0[1,0,2,3]
	movdqa	%xmm1, -144(%rbp)
	pshufd	$210, %xmm0, %xmm0              ## xmm0 = xmm0[2,0,1,3]
	movdqa	%xmm0, -128(%rbp)
	movl	(%r13), %edi
	callq	_av_pix_fmt_desc_get
	movq	%rax, %rbx
	movl	4(%r13), %edi
	callq	_av_pix_fmt_desc_get
	movq	_HAVE_BIGENDIAN@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	movl	(%rbx), %ecx
	movq	_AV_PIX_FMT_FLAG_BE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	je	LBB0_2
## %bb.1:
	xorl	%r10d, %r10d
	testl	%ecx, %edx
	sete	%r10b
	testl	%edx, (%rax)
	jne	LBB0_4
LBB0_3:
	orl	$2, %r10d
LBB0_4:
	movq	_AV_PIX_FMT_FLAG_PLANAR@GOTPCREL(%rip), %rdx
	movq	_AV_PIX_FMT_FLAG_RGB@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	notl	%ecx
	testl	%ecx, %esi
	jne	LBB0_15
## %bb.5:
	movq	8(%rbx), %rcx
	movl	(%rcx), %r11d
	cmpl	$8, %r11d
	jle	LBB0_15
## %bb.6:
	movl	4(%r13), %ecx
	addl	$-128, %ecx
	cmpl	$7, %ecx
	ja	LBB0_15
## %bb.7:
	movq	16(%rbp), %rax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_12:
	movl	(%rax), %ecx
	imull	%ecx, %r12d
	movslq	%r12d, %rdx
	shlq	$2, %rdx
	addq	(%r15), %rdx
	movl	8(%r13), %eax
	subq	$8, %rsp
	leaq	-112(%rbp), %rdi
	leaq	-128(%rbp), %rsi
	jmp	LBB0_13
LBB0_15:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	4(%rbx), %ecx
	movl	4(%rax), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	callq	_av_log
	jmp	LBB0_16
LBB0_2:
	xorl	%r10d, %r10d
	testl	%ecx, %edx
	setne	%r10b
	testl	%edx, (%rax)
	jne	LBB0_3
	jmp	LBB0_4
LBB0_11:
	movl	(%rax), %ecx
	imull	%ecx, %r12d
	movslq	%r12d, %rdx
	shlq	$2, %rdx
	addq	(%r15), %rdx
	movl	8(%r13), %eax
	subq	$8, %rsp
	leaq	-112(%rbp), %rdi
	leaq	-128(%rbp), %rsi
	jmp	LBB0_9
LBB0_14:
	movl	(%rax), %ecx
	imull	%ecx, %r12d
	movslq	%r12d, %rdx
	shlq	$2, %rdx
	addq	(%r15), %rdx
	movl	8(%r13), %eax
	subq	$8, %rsp
	leaq	-80(%rbp), %rdi
	leaq	-144(%rbp), %rsi
LBB0_13:
	movl	%r14d, %r8d
	movl	$1, %r9d
	jmp	LBB0_10
LBB0_8:
	movl	(%rax), %ecx
	imull	%ecx, %r12d
	movslq	%r12d, %rdx
	shlq	$2, %rdx
	addq	(%r15), %rdx
	movl	8(%r13), %eax
	subq	$8, %rsp
	leaq	-80(%rbp), %rdi
	leaq	-144(%rbp), %rsi
LBB0_9:
	movl	%r14d, %r8d
	xorl	%r9d, %r9d
LBB0_10:
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_gbr16ptopacked16
	addq	$32, %rsp
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%r14d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_8
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_HAVE_BIGENDIAN,8,3             ## @HAVE_BIGENDIAN
	.comm	_AV_PIX_FMT_FLAG_BE,4,2         ## @AV_PIX_FMT_FLAG_BE
	.comm	_AV_PIX_FMT_FLAG_PLANAR,4,2     ## @AV_PIX_FMT_FLAG_PLANAR
	.comm	_AV_PIX_FMT_FLAG_RGB,4,2        ## @AV_PIX_FMT_FLAG_RGB
	.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	_planarRgb16ToRgb16Wrapper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function planarRgb16ToRgb16Wrapper
_planarRgb16ToRgb16Wrapper:             ; @planarRgb16ToRgb16Wrapper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x22, x6
	mov	x23, x5
	mov	x19, x4
	mov	x21, x3
	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, #-56]
	ldp	x9, x8, [x1]
	stp	x8, x9, [sp, #72]
	ldp	x10, x11, [x1, #16]
	stp	x10, x11, [sp, #88]
	stp	x10, x9, [sp, #40]
	stp	x8, x11, [sp, #56]
	ldp	w9, w8, [x2]
	stp	w8, w9, [sp, #24]
	ldp	w10, w11, [x2, #8]
	stp	w10, w11, [sp, #32]
	stp	w10, w9, [sp, #8]
	stp	w8, w11, [sp, #16]
	ldr	w0, [x0]
	bl	_av_pix_fmt_desc_get
	mov	x24, x0
	ldr	w0, [x20, #4]
	bl	_av_pix_fmt_desc_get
Lloh3:
	adrp	x8, _HAVE_BIGENDIAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HAVE_BIGENDIAN@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x8]
	ldr	w8, [x24]
Lloh6:
	adrp	x9, _AV_PIX_FMT_FLAG_BE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AV_PIX_FMT_FLAG_BE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w10, w9, w8
	cmp	w10, #0
	cbz	x11, LBB0_9
; %bb.1:
	cset	w6, eq
	ldr	w10, [x0]
	tst	w10, w9
	b.ne	LBB0_3
LBB0_2:
	orr	w6, w6, #0x2
LBB0_3:
Lloh9:
	adrp	x9, _AV_PIX_FMT_FLAG_PLANAR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AV_PIX_FMT_FLAG_PLANAR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _AV_PIX_FMT_FLAG_RGB@GOTPAGE
Lloh13:
	ldr	x10, [x10, _AV_PIX_FMT_FLAG_RGB@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bics	wzr, w9, w8
	b.ne	LBB0_8
; %bb.4:
	ldr	x8, [x24, #8]
	ldr	w7, [x8]
	cmp	w7, #8
	b.le	LBB0_8
; %bb.5:
	ldr	w8, [x20, #4]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_8
; %bb.6:
Lloh15:
	adrp	x9, lJTI0_0@PAGE
Lloh16:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	ldr	x8, [x23]
	ldr	w3, [x22]
	mul	w9, w3, w21
	add	x2, x8, w9, sxtw #2
	ldr	w8, [x20, #8]
	str	w8, [sp]
	add	x0, sp, #40
	add	x1, sp, #8
	b	LBB0_12
LBB0_8:
Lloh17:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w3, [x24, #4]
	ldr	w4, [x0, #4]
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
	b	LBB0_16
LBB0_9:
	cset	w6, ne
	ldr	w10, [x0]
	tst	w10, w9
	b.ne	LBB0_2
	b	LBB0_3
LBB0_10:
	ldr	x8, [x23]
	ldr	w3, [x22]
	mul	w9, w3, w21
	add	x2, x8, w9, sxtw #2
	ldr	w8, [x20, #8]
	str	w8, [sp]
	add	x0, sp, #40
	add	x1, sp, #8
	b	LBB0_14
LBB0_11:
	ldr	x8, [x23]
	ldr	w3, [x22]
	mul	w9, w3, w21
	add	x2, x8, w9, sxtw #2
	ldr	w8, [x20, #8]
	str	w8, [sp]
	add	x0, sp, #72
	add	x1, sp, #24
LBB0_12:
	mov	x4, x19
	mov	w5, #1
	b	LBB0_15
LBB0_13:
	ldr	x8, [x23]
	ldr	w3, [x22]
	mul	w9, w3, w21
	add	x2, x8, w9, sxtw #2
	ldr	w8, [x20, #8]
	str	w8, [sp]
	add	x0, sp, #72
	add	x1, sp, #24
LBB0_14:
	mov	x4, x19
	mov	w5, #0
LBB0_15:
	bl	_gbr16ptopacked16
LBB0_16:
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x19
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
	.byte	(LBB0_13-LBB0_7)>>2
	.byte	(LBB0_13-LBB0_7)>>2
                                        ; -- End function
	.comm	_HAVE_BIGENDIAN,8,3             ; @HAVE_BIGENDIAN
	.comm	_AV_PIX_FMT_FLAG_BE,4,2         ; @AV_PIX_FMT_FLAG_BE
	.comm	_AV_PIX_FMT_FLAG_PLANAR,4,2     ; @AV_PIX_FMT_FLAG_PLANAR
	.comm	_AV_PIX_FMT_FLAG_RGB,4,2        ; @AV_PIX_FMT_FLAG_RGB
	.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	_planarRgb16ToRgb16Wrapper
.subsections_via_symbols
