	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_cursor                     ## -- Begin function set_cursor
	.p2align	4, 0x90
_set_cursor:                            ## @set_cursor
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cursors@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_current_cursor@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	leaq	(%rcx,%rcx,2), %rdx
	cmpq	$0, (%rax,%rdx,8)
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movq	_cursors_data@GOTPCREL(%rip), %r12
	xorl	%esi, %esi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	incq	%rsi
	leaq	(%rcx,%rcx,2), %rdx
	cmpq	(%rax,%rdx,8), %rsi
	jge	LBB0_7
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	leaq	(%rcx,%rcx,2), %rdx
	cmpq	$0, 8(%rax,%rdx,8)
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rdx
	leaq	(%rcx,%rcx,2), %rcx
	movq	16(%rax,%rcx,8), %rax
	addq	%rbx, %rax
	movl	(%rdx,%rax,4), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_set_sprite_data
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_set_sprite_tile
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_set_sprite_prop
	incq	%rbx
	incq	%r13
	movq	(%r14), %rax
	movq	(%r15), %rcx
	leaq	(%rcx,%rcx,2), %rdx
	cmpq	8(%rax,%rdx,8), %r13
	jl	LBB0_5
	jmp	LBB0_6
LBB0_7:
	cmpq	$3, %rbx
	jle	LBB0_8
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_move_sprite
	incq	%rbx
	cmpq	$4, %rbx
	jne	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cursors,8,3                    ## @cursors
	.comm	_current_cursor,8,3             ## @current_cursor
	.comm	_cursors_data,8,3               ## @cursors_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_cursor                     ; -- Begin function set_cursor
	.p2align	2
_set_cursor:                            ; @set_cursor
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x21, _cursors@GOTPAGE
Lloh1:
	ldr	x21, [x21, _cursors@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x22, _current_cursor@GOTPAGE
Lloh3:
	ldr	x22, [x22, _current_cursor@GOTPAGEOFF]
	ldr	x9, [x22]
	mov	w10, #24
	mul	x10, x9, x10
	ldr	x10, [x8, x10]
	cmp	x10, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, #0
	mov	x23, #0
	mov	w24, #24
Lloh4:
	adrp	x25, _cursors_data@GOTPAGE
Lloh5:
	ldr	x25, [x25, _cursors_data@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	mul	x10, x9, x24
	ldr	x10, [x8, x10]
	cmp	x23, x10
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	madd	x10, x9, x24, x8
	ldr	x10, [x10, #8]
	cmp	x10, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x25]
	madd	x8, x9, x24, x8
	ldr	x8, [x8, #16]
	add	x20, x19, x26
	add	x8, x20, x8
	ldr	w2, [x10, x8, lsl #2]
	mov	x0, x20
	mov	w1, #1
	bl	_set_sprite_data
	mov	x0, x20
	mov	x1, x20
	bl	_set_sprite_tile
	mov	x0, x20
	mov	w1, #16
	bl	_set_sprite_prop
	add	x26, x26, #1
	ldr	x8, [x21]
	ldr	x9, [x22]
	madd	x10, x9, x24, x8
	ldr	x10, [x10, #8]
	cmp	x26, x10
	b.lt	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, x26
	b	LBB0_2
LBB0_7:
	cmp	x19, #3
	b.le	LBB0_9
	b	LBB0_10
LBB0_8:
	mov	x19, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_move_sprite
	add	x19, x19, #1
	cmp	x19, #4
	b.ne	LBB0_9
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_cursors,8,3                    ; @cursors
	.comm	_current_cursor,8,3             ; @current_cursor
	.comm	_cursors_data,8,3               ; @cursors_data
.subsections_via_symbols
