	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TOOLTIPS_DelToolT
_TOOLTIPS_DelToolT:                     ## @TOOLTIPS_DelToolT
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_30
## %bb.1:
	movq	%rdi, %rbx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.2:
	movq	(%rsi), %rax
	movq	_TTTOOLINFOW_V2_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_4
## %bb.3:
	movq	_TTTOOLINFOW_V3_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_30
LBB0_4:
	cmpl	$0, (%rbx)
	je	LBB0_30
## %bb.5:
	movq	%rbx, %rdi
	callq	_TOOLTIPS_GetToolFromInfoT
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	cmpl	$-1, %r14d
	je	LBB0_30
## %bb.6:
	movq	%rbx, %rdi
	callq	_TOOLTIPS_Hide
	movq	16(%rbx), %rax
	movslq	%r14d, %r12
	leaq	(%rax,%r12,8), %r15
	movq	(%rax,%r12,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.7:
	movq	_LPSTR_TEXTCALLBACKW@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_10
## %bb.8:
	callq	_IS_INTRESOURCE
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	(%r15), %rdi
	callq	_Free
LBB0_10:
	movq	%r15, %rdi
	callq	_TOOLTIPS_ResetSubclass
	movl	(%rbx), %eax
	movq	16(%rbx), %r15
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_Free
	movq	$0, 16(%rbx)
	jmp	LBB0_17
LBB0_12:
	leal	-8(,%rax,8), %edi
	callq	_Alloc
	movq	%rax, 16(%rbx)
	testl	%r14d, %r14d
	jle	LBB0_14
## %bb.13:
	leal	(,%r14,8), %edx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_memcpy
LBB0_14:
	movl	(%rbx), %edx
	leal	-1(%rdx), %eax
	cmpl	%eax, %r14d
	jge	LBB0_16
## %bb.15:
	leaq	(,%r12,8), %rdi
	addq	16(%rbx), %rdi
	leaq	(%r15,%r12,8), %rsi
	addq	$8, %rsi
	movl	%r14d, %eax
	notl	%eax
	addl	%eax, %edx
	shll	$3, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
LBB0_16:
	movq	%r15, %rdi
	callq	_Free
LBB0_17:
	movl	4(%rbx), %eax
	movl	$-1, %ecx
	cmpl	%r14d, %eax
	je	LBB0_20
## %bb.18:
	jle	LBB0_21
## %bb.19:
	decl	%eax
	movl	%eax, %ecx
LBB0_20:
	movl	%ecx, 4(%rbx)
LBB0_21:
	movl	8(%rbx), %eax
	movl	$-1, %ecx
	cmpl	%r14d, %eax
	je	LBB0_24
## %bb.22:
	jle	LBB0_25
## %bb.23:
	decl	%eax
	movl	%eax, %ecx
LBB0_24:
	movl	%ecx, 8(%rbx)
LBB0_25:
	movl	12(%rbx), %eax
	movl	$-1, %ecx
	cmpl	%r14d, %eax
	je	LBB0_28
## %bb.26:
	jle	LBB0_29
## %bb.27:
	decl	%eax
	movl	%eax, %ecx
LBB0_28:
	movl	%ecx, 12(%rbx)
LBB0_29:
	decl	(%rbx)
LBB0_30:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTTOOLINFOW_V2_SIZE,8,3        ## @TTTOOLINFOW_V2_SIZE
	.comm	_TTTOOLINFOW_V3_SIZE,8,3        ## @TTTOOLINFOW_V3_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tool %d\n"

	.comm	_LPSTR_TEXTCALLBACKW,8,3        ## @LPSTR_TEXTCALLBACKW
	.no_dead_strip	_TOOLTIPS_DelToolT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TOOLTIPS_DelToolT
_TOOLTIPS_DelToolT:                     ; @TOOLTIPS_DelToolT
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x1, LBB0_31
; %bb.1:
	mov	x19, x0
	cbz	x2, LBB0_3
; %bb.2:
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _TTTOOLINFOW_V2_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TTTOOLINFOW_V2_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _TTTOOLINFOW_V3_SIZE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TTTOOLINFOW_V3_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, gt
	b.ne	LBB0_31
LBB0_3:
	ldr	w8, [x19]
	cbz	w8, LBB0_31
; %bb.4:
	mov	x0, x19
	bl	_TOOLTIPS_GetToolFromInfoT
	mov	x20, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_TRACE
	cmn	w20, #1
	b.eq	LBB0_31
; %bb.5:
	mov	x0, x19
	bl	_TOOLTIPS_Hide
	ldr	x8, [x19, #16]
	add	x21, x8, w20, sxtw #3
	ldr	x0, [x21]
Lloh8:
	adrp	x8, _LPSTR_TEXTCALLBACKW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LPSTR_TEXTCALLBACKW@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, #0
	ccmp	x0, x8, #4, ne
	b.eq	LBB0_8
; %bb.6:
	bl	_IS_INTRESOURCE
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	x0, [x21]
	bl	_Free
LBB0_8:
	mov	x0, x21
	bl	_TOOLTIPS_ResetSubclass
	ldr	w8, [x19]
	ldr	x21, [x19, #16]
	cmp	w8, #1
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_Free
	str	xzr, [x19, #16]
	b	LBB0_15
LBB0_10:
	lsl	w8, w8, #3
	sub	w0, w8, #8
	bl	_Alloc
	str	x0, [x19, #16]
	cmp	w20, #1
	b.lt	LBB0_12
; %bb.11:
	lsl	w2, w20, #3
	mov	x1, x21
	bl	_memcpy
LBB0_12:
	ldr	w8, [x19]
	sub	w9, w8, #1
	cmp	w20, w9
	b.ge	LBB0_14
; %bb.13:
	sxtw	x9, w20
	ldr	x10, [x19, #16]
	lsl	x9, x9, #3
	add	x0, x10, x9
	add	x9, x9, x21
	add	x1, x9, #8
	mvn	w9, w20
	add	w8, w8, w9
	lsl	w2, w8, #3
	bl	_memcpy
LBB0_14:
	mov	x0, x21
	bl	_Free
LBB0_15:
	ldr	w8, [x19, #4]
	cmp	w8, w20
	b.ne	LBB0_17
; %bb.16:
	mov	w8, #-1
	b	LBB0_19
LBB0_17:
	b.le	LBB0_20
; %bb.18:
	sub	w8, w8, #1
LBB0_19:
	str	w8, [x19, #4]
LBB0_20:
	ldr	w8, [x19, #8]
	cmp	w8, w20
	b.ne	LBB0_22
; %bb.21:
	mov	w8, #-1
	b	LBB0_24
LBB0_22:
	b.le	LBB0_25
; %bb.23:
	sub	w8, w8, #1
LBB0_24:
	str	w8, [x19, #8]
LBB0_25:
	ldr	w8, [x19, #12]
	cmp	w8, w20
	b.ne	LBB0_27
; %bb.26:
	mov	w8, #-1
	b	LBB0_29
LBB0_27:
	b.le	LBB0_30
; %bb.28:
	sub	w8, w8, #1
LBB0_29:
	str	w8, [x19, #12]
LBB0_30:
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
LBB0_31:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TTTOOLINFOW_V2_SIZE,8,3        ; @TTTOOLINFOW_V2_SIZE
	.comm	_TTTOOLINFOW_V3_SIZE,8,3        ; @TTTOOLINFOW_V3_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tool %d\n"

	.comm	_LPSTR_TEXTCALLBACKW,8,3        ; @LPSTR_TEXTCALLBACKW
	.no_dead_strip	_TOOLTIPS_DelToolT
.subsections_via_symbols
