	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_WM_SETCURSOR
_handle_WM_SETCURSOR:                   ## @handle_WM_SETCURSOR
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	%edi, %ebx
	movq	_g_mousex@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_g_wnd_clip@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jl	LBB0_5
## %bb.1:
	movq	_g_mousey@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	8(%rax), %rdx
	jl	LBB0_5
## %bb.2:
	cmpq	16(%rax), %rcx
	jge	LBB0_5
## %bb.3:
	cmpq	24(%rax), %rdx
	jge	LBB0_5
## %bb.4:
	movq	_g_cursor@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SetCursor
LBB0_5:
	movl	%ebx, %edi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DefWindowProc                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_g_mousex,8,3                   ## @g_mousex
	.comm	_g_wnd_clip,32,3                ## @g_wnd_clip
	.comm	_g_mousey,8,3                   ## @g_mousey
	.comm	_g_cursor,4,2                   ## @g_cursor
	.no_dead_strip	_handle_WM_SETCURSOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_WM_SETCURSOR
_handle_WM_SETCURSOR:                   ; @handle_WM_SETCURSOR
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _g_mousex@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_mousex@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _g_wnd_clip@GOTPAGE
Lloh4:
	ldr	x9, [x9, _g_wnd_clip@GOTPAGEOFF]
	ldr	x10, [x9]
	cmp	x8, x10
	b.lt	LBB0_3
; %bb.1:
Lloh5:
	adrp	x10, _g_mousey@GOTPAGE
Lloh6:
	ldr	x10, [x10, _g_mousey@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	ldp	x11, x12, [x9, #8]
	ldr	x9, [x9, #24]
	cmp	x10, x11
	ccmp	x8, x12, #0, ge
	ccmp	x10, x9, #0, lt
	b.ge	LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _g_cursor@GOTPAGE
Lloh9:
	ldr	x8, [x8, _g_cursor@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_SetCursor
LBB0_3:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_DefWindowProc
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_g_mousex,8,3                   ; @g_mousex
	.comm	_g_wnd_clip,32,3                ; @g_wnd_clip
	.comm	_g_mousey,8,3                   ; @g_mousey
	.comm	_g_cursor,4,2                   ; @g_cursor
	.no_dead_strip	_handle_WM_SETCURSOR
.subsections_via_symbols
