	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tftp_config_load               ## -- Begin function tftp_config_load
	.p2align	4, 0x90
_tftp_config_load:                      ## @tftp_config_load
	.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
	movl	$16440, %eax                    ## imm = 0x4038
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.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
	testq	%rax, %rax
	je	LBB0_31
## %bb.1:
	movq	%rax, %r15
	movl	$1, %r13d
	leaq	-16432(%rbp), %rbx
	leaq	L_.str.3(%rip), %r14
	xorl	%r12d, %r12d
	movq	%rax, -16456(%rbp)              ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$2, %eax
	movq	%r13, %r15
	movl	-16440(%rbp), %r13d             ## 4-byte Reload
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	cmpl	$3, %eax
	je	LBB0_28
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	movq	%r15, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_28
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	cmpl	$16383, %eax                    ## imm = 0x3FFF
	jae	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, -16440(%rbp)             ## 4-byte Spill
	movq	%r15, %r13
	movq	%rbx, %rdi
	movq	%r14, %rsi
	leaq	-16472(%rbp), %r15
	movq	%r15, %rdx
	callq	_strtok_r
	movq	%rax, -16448(%rbp)              ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_strtok_r
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movl	%r12d, -16436(%rbp)             ## 4-byte Spill
	movq	_tot_files@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	-16448(%rbp), %rdi              ## 8-byte Reload
	movl	$1, %esi
	callq	_get_file_f
	cmpl	(%r12), %ebx
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r15
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r12d
	movl	%eax, %edi
	leaq	-16464(%rbp), %rsi
	callq	_fstat
	testq	%rax, %rax
	movl	-16440(%rbp), %r13d             ## 4-byte Reload
	js	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-16464(%rbp), %rcx
	movq	%rcx, (%r15)
	movq	_TFTP_MAX_FILE_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jle	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.8(%rip), %rdi
	movq	%r14, %rsi
	movq	-16448(%rbp), %rdx              ## 8-byte Reload
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_kprintf
	jmp	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.7(%rip), %rdi
	movq	%r14, %rsi
	movq	-16448(%rbp), %rdx              ## 8-byte Reload
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_kprintf
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-16436(%rbp), %r12d             ## 4-byte Reload
	decl	%r12d
	movl	$3, %eax
	movq	-16456(%rbp), %r15              ## 8-byte Reload
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	-16432(%rbp), %rbx
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.3(%rip), %r14
	jmp	LBB0_27
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, %rdi
	callq	_zmalloc
	movl	%eax, 8(%r15)
	movq	%r14, %rdi
	callq	_zstrdup
	movl	%eax, 12(%r15)
	movl	8(%r15), %esi
	movq	(%r15), %rdx
	movl	%r12d, %edi
	callq	_read
	movq	(%r15), %rdx
	cmpq	%rdx, %rax
	jne	LBB0_20
## %bb.24:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %edi
	callq	_close
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	xorl	%eax, %eax
	movq	-16456(%rbp), %r15              ## 8-byte Reload
	movl	-16436(%rbp), %r12d             ## 4-byte Reload
	jmp	LBB0_25
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	movl	-16436(%rbp), %r12d             ## 4-byte Reload
	leaq	-16432(%rbp), %rbx
	js	LBB0_21
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.10(%rip), %rdi
	movq	%rax, %rsi
	movq	%r14, %rcx
	movq	-16448(%rbp), %r8               ## 8-byte Reload
	xorl	%eax, %eax
	callq	_kprintf
	jmp	LBB0_22
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.9(%rip), %rdi
	movq	%r14, %rsi
	movq	-16448(%rbp), %rdx              ## 8-byte Reload
	xorl	%eax, %eax
	callq	_kprintf
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	decl	%r12d
	movl	$3, %eax
	movq	-16456(%rbp), %r15              ## 8-byte Reload
	jmp	LBB0_26
LBB0_31:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_kprintf
	movl	$-1, %r12d
	jmp	LBB0_29
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_kprintf
	decl	%r12d
	jmp	LBB0_28
