	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TOOLTIPS_SetToolInfoT
_TOOLTIPS_SetToolInfoT:                 ## @TOOLTIPS_SetToolInfoT
	.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
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.1:
	movq	%rsi, %r14
	movq	(%rsi), %rax
	movq	_TTTOOLINFOW_V1_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_24
## %bb.2:
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movq	%r14, %rsi
	callq	_TOOLTIPS_GetToolFromInfoT
	cmpl	$-1, %eax
	je	LBB0_24
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %r13
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movslq	%r15d, %rax
	movl	40(%r14), %ecx
	leaq	(%rax,%rax,4), %r15
	movl	%ecx, 32(%r13,%r15,8)
	movups	24(%r14), %xmm0
	movups	%xmm0, 16(%r13,%r15,8)
	movq	16(%r14), %rdi
	callq	_IS_INTRESOURCE
	movq	16(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	callq	_LOWORD
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	16(%r14), %rax
	movq	%rax, 8(%r13,%r15,8)
	movq	%r13, %rsi
	movq	%r15, %rdx
	jmp	LBB0_7
LBB0_5:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	callq	_TOOLTIPS_IsCallbackString
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_LPSTR_TEXTCALLBACKW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, 8(%rsi,%rdx,8)
LBB0_7:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_18:
	movq	(%r14), %rax
	movq	_TTTOOLINFOW_V2_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_20
## %bb.19:
	movl	8(%r14), %eax
	movl	%eax, (%rsi,%rdx,8)
LBB0_20:
	cmpl	%r15d, (%rbx)
	jne	LBB0_24
## %bb.21:
	movq	8(%rbx), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_TOOLTIPS_GetTipText
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_22
## %bb.23:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_TOOLTIPS_Show
	jmp	LBB0_24
LBB0_22:
	movq	%rbx, %rdi
	callq	_TOOLTIPS_Hide
LBB0_24:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rsi,%rdx,8), %r13
	addq	$8, %r13
	movq	8(%rsi,%rdx,8), %rdi
	testq	%rdi, %rdi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_13
## %bb.9:
	callq	_IS_INTRESOURCE
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_13
## %bb.10:
	movq	(%r13), %rdi
	movq	_LPSTR_TEXTCALLBACKW@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_12
## %bb.11:
	callq	_Free
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
LBB0_12:
	movq	$0, (%r13)
LBB0_13:
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	testq	%r12, %r12
	je	LBB0_16
## %bb.15:
	movq	%rax, %rdi
	callq	_lstrlenW
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %edi
	callq	_Alloc
	movq	%rax, (%r13)
	movq	16(%r14), %rsi
	movq	%rax, %rdi
	callq	_strcpyW
	jmp	LBB0_17
LBB0_16:
	movq	_CP_ACP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_MultiByteToWideChar
	movl	%eax, %r12d
	leal	(,%r12,4), %edi
	callq	_Alloc
	movq	%rax, (%r13)
	movq	_CP_ACP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	16(%r14), %edx
	xorl	%esi, %esi
	movl	$-1, %ecx
	movq	%rax, %r8
	movl	%r12d, %r9d
	callq	_MultiByteToWideChar
LBB0_17:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_TTTOOLINFOW_V1_SIZE,8,3        ## @TTTOOLINFOW_V1_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tool %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"set string id %x\n"

	.comm	_LPSTR_TEXTCALLBACKW,8,3        ## @LPSTR_TEXTCALLBACKW
	.comm	_CP_ACP,4,2                     ## @CP_ACP
	.comm	_TTTOOLINFOW_V2_SIZE,8,3        ## @TTTOOLINFOW_V2_SIZE
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_TOOLTIPS_SetToolInfoT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TOOLTIPS_SetToolInfoT
_TOOLTIPS_SetToolInfoT:                 ; @TOOLTIPS_SetToolInfoT
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x1, LBB0_14
; %bb.1:
	mov	x20, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _TTTOOLINFOW_V1_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TTTOOLINFOW_V1_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_14
