	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_options                  ## -- Begin function parse_options
	.p2align	4, 0x90
_parse_options:                         ## @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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movq	_options_rfc_enabled@GOTPCREL(%rip), %rax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	$0, (%rax)
	je	LBB0_26
## %bb.1:
	movl	%edx, %r14d
	testl	%edx, %edx
	jle	LBB0_26
## %bb.2:
	movq	%rsi, %r13
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	%ebx, %rbx
	addq	%r15, %rbx
	movq	%r13, %rdi
	callq	_strlen
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_strlen
	addl	%r14d, %eax
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	subl	%eax, %r14d
	addl	$-2, %r14d
	movq	%rbx, %r13
	testl	%r14d, %r14d
	jle	LBB0_26
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_get_field
	movslq	%eax, %r15
	addq	%r13, %r15
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_get_field
	movb	(%r13), %sil
	testb	%sil, %sil
	je	LBB0_26
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_DEBUG_OPTIONS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_debug@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_tftp_log
	movb	(%r13), %sil
	testb	%sil, %sil
	je	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=2
	movzbl	1(%rbx), %esi
	incq	%rbx
	testb	%sil, %sil
	je	LBB0_11
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	%sil, %edi
	callq	_isupper
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movsbl	(%rbx), %edi
	callq	_tolower
	movb	%al, (%rbx)
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movq	_options@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=2
	incq	%r12
	movq	(%rbx), %rax
	movq	40(%rax,%r14), %rsi
	addq	$32, %r14
	testq	%rsi, %rsi
	je	LBB0_21
LBB0_14:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	_acting_as_client@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	(%rbx), %rax
	movq	%r15, (%rax,%r14)
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	_options_extra_enabled@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	(%rbx), %rax
	jne	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=2
	cmpl	$0, 24(%rax,%r14)
	jne	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_tftp_log
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r12d, %r12d
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %r14d
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	shlq	$5, %r14
	cmpq	$0, 8(%rax,%r14)
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_3
## %bb.25:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_tftp_log
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %r14d
	movq	%r14, %rcx
	shlq	$5, %rcx
	movq	16(%rax,%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	*%rcx
	addl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	movq	(%rbx), %rax
	jmp	LBB0_24
LBB0_26:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_options_rfc_enabled,4,2        ## @options_rfc_enabled
	.comm	_debug,4,2                      ## @debug
	.comm	_DEBUG_OPTIONS,4,2              ## @DEBUG_OPTIONS
	.comm	_LOG_DEBUG,4,2                  ## @LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"option: '%s' value: '%s'"

	.comm	_options,8,3                    ## @options
	.comm	_acting_as_client,4,2           ## @acting_as_client
	.comm	_options_extra_enabled,4,2      ## @options_extra_enabled
	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"Option '%s' with value '%s' found but it is not an RFC option"

	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"Unknown option: '%s'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_options                  ; -- Begin function parse_options
	.p2align	2
_parse_options:                         ; @parse_options
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, _options_rfc_enabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _options_rfc_enabled@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	ccmp	w2, #1, #8, ne
	b.ge	LBB0_3
; %bb.1:
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
LBB0_2:
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_3:
	mov	x19, x2
	mov	x23, x1
	mov	x21, x0
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
Lloh3:
	adrp	x25, _options@GOTPAGE
Lloh4:
	ldr	x25, [x25, _options@GOTPAGEOFF]
Lloh5:
	adrp	x28, _acting_as_client@GOTPAGE
Lloh6:
	ldr	x28, [x28, _acting_as_client@GOTPAGEOFF]
Lloh7:
	adrp	x22, _options_extra_enabled@GOTPAGE
Lloh8:
	ldr	x22, [x22, _options_extra_enabled@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x26, w27, sxtw
	mov	x0, x23
	bl	_strlen
	mov	x23, x0
	mov	x0, x26
	bl	_strlen
	add	w8, w0, w23
	sub	w8, w19, w8
	sub	w19, w8, #2
	mov	x23, x20
	cmp	w19, #0
	b.le	LBB0_2
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
	mov	x0, x21
	mov	x1, x23
	mov	x2, x19
	bl	_get_field
	add	x26, x23, w0, sxtw
	mov	x0, x21
	mov	x1, x26
	mov	x2, x19
	bl	_get_field
	ldrb	w8, [x23]
	cbz	w8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x27, x0
Lloh9:
	adrp	x9, _debug@GOTPAGE
Lloh10:
	ldr	x9, [x9, _debug@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _DEBUG_OPTIONS@GOTPAGE
Lloh13:
	ldr	x10, [x10, _DEBUG_OPTIONS@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh15:
	adrp	x8, _LOG_DEBUG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LOG_DEBUG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	str	x26, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_tftp_log
	ldrb	w8, [x23]
	cbz	w8, LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, x23
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldrb	w8, [x20, #1]!
	cbz	w8, LBB0_12
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtb	w0, w8
	bl	_isupper
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldrsb	w0, [x20]
	bl	_tolower
	strb	w0, [x20]
	b	LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25]
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_21
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, #0
	mov	x20, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	add	x20, x20, #1
	ldr	x8, [x25]
	add	x9, x8, x24
	ldr	x1, [x9, #40]
	add	x24, x24, #32
	cbz	x1, LBB0_22
LBB0_15:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	bl	_strcmp
	cbnz	x0, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	w8, [x28]
	cbnz	w8, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x8, [x25]
	str	x26, [x8, x24]
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=2
	ldr	w9, [x22]
	ldr	x8, [x25]
	cbnz	w9, LBB0_25
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=2
	add	x9, x8, x24
	ldr	w9, [x9, #24]
	cbnz	w9, LBB0_25
; %bb.20:                               ;   in Loop: Header=BB0_15 Depth=2
Lloh20:
	adrp	x8, _LOG_INFO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LOG_INFO@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	str	x26, [sp]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_tftp_log
	b	LBB0_14
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, #0
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
	and	x20, x20, #0xffffffff
LBB0_23:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, x20, lsl #5
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_4
; %bb.24:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh25:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x23
	bl	_tftp_log
	b	LBB0_4
LBB0_25:                                ;   in Loop: Header=BB0_5 Depth=1
	and	x20, x20, #0xffffffff
	add	x9, x8, x20, lsl #5
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_23
; %bb.26:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	blr	x9
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	add	w8, w8, w0
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x8, [x25]
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_options_rfc_enabled,4,2        ; @options_rfc_enabled
	.comm	_debug,4,2                      ; @debug
	.comm	_DEBUG_OPTIONS,4,2              ; @DEBUG_OPTIONS
	.comm	_LOG_DEBUG,4,2                  ; @LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"option: '%s' value: '%s'"

	.comm	_options,8,3                    ; @options
	.comm	_acting_as_client,4,2           ; @acting_as_client
	.comm	_options_extra_enabled,4,2      ; @options_extra_enabled
	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"Option '%s' with value '%s' found but it is not an RFC option"

	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"Unknown option: '%s'"

.subsections_via_symbols
