	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function save_config
_save_config:                           ## @save_config
	.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
	subq	$160, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	$8, -184(%rbp)
	leaq	-184(%rbp), %rdi
	callq	_GetVersionEx
	movl	-180(%rbp), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	__T
	movq	_calc@GOTPCREL(%rip), %r12
	movl	4(%r12), %edx
	leaq	-176(%rbp), %r14
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	__stprintf
	leaq	L_.str.1(%rip), %r15
	movq	%r15, %rdi
	callq	__T
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdi
	callq	__T
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_WriteProfileString
	movq	%r15, %rdi
	callq	__T
	movq	%rax, %r14
	leaq	L_.str.3(%rip), %rdi
	callq	__T
	movq	%rax, %rbx
	movl	(%r12), %eax
	movq	_TRUE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.5(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	__T
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_WriteProfileString
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.6(%rip), %r14
	movq	%r14, %rdi
	callq	__T
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdi
	callq	__T
	movq	_calc@GOTPCREL(%rip), %r15
	movl	4(%r15), %edx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_SaveRegInt
	movq	%r14, %rdi
	callq	__T
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %rdi
	callq	__T
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_SaveRegInt
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$160, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%lu"

	.comm	_calc,8,2                       ## @calc
L_.str.1:                               ## @.str.1
	.asciz	"SciCalc"

L_.str.2:                               ## @.str.2
	.asciz	"layout"

L_.str.3:                               ## @.str.3
	.asciz	"UseSep"

	.comm	_TRUE,4,2                       ## @TRUE
L_.str.4:                               ## @.str.4
	.asciz	"1"

L_.str.5:                               ## @.str.5
	.asciz	"0"

L_.str.6:                               ## @.str.6
	.asciz	"SOFTWARE\\Microsoft\\Calc"

	.no_dead_strip	_save_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function save_config
_save_config:                           ; @save_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	w8, #8
	str	w8, [sp]
	mov	x0, sp
	bl	_GetVersionEx
	ldr	w8, [sp, #4]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__T
	mov	x1, x0
Lloh5:
	adrp	x21, _calc@GOTPAGE
Lloh6:
	ldr	x21, [x21, _calc@GOTPAGEOFF]
	ldr	w2, [x21, #4]
	add	x0, sp, #8
	bl	__stprintf
Lloh7:
	adrp	x19, l_.str.1@PAGE
Lloh8:
	add	x19, x19, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	__T
	mov	x20, x0
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__T
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x20
	bl	_WriteProfileString
	mov	x0, x19
	bl	__T
	mov	x19, x0
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__T
	mov	x20, x0
	ldr	w8, [x21]
Lloh13:
	adrp	x9, _TRUE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, l_.str.5@PAGE
Lloh17:
	add	x10, x10, l_.str.5@PAGEOFF
Lloh18:
	adrp	x11, l_.str.4@PAGE
Lloh19:
	add	x11, x11, l_.str.4@PAGEOFF
	cmp	w8, w9
	csel	x0, x11, x10, eq
	bl	__T
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_WriteProfileString
	b	LBB0_3
LBB0_2:
Lloh20:
	adrp	x19, l_.str.6@PAGE
Lloh21:
	add	x19, x19, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	__T
	mov	x20, x0
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__T
	mov	x1, x0
Lloh24:
	adrp	x21, _calc@GOTPAGE
Lloh25:
	ldr	x21, [x21, _calc@GOTPAGEOFF]
	ldr	w2, [x21, #4]
	mov	x0, x20
	bl	_SaveRegInt
	mov	x0, x19
	bl	__T
	mov	x19, x0
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__T
	mov	x1, x0
	ldr	w2, [x21]
	mov	x0, x19
	bl	_SaveRegInt
LBB0_3:
	ldur	x8, [x29, #-40]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%lu"

	.comm	_calc,8,2                       ; @calc
l_.str.1:                               ; @.str.1
	.asciz	"SciCalc"

l_.str.2:                               ; @.str.2
	.asciz	"layout"

l_.str.3:                               ; @.str.3
	.asciz	"UseSep"

	.comm	_TRUE,4,2                       ; @TRUE
l_.str.4:                               ; @.str.4
	.asciz	"1"

l_.str.5:                               ; @.str.5
	.asciz	"0"

l_.str.6:                               ; @.str.6
	.asciz	"SOFTWARE\\Microsoft\\Calc"

	.no_dead_strip	_save_config
.subsections_via_symbols
