	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TOOLTIPS_GetToolFromPoint
_TOOLTIPS_GetToolFromPoint:             ## @TOOLTIPS_GetToolFromPoint
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	(%rdi), %rax
	movq	$-1, %rsi
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movl	$24, %r12d
	xorl	%r14d, %r14d
	movq	_TTF_IDISHWND@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	addq	$32, %r12
	cmpq	%rax, %r14
	jae	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	movl	(%r13), %ecx
	testl	%ecx, -24(%rdi,%r12)
	jne	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r15, -16(%rdi,%r12)
	jne	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%r12, %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	callq	_PtInRect
	testl	%eax, %eax
	jne	LBB0_5
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	jmp	LBB0_14
LBB0_7:
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	8(%rbx), %rcx
	movl	(%r13), %edx
	addq	$16, %rcx
	xorl	%esi, %esi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rsi
	addq	$32, %rcx
	cmpq	%rsi, %rax
	je	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	testl	%edx, -16(%rcx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%r15, (%rcx)
	jne	LBB0_11
	jmp	LBB0_6
LBB0_12:
	movq	$-1, %rsi
	jmp	LBB0_6
LBB0_5:
	movq	%r14, %rsi
LBB0_6:
	movq	%rsi, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTF_IDISHWND,4,2               ## @TTF_IDISHWND
	.no_dead_strip	_TOOLTIPS_GetToolFromPoint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TOOLTIPS_GetToolFromPoint
_TOOLTIPS_GetToolFromPoint:             ; @TOOLTIPS_GetToolFromPoint
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0]
	cbz	x8, LBB0_12
; %bb.1:
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	mov	x24, #0
	mov	x19, #0
Lloh0:
	adrp	x23, _TTF_IDISHWND@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TTF_IDISHWND@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, #1
	add	x24, x24, #32
	cmp	x19, x8
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #8]
	ldr	w10, [x9, x24]
	ldr	w11, [x23]
	tst	w11, w10
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, x24
	ldr	x10, [x9, #8]
	cmp	x10, x20
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x9, #24
	ldr	w1, [x22]
	bl	_PtInRect
	cbnz	w0, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	b	LBB0_2
LBB0_7:
	cbz	x8, LBB0_12
; %bb.8:
	mov	x19, #0
	ldr	x10, [x21, #8]
	ldr	w9, [x23]
	add	x10, x10, #16
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x19, x19, #1
	add	x10, x10, #32
	cmp	x8, x19
	b.eq	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x10, #-16]
	tst	w9, w11
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x11, [x10]
	cmp	x11, x20
	b.ne	LBB0_9
	b	LBB0_13
LBB0_12:
	mov	x19, #-1
LBB0_13:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TTF_IDISHWND,4,2               ; @TTF_IDISHWND
	.no_dead_strip	_TOOLTIPS_GetToolFromPoint
.subsections_via_symbols