LBB0_8:
	leaq	L_.str.4(%rip), %rdi
	movl	-16440(%rbp), %esi              ## 4-byte Reload
	movq	-16448(%rbp), %rdx              ## 8-byte Reload
	xorl	%eax, %eax
	callq	_kprintf
	jmp	LBB0_9
LBB0_11:
	leaq	L_.str.5(%rip), %rdi
	movl	-16440(%rbp), %esi              ## 4-byte Reload
	movq	-16448(%rbp), %rdx              ## 8-byte Reload
	xorl	%eax, %eax
	callq	_kprintf
	movl	-16436(%rbp), %r12d             ## 4-byte Reload
LBB0_9:
	decl	%r12d
	movq	%r13, %r15
	jmp	LBB0_28
LBB0_13:
	leaq	L_.str.6(%rip), %rdi
	movq	%r14, %rsi
	movq	-16448(%rbp), %rdx              ## 8-byte Reload
	movl	-16440(%rbp), %ecx              ## 4-byte Reload
	xorl	%eax, %eax
	callq	_kprintf
	movl	-16436(%rbp), %r12d             ## 4-byte Reload
	decl	%r12d
	movq	-16456(%rbp), %r15              ## 8-byte Reload
LBB0_28:
	movq	%r15, %rdi
	callq	_fclose
LBB0_29:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.30:
	movl	%r12d, %eax
	addq	$16440, %rsp                    ## imm = 0x4038
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"fail to open config file '%s'. %m\n"

L_.str.2:                               ## @.str.2
	.asciz	"config line %d is too long\n"

L_.str.3:                               ## @.str.3
	.asciz	"\t\n "

L_.str.4:                               ## @.str.4
	.asciz	"at the %d line of config filename for alias '%s' wasn't given.\n"

	.comm	_tot_files,4,2                  ## @tot_files
L_.str.5:                               ## @.str.5
	.asciz	"%d line of config file contains duplicate record for alias '%s'.\n"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.6:                               ## @.str.6
	.asciz	"fail to open file '%s' for alias '%s' (config line: %d). %m\n"

L_.str.7:                               ## @.str.7
	.asciz	"fstat for file '%s' for alias '%s' failed (config line: %d). %m\n"

	.comm	_TFTP_MAX_FILE_SIZE,8,3         ## @TFTP_MAX_FILE_SIZE
L_.str.8:                               ## @.str.8
	.asciz	"file '%s' for alias '%s' is too big (more than %lld bytes) (config line: %d). %m\n"

L_.str.9:                               ## @.str.9
	.asciz	"read from file '%s' for alias '%s' failed. %m\n"

L_.str.10:                              ## @.str.10
	.asciz	"read only %lld bytes of expected %lld bytes from file '%s' for alias '%s'.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tftp_config_load               ; -- Begin function tftp_config_load
	.p2align	2
_tftp_config_load:                      ; @tftp_config_load
	.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
	mov	w9, #16448
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #4, lsl #12             ; =16384
	sub	sp, sp, #64
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_20
; %bb.1:
	mov	x20, x0
	mov	w19, #0
	mov	w25, #1
	mov	w23, #16383
Lloh7:
	adrp	x21, l_.str.3@PAGE
Lloh8:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh9:
	adrp	x22, _tot_files@GOTPAGE
