	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TOOLBAR_MeasureButton
_TOOLBAR_MeasureButton:                 ## @TOOLBAR_MeasureButton
	.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	%rdi, %rbx
	movq	%rsi, %r15
	shrq	$32, %r15
	movq	_TBSTYLE_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rcx, %r12
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	movl	4(%rbx), %edi
	movq	_DEFPAD_CY@GOTPCREL(%rip), %r13
	jmp	LBB0_4
LBB0_6:
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:
	movq	_DEFPAD_CY@GOTPCREL(%rip), %rax
	leal	1(%rsi), %ecx
	xorl	%r14d, %r14d
	testl	%esi, %esi
	cmovgl	%ecx, %r14d
	addl	4(%rbx), %r14d
	addl	(%rax), %r14d
	movl	8(%rbx), %esi
	movl	44(%rbx), %ebx
	movl	%r15d, %edi
	callq	_max
	addl	%ebx, %eax
	jmp	LBB0_9
LBB0_2:
	xorl	%edi, %edi
	movq	_LISTPAD_CY@GOTPCREL(%rip), %r13
LBB0_4:
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_max
	movq	%rax, %r14
	leaq	40(%rbx), %rax
	testq	%r12, %r12
	cmovneq	%r13, %rax
	addl	(%rax), %r14d
	movq	_SM_CXEDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetSystemMetrics
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	addl	8(%rbx), %eax
	addl	12(%rbx), %eax
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.5:
	addl	%r15d, %eax
	addl	44(%rbx), %eax
	jmp	LBB0_9
LBB0_8:
	movl	40(%rbx), %r14d
	addl	%esi, %r14d
	movq	_NONLIST_NOTEXT_OFFSET@GOTPCREL(%rip), %rax
	addl	(%rax), %r14d
	movq	_SM_CXEDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	44(%rbx), %r12d
	callq	_GetSystemMetrics
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r15,%rax,2), %edi
	movl	8(%rbx), %esi
	callq	_max
	addl	%r12d, %eax
LBB0_9:
	shlq	$32, %rax
	movl	%r14d, %ecx
	orq	%rax, %rcx
	movq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TBSTYLE_LIST,4,2               ## @TBSTYLE_LIST
	.comm	_DEFPAD_CY,4,2                  ## @DEFPAD_CY
	.comm	_LISTPAD_CY,4,2                 ## @LISTPAD_CY
	.comm	_SM_CXEDGE,4,2                  ## @SM_CXEDGE
	.comm	_NONLIST_NOTEXT_OFFSET,8,3      ## @NONLIST_NOTEXT_OFFSET
	.no_dead_strip	_TOOLBAR_MeasureButton
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TOOLBAR_MeasureButton
_TOOLBAR_MeasureButton:                 ; @TOOLBAR_MeasureButton
	.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
	mov	x19, x0
	lsr	x20, x1, #32
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _TBSTYLE_LIST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TBSTYLE_LIST@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x21, x3
	cbz	x2, LBB0_5
; %bb.2:
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x22, _DEFPAD_CY@GOTPAGE
Lloh4:
	ldr	x22, [x22, _DEFPAD_CY@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	cbz	x2, LBB0_8
; %bb.4:
Lloh5:
	adrp	x8, _DEFPAD_CY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DEFPAD_CY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w1, #0
	csinc	w9, wzr, w1, le
	ldp	w10, w1, [x19, #4]
	add	w9, w10, w9
	add	w21, w9, w8
	ldr	w19, [x19, #44]
	mov	x0, x20
	bl	_max
	add	w8, w0, w19
	b	LBB0_9
LBB0_5:
	mov	w0, #0
Lloh8:
	adrp	x22, _LISTPAD_CY@GOTPAGE
Lloh9:
	ldr	x22, [x22, _LISTPAD_CY@GOTPAGEOFF]
LBB0_6:
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_max
	add	x8, x19, #40
	cmp	x21, #0
	csel	x8, x8, x22, eq
	ldr	w8, [x8]
	add	w21, w8, w0
Lloh10:
	adrp	x8, _SM_CXEDGE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SM_CXEDGE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_GetSystemMetrics
	ldp	w8, w9, [x19, #8]
	add	w8, w8, w0, lsl #1
	add	w8, w8, w9
	cmp	w20, #1
	b.lt	LBB0_9
; %bb.7:
	ldr	w9, [x19, #44]
	add	w8, w8, w20
	add	w8, w8, w9
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x8, _NONLIST_NOTEXT_OFFSET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NONLIST_NOTEXT_OFFSET@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldp	w9, w22, [x19, #40]
	add	w9, w9, w1
	add	w21, w9, w8
Lloh16:
	adrp	x8, _SM_CXEDGE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SM_CXEDGE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_GetSystemMetrics
	add	w0, w20, w0, lsl #1
	ldr	w1, [x19, #8]
	bl	_max
	add	w8, w0, w22
LBB0_9:
	mov	w0, w21
	bfi	x0, x8, #32, #32
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_TBSTYLE_LIST,4,2               ; @TBSTYLE_LIST
	.comm	_DEFPAD_CY,4,2                  ; @DEFPAD_CY
	.comm	_LISTPAD_CY,4,2                 ; @LISTPAD_CY
	.comm	_SM_CXEDGE,4,2                  ; @SM_CXEDGE
	.comm	_NONLIST_NOTEXT_OFFSET,8,3      ; @NONLIST_NOTEXT_OFFSET
	.no_dead_strip	_TOOLBAR_MeasureButton
.subsections_via_symbols
