	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yuvconvert
_yuvconvert:                            ## @yuvconvert
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r13
	leal	-131(%rdx), %eax
	cmpl	$3, %eax
	ja	LBB0_2
## %bb.1:
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	testl	%ecx, %ecx
	sete	%sil
	setne	%bl
	movq	%rdi, %rax
	subq	%rsi, %rax
	movzbl	3(%rax), %eax
	imull	$76310, %eax, %r14d             ## imm = 0x12A16
	addl	$-1220960, %r14d                ## imm = 0xFFED5EA0
	movzbl	2(%rdi,%rsi), %eax
	addl	$-128, %eax
	movzbl	(%rdi,%rbx), %ecx
	imull	$76310, %ecx, %r12d             ## imm = 0x12A16
	addl	$-1220960, %r12d                ## imm = 0xFFED5EA0
	movzbl	(%rdi,%rsi), %ecx
	addl	$-128, %ecx
	imull	$104635, %eax, %esi             ## imm = 0x198BB
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	imull	$-25690, %ecx, %esi             ## imm = 0x9BA6
	imull	$-53294, %eax, %r15d            ## imm = 0xFFFF2FD2
	addl	%esi, %r15d
	imull	$132278, %ecx, %ebx             ## imm = 0x204B6
	jmp	LBB0_3
LBB0_2:
	movzbl	(%rdi), %r12d
	movzbl	1(%rdi), %ecx
	movzbl	2(%rdi), %r14d
	movzbl	3(%rdi), %eax
	xorl	%esi, %esi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
LBB0_3:
	leal	-128(%rdx), %esi
	cmpl	$7, %esi
	ja	LBB0_6
## %bb.4:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rsi,4), %rsi
	addq	%rdx, %rsi
	jmpq	*%rsi
LBB0_5:
	movb	%r12b, (%r13)
	movb	%cl, 1(%r13)
	movb	%r14b, 2(%r13)
	jmp	LBB0_11
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movl	%edx, %esi
	callq	_DBG
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_7:
	movb	%cl, (%r13)
	movb	%r12b, 1(%r13)
	movb	%al, 2(%r13)
	movb	%r14b, 3(%r13)
	jmp	LBB0_12
