	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rgb24tobgr32_c
_rgb24tobgr32_c:                        ## @rgb24tobgr32_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)
	movl	$255, 12(%rsi)
	addq	$12, %rdi
	addq	$16, %rsi
	cmpq	%rax, %rdi
	jb	LBB0_2
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rgb24tobgr32_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rgb24tobgr32_c
_rgb24tobgr32_c:                        ; @rgb24tobgr32_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, #12
	cmp	x9, x10
	csel	x8, x9, x10, hi
	sub	x8, x8, #12
	cmp	x8, x0
	cinc	x11, x0, ne
	sub	x12, x8, x11
	cmp	x8, x0
	mov	x11, #-6148914691236517206
	movk	x11, #43691
	umulh	x8, x12, x11
	lsr	x8, x8, #3
	cinc	x8, x8, ne
	cmp	x8, #7
	b.lo	LBB0_6
; %bb.2:
	cmp	x9, x10
	csel	x9, x9, x10, hi
	sub	x9, x9, #12
	cmp	x9, x0
	cinc	x10, x0, ne
	sub	x10, x9, x10
	cmp	x9, x0
	umulh	x9, x10, x11
	lsr	x9, x9, #3
	cinc	x9, x9, ne
	add	x10, x1, x9, lsl #4
	add	x10, x10, #16
	mov	w11, #12
	madd	x9, x9, x11, x0
	add	x9, x9, #12
	cmp	x9, x1
	ccmp	x10, x0, #0, hi
	b.hi	LBB0_6
; %bb.3:
	add	x10, x8, #1
	and	x11, x10, #0x7ffffffffffffff8
	add	x8, x1, x11, lsl #4
	mov	w9, #12
	madd	x9, x11, x9, x0
	add	x12, x1, #64
	movi.2d	v3, #0x0000ff000000ff
	mov	x13, x11
	mov	x14, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x15, x14
	ld3.4s	{ v0, v1, v2 }, [x15], #48
	ld3.4s	{ v4, v5, v6 }, [x15]
	mov.16b	v7, v3
	sub	x15, x12, #64
	st4.4s	{ v0, v1, v2, v3 }, [x15]
	st4.4s	{ v4, v5, v6, v7 }, [x12]
	add	x14, x14, #96
	add	x12, x12, #128
	subs	x13, x13, #8
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x11
	b.ne	LBB0_7
	b	LBB0_9
LBB0_6:
	mov	x8, x1
	mov	x9, x0
LBB0_7:
	add	x10, x0, w2, sxtw #2
	mov	w11, #255
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9]
	str	w12, [x8]
	ldr	w12, [x9, #4]
	str	w12, [x8, #4]
	ldr	w12, [x9, #8]
	stp	w12, w11, [x8, #8]
	add	x9, x9, #12
	add	x8, x8, #16
	cmp	x9, x10
	b.lo	LBB0_8
LBB0_9:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rgb24tobgr32_c
.subsections_via_symbols
