	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function REBAR_InternalHitTest
_REBAR_InternalHitTest:                 ## @REBAR_InternalHitTest
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	leaq	-72(%rbp), %r12
	movq	%r12, %rsi
	callq	_GetClientRect
	movq	_RBHT_NOWHERE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_PtInRect
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	cmpq	$0, (%r14)
	je	LBB0_19
## %bb.2:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jle	LBB0_17
## %bb.3:
	xorl	%ebx, %ebx
	leaq	-68(%rbp), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpq	(%r14), %rbx
	jge	LBB0_17
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_REBAR_GetBand
	movq	%rax, %r13
	leaq	20(%rax), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_translate_rect
	movq	%r13, %rdi
	callq	_HIDDENBAND
	testq	%rax, %rax
	jne	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_PtInRect
	testq	%rax, %rax
	je	LBB0_16
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	%ebx, (%rax)
LBB0_8:
	leaq	16(%r13), %rdi
	movl	(%r15), %esi
	callq	_PtInRect
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %r14
	movq	_RBHT_GRABBER@GOTPCREL(%rip), %r12
	jmp	LBB0_15
LBB0_19:
	movq	_RBHT_NOWHERE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	testq	%r15, %r15
	je	LBB0_21
## %bb.20:
	movl	$-1, (%r15)
	jmp	LBB0_21
LBB0_17:
	movq	_RBHT_NOWHERE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_21
## %bb.18:
	movl	$-1, (%rax)
LBB0_21:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	12(%r13), %rdi
	movl	(%r15), %esi
	callq	_PtInRect
	leaq	L_.str.2(%rip), %r14
	movq	_RBHT_CAPTION@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	jne	LBB0_15
## %bb.11:
	leaq	8(%r13), %rdi
	movl	(%r15), %esi
	callq	_PtInRect
	testq	%rax, %rax
	jne	LBB0_15
## %bb.12:
	leaq	4(%r13), %rdi
	movl	(%r15), %esi
	callq	_PtInRect
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.3(%rip), %r14
	movq	_RBHT_CLIENT@GOTPCREL(%rip), %r12
	jmp	LBB0_15
LBB0_14:
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_PtInRect
	testq	%rax, %rax
	movq	_RBHT_CHEVRON@GOTPCREL(%rip), %r12
	cmoveq	_RBHT_NOWHERE@GOTPCREL(%rip), %r12
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %r14
	cmoveq	%rax, %r14
LBB0_15:
	movq	(%r12), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_RBHT_NOWHERE,8,3               ## @RBHT_NOWHERE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NOWHERE\n"

	.comm	_RBHT_GRABBER,8,3               ## @RBHT_GRABBER
L_.str.1:                               ## @.str.1
	.asciz	"ON GRABBER %d\n"

	.comm	_RBHT_CAPTION,8,3               ## @RBHT_CAPTION
L_.str.2:                               ## @.str.2
	.asciz	"ON CAPTION %d\n"

	.comm	_RBHT_CLIENT,8,3                ## @RBHT_CLIENT
L_.str.3:                               ## @.str.3
	.asciz	"ON CLIENT %d\n"

	.comm	_RBHT_CHEVRON,8,3               ## @RBHT_CHEVRON
L_.str.4:                               ## @.str.4
	.asciz	"ON CHEVRON %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"NOWHERE %d\n"

	.no_dead_strip	_REBAR_InternalHitTest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function REBAR_InternalHitTest
_REBAR_InternalHitTest:                 ; @REBAR_InternalHitTest
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x24, x0
	ldr	w0, [x0, #8]
	add	x1, sp, #12
	bl	_GetClientRect
Lloh0:
	adrp	x25, _RBHT_NOWHERE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _RBHT_NOWHERE@GOTPAGEOFF]
	ldr	x8, [x25]
	str	x8, [x19]
	ldr	w1, [x21]
	add	x0, sp, #12
	bl	_PtInRect
	cbz	x0, LBB0_11
; %bb.1:
	ldr	x8, [x24]
	cbz	x8, LBB0_11
; %bb.2:
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x20, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	ldr	x8, [x24]
	cmp	x20, x8
	b.ge	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	x1, x20
	bl	_REBAR_GetBand
	mov	x23, x0
	add	x2, x0, #20
	add	x1, sp, #8
	mov	x0, x24
	bl	_translate_rect
	mov	x0, x23
	bl	_HIDDENBAND
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x21]
	add	x0, sp, #8
	bl	_PtInRect
	cbz	x0, LBB0_4
; %bb.7:
	cbz	x22, LBB0_9
; %bb.8:
	str	w20, [x22]
LBB0_9:
	add	x0, x23, #16
	ldr	w1, [x21]
	bl	_PtInRect
	cbz	x0, LBB0_15
; %bb.10:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh4:
	adrp	x8, _RBHT_GRABBER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RBHT_GRABBER@GOTPAGEOFF]
	b	LBB0_18
LBB0_11:
	ldr	x8, [x25]
	str	x8, [x19]
	cbz	x22, LBB0_13
; %bb.12:
	mov	w8, #-1
	str	w8, [x22]
LBB0_13:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
LBB0_14:
	bl	_TRACE
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
	add	x0, x23, #12
	ldr	w1, [x21]
	bl	_PtInRect
	cbnz	x0, LBB0_17
; %bb.16:
	add	x0, x23, #8
	ldr	w1, [x21]
	bl	_PtInRect
	cbz	x0, LBB0_19
LBB0_17:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh10:
	adrp	x8, _RBHT_CAPTION@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RBHT_CAPTION@GOTPAGEOFF]
LBB0_18:
	ldr	x8, [x8]
	str	x8, [x19]
	str	x20, [sp]
	b	LBB0_14
LBB0_19:
	add	x0, x23, #4
	ldr	w1, [x21]
	bl	_PtInRect
	cbz	x0, LBB0_21
; %bb.20:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh14:
	adrp	x8, _RBHT_CLIENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RBHT_CLIENT@GOTPAGEOFF]
	b	LBB0_18
LBB0_21:
	ldr	w1, [x21]
	mov	x0, x23
	bl	_PtInRect
Lloh16:
	adrp	x8, _RBHT_CHEVRON@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RBHT_CHEVRON@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x25, x8, eq
Lloh18:
	adrp	x9, l_.str.4@PAGE
Lloh19:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh20:
	adrp	x10, l_.str.5@PAGE
Lloh21:
	add	x10, x10, l_.str.5@PAGEOFF
	csel	x0, x10, x9, eq
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RBHT_NOWHERE,8,3               ; @RBHT_NOWHERE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NOWHERE\n"

	.comm	_RBHT_GRABBER,8,3               ; @RBHT_GRABBER
l_.str.1:                               ; @.str.1
	.asciz	"ON GRABBER %d\n"

	.comm	_RBHT_CAPTION,8,3               ; @RBHT_CAPTION
l_.str.2:                               ; @.str.2
	.asciz	"ON CAPTION %d\n"

	.comm	_RBHT_CLIENT,8,3                ; @RBHT_CLIENT
l_.str.3:                               ; @.str.3
	.asciz	"ON CLIENT %d\n"

	.comm	_RBHT_CHEVRON,8,3               ; @RBHT_CHEVRON
l_.str.4:                               ; @.str.4
	.asciz	"ON CHEVRON %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"NOWHERE %d\n"

	.no_dead_strip	_REBAR_InternalHitTest
.subsections_via_symbols