LBB0_8:
	leal	(%r15,%r12), %edi
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	callq	_LIMIT
	movl	%eax, %ebx
	andl	$28, %ebx
	shll	$3, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r12), %edi
	callq	_LIMIT
	shrl	$3, %eax
	orl	%ebx, %eax
	movb	%al, (%r13)
	addl	-56(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r12d, %edi
	callq	_LIMIT
	movl	%eax, %ebx
	andl	$248, %ebx
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_LIMIT
	shrl	$5, %eax
	orl	%ebx, %eax
	movb	%al, 1(%r13)
	addl	%r14d, %r15d
	movl	%r15d, %edi
	callq	_LIMIT
	movl	%eax, %ebx
	andl	$28, %ebx
	shll	$3, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addl	%r14d, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_LIMIT
	shrl	$3, %eax
	orl	%ebx, %eax
	movb	%al, 2(%r13)
	addl	-56(%rbp), %r14d                ## 4-byte Folded Reload
	movl	%r14d, %edi
	callq	_LIMIT
	movl	%eax, %ebx
	andl	$248, %ebx
	movl	%r15d, %edi
	callq	_LIMIT
	shrl	$5, %eax
	jmp	LBB0_10
LBB0_9:
	leal	(%r15,%r12), %edi
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	callq	_LIMIT
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, %r13d
	andl	$56, %r13d
	shll	$2, %r13d
	leal	(%rbx,%r12), %edi
	callq	_LIMIT
	shrl	$3, %eax
	orl	%r13d, %eax
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movb	%al, (%r13)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	addl	%ebx, %r12d
	movl	%r12d, %edi
	callq	_LIMIT
	movq	%rbx, %r12
	movl	%eax, %ebx
	shrl	%ebx
	andl	$124, %ebx
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_LIMIT
	shrl	$6, %eax
	orl	%ebx, %eax
	movb	%al, 1(%r13)
	addl	%r14d, %r15d
	movl	%r15d, %edi
	callq	_LIMIT
	movl	%eax, %ebx
	andl	$56, %ebx
	shll	$2, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addl	%r14d, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_LIMIT
	shrl	$3, %eax
	orl	%ebx, %eax
	movb	%al, 2(%r13)
	addl	%r12d, %r14d
	movl	%r14d, %edi
	callq	_LIMIT
	movl	%eax, %ebx
	shrl	%ebx
	andl	$124, %ebx
	movl	%r15d, %edi
	callq	_LIMIT
	shrl	$6, %eax
LBB0_10:
	orl	%ebx, %eax
LBB0_11:
	movb	%al, 3(%r13)
LBB0_12:
	movl	$4, %eax
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	testl	%r8d, %r8d
	je	LBB0_19
## %bb.15:
	leal	(%rbx,%r12), %edi
	callq	_LIMIT
	movb	%al, (%r13)
	leal	(%r15,%r12), %edi
	callq	_LIMIT
	movb	%al, 1(%r13)
	addl	-56(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r12d, %edi
	callq	_LIMIT
	movb	%al, 2(%r13)
	addl	%r14d, %ebx
	movl	%ebx, %edi
	callq	_LIMIT
	movb	%al, 4(%r13)
	addl	%r14d, %r15d
	movl	%r15d, %edi
	callq	_LIMIT
	movb	%al, 5(%r13)
	addl	-56(%rbp), %r14d                ## 4-byte Folded Reload
	jmp	LBB0_20
LBB0_16:
	testl	%r8d, %r8d
	je	LBB0_21
## %bb.17:
	leal	(%rbx,%r12), %edi
	callq	_LIMIT
	movb	%al, (%r13)
	leal	(%r15,%r12), %edi
	callq	_LIMIT
	movb	%al, 1(%r13)
	addl	-56(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r12d, %edi
	callq	_LIMIT
	movb	%al, 2(%r13)
	addl	%r14d, %ebx
	movl	%ebx, %edi
	callq	_LIMIT
	movb	%al, 3(%r13)
	addl	%r14d, %r15d
	movl	%r15d, %edi
	callq	_LIMIT
	movb	%al, 4(%r13)
	addl	-56(%rbp), %r14d                ## 4-byte Folded Reload
	jmp	LBB0_22
LBB0_18:
	movb	%r12b, (%r13)
	movb	%r14b, 1(%r13)
	movl	$2, %eax
	jmp	LBB0_13
LBB0_19:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leal	(%rbx,%r12), %edi
	callq	_LIMIT
	movb	%al, (%r13)
	leal	(%r15,%r12), %edi
	callq	_LIMIT
	movb	%al, 1(%r13)
	addl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r12d, %edi
	callq	_LIMIT
	movb	%al, 2(%r13)
	addl	%r14d, %ebx
	movl	%ebx, %edi
	callq	_LIMIT
	movb	%al, 4(%r13)
	addl	%r14d, %r15d
	movl	%r15d, %edi
	callq	_LIMIT
	movb	%al, 5(%r13)
	addl	-48(%rbp), %r14d                ## 4-byte Folded Reload
LBB0_20:
	movl	%r14d, %edi
	callq	_LIMIT
	movb	%al, 6(%r13)
	movl	$8, %eax
	jmp	LBB0_13
LBB0_21:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leal	(%rbx,%r12), %edi
	callq	_LIMIT
	movb	%al, (%r13)
	leal	(%r15,%r12), %edi
	callq	_LIMIT
	movb	%al, 1(%r13)
	addl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r12d, %edi
	callq	_LIMIT
	movb	%al, 2(%r13)
	addl	%r14d, %ebx
	movl	%ebx, %edi
	callq	_LIMIT
	movb	%al, 3(%r13)
	addl	%r14d, %r15d
	movl	%r15d, %edi
	callq	_LIMIT
	movb	%al, 4(%r13)
	addl	-48(%rbp), %r14d                ## 4-byte Folded Reload
LBB0_22:
	movl	%r14d, %edi
	callq	_LIMIT
	movb	%al, 5(%r13)
	movl	$6, %eax
	jmp	LBB0_13
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_18
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Empty: %d\n"

	.no_dead_strip	_yuvconvert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yuvconvert
_yuvconvert:                            ; @yuvconvert
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	sub	w8, w2, #131
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
	cmp	w3, #0
	mov	w8, #2
	cinc	x9, x8, eq
	cinc	x8, x8, ne
	ldrb	w8, [x0, x8]
	mov	w10, #10774
	movk	w10, #1, lsl #16
	mov	w11, #24224
	movk	w11, #65517, lsl #16
	madd	w21, w8, w10, w11
	ldrb	w8, [x0, x9]
	cinc	x9, x0, ne
	cinc	x12, x0, eq
	sub	w8, w8, #128
	ldrb	w9, [x9]
	madd	w25, w9, w10, w11
	ldrb	w9, [x12]
	sub	w9, w9, #128
	mov	w10, #39099
	movk	w10, #1, lsl #16
	mul	w22, w8, w10
	mov	w10, #-25690
	mov	w11, #-53294
	mul	w11, w8, w11
	madd	w24, w9, w10, w11
	mov	w10, #1206
	movk	w10, #2, lsl #16
	mul	w23, w9, w10
	b	LBB0_3
LBB0_2:
	mov	w22, #0
	mov	w24, #0
	mov	w23, #0
	ldrb	w25, [x0]
	ldrb	w9, [x0, #1]
	ldrb	w21, [x0, #2]
	ldrb	w8, [x0, #3]
LBB0_3:
	sub	w10, w2, #128
	cmp	w10, #7
	b.hi	LBB0_6
; %bb.4:
Lloh0:
	adrp	x11, lJTI0_0@PAGE
Lloh1:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_5
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_5:
	strb	w25, [x19]
	strb	w9, [x19, #1]
	strb	w21, [x19, #2]
	mov	w0, #4
	strb	w8, [x19, #3]
	b	LBB0_20
LBB0_6:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	bl	_DBG
	mov	w0, #0
	b	LBB0_20
LBB0_7:
	strb	w9, [x19]
	strb	w25, [x19, #1]
	strb	w8, [x19, #2]
	mov	w0, #4
	strb	w21, [x19, #3]
	b	LBB0_20
LBB0_8:
	add	w20, w24, w25
	mov	x0, x20
	bl	_LIMIT
	lsl	w8, w0, #3
	and	w26, w8, #0xe0
	add	w0, w23, w25
	bl	_LIMIT
	orr	w8, w26, w0, lsr #3
	strb	w8, [x19]
	add	w0, w22, w25
	bl	_LIMIT
	and	w25, w0, #0xf8
	mov	x0, x20
	bl	_LIMIT
	orr	w8, w25, w0, lsr #5
	strb	w8, [x19, #1]
	add	w20, w21, w24
	mov	x0, x20
	bl	_LIMIT
	lsl	w8, w0, #3
	and	w24, w8, #0xe0
	add	w0, w21, w23
	bl	_LIMIT
	orr	w8, w24, w0, lsr #3
	strb	w8, [x19, #2]
	add	w0, w21, w22
	bl	_LIMIT
	and	w21, w0, #0xf8
	mov	x0, x20
	bl	_LIMIT
	orr	w8, w21, w0, lsr #5
	b	LBB0_10
LBB0_9:
	add	w20, w24, w25
	mov	x0, x20
	bl	_LIMIT
	lsl	w8, w0, #2
	and	w26, w8, #0xe0
	add	w0, w23, w25
	bl	_LIMIT
	orr	w8, w26, w0, lsr #3
	strb	w8, [x19]
	add	w0, w22, w25
	bl	_LIMIT
	lsr	w8, w0, #1
	and	w25, w8, #0x7c
	mov	x0, x20
	bl	_LIMIT
	orr	w8, w25, w0, lsr #6
	strb	w8, [x19, #1]
	add	w20, w21, w24
	mov	x0, x20
	bl	_LIMIT
	lsl	w8, w0, #2
	and	w24, w8, #0xe0
	add	w0, w21, w23
	bl	_LIMIT
	orr	w8, w24, w0, lsr #3
	strb	w8, [x19, #2]
	add	w0, w21, w22
	bl	_LIMIT
	lsr	w8, w0, #1
	and	w21, w8, #0x7c
	mov	x0, x20
	bl	_LIMIT
	orr	w8, w21, w0, lsr #6
LBB0_10:
	strb	w8, [x19, #3]
	mov	w0, #4
	b	LBB0_20
LBB0_11:
	cbz	w4, LBB0_16
; %bb.12:
	add	w0, w23, w25
	bl	_LIMIT
	strb	w0, [x19]
	add	w0, w24, w25
	bl	_LIMIT
	strb	w0, [x19, #1]
	add	w0, w22, w25
	bl	_LIMIT
	strb	w0, [x19, #2]
	add	w0, w21, w23
	bl	_LIMIT
	strb	w0, [x19, #4]
	add	w0, w21, w24
	bl	_LIMIT
	strb	w0, [x19, #5]
	add	w0, w21, w22
	b	LBB0_17
LBB0_13:
	cbz	w4, LBB0_18
; %bb.14:
	add	w0, w23, w25
	bl	_LIMIT
	strb	w0, [x19]
	add	w0, w24, w25
	bl	_LIMIT
	strb	w0, [x19, #1]
	add	w0, w22, w25
	bl	_LIMIT
	strb	w0, [x19, #2]
	add	w0, w21, w23
	bl	_LIMIT
	strb	w0, [x19, #3]
	add	w0, w21, w24
	bl	_LIMIT
	strb	w0, [x19, #4]
	add	w0, w21, w22
	b	LBB0_19
LBB0_15:
	strb	w25, [x19]
	strb	w21, [x19, #1]
	mov	w0, #2
	b	LBB0_20
LBB0_16:
	add	w0, w22, w25
	bl	_LIMIT
	strb	w0, [x19]
	add	w0, w24, w25
	bl	_LIMIT
	strb	w0, [x19, #1]
	add	w0, w23, w25
	bl	_LIMIT
	strb	w0, [x19, #2]
	add	w0, w21, w22
	bl	_LIMIT
	strb	w0, [x19, #4]
	add	w0, w21, w24
	bl	_LIMIT
	strb	w0, [x19, #5]
	add	w0, w21, w23
LBB0_17:
	bl	_LIMIT
	strb	w0, [x19, #6]
	mov	w0, #8
	b	LBB0_20
LBB0_18:
	add	w0, w22, w25
	bl	_LIMIT
	strb	w0, [x19]
	add	w0, w24, w25
	bl	_LIMIT
	strb	w0, [x19, #1]
	add	w0, w23, w25
	bl	_LIMIT
	strb	w0, [x19, #2]
	add	w0, w21, w22
	bl	_LIMIT
	strb	w0, [x19, #3]
	add	w0, w21, w24
	bl	_LIMIT
	strb	w0, [x19, #4]
	add	w0, w21, w23
LBB0_19:
	bl	_LIMIT
	strb	w0, [x19, #5]
	mov	w0, #6
LBB0_20:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_13-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Empty: %d\n"

	.no_dead_strip	_yuvconvert
.subsections_via_symbols
