	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_radio
_update_radio:                          ## @update_radio
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	leal	-128(%r13), %eax
	cmpl	$3, %eax
	ja	LBB0_9
## %bb.1:
	movl	%edi, %r12d
	movslq	%eax, %r14
	leaq	l_switch.table.update_radio(%rip), %rax
	movq	(%rax,%r14,8), %rax
	movl	(%rax), %edi
	callq	_MAKEINTRESOURCE
	movq	_calc@GOTPCREL(%rip), %rbx
	movl	%r13d, %ecx
	cmpl	%r13d, (%rbx)
	je	LBB0_8
## %bb.2:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	l_switch.table.update_radio.1(%rip), %rax
	movq	(%rax,%r14,8), %rax
	movl	(%rax), %r15d
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_convert_text2number
	movl	%r13d, %edi
	callq	_convert_real_integer
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, (%rbx)
	movl	%r12d, %edi
	movq	%r14, %rsi
	callq	_display_rpn_result
	movl	%r12d, %edi
	callq	_GetMenu
	movl	%eax, %edi
	callq	_DestroyMenu
	movl	12(%rbx), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_LoadMenu
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_SetMenu
	movl	%r12d, %edi
	callq	_update_menu
	movq	_radio_setup@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_SIZEOF
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	xorl	%r14d, %r14d
	movq	_SW_SHOW@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_ShowWindow
	incq	%r14
	movq	(%rbx), %rdi
	callq	_SIZEOF
	cltq
	cmpq	%rax, %r14
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movl	4(%rax,%r14,8), %esi
	movl	%r12d, %edi
	callq	_GetDlgItem
	movq	(%rbx), %rcx
	movl	(%rcx,%r14,8), %edx
	movq	%r13, %rcx
	andl	%r15d, %edx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_SW_HIDE@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%r12d, %edi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_enable_allowed_controls
	movq	_calc@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
LBB0_8:
	movl	%r12d, %edi
	movl	$129, %esi
	movl	$131, %edx
	callq	_CheckRadioButton
	leaq	4(%rbx), %rax
	addq	$8, %rbx
	cmpl	$130, %r13d
	movq	_IDC_RADIO_QWORD@GOTPCREL(%rip), %rcx
	cmoveq	_IDC_RADIO_DEG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_IDC_RADIO_BYTE@GOTPCREL(%rip), %rcx
	cmoveq	_IDC_RADIO_GRAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmoveq	%rax, %rbx
	movl	(%rbx), %ecx
	movl	%r12d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CheckRadioButton               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IDR_MENU_SCIENTIFIC_1,4,2      ## @IDR_MENU_SCIENTIFIC_1
	.comm	_BITMASK_DEC_MASK,4,2           ## @BITMASK_DEC_MASK
	.comm	_IDR_MENU_SCIENTIFIC_2,4,2      ## @IDR_MENU_SCIENTIFIC_2
	.comm	_BITMASK_HEX_MASK,4,2           ## @BITMASK_HEX_MASK
	.comm	_BITMASK_OCT_MASK,4,2           ## @BITMASK_OCT_MASK
	.comm	_BITMASK_BIN_MASK,4,2           ## @BITMASK_BIN_MASK
	.comm	_calc,20,2                      ## @calc
	.comm	_radio_setup,8,3                ## @radio_setup
	.comm	_SW_SHOW,4,2                    ## @SW_SHOW
	.comm	_SW_HIDE,4,2                    ## @SW_HIDE
	.comm	_IDC_RADIO_DEG,4,2              ## @IDC_RADIO_DEG
	.comm	_IDC_RADIO_GRAD,4,2             ## @IDC_RADIO_GRAD
	.comm	_IDC_RADIO_QWORD,4,2            ## @IDC_RADIO_QWORD
	.comm	_IDC_RADIO_BYTE,4,2             ## @IDC_RADIO_BYTE
	.no_dead_strip	_update_radio
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.update_radio
l_switch.table.update_radio:
	.quad	_IDR_MENU_SCIENTIFIC_2
	.quad	_IDR_MENU_SCIENTIFIC_2
	.quad	_IDR_MENU_SCIENTIFIC_1
	.quad	_IDR_MENU_SCIENTIFIC_2

	.p2align	3                               ## @switch.table.update_radio.1
l_switch.table.update_radio.1:
	.quad	_BITMASK_OCT_MASK
	.quad	_BITMASK_HEX_MASK
	.quad	_BITMASK_DEC_MASK
	.quad	_BITMASK_BIN_MASK

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_radio
_update_radio:                          ; @update_radio
	.cfi_startproc
; %bb.0:
	sub	w8, w1, #128
	cmp	w8, #3
	b.hi	LBB0_7
; %bb.1:
	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	x20, x1
	mov	x19, x0
	sbfiz	x22, x8, #3, #32
Lloh0:
	adrp	x8, l_switch.table.update_radio@PAGE
Lloh1:
	add	x8, x8, l_switch.table.update_radio@PAGEOFF
	ldr	x8, [x8, x22]
	ldr	w0, [x8]
	bl	_MAKEINTRESOURCE
Lloh2:
	adrp	x23, _calc@GOTPAGE
