	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function config_load
_config_load:                           ## @config_load
	.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	$1080, %rsp                     ## imm = 0x438
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_24
## %bb.1:
	movq	%rax, %r15
	leaq	-1072(%rbp), %r12
	movq	%r12, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%rax, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	xorl	%ebx, %ebx
	movq	%r13, -1080(%rbp)               ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r12, %r13
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%r13), %edi
	callq	_isspace
	incq	%r13
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movb	-1(%r13), %al
	cmpb	$35, %al
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	%al, %al
	jne	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r15, %rdx
	callq	_fgets
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	leaq	-1104(%rbp), %r13
	movq	%r13, %rsi
	callq	_config_parse_pair
	testl	%eax, %eax
	jne	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	-1112(%rbp), %rsi
	callq	_config_find_option
	testl	%eax, %eax
	jne	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-1112(%rbp), %rax
	movq	(%rax), %rcx
	movq	_TYPE_INT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-1096(%rbp), %rdi
	movslq	8(%rax), %rsi
	movq	-1080(%rbp), %r13               ## 8-byte Reload
	addq	%r13, %rsi
	callq	_parse_uint
	testl	%eax, %eax
	jne	LBB0_22
	jmp	LBB0_18
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	8(%rax), %rdi
	movq	-1080(%rbp), %r13               ## 8-byte Reload
	addq	%r13, %rdi
	movl	12(%rax), %esi
	movq	-1096(%rbp), %rdx
	movl	-1088(%rbp), %ecx
	callq	_StringCchCopyNA
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_21
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r15, %rdx
	callq	_fgets
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_24:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_eprintf
	jmp	LBB0_12
LBB0_10:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdi
	leaq	-1072(%rbp), %rdx
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_eprintf
	jmp	LBB0_11
LBB0_15:
	movl	-1104(%rbp), %esi
	leaq	L_.str.3(%rip), %rdi
	leaq	-1072(%rbp), %rcx
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_eprintf
	movq	_ERROR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_11
LBB0_18:
	movq	_ERROR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	-1104(%rbp), %edx
	movq	-1096(%rbp), %rcx
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_19
LBB0_21:
	movq	_ERROR_BUFFER_OVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	-1104(%rbp), %edx
	movq	-1096(%rbp), %rcx
	leaq	L_.str.5(%rip), %rdi
LBB0_19:
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_eprintf
LBB0_11:
	movq	%r15, %rdi
	callq	_fclose
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.13:
	movl	%r14d, %eax
	addq	$1080, %rsp                     ## imm = 0x438
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_ERROR,4,2                   ## @NO_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"config_load() failed to open file '%s'\n"

L_.str.2:                               ## @.str.2
	.asciz	"error on line %d: %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"unrecognized option '%s' on line %d: %s\n"

	.comm	_ERROR_INVALID_PARAMETER,4,2    ## @ERROR_INVALID_PARAMETER
	.comm	_TYPE_INT,8,3                   ## @TYPE_INT
L_.str.4:                               ## @.str.4
	.asciz	"expected a number on line %d: %s=\"%s\"\n"

	.comm	_ERROR_BUFFER_OVERFLOW,4,2      ## @ERROR_BUFFER_OVERFLOW
L_.str.5:                               ## @.str.5
	.asciz	"overflow on line %d: %s=\"%s\"\n"

	.no_dead_strip	_config_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function config_load
_config_load:                           ; @config_load
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #1088
	mov	x22, 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, #-72]
Lloh3:
	adrp	x8, _NO_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NO_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_fopen
	cbz	x0, LBB0_15
; %bb.1:
	mov	x19, x0
	add	x0, sp, #56
	mov	w1, #1024
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_13
; %bb.2:
	mov	w23, #0
Lloh8:
	adrp	x24, _TYPE_INT@GOTPAGE
