	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rgb32to24                      ## -- Begin function rgb32to24
	.p2align	4, 0x90
_rgb32to24:                             ## @rgb32to24
	.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
	cmpl	$4, %edx
	jl	LBB0_3
## %bb.1:
	shrl	$2, %edx
	addq	$8, %rsi
	shlq	$4, %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rdi,%rax), %ecx
	movl	%ecx, -8(%rsi)
	movl	4(%rdi,%rax), %ecx
	movl	%ecx, -4(%rsi)
	movl	(%rdi,%rax), %ecx
	movl	%ecx, (%rsi)
	addq	$12, %rsi
	addq	$16, %rax
	cmpq	%rax, %rdx
	jne	LBB0_2
LBB0_3:
	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	_rgb32to24                      ; -- Begin function rgb32to24
	.p2align	2
_rgb32to24:                             ; @rgb32to24
	.cfi_startproc
; %bb.0:
	cmp	w2, #4
	b.lt	LBB0_8
; %bb.1:
	lsr	w8, w2, #2
	cmp	w2, #20
	b.lo	LBB0_5
; %bb.2:
	mov	w9, #12
	madd	x9, x8, x9, x1
	add	x10, x0, x8, lsl #4
	sub	x10, x10, #4
	cmp	x10, x1
	ccmp	x9, x0, #0, hi
	b.hi	LBB0_5
; %bb.3:
	ands	x9, x8, #0x3
	mov	w10, #4
	csel	x9, x10, x9, eq
	sub	x9, x8, x9
	mov	x10, x9
	mov	x11, x1
	mov	x12, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ld4.4s	{ v0, v1, v2, v3 }, [x12], #64
	mov.16b	v4, v2
	mov.16b	v5, v1
	mov.16b	v6, v0
	st3.4s	{ v4, v5, v6 }, [x11], #48
	subs	x10, x10, #4
	b.ne	LBB0_4
	b	LBB0_6
LBB0_5:
	mov	x9, #0
LBB0_6:
	sub	x8, x8, x9
	add	x10, x0, x9, lsl #4
	add	x10, x10, #8
	mov	w11, #12
	madd	x9, x9, x11, x1
	add	x9, x9, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	stur	w11, [x9, #-4]
	ldur	w11, [x10, #-4]
	str	w11, [x9]
	ldur	w11, [x10, #-8]
	str	w11, [x9, #4]
	add	x10, x10, #16
	add	x9, x9, #12
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
