	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_configuration
_parse_configuration:                   ## @parse_configuration
	.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	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	%rax, %r14
	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	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movl	$1, %ebx
	leaq	-1072(%rbp), %r12
	movq	_next@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcspn
	movb	$0, -1072(%rbp,%rax)
	movl	$1, %edi
	movl	$32, %esi
	callq	_calloc
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, (%r15)
	movq	(%r13), %rax
	movq	%r15, (%rax)
	movq	%r15, %rax
	addq	$24, %rax
	movq	%rax, (%r13)
	movq	%r12, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_iscmd
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_CMD_EXPECT@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_iscmd
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_CMD_SEND@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_iscmd
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_CMD_PASSWORD@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r15)
	movq	%rax, 8(%r15)
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r14, %rdx
	callq	_fgets
	incl	%ebx
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	leaq	L_.str.7(%rip), %rsi
	movl	%ebx, %edx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_14
LBB0_15:
	movq	%r14, %rdi
	callq	_fclose
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"malloc"

	.comm	_next,8,3                       ## @next
L_.str.4:                               ## @.str.4
	.asciz	"expect "

	.comm	_CMD_EXPECT,4,2                 ## @CMD_EXPECT
L_.str.5:                               ## @.str.5
	.asciz	"send "

	.comm	_CMD_SEND,4,2                   ## @CMD_SEND
L_.str.6:                               ## @.str.6
	.asciz	"password "

	.comm	_CMD_PASSWORD,4,2               ## @CMD_PASSWORD
L_.str.7:                               ## @.str.7
	.asciz	"Invalid command on line %d: %s"

	.no_dead_strip	_parse_configuration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_configuration
_parse_configuration:                   ; @parse_configuration
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #1056
	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, #-96]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_err
LBB0_2:
	add	x27, sp, #16
	add	x0, sp, #16
	mov	w1, #1024
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_16
; %bb.3:
	mov	w28, #1
Lloh7:
	adrp	x20, l_.str.2@PAGE
Lloh8:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh9:
	adrp	x21, l_.str.3@PAGE
Lloh10:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh11:
	adrp	x25, _next@GOTPAGE
Lloh12:
	ldr	x25, [x25, _next@GOTPAGEOFF]
Lloh13:
	adrp	x22, l_.str.4@PAGE
Lloh14:
	add	x22, x22, l_.str.4@PAGEOFF
Lloh15:
	adrp	x23, l_.str.5@PAGE
Lloh16:
	add	x23, x23, l_.str.5@PAGEOFF
Lloh17:
	adrp	x24, _CMD_EXPECT@GOTPAGE
Lloh18:
	ldr	x24, [x24, _CMD_EXPECT@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #16
	mov	x1, x20
	bl	_strcspn
	strb	wzr, [x27, x0]
	mov	w0, #1
	mov	w1, #32
	bl	_calloc
	mov	x26, x0
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	mov	x1, x21
	bl	_errx
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x26
	str	w28, [x8], #24
	ldr	x9, [x25]
	str	x26, [x9]
	str	x8, [x25]
	add	x0, sp, #16
	mov	x1, x22
	bl	_iscmd
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24]
	b	LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #16
	mov	x1, x23
	bl	_iscmd
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh19:
	adrp	x8, _CMD_SEND@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CMD_SEND@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #16
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_iscmd
	cbz	x0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh23:
	adrp	x8, _CMD_PASSWORD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CMD_PASSWORD@GOTPAGEOFF]
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x8]
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w8, [x26, #16]
	str	x0, [x26, #8]
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #16
	mov	w1, #1024
	mov	x2, x19
	bl	_fgets
	add	w28, w28, #1
	cbnz	x0, LBB0_4
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	stp	x28, x27, [sp]
	mov	w0, #1
Lloh25:
	adrp	x1, l_.str.7@PAGE
Lloh26:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_errx
	b	LBB0_14
LBB0_16:
	mov	x0, x19
	bl	_fclose
	ldur	x8, [x29, #-96]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	add	sp, sp, #1056
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"malloc"

	.comm	_next,8,3                       ; @next
l_.str.4:                               ; @.str.4
	.asciz	"expect "

	.comm	_CMD_EXPECT,4,2                 ; @CMD_EXPECT
l_.str.5:                               ; @.str.5
	.asciz	"send "

	.comm	_CMD_SEND,4,2                   ; @CMD_SEND
l_.str.6:                               ; @.str.6
	.asciz	"password "

	.comm	_CMD_PASSWORD,4,2               ; @CMD_PASSWORD
l_.str.7:                               ; @.str.7
	.asciz	"Invalid command on line %d: %s"

	.no_dead_strip	_parse_configuration
.subsections_via_symbols
