	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_config_readsect                ## -- Begin function config_readsect
	.p2align	4, 0x90
_config_readsect:                       ## @config_readsect
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -180(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movl	$-1, %r12d
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_seek_sect
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	xorl	%eax, %eax
	callq	_emu_set_defconfig
	movq	%rbx, %rdi
	callq	_feof
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	movq	%r14, -192(%rbp)                ## 8-byte Spill
	leaq	-176(%rbp), %r12
	leaq	-208(%rbp), %r13
	leaq	-200(%rbp), %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-208(%rbp), %rdi
	movq	-200(%rbp), %rsi
	leaq	-180(%rbp), %rdx
	callq	_parse
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_feof
	testl	%eax, %eax
	jne	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$128, %edx
	movq	%r13, %rcx
	movq	%r14, %r8
	callq	_config_get_var_val
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%eax, %eax
	jne	LBB0_8
LBB0_10:
	cmpl	$0, -180(%rbp)
	movq	-192(%rbp), %r14                ## 8-byte Reload
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_rewind
	movq	%rbx, %rdi
	callq	_keys_parse_all
LBB0_12:
	movq	%rbx, %rdi
	callq	_fclose
	leaq	L_.str.2(%rip), %rdi
	xorl	%r12d, %r12d
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_lprintf
	testq	%r15, %r15
	je	LBB0_14
## %bb.13:
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_lprintf
LBB0_14:
	movl	$10, %edi
	callq	_putchar
	jmp	LBB0_15
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_lprintf
	movq	%rbx, %rdi
	callq	_fclose
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r12d, %eax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"config_readsect: %s: missing section [%s]\n"

L_.str.2:                               ## @.str.2
	.asciz	"config_readsect: loaded from %s"

L_.str.3:                               ## @.str.3
	.asciz	" [%s]"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_config_readsect                ; -- Begin function config_readsect
	.p2align	2
_config_readsect:                       ; @config_readsect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	str	wzr, [sp, #20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_14
; %bb.1:
	mov	x21, x0
	cbz	x19, LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x19
	bl	_seek_sect
	cbz	w0, LBB0_13
LBB0_3:
	bl	_emu_set_defconfig
	mov	x0, x21
	bl	_feof
	cbnz	w0, LBB0_10
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldp	x1, x0, [sp, #24]
	add	x2, sp, #20
	bl	_parse
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_feof
	cbnz	w0, LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #40
	add	x3, sp, #32
	add	x4, sp, #24
	mov	x0, x21
	mov	w2, #128
	bl	_config_get_var_val
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w0, LBB0_4
LBB0_8:
	ldr	w8, [sp, #20]
	cbz	w8, LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_rewind
	mov	x0, x21
	bl	_keys_parse_all
LBB0_10:
	mov	x0, x21
	bl	_fclose
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_lprintf
	cbz	x19, LBB0_12
; %bb.11:
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_lprintf
LBB0_12:
	mov	w0, #10
	bl	_putchar
	mov	w0, #0
	b	LBB0_15
LBB0_13:
	str	x19, [sp]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_lprintf
	mov	x0, x21
	bl	_fclose
LBB0_14:
	mov	w0, #-1
LBB0_15:
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"config_readsect: %s: missing section [%s]\n"

l_.str.2:                               ; @.str.2
	.asciz	"config_readsect: loaded from %s"

l_.str.3:                               ; @.str.3
	.asciz	" [%s]"

.subsections_via_symbols
