	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_config_read                    ## -- Begin function config_read
	.p2align	4, 0x90
_config_read:                           ## @config_read
	.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
	movl	$1, %r14d
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_create_cfg_parser
	movq	_ub_c_in@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	xorl	%eax, %eax
	callq	_ub_c_parse
	movq	%rbx, %rdi
	callq	_fclose
	cmpl	$0, 8(%r15)
	jne	LBB0_5
## %bb.4:
	movq	$0, (%r15)
LBB0_5:
	movq	_cfg_parser@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdx
	callq	_fprintf
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%r13, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_log_err
LBB0_7:
	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	"r"

L_.str.1:                               ## @.str.1
	.asciz	"Could not open %s: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_ub_c_in,8,3                    ## @ub_c_in
	.comm	_cfg_parser,8,3                 ## @cfg_parser
	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"read %s failed: %d errors in configuration file\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GLOB_ABORTED,4,2               ## @GLOB_ABORTED
	.comm	_GLOB_BRACE,4,2                 ## @GLOB_BRACE
	.comm	_GLOB_ERR,4,2                   ## @GLOB_ERR
	.comm	_GLOB_NOMATCH,4,2               ## @GLOB_NOMATCH
	.comm	_GLOB_NOSORT,4,2                ## @GLOB_NOSORT
	.comm	_GLOB_NOSPACE,4,2               ## @GLOB_NOSPACE
	.comm	_GLOB_TILDE,4,2                 ## @GLOB_TILDE
	.comm	_VERB_QUERY,4,2                 ## @VERB_QUERY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_config_read                    ; -- Begin function config_read
	.p2align	2
_config_read:                           ; @config_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x1, LBB0_6
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fopen
	cbz	x0, LBB0_7
; %bb.2:
	mov	x22, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_create_cfg_parser
Lloh2:
	adrp	x8, _ub_c_in@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ub_c_in@GOTPAGEOFF]
Lloh4:
	str	x22, [x8]
	bl	_ub_c_parse
	mov	x0, x22
	bl	_fclose
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_4
; %bb.3:
	str	xzr, [x20]
LBB0_4:
Lloh5:
	adrp	x8, _cfg_parser@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cfg_parser@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x3, [x8]
	cbz	x3, LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	mov	w0, #0
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _errno@GOTPAGE
Lloh17:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh18:
	str	w8, [x9]
	b	LBB0_8
LBB0_6:
	mov	w0, #1
	b	LBB0_8
LBB0_7:
Lloh19:
	adrp	x8, _errno@GOTPAGE
Lloh20:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_log_err
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"Could not open %s: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_ub_c_in,8,3                    ; @ub_c_in
	.comm	_cfg_parser,8,3                 ; @cfg_parser
	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"read %s failed: %d errors in configuration file\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GLOB_ABORTED,4,2               ; @GLOB_ABORTED
	.comm	_GLOB_BRACE,4,2                 ; @GLOB_BRACE
	.comm	_GLOB_ERR,4,2                   ; @GLOB_ERR
	.comm	_GLOB_NOMATCH,4,2               ; @GLOB_NOMATCH
	.comm	_GLOB_NOSORT,4,2                ; @GLOB_NOSORT
	.comm	_GLOB_NOSPACE,4,2               ; @GLOB_NOSPACE
	.comm	_GLOB_TILDE,4,2                 ; @GLOB_TILDE
	.comm	_VERB_QUERY,4,2                 ; @VERB_QUERY
.subsections_via_symbols