Lloh10:
	ldr	x22, [x22, _tot_files@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #2
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w25, #1
	cmp	w8, #3
	b.eq	LBB0_26
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #48
	mov	w1, #16384
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_26
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #48
	bl	_strlen
	cmp	w0, w23
	b.hs	LBB0_21
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #48
	add	x2, sp, #40
	mov	x1, x21
	bl	_strtok_r
	cbz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	add	x2, sp, #40
	mov	x0, #0
	mov	x1, x21
	bl	_strtok_r
	cbz	x0, LBB0_22
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x0
	ldr	w24, [x22]
	mov	x0, x26
	mov	w1, #1
	bl	_get_file_f
	ldr	w8, [x22]
	cmp	w24, w8
	b.eq	LBB0_23
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, x0
Lloh11:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x27
	bl	_open
	tbnz	w0, #31, LBB0_24
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	add	x1, sp, #32
	bl	_fstat
	tbnz	x0, #63, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #32]
	str	x0, [x28]
Lloh14:
	adrp	x8, _TFTP_MAX_FILE_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TFTP_MAX_FILE_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x25
	stp	x0, x8, [sp, #16]
	stp	x27, x26, [sp]
Lloh17:
	adrp	x0, l_.str.8@PAGE
Lloh18:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_19
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	stp	x26, x25, [sp, #8]
	str	x27, [sp]
Lloh19:
	adrp	x0, l_.str.7@PAGE
Lloh20:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_19
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_zmalloc
	str	w0, [x28, #8]
	mov	x0, x27
	bl	_zstrdup
	str	w0, [x28, #12]
	ldr	w1, [x28, #8]
	ldr	x2, [x28]
	mov	x0, x24
	bl	_read
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_close
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	mov	w8, #0
	b	LBB0_3
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	x0, #63, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	stp	x27, x26, [sp, #16]
	stp	x0, x8, [sp]
Lloh21:
	adrp	x0, l_.str.10@PAGE
Lloh22:
	add	x0, x0, l_.str.10@PAGEOFF
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	stp	x27, x26, [sp]
Lloh23:
	adrp	x0, l_.str.9@PAGE
Lloh24:
	add	x0, x0, l_.str.9@PAGEOFF
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_kprintf
	sub	w19, w19, #1
	mov	w8, #3
	b	LBB0_3
LBB0_20:
	str	x19, [sp]
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_kprintf
	mov	w19, #-1
	b	LBB0_27
LBB0_21:
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	str	x25, [sp]
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_25
LBB0_22:
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	stp	x25, x26, [sp]
Lloh29:
	adrp	x0, l_.str.4@PAGE
Lloh30:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_25
LBB0_23:
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	stp	x25, x26, [sp]
Lloh31:
	adrp	x0, l_.str.5@PAGE
Lloh32:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_25
LBB0_24:
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	stp	x26, x25, [sp, #8]
	str	x27, [sp]
Lloh33:
	adrp	x0, l_.str.6@PAGE
Lloh34:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_25:
	bl	_kprintf
	sub	w19, w19, #1
LBB0_26:
	mov	x0, x20
	bl	_fclose
LBB0_27:
	ldur	x8, [x29, #-96]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.28:
	mov	x0, x19
	add	sp, sp, #4, lsl #12             ; =16384
	add	sp, sp, #64
	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_29:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"fail to open config file '%s'. %m\n"

l_.str.2:                               ; @.str.2
	.asciz	"config line %d is too long\n"

l_.str.3:                               ; @.str.3
	.asciz	"\t\n "

l_.str.4:                               ; @.str.4
	.asciz	"at the %d line of config filename for alias '%s' wasn't given.\n"

	.comm	_tot_files,4,2                  ; @tot_files
l_.str.5:                               ; @.str.5
	.asciz	"%d line of config file contains duplicate record for alias '%s'.\n"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.6:                               ; @.str.6
	.asciz	"fail to open file '%s' for alias '%s' (config line: %d). %m\n"

l_.str.7:                               ; @.str.7
	.asciz	"fstat for file '%s' for alias '%s' failed (config line: %d). %m\n"

	.comm	_TFTP_MAX_FILE_SIZE,8,3         ; @TFTP_MAX_FILE_SIZE
l_.str.8:                               ; @.str.8
	.asciz	"file '%s' for alias '%s' is too big (more than %lld bytes) (config line: %d). %m\n"

l_.str.9:                               ; @.str.9
	.asciz	"read from file '%s' for alias '%s' failed. %m\n"

l_.str.10:                              ; @.str.10
	.asciz	"read only %lld bytes of expected %lld bytes from file '%s' for alias '%s'.\n"

.subsections_via_symbols
