	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sti_cursor_argb8888_to_clut8
_sti_cursor_argb8888_to_clut8:          ## @sti_cursor_argb8888_to_clut8
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %edx
	testl	%edx, %edx
	je	LBB0_8
## %bb.1:
	movq	8(%rdi), %r9
	movl	4(%rdi), %ecx
	xorl	%r8d, %r8d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r8d
	cmpl	%edx, %r8d
	jae	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r10d, %r10d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rsi), %ecx
	movl	%ecx, %r11d
	shrl	$6, %r11d
	andl	$3, %r11d
	movl	%ecx, %edx
	shrl	$24, %edx
	andl	$-64, %edx
	movl	%ecx, %eax
	shrl	$18, %eax
	andl	$48, %eax
	orl	%edx, %eax
	shrl	$12, %ecx
	andl	$12, %ecx
	orl	%eax, %ecx
	orl	%r11d, %ecx
	movl	%ecx, (%r9)
	addq	$4, %rsi
	addq	$4, %r9
	incl	%r10d
	movl	4(%rdi), %ecx
	cmpl	%ecx, %r10d
	jb	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rdi), %edx
	jmp	LBB0_7
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sti_cursor_argb8888_to_clut8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sti_cursor_argb8888_to_clut8
_sti_cursor_argb8888_to_clut8:          ; @sti_cursor_argb8888_to_clut8
	.cfi_startproc
; %bb.0:
	ldr	w10, [x0]
	cbz	w10, LBB0_7
; %bb.1:
	mov	w8, #0
	ldr	x9, [x0, #8]
	ldr	w11, [x0, #4]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, #1
	cmp	w8, w10
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cbz	w11, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w10, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x1], #4
	lsr	w12, w11, #24
	and	w12, w12, #0xc0
	bfxil	w12, w11, #18, #6
	bfxil	w12, w11, #12, #4
	bfxil	w12, w11, #6, #2
	str	w12, [x9], #4
	add	w10, w10, #1
	ldr	w11, [x0, #4]
	cmp	w10, w11
	b.lo	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x0]
	b	LBB0_2
LBB0_7:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sti_cursor_argb8888_to_clut8
.subsections_via_symbols
