	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TOOLTIPS_SetTitleT
_TOOLTIPS_SetTitleT:                    ## @TOOLTIPS_SetTitleT
	.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	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	16(%rdi), %ebx
	movq	%rdx, %rdi
	callq	_debugstr_w
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_TRACE
	movq	8(%r15), %rdi
	callq	_Free
	testq	%r13, %r13
	je	LBB0_4
## %bb.1:
	testq	%r12, %r12
	je	LBB0_5
## %bb.2:
	movq	%r13, %rdi
	callq	_strlenW
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %r12d
	movl	%r12d, %edi
	callq	_Alloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	%rax, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	jmp	LBB0_7
LBB0_4:
	movq	$0, 8(%r15)
	jmp	LBB0_7
LBB0_5:
	movq	_CP_ACP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	movl	%r13d, %edx
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_MultiByteToWideChar
	movl	%eax, %r12d
	shll	$2, %r12d
	movl	%r12d, %edi
	callq	_Alloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movl	(%rbx), %edi
	sarl	$2, %r12d
	xorl	%esi, %esi
	movl	%r13d, %edx
	movl	$-1, %ecx
	movq	%rax, %r8
	movl	%r12d, %r9d
	callq	_MultiByteToWideChar
LBB0_7:
	movq	_TTI_ERROR@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jae	LBB0_9
## %bb.8:
	movl	%r14d, %edi
	callq	_CopyIcon
	movl	%eax, %esi
	jmp	LBB0_10
LBB0_9:
	movq	_hTooltipIcons@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %esi
LBB0_10:
	movl	%esi, (%r15)
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_13:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hwnd = %p, title = %s, icon = %p\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_CP_ACP,4,2                     ## @CP_ACP
	.comm	_TTI_ERROR,8,3                  ## @TTI_ERROR
	.comm	_hTooltipIcons,8,3              ## @hTooltipIcons
L_.str.1:                               ## @.str.1
	.asciz	"icon = %p\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_TOOLTIPS_SetTitleT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TOOLTIPS_SetTitleT
_TOOLTIPS_SetTitleT:                    ; @TOOLTIPS_SetTitleT
	.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	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w23, [x0, #16]
	mov	x0, x2
	bl	_debugstr_w
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x20, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_TRACE
	ldr	x0, [x19, #8]
	bl	_Free
	cbz	x21, LBB0_4
; %bb.1:
	cbz	x22, LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_strlenW
	lsl	w8, w0, #2
	add	w22, w8, #4
	mov	x0, x22
	bl	_Alloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.3:
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	b	LBB0_7
LBB0_4:
	str	xzr, [x19, #8]
	b	LBB0_7
LBB0_5:
Lloh2:
	adrp	x23, _CP_ACP@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CP_ACP@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	w1, #0
	mov	x2, x21
	mov	w3, #-1
	mov	x4, #0
	mov	w5, #0
	bl	_MultiByteToWideChar
	lsl	w22, w0, #2
	mov	x0, x22
	bl	_Alloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.6:
	mov	x4, x0
	ldr	w0, [x23]
	asr	w5, w22, #2
	mov	w1, #0
	mov	x2, x21
	mov	w3, #-1
	bl	_MultiByteToWideChar
LBB0_7:
Lloh4:
	adrp	x8, _TTI_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TTI_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x8, x20
	b.hs	LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_CopyIcon
	mov	x1, x0
	b	LBB0_10
LBB0_9:
Lloh7:
	adrp	x8, _hTooltipIcons@GOTPAGE
Lloh8:
	ldr	x8, [x8, _hTooltipIcons@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	w1, [x8, x20, lsl #2]
LBB0_10:
	str	w1, [x19]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
Lloh12:
	adrp	x8, _TRUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh14:
	adrp	x8, _FALSE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hwnd = %p, title = %s, icon = %p\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CP_ACP,4,2                     ; @CP_ACP
	.comm	_TTI_ERROR,8,3                  ; @TTI_ERROR
	.comm	_hTooltipIcons,8,3              ; @hTooltipIcons
l_.str.1:                               ; @.str.1
	.asciz	"icon = %p\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_TOOLTIPS_SetTitleT
.subsections_via_symbols
