	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function convert_a8r8g8b8_x8r8g8b8
LCPI0_0:
	.long	4278190080                      ## 0xff000000
	.long	4278190080                      ## 0xff000000
	.long	4278190080                      ## 0xff000000
	.long	4278190080                      ## 0xff000000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_convert_a8r8g8b8_x8r8g8b8:             ## @convert_a8r8g8b8_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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, %ebx
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	movl	%r8d, %esi
	movl	%r9d, %edx
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	callq	_TRACE
	testl	%r15d, %r15d
	je	LBB0_20
## %bb.1:
	movl	%r15d, %edi
	movl	%ebx, %r15d
	movl	%r15d, %eax
	andl	$-8, %eax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	addq	$-8, %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	%rax, %rcx
	shrq	$3, %rcx
	incq	%rcx
	movq	%rcx, %rax
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	andq	$-2, %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movl	%r15d, %eax
	andl	$3, %eax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	48(%rcx), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	48(%rax), %rdx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	addq	$12, %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	leaq	12(%rcx), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	xorl	%r10d, %r10d
	movl	$-16777216, %r11d               ## imm = 0xFF000000
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [4278190080,4278190080,4278190080,4278190080]
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, -84(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r9
	addl	%r14d, %r8d
	addl	%r12d, %r10d
	cmpq	%rdi, %r9
	je	LBB0_20
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
	testl	%ebx, %ebx
	je	LBB0_19
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r10d, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%r8d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpl	$8, %ebx
	jb	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r9d, %eax
	imull	%r14d, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movl	%r9d, %edx
	imull	%r12d, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rdx,4), %rdx
	subq	%rax, %rdx
	movl	$0, %esi
	cmpq	$32, %rdx
	jb	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -144(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %r12
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movq	-112(%rbp), %r13                ## 8-byte Reload
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-48(%r12,%rsi,4), %xmm1
	movups	-32(%r12,%rsi,4), %xmm2
	orps	%xmm0, %xmm1
	orps	%xmm0, %xmm2
	movups	%xmm1, -48(%rax,%rsi,4)
	movups	%xmm2, -32(%rax,%rsi,4)
	movups	-16(%r12,%rsi,4), %xmm1
	movups	(%r12,%rsi,4), %xmm2
	orps	%xmm0, %xmm1
	orps	%xmm0, %xmm2
	movups	%xmm1, -16(%rax,%rsi,4)
	movups	%xmm2, (%rax,%rsi,4)
	addq	$16, %rsi
	addq	$-2, %r13
	jne	LBB0_9
	jmp	LBB0_10
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_13
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, -136(%rbp)                  ## 1-byte Folded Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	-84(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r9d, %eax
	imull	%r14d, %eax
	movl	%r9d, %edx
	imull	%r12d, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rdx,4), %rdx
	movups	(%rax,%rsi,4), %xmm1
	movups	16(%rax,%rsi,4), %xmm2
	orps	%xmm0, %xmm1
	orps	%xmm0, %xmm2
	movups	%xmm1, (%rdx,%rsi,4)
	movups	%xmm2, 16(%rdx,%rsi,4)
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-152(%rbp), %rax                ## 8-byte Reload
	movq	%rax, %rsi
	cmpq	%r15, %rax
	je	LBB0_19
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, %r13
	movq	%rsi, %rax
	notq	%rax
	addq	%r15, %rax
	movq	-160(%rbp), %rdx                ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%rcx,%rdi,4), %rbx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%rcx,%rdi,4), %rdi
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdi,%rsi,4), %ecx
	orl	%r11d, %ecx
	movl	%ecx, (%rbx,%rsi,4)
	incq	%rsi
	decq	%rdx
	jne	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$3, %rax
	movq	%r13, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jb	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rcx,%rdx,4), %rdx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-12(%rdx,%rsi,4), %ecx
	orl	%r11d, %ecx
	movl	%ecx, -12(%rax,%rsi,4)
	movl	-8(%rdx,%rsi,4), %ecx
	orl	%r11d, %ecx
	movl	%ecx, -8(%rax,%rsi,4)
	movl	-4(%rdx,%rsi,4), %ecx
	orl	%r11d, %ecx
	movl	%ecx, -4(%rax,%rsi,4)
	movl	(%rdx,%rsi,4), %ecx
	orl	%r11d, %ecx
	movl	%ecx, (%rax,%rsi,4)
	addq	$4, %rsi
	cmpq	%rsi, %r15
	jne	LBB0_18
	jmp	LBB0_19
LBB0_20:
	addq	$120, %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_a8r8g8b8_x8r8g8b8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_a8r8g8b8_x8r8g8b8
_convert_a8r8g8b8_x8r8g8b8:             ; @convert_a8r8g8b8_x8r8g8b8
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x24, x5
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x4
	mov	x2, x5
	mov	x3, x21
	mov	x4, x20
	bl	_TRACE
	cbz	w24, LBB0_11
; %bb.1:
	mov	w16, #0
	mov	w17, #0
	mov	x8, #0
	mov	w9, w24
	mov	w10, w19
	and	x11, x10, #0xfffffff0
	add	x12, x22, #32
	add	x13, x23, #32
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	add	w17, w15, w20
	add	w16, w14, w21
	cmp	x8, x9
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	mov	w14, w16
	mov	w15, w17
	cbz	w19, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, #0
	cmp	w19, #16
	b.lo	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mul	w1, w8, w21
	add	x1, x23, w1, uxtw #2
	mul	w2, w8, w20
	add	x2, x22, w2, uxtw #2
	sub	x1, x2, x1
	cmp	x1, #64
	b.lo	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x17, x12, w17, uxtw #2
	mov	x0, x11
	add	x16, x13, w16, uxtw #2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x16, #-32]
	ldp	q2, q3, [x16], #64
	orr.4s	v0, #255, lsl #24
	orr.4s	v1, #255, lsl #24
	orr.4s	v2, #255, lsl #24
	orr.4s	v3, #255, lsl #24
	stp	q0, q1, [x17, #-32]
	stp	q2, q3, [x17], #64
	subs	x0, x0, #16
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x11
	cmp	x11, x10
	b.eq	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x16, x0, x14
	add	x16, x23, x16, lsl #2
	add	x17, x0, x15
	add	x17, x22, x17, lsl #2
	sub	x0, x10, x0
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x16], #4
	orr	w1, w1, #0xff000000
	str	w1, [x17], #4
	subs	x0, x0, #1
	b.ne	LBB0_10
	b	LBB0_2
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	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_a8r8g8b8_x8r8g8b8
.subsections_via_symbols
