	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_menu
_update_menu:                           ## @update_menu
	.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
	movl	%edi, %r15d
	callq	_GetMenu
	movl	%eax, %edi
	movl	$1, %esi
	callq	_GetSubMenu
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_upd@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_SIZEOF
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	$8, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	-8(%rax,%rbx), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rax,%rbx), %rcx
	movl	8(%rax,%rbx), %esi
	movq	_MF_UNCHECKED@GOTPCREL(%rip), %rax
	cmoveq	_MF_CHECKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BST_UNCHECKED@GOTPCREL(%rip), %r14
	cmoveq	_BST_CHECKED@GOTPCREL(%rip), %r14
	movq	_MF_BYCOMMAND@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_CheckMenuItem
	movq	(%r12), %rax
	movq	(%rax,%rbx), %rsi
	movl	(%r14), %edx
	movl	%r15d, %edi
	callq	_CheckDlgButton
	incq	%r13
	movq	(%r12), %rdi
	callq	_SIZEOF
	movl	%eax, %eax
	addq	$24, %rbx
	cmpq	%rax, %r13
	jb	LBB0_2
LBB0_3:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	_IDM_VIEW_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MF_BYCOMMAND@GOTPCREL(%rip), %rax
	movq	_calc@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_4
## %bb.5:
	movq	_MF_UNCHECKED@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_MF_CHECKED@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %edx
	orl	(%rax), %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CheckMenuItem                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_upd,8,3                        ## @upd
	.comm	_MF_BYCOMMAND,4,2               ## @MF_BYCOMMAND
	.comm	_MF_UNCHECKED,4,2               ## @MF_UNCHECKED
	.comm	_BST_UNCHECKED,4,2              ## @BST_UNCHECKED
	.comm	_MF_CHECKED,4,2                 ## @MF_CHECKED
	.comm	_BST_CHECKED,4,2                ## @BST_CHECKED
	.comm	_IDM_VIEW_GROUP,4,2             ## @IDM_VIEW_GROUP
	.comm	_calc,8,3                       ## @calc
	.no_dead_strip	_update_menu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_menu
_update_menu:                           ; @update_menu
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_GetMenu
	mov	w1, #1
	bl	_GetSubMenu
	mov	x20, x0
Lloh0:
	adrp	x21, _upd@GOTPAGE
Lloh1:
	ldr	x21, [x21, _upd@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_SIZEOF
Lloh2:
	adrp	x27, _MF_BYCOMMAND@GOTPAGE
Lloh3:
	ldr	x27, [x27, _MF_BYCOMMAND@GOTPAGEOFF]
Lloh4:
	adrp	x23, _MF_CHECKED@GOTPAGE
Lloh5:
	ldr	x23, [x23, _MF_CHECKED@GOTPAGEOFF]
Lloh6:
	adrp	x24, _MF_UNCHECKED@GOTPAGE
Lloh7:
	ldr	x24, [x24, _MF_UNCHECKED@GOTPAGEOFF]
	cbz	w0, LBB0_3
; %bb.1:
	mov	x25, #0
	mov	x26, #0
Lloh8:
	adrp	x28, _BST_UNCHECKED@GOTPAGE
Lloh9:
	ldr	x28, [x28, _BST_UNCHECKED@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x8, x8, x25
	ldp	x9, x10, [x8]
	ldr	x9, [x9]
	ldr	w1, [x8, #16]
	ldr	w8, [x27]
	cmp	x9, x10
	csel	x9, x23, x24, eq
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh10:
	adrp	x8, _BST_CHECKED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BST_CHECKED@GOTPAGEOFF]
	csel	x22, x8, x28, eq
	mov	x0, x20
	bl	_CheckMenuItem
	ldr	x8, [x21]
	add	x8, x8, x25
	ldr	x1, [x8, #8]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_CheckDlgButton
	add	x26, x26, #1
	ldr	x0, [x21]
	bl	_SIZEOF
	add	x25, x25, #24
	cmp	x26, w0, uxtw
	b.lo	LBB0_2
LBB0_3:
Lloh12:
	adrp	x8, _IDM_VIEW_GROUP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IDM_VIEW_GROUP@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w8, [x27]
Lloh15:
	adrp	x9, _calc@GOTPAGE
Lloh16:
	ldr	x9, [x9, _calc@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, #0
	csel	x9, x24, x23, eq
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_CheckMenuItem
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_upd,8,3                        ; @upd
	.comm	_MF_BYCOMMAND,4,2               ; @MF_BYCOMMAND
	.comm	_MF_UNCHECKED,4,2               ; @MF_UNCHECKED
	.comm	_BST_UNCHECKED,4,2              ; @BST_UNCHECKED
	.comm	_MF_CHECKED,4,2                 ; @MF_CHECKED
	.comm	_BST_CHECKED,4,2                ; @BST_CHECKED
	.comm	_IDM_VIEW_GROUP,4,2             ; @IDM_VIEW_GROUP
	.comm	_calc,8,3                       ; @calc
	.no_dead_strip	_update_menu
.subsections_via_symbols
