	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function STATUSBAR_ComputeHeight
_STATUSBAR_ComputeHeight:               ## @STATUSBAR_ComputeHeight
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	32(%rdi), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	24(%r14), %rdi
LBB0_2:
	leaq	-56(%rbp), %rsi
	callq	_COMCTL32_GetFontMetrics
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	movl	$2, %ecx
	cmovnel	%eax, %ecx
	movslq	%ecx, %rbx
	addq	-48(%rbp), %rbx
	movq	_SM_CYBORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetSystemMetrics
	addl	%eax, %eax
	movslq	%eax, %rdi
	addq	%rbx, %rdi
	movq	8(%r14), %rsi
	callq	_max
	movq	%rax, %rbx
	addq	16(%r14), %rbx
	movl	(%r14), %edi
	callq	_GetWindowTheme
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	movl	(%r14), %edi
	callq	_GetDC
	movl	%eax, %r15d
	movq	8(%r14), %rdi
	movq	-48(%rbp), %rsi
	callq	_max
	leaq	-72(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rax, %r8
	callq	_SetRect
	movq	_SP_PANE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	movq	%r13, %r8
	movq	%r13, %r9
	callq	_GetThemeBackgroundExtent
	movl	%eax, %edi
	callq	_SUCCEEDED
	movq	-64(%rbp), %rcx
	subq	-72(%rbp), %rcx
	testq	%rax, %rax
	cmovneq	%rcx, %rbx
	movl	(%r14), %edi
	movl	%r15d, %esi
	callq	_ReleaseDC
LBB0_4:
	movq	-48(%rbp), %rsi
	movl	-56(%rbp), %edx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rcx
	callq	_TRACE
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SM_CYBORDER,4,2                ## @SM_CYBORDER
	.comm	_SP_PANE,4,2                    ## @SP_PANE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"    textHeight=%d+%d, final height=%d\n"

	.no_dead_strip	_STATUSBAR_ComputeHeight
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function STATUSBAR_ComputeHeight
_STATUSBAR_ComputeHeight:               ; @STATUSBAR_ComputeHeight
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	ldr	x0, [x0, #32]
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #24]
LBB0_2:
	add	x1, sp, #16
	bl	_COMCTL32_GetFontMetrics
	ldr	w8, [sp, #16]
	mov	w9, #2
	cmp	w8, #0
	csel	w8, w9, w8, eq
	ldr	x9, [sp, #24]
	add	x20, x9, w8, sxtw
Lloh0:
	adrp	x8, _SM_CYBORDER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SM_CYBORDER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_GetSystemMetrics
	lsl	w8, w0, #1
	add	x0, x20, w8, sxtw
	ldr	x1, [x19, #8]
	bl	_max
	ldr	x8, [x19, #16]
	add	x20, x8, x0
	ldr	w0, [x19]
	bl	_GetWindowTheme
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
	ldr	w0, [x19]
	bl	_GetDC
	mov	x22, x0
	ldr	x0, [x19, #8]
	ldr	x1, [sp, #24]
	bl	_max
	mov	x4, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_SetRect
Lloh3:
	adrp	x8, _SP_PANE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SP_PANE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x4, sp
	mov	x5, sp
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	bl	_GetThemeBackgroundExtent
	bl	_SUCCEEDED
	ldp	x9, x8, [sp]
	sub	x8, x8, x9
	cmp	x0, #0
	csel	x20, x20, x8, eq
	ldr	w0, [x19]
	mov	x1, x22
	bl	_ReleaseDC
LBB0_4:
	ldr	x1, [sp, #24]
	ldr	w2, [sp, #16]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x20
	bl	_TRACE
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SM_CYBORDER,4,2                ; @SM_CYBORDER
	.comm	_SP_PANE,4,2                    ; @SP_PANE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"    textHeight=%d+%d, final height=%d\n"

	.no_dead_strip	_STATUSBAR_ComputeHeight
.subsections_via_symbols
