	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_header
_parse_header:                          ## @parse_header
	.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	%r8, %r15
	movq	%rcx, %r14
	movq	%rsi, %r12
	movl	%edi, %r13d
	movq	$0, (%r8)
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	callq	_get_field
	movl	%eax, %ebx
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_1
## %bb.3:
	movq	%r12, (%r14)
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_tftp_log
	movslq	%ebx, %rbx
	leaq	(%r12,%rbx), %r14
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	movq	%r14, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_get_field
	movq	%r14, (%r15)
	movb	(%r12,%rbx), %al
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	1(%r14), %eax
	incq	%r14
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testb	%al, %al
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movsbl	%al, %edi
	callq	_isupper
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movsbl	(%r14), %edi
	callq	_tolower
	movb	%al, (%r14)
	jmp	LBB0_7
LBB0_8:
	movq	_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.9:
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_10
LBB0_13:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_tftp_log
	movq	_EBADOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
LBB0_2:
	callq	_send_error
	movl	$1, %edi
	callq	_exit
LBB0_12:
	cmpq	$0, -8(%rbx)
	je	LBB0_13
## %bb.14:
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_tftp_log
	incq	%r14
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_tftp_log
	movq	_EBADOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad option - filename too long"

	.comm	_EBADOP,4,2                     ## @EBADOP
	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"Filename: '%s'"

	.comm	_formats,8,3                    ## @formats
L_.str.2:                               ## @.str.2
	.asciz	"Bad option - Unknown transfer mode (%s)"

L_.str.3:                               ## @.str.3
	.asciz	"Mode: '%s'"

	.no_dead_strip	_parse_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_header
_parse_header:                          ; @parse_header
	.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, x4
	mov	x23, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	str	xzr, [x4]
	bl	_get_field
Lloh0:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_13
; %bb.1:
	mov	x24, x0
	str	x21, [x23]
Lloh3:
	adrp	x23, _LOG_INFO@GOTPAGE
Lloh4:
	ldr	x23, [x23, _LOG_INFO@GOTPAGEOFF]
	ldr	w0, [x23]
	str	x21, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_tftp_log
	add	x21, x21, w24, sxtw
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_get_field
	str	x21, [x20]
	ldrb	w8, [x21]
	cbnz	w8, LBB0_9
LBB0_2:
Lloh7:
	adrp	x8, _formats@GOTPAGE
Lloh8:
	ldr	x8, [x8, _formats@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x0, [x8]
	cbz	x0, LBB0_6
; %bb.3:
	add	x22, x8, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x20]
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x22], #8
	cbnz	x0, LBB0_4
LBB0_6:
Lloh10:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x8, [x20]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_7:
	bl	_tftp_log
Lloh15:
	adrp	x8, _EBADOP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBADOP@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_send_error
	mov	w0, #1
	bl	_exit
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldrb	w8, [x21, #1]!
	cbz	w8, LBB0_2
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_isupper
	cbz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrsb	w0, [x21]
	bl	_tolower
	strb	w0, [x21]
	b	LBB0_8
LBB0_11:
	ldur	x8, [x22, #-8]
	cbz	x8, LBB0_6
; %bb.12:
	ldr	w0, [x23]
	ldr	x8, [x20]
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_tftp_log
	add	x0, x21, #1
	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
LBB0_13:
Lloh20:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad option - filename too long"

	.comm	_EBADOP,4,2                     ; @EBADOP
	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"Filename: '%s'"

	.comm	_formats,8,3                    ; @formats
l_.str.2:                               ; @.str.2
	.asciz	"Bad option - Unknown transfer mode (%s)"

l_.str.3:                               ; @.str.3
	.asciz	"Mode: '%s'"

	.no_dead_strip	_parse_header
.subsections_via_symbols
