	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReadConfigFile                 ## -- Begin function ReadConfigFile
	.p2align	4, 0x90
_ReadConfigFile:                        ## @ReadConfigFile
	.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
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	callq	_err
LBB0_2:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_fgetln
	testq	%rax, %rax
	je	LBB0_27
## %bb.3:
	movq	%rax, %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r13d, %r13d
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ParseOption
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	leaq	-48(%rbp), %rsi
	callq	_fgetln
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_27
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_21 Depth 2
	movq	-48(%rbp), %rax
	cmpb	$10, -1(%rax,%r15)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movb	$0, -1(%r15,%rax)
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_errx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	$35, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movb	$0, (%rax)
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	-1(%r15), %r14
	leaq	1(%r15), %rcx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, %r13
	movsbl	1(%r14), %edi
	incq	%r14
	callq	_isspace
	leaq	1(%r13), %rcx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$0, (%r14)
	je	LBB0_26
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_strlen
	leaq	(%r15,%rax), %rbx
	incq	%rbx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	-2(%rbx), %edi
	callq	_isspace
	decq	%rbx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movb	$0, (%rbx)
	movb	(%r14), %al
	testb	%al, %al
	je	LBB0_24
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movzbl	(%r13), %eax
	incq	%r13
	testb	%al, %al
	jne	LBB0_16
	jmp	LBB0_24
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$0, -1(%r13)
	je	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movb	$0, -1(%r13)
	movb	(%r13), %al
	testb	%al, %al
	je	LBB0_24
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	movzbl	1(%r13), %eax
	incq	%r13
	testb	%al, %al
	jne	LBB0_21
	jmp	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$0, (%r13)
	jne	LBB0_25
	jmp	LBB0_24
LBB0_27:
	movq	%r12, %rdi
	callq	_fclose
	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	"cannot open config file %s"

L_.str.2:                               ## @.str.2
	.asciz	"config file format error: last line should end with newline"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReadConfigFile                 ; -- Begin function ReadConfigFile
	.p2align	2
_ReadConfigFile:                        ; @ReadConfigFile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_err
LBB0_2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_fgetln
	cbz	x0, LBB0_25
; %bb.3:
	mov	x23, x0
Lloh4:
	adrp	x20, l_.str.2@PAGE
Lloh5:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, #0
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_ParseOption
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_fgetln
	mov	x23, x0
	cbz	x0, LBB0_25
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
                                        ;     Child Loop BB0_22 Depth 2
	ldr	x8, [sp, #8]
	sub	x8, x8, #1
	ldrb	w9, [x23, x8]
	cmp	w9, #10
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	strb	wzr, [x23, x8]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #1
	mov	x1, x20
	bl	_errx
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	mov	w1, #35
	bl	_strchr
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	strb	wzr, [x0]
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	x21, x23, #1
	add	x8, x23, #1
LBB0_13:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x22, x8
	ldrsb	w0, [x21, #1]!
	bl	_isspace
	add	x8, x22, #1
	cbnz	x0, LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [x21]
	cbz	w8, LBB0_6
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_strlen
	add	x8, x23, x0
	add	x23, x8, #1
LBB0_16:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldursb	w0, [x23, #-2]
	bl	_isspace
	sub	x23, x23, #1
	cbnz	x0, LBB0_16
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	strb	wzr, [x23]
	ldrb	w8, [x21]
	cbz	w8, LBB0_4
LBB0_18:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtb	w0, w8
	bl	_isspace
	cbnz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	ldrb	w8, [x22], #1
	cbnz	w8, LBB0_18
	b	LBB0_4
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=1
	ldurb	w8, [x22, #-1]
	cbz	w8, LBB0_4
; %bb.21:                               ;   in Loop: Header=BB0_7 Depth=1
	sturb	wzr, [x22, #-1]
	ldrb	w8, [x22]
	cbz	w8, LBB0_4
LBB0_22:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtb	w0, w8
	bl	_isspace
	cbz	x0, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=2
	ldrb	w8, [x22, #1]!
	cbnz	w8, LBB0_22
	b	LBB0_4
LBB0_24:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [x22]
	cbnz	w8, LBB0_5
	b	LBB0_4
LBB0_25:
	mov	x0, x19
	bl	_fclose
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"cannot open config file %s"

l_.str.2:                               ; @.str.2
	.asciz	"config file format error: last line should end with newline"

.subsections_via_symbols
