	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_yuy2_x8r8g8b8
_convert_yuy2_x8r8g8b8:                 ## @convert_yuy2_x8r8g8b8
	.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
	movl	%r9d, %r12d
	movl	%ecx, %eax
	movl	%edx, %ecx
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %esi
	movl	%r9d, %edx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, %r8d
	callq	_TRACE
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.1:
	movl	%r12d, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	incq	%rdx
	movq	-120(%rbp), %rax                ## 8-byte Reload
	addl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	cmpq	-104(%rbp), %rdx                ## 8-byte Folded Reload
	je	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %eax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	%edx, %eax
	imull	-48(%rbp), %eax                 ## 4-byte Folded Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %r15
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	imull	$298, (%r15), %r13d             ## imm = 0x12A
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r13), %edi
	addl	$-4768, %edi                    ## imm = 0xED60
	sarl	$8, %edi
	callq	_cliptobyte
	movl	%eax, %r12d
	shll	$16, %r12d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r13), %edi
	addl	$-4768, %edi                    ## imm = 0xED60
	sarl	$8, %edi
	callq	_cliptobyte
	movl	%eax, %ebx
	shll	$8, %ebx
	orl	%r12d, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r13), %edi
	addl	$-4768, %edi                    ## imm = 0xED60
	sarl	$8, %edi
	callq	_cliptobyte
	orl	%ebx, %eax
	orl	$-16777216, %eax                ## imm = 0xFF000000
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx,%r14,4)
	addq	$16, %r15
	incq	%r14
	cmpq	%r14, -128(%rbp)                ## 8-byte Folded Reload
	je	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testb	$1, %r14b
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	8(%r15), %eax
	movl	24(%r15), %ecx
	leal	-128(%rax), %edx
	addl	$-128, %ecx
	imull	$409, %ecx, %esi                ## imm = 0x199
	subl	$-128, %esi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	imull	$-100, %edx, %esi
	imull	$-208, %ecx, %ecx
	addl	%esi, %ecx
	addl	$128, %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	shll	$9, %edx
	leal	(%rdx,%rax,4), %eax
	addl	$-384, %eax                     ## imm = 0xFE80
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
LBB0_8:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Converting %ux%u pixels, pitches %u %u.\n"

	.no_dead_strip	_convert_yuy2_x8r8g8b8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_yuy2_x8r8g8b8
_convert_yuy2_x8r8g8b8:                 ; @convert_yuy2_x8r8g8b8
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x5
	mov	x8, x3
	mov	x3, x2
	stp	x0, x1, [sp, #8]                ; 16-byte Folded Spill
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	stp	w8, w4, [sp, #40]               ; 8-byte Folded Spill
	mov	x1, x4
	mov	x2, x5
	str	w3, [sp, #28]                   ; 4-byte Folded Spill
	mov	x4, x8
	bl	_TRACE
	cbz	w24, LBB0_8
; %bb.1:
	mov	w9, #0
	mov	x10, #0
	mov	w27, #0
	mov	w19, #0
	mov	w21, #0
	mov	w8, w24
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	mov	w28, w8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [sp, #48]                  ; 8-byte Folded Reload
	add	x10, x10, #1
	ldr	w8, [sp, #40]                   ; 4-byte Folded Reload
	ldr	w9, [sp, #60]                   ; 4-byte Folded Reload
	add	w9, w9, w8
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	cmp	x10, x8
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	str	w9, [sp, #60]                   ; 4-byte Folded Spill
	str	x10, [sp, #48]                  ; 8-byte Folded Spill
	cbz	w8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, #0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x26, x8, w9, uxtw #3
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	mul	w8, w10, w8
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x22, x9, w8, uxtw #3
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x22], #16
	mov	w9, #298
	mov	w10, #-4768
	madd	w23, w8, w9, w10
	add	w8, w23, w27
	asr	w0, w8, #8
	bl	_cliptobyte
	lsl	w20, w0, #16
	add	w8, w23, w21
	asr	w0, w8, #8
	bl	_cliptobyte
	mov	x24, x0
	add	w8, w23, w19
	asr	w0, w8, #8
	bl	_cliptobyte
	orr	w8, w20, w24, lsl #8
	orr	w8, w8, w0
	orr	w8, w8, #0xff000000
	str	w8, [x26, x25, lsl #2]
	add	x25, x25, #1
	cmp	x28, x25
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	tbnz	w25, #0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x22, #8]
	sub	w8, w8, #128
	ldr	w9, [x22, #24]
	sub	w9, w9, #128
	mov	w10, #409
	orr	w11, wzr, #0x80
	madd	w27, w9, w10, w11
	mov	w10, #-208
	mul	w9, w9, w10
	mov	w10, #-100
	madd	w9, w8, w10, w9
	add	w21, w9, #128
	mov	w9, #516
	madd	w19, w8, w9, w11
	b	LBB0_5
LBB0_8:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Converting %ux%u pixels, pitches %u %u.\n"

	.no_dead_strip	_convert_yuy2_x8r8g8b8
.subsections_via_symbols
