	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_environment_file
_read_environment_file:                 ## @read_environment_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	$0, -48(%rbp)
	movq	$0, -72(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	leaq	-48(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	movq	%rax, %rdx
	callq	_getline
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.2:
	xorl	%r15d, %r15d
	movabsq	$4294967808, %r13               ## imm = 0x100000200
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movabsq	$34359739393, %rcx              ## imm = 0x800000401
	btq	%rax, %rcx
	jae	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	-48(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_getline
	cmpl	$-1, %eax
	je	LBB0_10
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	cmpl	$1000, %r15d                    ## imm = 0x3E8
	jb	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_fatal
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
	movq	-48(%rbp), %r14
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r14), %eax
	cmpq	$35, %rax
	ja	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	btq	%rax, %r13
	jae	LBB0_8
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=2
	incq	%r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcspn
	movb	$0, (%r14,%rax)
	movq	%r14, %rdi
	movl	$61, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r12
	movb	$0, (%rax)
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_match_pattern_list
	cmpl	$1, %eax
	jne	LBB0_9
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_child_set_env
	jmp	LBB0_9
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_fprintf
	jmp	LBB0_9
LBB0_10:
	movq	-48(%rbp), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_fclose
LBB0_11:
	addq	$56, %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	"Too many lines in environment file %s"

L_.str.2:                               ## @.str.2
	.asciz	"\n"

	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"Bad line %u in %.100s\n"

	.no_dead_strip	_read_environment_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_environment_file
_read_environment_file:                 ; @read_environment_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	stp	x0, x1, [sp]                    ; 16-byte Folded Spill
	stp	xzr, xzr, [sp, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x2
	bl	_fopen
	cbz	x0, LBB0_17
; %bb.1:
	mov	x23, x0
	add	x0, sp, #24
	add	x1, sp, #16
	mov	x2, x23
	bl	_getline
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.2:
	mov	w24, #0
Lloh2:
	adrp	x25, l_.str.1@PAGE
Lloh3:
	add	x25, x25, l_.str.1@PAGEOFF
	mov	w26, #1
	mov	x21, #512
	movk	x21, #1, lsl #32
	mov	x22, #1025
	movk	x22, #8, lsl #32
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	lsl	x8, x26, x8
	tst	x8, x22
	b.eq	LBB0_11
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
	add	x1, sp, #16
	mov	x2, x23
	bl	_getline
	cmn	w0, #1
	b.eq	LBB0_16
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w24, #1000
	b.lo	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	mov	x1, x20
	bl	_fatal
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w24, w24, #1
	ldr	x28, [sp, #24]
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x28]
	cmp	w8, #35
	b.hi	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	lsl	x9, x26, x8
	tst	x9, x21
	b.eq	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	add	x28, x28, #1
	b	LBB0_8
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x28
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcspn
	strb	wzr, [x28, x0]
	mov	x0, x28
	mov	w1, #61
	bl	_strchr
	cbz	x0, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x27, x0
	strb	wzr, [x27], #1
	cbz	x19, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x28
	mov	x1, x19
	mov	w2, #0
	bl	_match_pattern_list
	cmp	w0, #1
	b.ne	LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x0, x1, [sp]                    ; 16-byte Folded Reload
	mov	x2, x28
	mov	x3, x27
	bl	_child_set_env
	b	LBB0_4
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh6:
	adrp	x8, _stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x24
	mov	x3, x20
	bl	_fprintf
	b	LBB0_4
LBB0_16:
	ldr	x0, [sp, #24]
	bl	_free
	mov	x0, x23
	bl	_fclose
LBB0_17:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"Too many lines in environment file %s"

l_.str.2:                               ; @.str.2
	.asciz	"\n"

	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"Bad line %u in %.100s\n"

	.no_dead_strip	_read_environment_file
.subsections_via_symbols
