	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_conf_write_defconfig           ## -- Begin function conf_write_defconfig
	.p2align	4, 0x90
_conf_write_defconfig:                  ## @conf_write_defconfig
	.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
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_sym_clear_all_valid
	movq	_rootmenu@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_3
LBB0_18:
	movq	%r12, %rdi
	callq	_fclose
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_menu_is_visible
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_16
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	%rax, %rbx
	movq	24(%rax), %r13
	testq	%r13, %r13
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_sym_is_choice
	testl	%eax, %eax
	jne	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_sym_calc_value
	movl	(%r13), %eax
	movq	_SYMBOL_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r13)
	movq	%r13, %rdi
	callq	_sym_is_changable
	testl	%eax, %eax
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_sym_get_string_value
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_sym_get_string_default
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_sym_is_choice_value
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_sym_get_choice_prop
	movl	%eax, %edi
	callq	_prop_get_symbol
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_sym_choice_default
	movq	%rax, %r15
	movq	%r14, %rdi
	xorl	%r14d, %r14d
	callq	_sym_is_optional
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r15, %r13
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r13), %rax
	movq	_S_BOOLEAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_sym_get_tristate_value
	movq	_yes@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	_kconfig_printer_cb@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_conf_write_symbol
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_18
LBB0_16:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_17
	jmp	LBB0_3
LBB0_1:
	movl	$1, %r14d
LBB0_19:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w"

	.comm	_rootmenu,8,3                   ## @rootmenu
	.comm	_SYMBOL_WRITE,4,2               ## @SYMBOL_WRITE
	.comm	_S_BOOLEAN,8,3                  ## @S_BOOLEAN
	.comm	_yes,8,3                        ## @yes
	.comm	_kconfig_printer_cb,4,2         ## @kconfig_printer_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_conf_write_defconfig           ; -- Begin function conf_write_defconfig
	.p2align	2
_conf_write_defconfig:                  ; @conf_write_defconfig
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_19
; %bb.1:
	mov	x19, x0
	bl	_sym_clear_all_valid
Lloh2:
	adrp	x8, _rootmenu@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rootmenu@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.2:
Lloh5:
	adrp	x25, _SYMBOL_WRITE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _SYMBOL_WRITE@GOTPAGEOFF]
Lloh7:
	adrp	x20, _kconfig_printer_cb@GOTPAGE
Lloh8:
	ldr	x20, [x20, _kconfig_printer_cb@GOTPAGEOFF]
Lloh9:
	adrp	x26, _S_BOOLEAN@GOTPAGE
Lloh10:
	ldr	x26, [x26, _S_BOOLEAN@GOTPAGEOFF]
Lloh11:
	adrp	x27, _yes@GOTPAGE
Lloh12:
	ldr	x27, [x27, _yes@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_menu_is_visible
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_17
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	mov	x21, x8
	ldr	x22, [x8, #24]
	cbz	x22, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_sym_is_choice
	cbnz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_sym_calc_value
	ldr	w8, [x22]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	bic	w8, w8, w9
	str	w8, [x22]
	mov	x0, x22
	bl	_sym_is_changable
	cbz	w0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_sym_get_string_value
	mov	x23, x0
	mov	x0, x22
	bl	_sym_get_string_default
	mov	x1, x0
	mov	x0, x23
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_sym_is_choice_value
	cbz	x0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_sym_get_choice_prop
	bl	_prop_get_symbol
	mov	x24, x0
	bl	_sym_choice_default
	mov	x23, x0
	mov	x0, x24
	bl	_sym_is_optional
	cbnz	w0, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	x22, x23
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22, #8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_sym_get_tristate_value
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_4
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, #0
	bl	_conf_write_symbol
	b	LBB0_4
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	x21, [x21, #8]
	cbz	x21, LBB0_18
LBB0_17:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21]
	cbz	x8, LBB0_16
	b	LBB0_5
LBB0_18:
	mov	x0, x19
	bl	_fclose
	mov	w0, #0
	b	LBB0_20
LBB0_19:
	mov	w0, #1
LBB0_20:
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w"

	.comm	_rootmenu,8,3                   ; @rootmenu
	.comm	_SYMBOL_WRITE,4,2               ; @SYMBOL_WRITE
	.comm	_S_BOOLEAN,8,3                  ; @S_BOOLEAN
	.comm	_yes,8,3                        ; @yes
	.comm	_kconfig_printer_cb,4,2         ; @kconfig_printer_cb
.subsections_via_symbols
