	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function REBAR_NCHitTest
_REBAR_NCHitTest:                       ## @REBAR_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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_HTCLIENT@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	%esi, %edi
	callq	_LOWORD
	movw	%ax, -28(%rbp)
	movl	%ebx, %edi
	callq	_HIWORD
	movw	%ax, -26(%rbp)
	movl	(%r15), %edi
	leaq	-28(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_ScreenToClient
	leaq	-40(%rbp), %rcx
	leaq	-72(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_REBAR_InternalHitTest
	movq	$0, -48(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	_NM_NCHITTEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rdi
	movq	%r15, %rsi
	callq	_REBAR_Notify
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_TRACE
	movq	%rbx, %r14
LBB0_2:
	leaq	-28(%rbp), %rdi
	callq	_wine_dbgstr_point
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_TRACE
	movq	%r14, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HTCLIENT,8,3                   ## @HTCLIENT
	.comm	_NM_NCHITTEST,4,2               ## @NM_NCHITTEST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"notify changed return value from %ld to %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"returning %ld, client point %s\n"

	.no_dead_strip	_REBAR_NCHitTest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function REBAR_NCHitTest
_REBAR_NCHitTest:                       ; @REBAR_NCHitTest
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _HTCLIENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HTCLIENT@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	mov	x0, x1
	bl	_LOWORD
	strh	w0, [sp, #12]
	mov	x0, x20
	bl	_HIWORD
	strh	w0, [sp, #14]
	ldr	w0, [x21]
	add	x1, sp, #12
	bl	_ScreenToClient
	add	x8, sp, #16
	add	x3, x8, #24
	add	x1, sp, #12
	mov	x2, sp
	mov	x0, x21
	bl	_REBAR_InternalHitTest
	str	xzr, [sp, #32]
	ldr	w8, [sp, #12]
	str	w8, [sp, #24]
	str	xzr, [sp, #16]
Lloh3:
	adrp	x8, _NM_NCHITTEST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NM_NCHITTEST@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #16
	mov	x1, x21
	bl	_REBAR_Notify
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_TRACE
	mov	x19, x20
LBB0_2:
	add	x0, sp, #12
	bl	_wine_dbgstr_point
	mov	x2, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_TRACE
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HTCLIENT,8,3                   ; @HTCLIENT
	.comm	_NM_NCHITTEST,4,2               ; @NM_NCHITTEST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"notify changed return value from %ld to %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"returning %ld, client point %s\n"

	.no_dead_strip	_REBAR_NCHitTest
.subsections_via_symbols
