	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_conf_file
_read_conf_file:                        ## @read_conf_file
	.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	%esi, %r15d
	movq	%rdi, %r14
	xorl	%edi, %edi
	callq	_ucl_parser_new
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_ucl_parser_add_file
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r13, %rdi
	callq	_ucl_parser_get_object
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	_UCL_OBJECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	_CONFFILE_PKG@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_config_parse
	jmp	LBB0_9
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.2:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r13, %rdi
	callq	_ucl_parser_get_error
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_errx
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_warnx
	jmp	LBB0_9
LBB0_7:
	movq	_CONFFILE_REPO@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_parse_repo_file
LBB0_9:
	movq	%r12, %rdi
	callq	_ucl_object_unref
	xorl	%ebx, %ebx
LBB0_10:
	movq	%r13, %rdi
	callq	_ucl_parser_free
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to parse configuration file %s: %s"

	.comm	_UCL_OBJECT,8,3                 ## @UCL_OBJECT
L_.str.1:                               ## @.str.1
	.asciz	"Invalid configuration format, ignoring the configuration file %s"

	.comm	_CONFFILE_PKG,4,2               ## @CONFFILE_PKG
	.comm	_CONFFILE_REPO,4,2              ## @CONFFILE_REPO
	.no_dead_strip	_read_conf_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_conf_file
_read_conf_file:                        ; @read_conf_file
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	mov	x20, x0
	mov	w0, #0
	bl	_ucl_parser_new
	mov	x19, x0
	mov	x1, x20
	bl	_ucl_parser_add_file
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_ucl_parser_get_object
	mov	x22, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _UCL_OBJECT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UCL_OBJECT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _CONFFILE_PKG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CONFFILE_PKG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x22
	mov	x1, x21
	bl	_config_parse
	b	LBB0_10
LBB0_4:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _ENOENT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	mov	w20, #1
	b	LBB0_11
LBB0_6:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_warnx
	b	LBB0_10
LBB0_7:
Lloh14:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_ucl_parser_get_error
	mov	x3, x0
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_errx
	mov	w20, #1
	b	LBB0_11
LBB0_8:
Lloh19:
	adrp	x8, _CONFFILE_REPO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CONFFILE_REPO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x22
	bl	_parse_repo_file
LBB0_10:
	mov	x0, x22
	bl	_ucl_object_unref
	mov	w20, #0
LBB0_11:
	mov	x0, x19
	bl	_ucl_parser_free
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to parse configuration file %s: %s"

	.comm	_UCL_OBJECT,8,3                 ; @UCL_OBJECT
l_.str.1:                               ; @.str.1
	.asciz	"Invalid configuration format, ignoring the configuration file %s"

	.comm	_CONFFILE_PKG,4,2               ; @CONFFILE_PKG
	.comm	_CONFFILE_REPO,4,2              ; @CONFFILE_REPO
	.no_dead_strip	_read_conf_file
.subsections_via_symbols