Lloh3:
	ldr	x23, [x23, _calc@GOTPAGEOFF]
	ldr	w8, [x23]
	mov	x3, x20
	cmp	w8, w20
	b.eq	LBB0_6
; %bb.2:
	mov	x21, x0
Lloh4:
	adrp	x8, l_switch.table.update_radio.1@PAGE
Lloh5:
	add	x8, x8, l_switch.table.update_radio.1@PAGEOFF
	ldr	x8, [x8, x22]
	ldr	w24, [x8]
	add	x22, x23, #16
	mov	x0, x22
	bl	_convert_text2number
	mov	x0, x20
	bl	_convert_real_integer
	str	w20, [x23]
	mov	x0, x19
	mov	x1, x22
	bl	_display_rpn_result
	mov	x0, x19
	bl	_GetMenu
	bl	_DestroyMenu
	ldr	w0, [x23, #12]
	mov	x1, x21
	bl	_LoadMenu
	mov	x1, x0
	mov	x0, x19
	bl	_SetMenu
	mov	x0, x19
	bl	_update_menu
Lloh6:
	adrp	x21, _radio_setup@GOTPAGE
Lloh7:
	ldr	x21, [x21, _radio_setup@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_SIZEOF
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x22, #0
	mov	x25, #0
Lloh8:
	adrp	x26, _SW_SHOW@GOTPAGE
Lloh9:
	ldr	x26, [x26, _SW_SHOW@GOTPAGEOFF]
Lloh10:
	adrp	x27, _SW_HIDE@GOTPAGE
Lloh11:
	ldr	x27, [x27, _SW_HIDE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x8, x8, x22
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_GetDlgItem
	ldr	x8, [x21]
	ldr	w8, [x8, x22]
	tst	w8, w24
	csel	x8, x27, x26, eq
	ldr	w1, [x8]
	bl	_ShowWindow
	add	x25, x25, #1
	ldr	x0, [x21]
	bl	_SIZEOF
	add	x22, x22, #8
	cmp	x25, w0, sxtw
	b.lt	LBB0_4
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_enable_allowed_controls
	ldr	w3, [x23]
LBB0_6:
	mov	x0, x19
	mov	w1, #129
	mov	w2, #131
	bl	_CheckRadioButton
Lloh12:
	adrp	x8, _IDC_RADIO_DEG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IDC_RADIO_DEG@GOTPAGEOFF]
Lloh14:
	adrp	x9, _IDC_RADIO_QWORD@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IDC_RADIO_QWORD@GOTPAGEOFF]
	cmp	w20, #130
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _IDC_RADIO_GRAD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IDC_RADIO_GRAD@GOTPAGEOFF]
Lloh18:
	adrp	x9, _IDC_RADIO_BYTE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IDC_RADIO_BYTE@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	add	x8, x23, #4
	add	x9, x23, #8
	csel	x8, x8, x9, eq
	ldr	w3, [x8]
	mov	x0, x19
	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	_CheckRadioButton
LBB0_7:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	.cfi_same_value w25
	.cfi_same_value w26
	.cfi_same_value w27
	.cfi_same_value w28
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IDR_MENU_SCIENTIFIC_1,4,2      ; @IDR_MENU_SCIENTIFIC_1
	.comm	_BITMASK_DEC_MASK,4,2           ; @BITMASK_DEC_MASK
	.comm	_IDR_MENU_SCIENTIFIC_2,4,2      ; @IDR_MENU_SCIENTIFIC_2
	.comm	_BITMASK_HEX_MASK,4,2           ; @BITMASK_HEX_MASK
	.comm	_BITMASK_OCT_MASK,4,2           ; @BITMASK_OCT_MASK
	.comm	_BITMASK_BIN_MASK,4,2           ; @BITMASK_BIN_MASK
	.comm	_calc,20,2                      ; @calc
	.comm	_radio_setup,8,3                ; @radio_setup
	.comm	_SW_SHOW,4,2                    ; @SW_SHOW
	.comm	_SW_HIDE,4,2                    ; @SW_HIDE
	.comm	_IDC_RADIO_DEG,4,2              ; @IDC_RADIO_DEG
	.comm	_IDC_RADIO_GRAD,4,2             ; @IDC_RADIO_GRAD
	.comm	_IDC_RADIO_QWORD,4,2            ; @IDC_RADIO_QWORD
	.comm	_IDC_RADIO_BYTE,4,2             ; @IDC_RADIO_BYTE
	.no_dead_strip	_update_radio
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.update_radio
l_switch.table.update_radio:
	.quad	_IDR_MENU_SCIENTIFIC_2
	.quad	_IDR_MENU_SCIENTIFIC_2
	.quad	_IDR_MENU_SCIENTIFIC_1
	.quad	_IDR_MENU_SCIENTIFIC_2

	.p2align	3                               ; @switch.table.update_radio.1
l_switch.table.update_radio.1:
	.quad	_BITMASK_OCT_MASK
	.quad	_BITMASK_HEX_MASK
	.quad	_BITMASK_DEC_MASK
	.quad	_BITMASK_BIN_MASK

.subsections_via_symbols
