	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rgb32tobgr24_c
_rgb32tobgr24_c:                        ## @rgb32tobgr24_c
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edx, %edx
	jle	LBB0_3
## %bb.1:
	movslq	%edx, %rax
	leaq	(%rdi,%rax,4), %rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi), %ecx
	movl	%ecx, (%rsi)
	movl	4(%rdi), %ecx
	movl	%ecx, 4(%rsi)
	movl	8(%rdi), %ecx
	movl	%ecx, 8(%rsi)
	addq	$16, %rdi
	addq	$12, %rsi
	cmpq	%rax, %rdi
	jb	LBB0_2
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rgb32tobgr24_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rgb32tobgr24_c
_rgb32tobgr24_c:                        ; @rgb32tobgr24_c
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
	cmp	w2, #1
	b.lt	LBB0_9
; %bb.1:
	sxtw	x8, w2
	add	x9, x0, x8, lsl #2
	add	x10, x0, #16
	cmp	x9, x10
	csel	x8, x9, x10, hi
	mvn	x11, x0
	add	x8, x8, x11
	cmp	x8, #128
	b.lo	LBB0_6
; %bb.2:
	cmp	x9, x10
	csel	x9, x9, x10, hi
	add	x9, x9, x11
	lsr	x10, x9, #4
	mov	w11, #12
	madd	x10, x10, x11, x1
	add	x10, x10, #12
	orr	x9, x9, #0xc
	and	x9, x9, #0xfffffffffffffffc
	add	x9, x0, x9
	cmp	x9, x1
	ccmp	x10, x0, #0, hi
	b.hi	LBB0_6
; %bb.3:
	lsr	x11, x8, #4
	add	x8, x11, #1
	ands	x9, x8, #0x7
	mov	w10, #8
	csel	x12, x10, x9, eq
	sub	x8, x8, x12
	mov	w9, #12
	madd	x9, x8, x9, x1
	add	x8, x0, x8, lsl #4
	add	x10, x0, #64
	mvn	x11, x11
	add	x11, x11, x12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x12, x10, #64
	ld4.4s	{ v0, v1, v2, v3 }, [x12]
	ld4.4s	{ v4, v5, v6, v7 }, [x10]
	add	x12, x1, #96
	st3.4s	{ v0, v1, v2 }, [x1], #48
	st3.4s	{ v4, v5, v6 }, [x1]
	add	x10, x10, #128
	mov	x1, x12
	adds	x11, x11, #8
	b.ne	LBB0_4
; %bb.5:
	mov	x1, x9
	b	LBB0_7
LBB0_6:
	mov	x8, x0
LBB0_7:
	add	x9, x0, w2, sxtw #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8]
	str	w10, [x1]
	ldr	w10, [x8, #4]
	str	w10, [x1, #4]
	ldr	w10, [x8, #8]
	str	w10, [x1, #8]
	add	x8, x8, #16
	add	x1, x1, #12
	cmp	x8, x9
	b.lo	LBB0_8
LBB0_9:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rgb32tobgr24_c
.subsections_via_symbols
