	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TOOLTIPS_NewToolRectT
_TOOLTIPS_NewToolRectT:                 ## @TOOLTIPS_NewToolRectT
	.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
	xorl	%r14d, %r14d
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	movq	%rsi, %rbx
	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), %r14d
	jmp	LBB0_5
LBB0_3:
	movq	%rdi, %r15
	movq	%rbx, %rsi
	callq	_TOOLTIPS_GetToolFromInfoT
	movl	%eax, %r12d
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_wine_dbgstr_rect
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_TRACE
	cmpl	$-1, %r12d
	je	LBB0_5
## %bb.4:
	movl	(%rbx), %eax
	movq	(%r15), %rcx
	movslq	%r12d, %rdx
	movl	%eax, (%rcx,%rdx,4)
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	"nTool = %d, rect = %s\n"

	.no_dead_strip	_TOOLTIPS_NewToolRectT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TOOLTIPS_NewToolRectT
_TOOLTIPS_NewToolRectT:                 ; @TOOLTIPS_NewToolRectT
	.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_5
; %bb.1:
	mov	x21, 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_6
LBB0_3:
	mov	x19, x0
	mov	x1, x21
	bl	_TOOLTIPS_GetToolFromInfoT
	mov	x20, x0
	add	x21, x21, #8
	mov	x0, x21
	bl	_wine_dbgstr_rect
	mov	x2, 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_5
; %bb.4:
	mov	w0, #0
	ldr	w8, [x21]
	ldr	x9, [x19]
	str	w8, [x9, w20, sxtw #2]
	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
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.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	"nTool = %d, rect = %s\n"

	.no_dead_strip	_TOOLTIPS_NewToolRectT
.subsections_via_symbols
