	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sws_convertPalette8ToPacked32  ## -- Begin function sws_convertPalette8ToPacked32
	.p2align	4, 0x90
_sws_convertPalette8ToPacked32:         ## @sws_convertPalette8ToPacked32
	.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_8
## %bb.1:
	movl	%edx, %r9d
	leaq	-1(%r9), %rax
	movl	%r9d, %r8d
	andl	$3, %r8d
	cmpq	$3, %rax
	jae	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	andl	$-4, %r9d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rax,8), %rdx
	movl	(%rcx,%rdx,4), %edx
	movl	%edx, (%rsi,%rax,4)
	movq	8(%rdi,%rax,8), %rdx
	movl	(%rcx,%rdx,4), %edx
	movl	%edx, 4(%rsi,%rax,4)
	movq	16(%rdi,%rax,8), %rdx
	movl	(%rcx,%rdx,4), %edx
	movl	%edx, 8(%rsi,%rax,4)
	movq	24(%rdi,%rax,8), %rdx
	movl	(%rcx,%rdx,4), %edx
	movl	%edx, 12(%rsi,%rax,4)
	addq	$4, %rax
	cmpq	%rax, %r9
	jne	LBB0_4
LBB0_5:
	testq	%r8, %r8
	je	LBB0_8
## %bb.6:
	leaq	(%rsi,%rax,4), %rdx
	leaq	(%rdi,%rax,8), %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rsi,8), %rdi
	movl	(%rcx,%rdi,4), %edi
	movl	%edi, (%rdx,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %r8
	jne	LBB0_7
LBB0_8:
	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	_sws_convertPalette8ToPacked32  ; -- Begin function sws_convertPalette8ToPacked32
	.p2align	2
_sws_convertPalette8ToPacked32:         ; @sws_convertPalette8ToPacked32
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w8, w2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x0], #8
	ldr	w9, [x3, x9, lsl #2]
	str	w9, [x1], #4
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_3:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
