	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gm12u320_32bpp_to_24bpp_packed
_gm12u320_32bpp_to_24bpp_packed:        ## @gm12u320_32bpp_to_24bpp_packed
	.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
	testl	%edx, %edx
	je	LBB0_6
## %bb.1:
	testb	$1, %dl
	jne	LBB0_3
## %bb.2:
	movl	%edx, %eax
	cmpl	$1, %edx
	jne	LBB0_5
	jmp	LBB0_6
LBB0_3:
	leal	-1(%rdx), %eax
	movl	(%rsi), %ecx
	movl	%ecx, (%rdi)
	movl	4(%rsi), %ecx
	movl	%ecx, 4(%rdi)
	movl	8(%rsi), %ecx
	movl	%ecx, 8(%rdi)
	addq	$12, %rdi
	addq	$16, %rsi
	cmpl	$1, %edx
	je	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %ecx
	movl	%ecx, (%rdi)
	movl	4(%rsi), %ecx
	movl	%ecx, 4(%rdi)
	movl	8(%rsi), %ecx
	movl	%ecx, 8(%rdi)
	movl	16(%rsi), %ecx
	movl	%ecx, 12(%rdi)
	movl	20(%rsi), %ecx
	movl	%ecx, 16(%rdi)
	movl	24(%rsi), %ecx
	addq	$32, %rsi
	movl	%ecx, 20(%rdi)
	addq	$24, %rdi
	addl	$-2, %eax
	jne	LBB0_5
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gm12u320_32bpp_to_24bpp_packed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gm12u320_32bpp_to_24bpp_packed
_gm12u320_32bpp_to_24bpp_packed:        ; @gm12u320_32bpp_to_24bpp_packed
	.cfi_startproc
; %bb.0:
	cbz	w2, LBB0_7
; %bb.1:
	sub	w8, w2, #1
	cmp	w8, #8
	b.lo	LBB0_6
; %bb.2:
	mov	w9, #12
	umaddl	x9, w8, w9, x0
	add	x9, x9, #12
	add	x10, x1, w8, uxtw #4
	add	x10, x10, #12
	cmp	x10, x0
	ccmp	x9, x1, #0, hi
	b.hi	LBB0_6
; %bb.3:
	add	x8, x8, #1
	ands	x9, x8, #0x7
	mov	w10, #8
	csel	x9, x10, x9, eq
	sub	x8, x8, x9
	sub	w2, w2, w8
	add	x9, x1, x8, lsl #4
	mov	w10, #12
	madd	x10, x8, x10, x0
	add	x11, x1, #64
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x12, x11, #64
	ld4.4s	{ v0, v1, v2, v3 }, [x12]
	ld4.4s	{ v4, v5, v6, v7 }, [x11]
	add	x12, x0, #96
	st3.4s	{ v0, v1, v2 }, [x0], #48
	st3.4s	{ v4, v5, v6 }, [x0]
	add	x11, x11, #128
	mov	x0, x12
	subs	x8, x8, #8
	b.ne	LBB0_4
; %bb.5:
	mov	x1, x9
	mov	x0, x10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x1]
	str	w8, [x0]
	ldr	w8, [x1, #4]
	str	w8, [x0, #4]
	ldr	w8, [x1, #8]
	str	w8, [x0, #8]
	add	x1, x1, #16
	add	x0, x0, #12
	subs	w2, w2, #1
	b.ne	LBB0_6
LBB0_7:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gm12u320_32bpp_to_24bpp_packed
.subsections_via_symbols