Lloh9:
	ldr	x24, [x24, _TYPE_INT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	add	x22, sp, #56
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x22], #1
	bl	_isspace
	cbnz	x0, LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	ldurb	w8, [x22, #-1]
	cmp	w8, #35
	add	x0, sp, #56
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w1, #1024
	mov	x2, x19
	bl	_fgets
	cbnz	x0, LBB0_3
	b	LBB0_13
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #32
	bl	_config_parse_pair
	cbnz	w0, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #32
	add	x1, sp, #24
	bl	_config_find_option
	cbnz	w0, LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #24]
	ldr	x9, [x8]
	ldr	x10, [x24]
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #40]
	ldrsw	x8, [x8, #8]
	add	x1, x20, x8
	bl	_parse_uint
	cbnz	w0, LBB0_12
	b	LBB0_20
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w9, w1, [x8, #8]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x0, x20, x9
	ldr	x2, [sp, #40]
	ldr	w3, [sp, #48]
	bl	_StringCchCopyNA
	bl	_FAILED
	cbnz	x0, LBB0_21
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #56
	mov	w1, #1024
	mov	x2, x19
	bl	_fgets
	mov	w21, #0
	mov	w22, #0
	cbnz	x0, LBB0_3
	b	LBB0_14
LBB0_13:
	mov	x22, x21
LBB0_14:
	mov	x0, x19
	bl	_fclose
	mov	x21, x22
	b	LBB0_16
LBB0_15:
	str	x22, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_eprintf
LBB0_16:
	ldur	x8, [x29, #-72]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.17:
	mov	x0, x21
	add	sp, sp, #1088
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
	mov	x22, x0
	add	x8, sp, #56
	stp	x23, x8, [sp]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_eprintf
	b	LBB0_14
LBB0_19:
	ldr	w8, [sp, #32]
	add	x9, sp, #56
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	stp	x23, x9, [sp, #8]
	str	x8, [sp]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_eprintf
Lloh19:
	adrp	x8, _ERROR_INVALID_PARAMETER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERROR_INVALID_PARAMETER@GOTPAGEOFF]
Lloh21:
	ldr	w22, [x8]
	b	LBB0_14
LBB0_20:
Lloh22:
	adrp	x8, _ERROR_INVALID_PARAMETER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERROR_INVALID_PARAMETER@GOTPAGEOFF]
Lloh24:
	ldr	w22, [x8]
	ldr	x8, [sp, #40]
	ldr	w9, [sp, #32]
	stp	x9, x8, [sp, #8]
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	str	x23, [sp]
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_eprintf
	b	LBB0_14
LBB0_21:
Lloh27:
	adrp	x8, _ERROR_BUFFER_OVERFLOW@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ERROR_BUFFER_OVERFLOW@GOTPAGEOFF]
Lloh29:
	ldr	w22, [x8]
	ldr	x8, [sp, #40]
	ldr	w9, [sp, #32]
	stp	x9, x8, [sp, #8]
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	str	x23, [sp]
Lloh30:
	adrp	x0, l_.str.5@PAGE
Lloh31:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_eprintf
	b	LBB0_14
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_NO_ERROR,4,2                   ; @NO_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"config_load() failed to open file '%s'\n"

l_.str.2:                               ; @.str.2
	.asciz	"error on line %d: %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"unrecognized option '%s' on line %d: %s\n"

	.comm	_ERROR_INVALID_PARAMETER,4,2    ; @ERROR_INVALID_PARAMETER
	.comm	_TYPE_INT,8,3                   ; @TYPE_INT
l_.str.4:                               ; @.str.4
	.asciz	"expected a number on line %d: %s=\"%s\"\n"

	.comm	_ERROR_BUFFER_OVERFLOW,4,2      ; @ERROR_BUFFER_OVERFLOW
l_.str.5:                               ; @.str.5
	.asciz	"overflow on line %d: %s=\"%s\"\n"

	.no_dead_strip	_config_load
.subsections_via_symbols
