	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_WM_NCHITTEST
_handle_WM_NCHITTEST:                   ## @handle_WM_NCHITTEST
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %r12d
	movl	%ecx, %edi
	callq	_LOWORD
	movl	%eax, -36(%rbp)
	movl	%ebx, %edi
	callq	_HIWORD
	movl	%eax, -40(%rbp)
	movq	_g_Wnd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-40(%rbp), %rsi
	callq	_ScreenToClient
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	-40(%rbp), %eax
	movl	-36(%rbp), %ecx
	movq	_g_mousex@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_g_mousey@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_2:
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	callq	_DefWindowProc
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_Wnd,4,2                      ## @g_Wnd
	.comm	_g_mousex,4,2                   ## @g_mousex
	.comm	_g_mousey,4,2                   ## @g_mousey
	.no_dead_strip	_handle_WM_NCHITTEST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_WM_NCHITTEST
_handle_WM_NCHITTEST:                   ; @handle_WM_NCHITTEST
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x0, x3
	bl	_LOWORD
	str	w0, [sp, #12]
	mov	x0, x19
	bl	_HIWORD
	str	w0, [sp, #8]
Lloh0:
	adrp	x8, _g_Wnd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_Wnd@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_ScreenToClient
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _g_mousex@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g_mousex@GOTPAGEOFF]
	ldp	w10, w9, [sp, #8]
Lloh5:
	str	w9, [x8]
Lloh6:
	adrp	x8, _g_mousey@GOTPAGE
Lloh7:
	ldr	x8, [x8, _g_mousey@GOTPAGEOFF]
Lloh8:
	str	w10, [x8]
LBB0_2:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_DefWindowProc
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_g_Wnd,4,2                      ; @g_Wnd
	.comm	_g_mousex,4,2                   ; @g_mousex
	.comm	_g_mousey,4,2                   ; @g_mousey
	.no_dead_strip	_handle_WM_NCHITTEST
.subsections_via_symbols
