	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tftp_packet_parse              ## -- Begin function tftp_packet_parse
	.p2align	4, 0x90
_tftp_packet_parse:                     ## @tftp_packet_parse
	.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
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%esi, %esi
	movl	$88, %edx
	callq	_memset
	cmpl	$1, %ebx
	jg	LBB0_2
## %bb.1:
	movq	_tftp_undef@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	leaq	L_.str(%rip), %rax
LBB0_28:
	movq	%rax, (%r14)
LBB0_29:
	movl	$-1, %eax
LBB0_30:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, %rdi
	callq	_get_ushort
	movl	%eax, 8(%r14)
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_23
## %bb.3:
	leaq	2(%r15), %r13
	leal	-2(%rbx), %r12d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_tftp_fetch_string
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	%r13, 72(%r14)
	movl	%eax, %ebx
	addq	%r13, %rbx
	subl	%eax, %r12d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_tftp_fetch_string
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	%rbx, 80(%r14)
	je	LBB0_11
## %bb.9:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx,%r15), %edi
	callq	_tolower
	movb	%al, (%rbx,%r15)
	incq	%r15
	cmpq	%r15, %r13
	jne	LBB0_10
LBB0_11:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movslq	%ecx, %rax
	addq	%rax, %rbx
	subl	%ecx, %r12d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	jmp	LBB0_22
LBB0_23:
	movq	_tftp_illegal_operation@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	jmp	LBB0_29
LBB0_21:
	movq	%r14, %rdi
	movq	%r13, %rsi
LBB0_22:
	movl	%r12d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tftp_parse_options             ## TAILCALL
LBB0_17:
	cmpl	$3, %ebx
	ja	LBB0_19
## %bb.18:
	movq	_tftp_undef@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	leaq	L_.str.4(%rip), %rax
	jmp	LBB0_28
LBB0_12:
	cmpl	$3, %ebx
	jbe	LBB0_13
## %bb.14:
	movq	%r13, %rdi
	callq	_get_ushort
	movq	%rax, 64(%r14)
	addq	$4, %r15
	addl	$-4, %ebx
	movq	%r15, 48(%r14)
	movl	%ebx, 56(%r14)
	xorl	%eax, %eax
	jmp	LBB0_30
LBB0_15:
	cmpl	$3, %ebx
	ja	LBB0_16
LBB0_13:
	movq	_tftp_undef@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	leaq	L_.str.3(%rip), %rax
	jmp	LBB0_28
LBB0_5:
	movq	_tftp_undef@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_28
LBB0_19:
	movq	%r13, %rdi
	callq	_get_ushort
	movq	%rax, 32(%r14)
	addq	$4, %r15
	addl	$-4, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_tftp_fetch_string
	testl	%eax, %eax
	js	LBB0_20
## %bb.24:
	movq	%r15, 24(%r14)
	subl	%eax, %ebx
	jmp	LBB0_25
LBB0_16:
	movq	%r13, %rdi
	callq	_get_ushort
	movq	%rax, 40(%r14)
	addl	$-4, %ebx
LBB0_25:
	testl	%ebx, %ebx
	je	LBB0_26
## %bb.27:
	movq	_tftp_undef@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	leaq	L_.str.6(%rip), %rax
	jmp	LBB0_28
LBB0_7:
	movq	_tftp_undef@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	leaq	L_.str.2(%rip), %rax
	jmp	LBB0_28
LBB0_26:
	xorl	%eax, %eax
	jmp	LBB0_30
LBB0_20:
	movq	_tftp_undef@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	leaq	L_.str.5(%rip), %rax
	jmp	LBB0_28
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_21
	.long	L0_0_set_17
	.long	L0_0_set_12
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_tftp_undef,8,3                 ## @tftp_undef
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Format error: opcode expected, but packet is too short"

L_.str.1:                               ## @.str.1
	.asciz	"Format error: filename expected, but end of packet found."

L_.str.2:                               ## @.str.2
	.asciz	"Format error: mode expected, but end of packet found."

L_.str.3:                               ## @.str.3
	.asciz	"Format error: block expected, but packet is too short"

L_.str.4:                               ## @.str.4
	.asciz	"Format error: error code expected, but packet is too short"

L_.str.5:                               ## @.str.5
	.asciz	"Format error: error message expected, but end of packet found."

	.comm	_tftp_illegal_operation,8,3     ## @tftp_illegal_operation
L_.str.6:                               ## @.str.6
	.asciz	"Format error: packet contains extra data"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tftp_packet_parse              ; -- Begin function tftp_packet_parse
	.p2align	2
_tftp_packet_parse:                     ; @tftp_packet_parse
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x21, x1
	mov	x19, x0
	mov	w1, #0
	mov	w2, #88
	bl	_memset
	cmp	w20, #1
	b.gt	LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _tftp_undef@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tftp_undef@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
