	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function processing_bgr_xrgb
LCPI0_0:
	.long	4278190080                      ## 0xff000000
	.long	4278190080                      ## 0xff000000
	.long	4278190080                      ## 0xff000000
	.long	4278190080                      ## 0xff000000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_processing_bgr_xrgb
	.p2align	4, 0x90
_processing_bgr_xrgb:                   ## @processing_bgr_xrgb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	imull	%ecx, %edx
	testl	%edx, %edx
	jle	LBB0_13
## %bb.1:
	leal	-1(%rdx), %r9d
	xorl	%r8d, %r8d
	cmpl	$3, %r9d
	jb	LBB0_2
## %bb.3:
	leaq	(%r9,%r9,2), %rax
	leaq	(%rdi,%rax,4), %rax
	addq	$12, %rax
	cmpq	%rsi, %rax
	jbe	LBB0_5
## %bb.4:
	leaq	(%rsi,%r9,4), %rax
	addq	$4, %rax
	cmpq	%rdi, %rax
	jbe	LBB0_5
LBB0_2:
	movq	%rdi, %rax
	movq	%rsi, %r10
LBB0_8:
	movl	%edx, %esi
	subl	%r8d, %esi
	leal	1(%r8), %ecx
	testb	$1, %sil
	je	LBB0_10
## %bb.9:
	movl	4(%rax), %esi
	movl	8(%rax), %edi
	shll	$16, %edi
	shll	$8, %esi
	orl	%edi, %esi
	orl	(%rax), %esi
	orl	$-16777216, %esi                ## imm = 0xFF000000
	movl	%esi, (%r10)
	addq	$12, %rax
	addq	$4, %r10
	movl	%ecx, %r8d
LBB0_10:
	cmpl	%ecx, %edx
	je	LBB0_13
## %bb.11:
	subl	%r8d, %edx
	addq	$20, %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	-16(%rax), %esi
	movl	-12(%rax), %edi
	shll	$16, %edi
	shll	$8, %esi
	orl	%edi, %esi
	orl	-20(%rax), %esi
	orl	$-16777216, %esi                ## imm = 0xFF000000
	movl	%esi, (%r10,%rcx,4)
	movl	-4(%rax), %esi
	movl	(%rax), %edi
	shll	$16, %edi
	shll	$8, %esi
	orl	%edi, %esi
	orl	-8(%rax), %esi
	orl	$-16777216, %esi                ## imm = 0xFF000000
	movl	%esi, 4(%r10,%rcx,4)
	addq	$2, %rcx
	addq	$24, %rax
	cmpl	%ecx, %edx
	jne	LBB0_12
	jmp	LBB0_13
LBB0_5:
	incq	%r9
	movq	%r9, %r8
	andq	$-4, %r8
	leaq	(%r8,%r8,2), %rax
	leaq	(%rdi,%rax,4), %rax
	leaq	(%rsi,%r8,4), %r10
	addq	$44, %rdi
	xorl	%ecx, %ecx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [4278190080,4278190080,4278190080,4278190080]
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movd	-36(%rdi), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	pinsrd	$1, -24(%rdi), %xmm1
	pinsrd	$2, -12(%rdi), %xmm1
	pinsrd	$3, (%rdi), %xmm1
	movd	-40(%rdi), %xmm2                ## xmm2 = mem[0],zero,zero,zero
	pinsrd	$1, -28(%rdi), %xmm2
	pinsrd	$2, -16(%rdi), %xmm2
	pinsrd	$3, -4(%rdi), %xmm2
	pslld	$16, %xmm1
	pslld	$8, %xmm2
	por	%xmm1, %xmm2
	movd	-44(%rdi), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	pinsrd	$1, -32(%rdi), %xmm1
	pinsrd	$2, -20(%rdi), %xmm1
	pinsrd	$3, -8(%rdi), %xmm1
	por	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movdqu	%xmm1, (%rsi,%rcx,4)
	addq	$4, %rcx
	addq	$48, %rdi
	cmpq	%rcx, %r8
	jne	LBB0_6
## %bb.7:
	cmpq	%r8, %r9
	jne	LBB0_8
LBB0_13:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_processing_bgr_xrgb            ; -- Begin function processing_bgr_xrgb
	.p2align	2
_processing_bgr_xrgb:                   ; @processing_bgr_xrgb
	.cfi_startproc
; %bb.0:
	mul	w8, w3, w2
	subs	w9, w8, #1
	b.lt	LBB0_9
; %bb.1:
	cmp	w9, #15
	b.lo	LBB0_6
; %bb.2:
	add	x10, x1, w9, uxtw #2
	add	x10, x10, #4
	mov	w11, #12
	umaddl	x11, w9, w11, x0
	add	x11, x11, #12
	cmp	x11, x1
	ccmp	x10, x0, #0, hi
	b.hi	LBB0_6
; %bb.3:
	add	x12, x9, #1
	and	x10, x12, #0x1fffffff0
	mov	w9, #12
	madd	x11, x10, x9, x0
	add	x9, x1, x10, lsl #2
	add	x13, x0, #96
	add	x14, x1, #32
	mov	x15, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x16, x13, #96
	sub	x17, x13, #48
	ld3.4s	{ v0, v1, v2 }, [x16]
	ld3.4s	{ v3, v4, v5 }, [x17]
	mov	x16, x13
	ld3.4s	{ v16, v17, v18 }, [x16], #48
	ld3.4s	{ v19, v20, v21 }, [x16]
	shl.4s	v6, v2, #16
	shl.4s	v7, v5, #16
	shl.4s	v22, v18, #16
	shl.4s	v23, v21, #16
	shl.4s	v24, v1, #8
	shl.4s	v25, v4, #8
	shl.4s	v26, v17, #8
	shl.4s	v27, v20, #8
	orr.16b	v6, v6, v24
	orr.16b	v7, v7, v25
	orr.16b	v22, v22, v26
	orr.16b	v23, v23, v27
	orr.16b	v0, v6, v0
	orr.16b	v1, v7, v3
	orr.16b	v2, v22, v16
	orr.16b	v3, v23, v19
	orr.4s	v0, #255, lsl #24
	orr.4s	v1, #255, lsl #24
	orr.4s	v2, #255, lsl #24
	stp	q0, q1, [x14, #-32]
	orr.4s	v3, #255, lsl #24
	stp	q2, q3, [x14], #64
	add	x13, x13, #192
	subs	x15, x15, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x12, x10
	b.ne	LBB0_7
	b	LBB0_9
LBB0_6:
	mov	w10, #0
	mov	x11, x0
	mov	x9, x1
LBB0_7:
	sub	w8, w8, w10
	add	x10, x11, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w12, w11, [x10, #-4]
	lsl	w11, w11, #16
	ldur	w13, [x10, #-8]
	orr	w11, w11, w12, lsl #8
	orr	w11, w11, w13
	orr	w11, w11, #0xff000000
	str	w11, [x9], #4
	add	x10, x10, #12
	subs	w8, w8, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
