	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TOOLTIPS_GetTipText
_TOOLTIPS_GetTipText:                   ## @TOOLTIPS_GetTipText
	.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, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	leaq	(%rsi,%rsi,2), %r14
	leaq	(%rbx,%r14,8), %r13
	movq	(%rbx,%r14,8), %rdi
	callq	_IS_INTRESOURCE
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	16(%rbx,%r14,8), %r12d
	movq	(%r13), %rdi
	callq	_LOWORD
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_TRACE
	movl	16(%rbx,%r14,8), %r12d
	movq	(%r13), %rdi
	callq	_LOWORD
	movq	_INFOTIPSIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r12d, %edi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_LoadStringW
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_2
LBB0_3:
	movq	(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.4:
	movq	_LPSTR_TEXTCALLBACKW@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_8
## %bb.5:
	cmpq	$0, 8(%rbx,%r14,8)
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_TOOLTIPS_GetDispInfoW
	jmp	LBB0_9
LBB0_2:
	movb	$0, (%r12)
	jmp	LBB0_9
LBB0_8:
	movq	_INFOTIPSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_lstrcpynW
	jmp	LBB0_9
LBB0_7:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_TOOLTIPS_GetDispInfoA
LBB0_9:
	movl	(%r15), %edi
	movq	_GWL_STYLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetWindowLongW
	movq	_TTS_NOPREFIX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_12
## %bb.10:
	movq	%r12, %rdi
	movl	$9, %esi
	callq	_strchrW
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movb	$0, (%rax)
LBB0_12:
	movq	%r12, %rdi
	callq	_debugstr_w
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TRACE                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"load res string %p %x\n"

	.comm	_INFOTIPSIZE,4,2                ## @INFOTIPSIZE
	.comm	_LPSTR_TEXTCALLBACKW,8,3        ## @LPSTR_TEXTCALLBACKW
	.comm	_GWL_STYLE,4,2                  ## @GWL_STYLE
	.comm	_TTS_NOPREFIX,4,2               ## @TTS_NOPREFIX
L_.str.1:                               ## @.str.1
	.asciz	"%s\n"

	.no_dead_strip	_TOOLTIPS_GetTipText
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TOOLTIPS_GetTipText
_TOOLTIPS_GetTipText:                   ; @TOOLTIPS_GetTipText
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x23, [x0, #8]
	mov	w8, #24
	madd	x21, x1, x8, x23
	ldr	x0, [x21]
	bl	_IS_INTRESOURCE
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #24
	madd	x23, x22, x8, x23
	ldr	w22, [x23, #16]
	ldr	x0, [x21]
	bl	_LOWORD
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_TRACE
	ldr	w22, [x23, #16]
	ldr	x0, [x21]
	bl	_LOWORD
	mov	x1, x0
Lloh2:
	adrp	x8, _INFOTIPSIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INFOTIPSIZE@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x2, x19
	bl	_LoadStringW
	cbnz	w0, LBB0_9
	b	LBB0_6
LBB0_2:
	ldr	x1, [x21]
	cbz	x1, LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _LPSTR_TEXTCALLBACKW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LPSTR_TEXTCALLBACKW@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_7
; %bb.4:
	mov	w8, #24
	madd	x8, x22, x8, x23
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_8
; %bb.5:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_TOOLTIPS_GetDispInfoW
	b	LBB0_9
LBB0_6:
	strb	wzr, [x19]
	b	LBB0_9
LBB0_7:
Lloh8:
	adrp	x8, _INFOTIPSIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INFOTIPSIZE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_lstrcpynW
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_TOOLTIPS_GetDispInfoA
LBB0_9:
	ldr	w0, [x20]
Lloh11:
	adrp	x8, _GWL_STYLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GWL_STYLE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_GetWindowLongW
Lloh14:
	adrp	x8, _TTS_NOPREFIX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TTS_NOPREFIX@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_12
; %bb.10:
	mov	x0, x19
	mov	w1, #9
	bl	_strchrW
	cbz	x0, LBB0_12
; %bb.11:
	strb	wzr, [x0]
LBB0_12:
	mov	x0, x19
	bl	_debugstr_w
	mov	x1, x0
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_TRACE
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"load res string %p %x\n"

	.comm	_INFOTIPSIZE,4,2                ; @INFOTIPSIZE
	.comm	_LPSTR_TEXTCALLBACKW,8,3        ; @LPSTR_TEXTCALLBACKW
	.comm	_GWL_STYLE,4,2                  ; @GWL_STYLE
	.comm	_TTS_NOPREFIX,4,2               ; @TTS_NOPREFIX
l_.str.1:                               ; @.str.1
	.asciz	"%s\n"

	.no_dead_strip	_TOOLTIPS_GetTipText
.subsections_via_symbols