; %bb.2:
	mov	x22, x2
	mov	x19, x0
	mov	x1, x20
	bl	_TOOLTIPS_GetToolFromInfoT
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.3:
	mov	x21, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_TRACE
	ldr	x23, [x19, #16]
	sxtw	x24, w21
	ldr	w8, [x20, #40]
	mov	w9, #40
	smaddl	x9, w21, w9, x23
	str	w8, [x9, #32]
	ldur	q0, [x20, #24]
	str	q0, [x9, #16]
	ldr	x0, [x20, #16]
	bl	_IS_INTRESOURCE
	mov	x8, x0
	ldr	x0, [x20, #16]
	cbz	x8, LBB0_5
; %bb.4:
	bl	_LOWORD
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	ldr	x8, [x20, #16]
	b	LBB0_7
LBB0_5:
	mov	x1, x22
	bl	_TOOLTIPS_IsCallbackString
	cbz	x0, LBB0_15
; %bb.6:
Lloh7:
	adrp	x8, _LPSTR_TEXTCALLBACKW@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LPSTR_TEXTCALLBACKW@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
LBB0_7:
	mov	w9, #40
	madd	x9, x24, x9, x23
	str	x8, [x9, #8]
LBB0_8:
	ldr	x8, [x20]
Lloh10:
	adrp	x9, _TTTOOLINFOW_V2_SIZE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TTTOOLINFOW_V2_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_10
; %bb.9:
	ldr	w8, [x20, #8]
	mov	w9, #40
	mul	x9, x24, x9
	str	w8, [x23, x9]
LBB0_10:
	ldr	w8, [x19]
	cmp	w8, w21
	b.ne	LBB0_14
; %bb.11:
	ldr	x2, [x19, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_TOOLTIPS_GetTipText
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.12:
Lloh13:
	adrp	x8, _FALSE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_TOOLTIPS_Show
	b	LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_TOOLTIPS_Hide
LBB0_14:
	mov	w0, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	w8, #40
	madd	x25, x24, x8, x23
	ldr	x0, [x25, #8]!
	cbz	x0, LBB0_20
; %bb.16:
	bl	_IS_INTRESOURCE
	cbnz	x0, LBB0_20
; %bb.17:
	ldr	x0, [x25]
Lloh16:
	adrp	x8, _LPSTR_TEXTCALLBACKW@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LPSTR_TEXTCALLBACKW@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_19
; %bb.18:
	bl	_Free
LBB0_19:
	str	xzr, [x25]
LBB0_20:
	ldr	x2, [x20, #16]
	cbz	x2, LBB0_8
; %bb.21:
	cbz	x22, LBB0_23
; %bb.22:
	mov	x0, x2
	bl	_lstrlenW
	lsl	w8, w0, #2
	add	w0, w8, #4
	bl	_Alloc
	str	x0, [x25]
	ldr	x1, [x20, #16]
	bl	_strcpyW
	b	LBB0_8
LBB0_23:
Lloh19:
	adrp	x26, _CP_ACP@GOTPAGE
Lloh20:
	ldr	x26, [x26, _CP_ACP@GOTPAGEOFF]
	ldr	w0, [x26]
	mov	w1, #0
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	w3, #-1
	mov	x4, #0
	mov	w5, #0
	bl	_MultiByteToWideChar
	mov	x22, x0
	lsl	w0, w0, #2
	bl	_Alloc
	mov	x4, x0
	str	x0, [x25]
	ldr	w0, [x26]
	ldr	w2, [x20, #16]
	mov	w1, #0
	mov	w3, #-1
	mov	x5, x22
	bl	_MultiByteToWideChar
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TTTOOLINFOW_V1_SIZE,8,3        ; @TTTOOLINFOW_V1_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tool %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"set string id %x\n"

	.comm	_LPSTR_TEXTCALLBACKW,8,3        ; @LPSTR_TEXTCALLBACKW
	.comm	_CP_ACP,4,2                     ; @CP_ACP
	.comm	_TTTOOLINFOW_V2_SIZE,8,3        ; @TTTOOLINFOW_V2_SIZE
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_TOOLTIPS_SetToolInfoT
.subsections_via_symbols