LBB0_2:
	str	x8, [x19]
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x21
	bl	_get_ushort
	str	w0, [x19, #8]
	sub	w8, w0, #128
	cmp	w8, #5
	b.hi	LBB0_13
; %bb.6:
	add	x22, x21, #2
	sub	w23, w20, #2
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	mov	x0, x22
	mov	x1, x23
	bl	_tftp_fetch_string
	tbnz	w0, #31, LBB0_22
; %bb.8:
	str	x22, [x19, #72]
	add	x20, x22, w0, uxtw
	sub	w21, w23, w0
	mov	x0, x20
	mov	x1, x21
	bl	_tftp_fetch_string
	tbnz	w0, #31, LBB0_28
; %bb.9:
	mov	x22, x0
	str	x20, [x19, #80]
	cbz	w0, LBB0_12
; %bb.10:
	mov	w23, w22
	mov	x24, x20
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x24]
	bl	_tolower
	strb	w0, [x24], #1
	subs	x23, x23, #1
	b.ne	LBB0_11
LBB0_12:
	add	x1, x20, w22, sxtw
	sub	w2, w21, w22
	mov	x0, x19
	b	LBB0_15
LBB0_13:
Lloh7:
	adrp	x8, _tftp_illegal_operation@GOTPAGE
Lloh8:
	ldr	x8, [x8, _tftp_illegal_operation@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	b	LBB0_3
LBB0_14:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_tftp_parse_options
LBB0_16:
	cmp	w20, #3
	b.hi	LBB0_23
; %bb.17:
Lloh10:
	adrp	x8, _tftp_undef@GOTPAGE
Lloh11:
	ldr	x8, [x8, _tftp_undef@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh13:
	adrp	x8, l_.str.4@PAGE
Lloh14:
	add	x8, x8, l_.str.4@PAGEOFF
	b	LBB0_2
LBB0_18:
	cmp	w20, #3
	b.ls	LBB0_21
; %bb.19:
	mov	x0, x22
	bl	_get_ushort
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #64]
	add	x8, x21, #4
	sub	w9, w20, #4
	str	x8, [x19, #48]
	str	w9, [x19, #56]
	b	LBB0_4
LBB0_20:
	cmp	w20, #3
	b.hi	LBB0_25
LBB0_21:
Lloh15:
	adrp	x8, _tftp_undef@GOTPAGE
Lloh16:
	ldr	x8, [x8, _tftp_undef@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh18:
	adrp	x8, l_.str.3@PAGE
Lloh19:
	add	x8, x8, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_22:
Lloh20:
	adrp	x8, _tftp_undef@GOTPAGE
Lloh21:
	ldr	x8, [x8, _tftp_undef@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh23:
	adrp	x8, l_.str.1@PAGE
Lloh24:
	add	x8, x8, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_23:
	mov	x0, x22
	bl	_get_ushort
	str	x0, [x19, #32]
	add	x21, x21, #4
	sub	w20, w20, #4
	mov	x0, x21
	mov	x1, x20
	bl	_tftp_fetch_string
	tbnz	w0, #31, LBB0_30
; %bb.24:
	str	x21, [x19, #24]
	sub	w8, w20, w0
	b	LBB0_26
LBB0_25:
	mov	x0, x22
	bl	_get_ushort
	str	x0, [x19, #40]
	sub	w8, w20, #4
LBB0_26:
	cbz	w8, LBB0_29
; %bb.27:
Lloh25:
	adrp	x8, _tftp_undef@GOTPAGE
Lloh26:
	ldr	x8, [x8, _tftp_undef@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh28:
	adrp	x8, l_.str.6@PAGE
Lloh29:
	add	x8, x8, l_.str.6@PAGEOFF
	b	LBB0_2
LBB0_28:
Lloh30:
	adrp	x8, _tftp_undef@GOTPAGE
Lloh31:
	ldr	x8, [x8, _tftp_undef@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh33:
	adrp	x8, l_.str.2@PAGE
Lloh34:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_29:
	mov	w0, #0
	b	LBB0_4
LBB0_30:
Lloh35:
	adrp	x8, _tftp_undef@GOTPAGE
Lloh36:
	ldr	x8, [x8, _tftp_undef@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh38:
	adrp	x8, l_.str.5@PAGE
Lloh39:
	add	x8, x8, l_.str.5@PAGEOFF
	b	LBB0_2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_14-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
	.byte	(LBB0_18-LBB0_7)>>2
	.byte	(LBB0_20-LBB0_7)>>2
                                        ; -- End function
	.comm	_tftp_undef,8,3                 ; @tftp_undef
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Format error: opcode expected, but packet is too short"

l_.str.1:                               ; @.str.1
	.asciz	"Format error: filename expected, but end of packet found."

l_.str.2:                               ; @.str.2
	.asciz	"Format error: mode expected, but end of packet found."

l_.str.3:                               ; @.str.3
	.asciz	"Format error: block expected, but packet is too short"

l_.str.4:                               ; @.str.4
	.asciz	"Format error: error code expected, but packet is too short"

l_.str.5:                               ; @.str.5
	.asciz	"Format error: error message expected, but end of packet found."

	.comm	_tftp_illegal_operation,8,3     ; @tftp_illegal_operation
l_.str.6:                               ; @.str.6
	.asciz	"Format error: packet contains extra data"

.subsections_via_symbols
