	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TOOLTIPS_GetBubbleSize
_TOOLTIPS_GetBubbleSize:                ## @TOOLTIPS_GetBubbleSize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	(%rsi), %rax
	movq	_TTTOOLINFOW_V1_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_3:
	movq	%rdi, %rbx
	callq	_TOOLTIPS_GetToolFromInfoT
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_TOOLTIPS_CalcTipSize
	movl	-16(%rbp), %edx
	movl	-12(%rbp), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	-16(%rbp), %esi
	movl	-12(%rbp), %edi
	callq	_MAKELRESULT
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.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	"size %d x %d\n"

	.no_dead_strip	_TOOLTIPS_GetBubbleSize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TOOLTIPS_GetBubbleSize
_TOOLTIPS_GetBubbleSize:                ; @TOOLTIPS_GetBubbleSize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cbz	x1, LBB0_2
; %bb.1:
	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
LBB0_2:
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_3:
	mov	x19, x0
	bl	_TOOLTIPS_GetToolFromInfoT
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.4:
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	add	x1, sp, #8
	mov	x0, x19
	bl	_TOOLTIPS_CalcTipSize
	ldp	w8, w1, [sp, #8]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	ldp	w1, w0, [sp, #8]
	bl	_MAKELRESULT
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.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	"size %d x %d\n"

	.no_dead_strip	_TOOLTIPS_GetBubbleSize
.subsections_via_symbols
