	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tftp_parse_options             ## -- Begin function tftp_parse_options
	.p2align	4, 0x90
_tftp_parse_options:                    ## @tftp_parse_options
	.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	%rdi, %r15
	movq	$0, 8(%rdi)
	movl	$-1, 16(%rdi)
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movl	%edx, %ebx
	movq	%rsi, 24(%r15)
	xorl	%eax, %eax
	testl	%edx, %edx
	jle	LBB0_20
## %bb.3:
	movq	%rsi, %r13
	cmpq	%r13, %rsi
	je	LBB0_6
	.p2align	4, 0x90
LBB0_5:
	movb	$44, -1(%r13)
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_tftp_fetch_string
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r12d
	addq	%r13, %r12
	subl	%eax, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_tftp_fetch_string
	testl	%eax, %eax
	js	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r14d
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_atoi
                                        ## kill: def $eax killed $eax def $rax
	leal	-8(%rax), %ecx
	cmpl	$65456, %ecx                    ## imm = 0xFFB0
	ja	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, 8(%r15)
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_atoi
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %ecx
	cmpl	$254, %ecx
	ja	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, 12(%r15)
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	subl	%r14d, %ebx
	movq	%r13, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_atoi
	testl	%eax, %eax
	js	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, 16(%r15)
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	$61, -1(%r12)
	testl	%ebx, %ebx
	jle	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r14d, %eax
	addq	%rax, %r12
	movq	24(%r15), %rsi
	movq	%r12, %r13
	cmpq	%r13, %rsi
	jne	LBB0_5
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rax
	movq	%rax, 24(%r15)
LBB0_19:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_7:
	movq	_tftp_option_negotiation@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r15)
	movl	$-1, %eax
LBB0_20:
	addq	$8, %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
	.space	1

	.comm	_tftp_option_negotiation,4,2    ## @tftp_option_negotiation
L_.str.1:                               ## @.str.1
	.asciz	"Format error: option isn't NUL-terminated."

L_.str.2:                               ## @.str.2
	.asciz	"blksize"

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

L_.str.4:                               ## @.str.4
	.asciz	"tsize"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tftp_parse_options             ; -- Begin function tftp_parse_options
	.p2align	2
_tftp_parse_options:                    ; @tftp_parse_options
	.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	x19, x0
	str	xzr, [x0, #8]
	mov	w8, #-1
	str	w8, [x0, #16]
	cbz	w2, LBB0_17
; %bb.1:
	mov	x25, x2
	str	x1, [x19, #24]
	cmp	w2, #1
	b.lt	LBB0_18
; %bb.2:
Lloh0:
	adrp	x20, l_.str.2@PAGE
Lloh1:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh2:
	adrp	x21, l_.str.3@PAGE
Lloh3:
	add	x21, x21, l_.str.3@PAGEOFF
	mov	w28, #61
	mov	w27, #44
	mov	x23, x1
Lloh4:
	adrp	x22, l_.str.4@PAGE
Lloh5:
	add	x22, x22, l_.str.4@PAGEOFF
	cmp	x1, x23
	b.eq	LBB0_4
LBB0_3:
	sturb	w27, [x23, #-1]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x25
	bl	_tftp_fetch_string
	tbnz	w0, #31, LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x23, w0, uxtw
	sub	w25, w25, w0
	mov	x0, x24
	mov	x1, x25
	bl	_tftp_fetch_string
	tbnz	w0, #31, LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	mov	x0, x23
	mov	x1, x20
	bl	_strcmp
	cbnz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_atoi
	sub	w8, w0, #8
	mov	w9, #65456
	cmp	w8, w9
	b.hi	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w0, [x19, #8]
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x21
	bl	_strcmp
	cbnz	w0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_atoi
	sub	w8, w0, #1
	cmp	w8, #254
	b.hi	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	str	w0, [x19, #12]
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w25, w25, w26
	mov	x0, x23
	mov	x1, x22
	bl	_strcmp
	cbnz	w0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_atoi
	tbnz	w0, #31, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	str	w0, [x19, #16]
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	sturb	w28, [x24, #-1]
	cmp	w25, #1
	b.lt	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x24, w26, uxtw
	ldr	x1, [x19, #24]
	cmp	x1, x23
	b.ne	LBB0_3
	b	LBB0_4
LBB0_17:
	mov	w0, #0
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x19, #24]
	b	LBB0_20
LBB0_18:
	mov	w0, #0
	b	LBB0_20
LBB0_19:
Lloh8:
	adrp	x8, _tftp_option_negotiation@GOTPAGE
Lloh9:
	ldr	x8, [x8, _tftp_option_negotiation@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #32]
Lloh11:
	adrp	x8, l_.str.1@PAGE
Lloh12:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x19]
	mov	w0, #-1
LBB0_20:
	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
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_tftp_option_negotiation,4,2    ; @tftp_option_negotiation
l_.str.1:                               ; @.str.1
	.asciz	"Format error: option isn't NUL-terminated."

l_.str.2:                               ; @.str.2
	.asciz	"blksize"

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

l_.str.4:                               ; @.str.4
	.asciz	"tsize"

.subsections_via_symbols
