	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TOOLTIPS_UpdateTipTextT
_TOOLTIPS_UpdateTipTextT:               ## @TOOLTIPS_UpdateTipTextT
	.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
	xorl	%r15d, %r15d
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.1:
	movq	%rsi, %r13
	movq	(%rsi), %rax
	movq	_TTTOOLINFOW_V1_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.2:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_24
LBB0_3:
	movq	%rdx, %r12
	movq	%rdi, %r14
	movq	%r13, %rsi
	callq	_TOOLTIPS_GetToolFromInfoT
	cmpl	$-1, %eax
	je	LBB0_24
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	24(%r14), %rax
	movslq	%ebx, %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %rbx
	movl	16(%r13), %edx
	movl	%edx, 8(%rax,%rcx)
	movq	8(%r13), %rdi
	callq	_IS_INTRESOURCE
	movq	8(%r13), %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rdi, (%rbx)
LBB0_18:
	cmpl	$-1, (%r14)
	je	LBB0_24
## %bb.19:
	cmpq	$0, 16(%r14)
	je	LBB0_21
## %bb.20:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_6:
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.7:
	movq	%r12, %rsi
	callq	_TOOLTIPS_IsCallbackString
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_LPSTR_TEXTCALLBACKW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_18
LBB0_21:
	cmpq	$0, 8(%r14)
	je	LBB0_24
## %bb.22:
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_TOOLTIPS_Show
LBB0_24:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.10:
	callq	_IS_INTRESOURCE
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:
	movq	(%rbx), %rdi
	movq	_LPSTR_TEXTCALLBACKW@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_13
## %bb.12:
	callq	_Free
LBB0_13:
	movq	$0, (%rbx)
LBB0_14:
	movq	8(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.15:
	testq	%r12, %r12
	je	LBB0_17
## %bb.16:
	movq	%rdx, %rdi
	callq	_lstrlenW
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %edi
	callq	_Alloc
	movq	%rax, (%rbx)
	movq	8(%r13), %rsi
	movq	%rax, %rdi
	callq	_strcpyW
	jmp	LBB0_18
LBB0_17:
	movq	_CP_ACP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_MultiByteToWideChar
	movl	%eax, %r12d
	leal	(,%r12,4), %edi
	callq	_Alloc
	movq	%rax, (%rbx)
	movq	_CP_ACP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	8(%r13), %edx
	xorl	%esi, %esi
	movl	$-1, %ecx
	movq	%rax, %r8
	movl	%r12d, %r9d
	callq	_MultiByteToWideChar
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_TTTOOLINFOW_V1_SIZE,8,3        ## @TTTOOLINFOW_V1_SIZE
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tool %d\n"

	.comm	_LPSTR_TEXTCALLBACKW,8,3        ## @LPSTR_TEXTCALLBACKW
	.comm	_CP_ACP,4,2                     ## @CP_ACP
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_TOOLTIPS_UpdateTipTextT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TOOLTIPS_UpdateTipTextT
_TOOLTIPS_UpdateTipTextT:               ; @TOOLTIPS_UpdateTipTextT
	.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
	cbz	x1, LBB0_15
; %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.ge	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_16
LBB0_3:
	mov	x21, x2
	mov	x19, x0
	mov	x1, x20
	bl	_TOOLTIPS_GetToolFromInfoT
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.4:
	mov	x22, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_TRACE
	ldr	x8, [x19, #24]
	add	x22, x8, w22, sxtw #4
	ldr	w8, [x20, #16]
	str	w8, [x22, #8]
	ldr	x0, [x20, #8]
	bl	_IS_INTRESOURCE
	mov	x8, x0
	ldr	x0, [x20, #8]
	cbz	x8, LBB0_9
; %bb.5:
	str	x0, [x22]
LBB0_6:
	ldr	w8, [x19]
	cmn	w8, #1
	b.eq	LBB0_15
; %bb.7:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_12
; %bb.8:
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
	cbz	x0, LBB0_6
; %bb.10:
	mov	x1, x21
	bl	_TOOLTIPS_IsCallbackString
	cbz	x0, LBB0_17
; %bb.11:
Lloh10:
	adrp	x8, _LPSTR_TEXTCALLBACKW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LPSTR_TEXTCALLBACKW@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x22]
	b	LBB0_6
LBB0_12:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_15
; %bb.13:
Lloh13:
	adrp	x8, _TRUE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_TOOLTIPS_Show
LBB0_15:
	mov	w0, #0
LBB0_16:
	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
LBB0_17:
	ldr	x0, [x22]
	cbz	x0, LBB0_22
; %bb.18:
	bl	_IS_INTRESOURCE
	cbnz	x0, LBB0_22
; %bb.19:
	ldr	x0, [x22]
Lloh15:
	adrp	x8, _LPSTR_TEXTCALLBACKW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LPSTR_TEXTCALLBACKW@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_21
; %bb.20:
	bl	_Free
LBB0_21:
	str	xzr, [x22]
LBB0_22:
	ldr	x2, [x20, #8]
	cbz	x2, LBB0_6
; %bb.23:
	cbz	x21, LBB0_25
; %bb.24:
	mov	x0, x2
	bl	_lstrlenW
	lsl	w8, w0, #2
	add	w0, w8, #4
	bl	_Alloc
	str	x0, [x22]
	ldr	x1, [x20, #8]
	bl	_strcpyW
	b	LBB0_6
LBB0_25:
Lloh18:
	adrp	x23, _CP_ACP@GOTPAGE
Lloh19:
	ldr	x23, [x23, _CP_ACP@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	w1, #0
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	w3, #-1
	mov	x4, #0
	mov	w5, #0
	bl	_MultiByteToWideChar
	mov	x21, x0
	lsl	w0, w0, #2
	bl	_Alloc
	mov	x4, x0
	str	x0, [x22]
	ldr	w0, [x23]
	ldr	w2, [x20, #8]
	mov	w1, #0
	mov	w3, #-1
	mov	x5, x21
	bl	_MultiByteToWideChar
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TTTOOLINFOW_V1_SIZE,8,3        ; @TTTOOLINFOW_V1_SIZE
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tool %d\n"

	.comm	_LPSTR_TEXTCALLBACKW,8,3        ; @LPSTR_TEXTCALLBACKW
	.comm	_CP_ACP,4,2                     ; @CP_ACP
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_TOOLTIPS_UpdateTipTextT
.subsections_via_symbols
