	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_option_buffer            ## -- Begin function parse_option_buffer
	.p2align	4, 0x90
_parse_option_buffer:                   ## @parse_option_buffer
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movb	(%rsi), %cl
	movq	_DHO_END@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	cmpb	%al, %cl
	je	LBB0_7
## %bb.1:
	testl	%edx, %edx
	jle	LBB0_7
## %bb.2:
	movslq	%edx, %rbx
	addq	%rsi, %rbx
	movq	_DHO_PAD@GOTPCREL(%rip), %rdi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%cl, %ecx
	cmpl	%ecx, (%rdi)
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	2(%rsi), %r13
	cmpq	%rbx, %r13
	ja	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movzbl	1(%rsi), %edx
	leaq	(%rdx,%r13), %rax
	cmpq	%rbx, %rax
	ja	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	%rcx, %r12
	shlq	$4, %r12
	movq	(%rax,%r12), %rbx
	testq	%rbx, %rbx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_15
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	8(%rax,%r12), %r14d
	leal	(%rdx,%r14), %esi
	incl	%esi
	movl	$1, %edi
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movslq	8(%rax,%r12), %rdi
	addq	%r15, %rdi
	movq	%r13, %rsi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_memcpy
	movq	8(%rbx), %rax
	movslq	8(%rax,%r12), %rcx
	addq	%r14, %rcx
	movl	%ecx, 8(%rax,%r12)
	movb	$0, (%r15,%rcx)
	movq	(%rax,%r12), %rdi
	callq	_free
	movq	8(%rbx), %rax
	jmp	LBB0_20
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, %rbx
	leal	1(%rdx), %esi
	movl	$1, %edi
	movq	%rdx, %r14
	callq	_calloc
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_dhcp_options@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_error
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movb	$0, (%r15,%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	%r14d, 8(%rax,%r12)
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	_DHO_PAD@GOTPCREL(%rip), %rdi
	movq	%r15, (%rax,%r12)
	addq	%r14, %rsi
	addq	$2, %rsi
	movq	_DHO_END@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%rsi), %ecx
	cmpb	%al, %cl
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rbx, %rsi
	jb	LBB0_3
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	$65536, %edx                    ## imm = 0x10000
LBB0_11:
	movq	_bad_options@GOTPCREL(%rip), %rbx
	incq	(%rbx)
	movq	_dhcp_options@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %esi
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rcx
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_warning
	movq	(%rbx), %rax
	movq	_bad_options_max@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.21:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	$0, (%rbx)
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_warning                        ## TAILCALL
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_warning
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	jmp	LBB0_13
LBB0_22:
	movq	_dhcp_options@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %esi
	leaq	L_.str.5(%rip), %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DHO_END,1,0                    ## @DHO_END
	.comm	_DHO_PAD,4,2                    ## @DHO_PAD
	.comm	_bad_options,8,3                ## @bad_options
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"option %s (%d) %s."

	.comm	_dhcp_options,8,3               ## @dhcp_options
L_.str.1:                               ## @.str.1
	.asciz	"larger than buffer"

	.comm	_bad_options_max,8,3            ## @bad_options_max
L_.str.2:                               ## @.str.2
	.asciz	"Many bogus options seen in offers. Taking this offer in spite of bogus options - hope for the best!"

L_.str.3:                               ## @.str.3
	.asciz	"rejecting bogus offer."

L_.str.4:                               ## @.str.4
	.asciz	"Can't allocate storage for option %s."

L_.str.5:                               ## @.str.5
	.asciz	"Can't expand storage for option %s."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_option_buffer            ; -- Begin function parse_option_buffer
	.p2align	2
_parse_option_buffer:                   ; @parse_option_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldrb	w27, [x1]
Lloh0:
	adrp	x8, _DHO_END@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DHO_END@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w27, w8
	ccmp	w2, #1, #8, ne
	b.ge	LBB0_3
LBB0_1:
	mov	w8, #1
	str	w8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_3:
	mov	x20, x1
	add	x21, x1, w2, sxtw
Lloh2:
	adrp	x10, _DHO_PAD@GOTPAGE
Lloh3:
	ldr	x10, [x10, _DHO_PAD@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w27, [x20]
	cmp	w27, w8
	ccmp	x20, x21, #2, ne
	b.hs	LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x10]
	cmp	w9, w27
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x20, #2
	cmp	x23, x21
	b.hi	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w22, [x20, #1]
	add	x8, x23, x22
	cmp	x8, x21
	b.hi	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #8]
	and	x26, x27, #0xff
	lsl	x28, x26, #4
	ldr	x25, [x8, x28]
	cbz	x25, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, x26, lsl #4
	ldr	w26, [x8, #8]
	add	w8, w22, w26
	add	w1, w8, #1
	mov	w0, #1
	bl	_calloc
	cbz	x0, LBB0_21
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x24, x0
	mov	x1, x25
	mov	x2, x26
	bl	_memcpy
	ldr	x8, [x19, #8]
	add	x8, x8, x28
	ldrsw	x8, [x8, #8]
	add	x0, x24, x8
	mov	x1, x23
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x19, #8]
	add	x8, x8, x28
	ldrsw	x9, [x8, #8]
	add	x9, x9, x22
	str	w9, [x8, #8]
	strb	wzr, [x24, x9]
	ldr	x0, [x8]
	bl	_free
	ldr	x8, [x19, #8]
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w1, w22, #1
	mov	w0, #1
	bl	_calloc
	mov	x24, x0
	cbnz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh4:
	adrp	x8, _dhcp_options@GOTPAGE
Lloh5:
	ldr	x8, [x8, _dhcp_options@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	w1, [x8, x26, lsl #2]
Lloh7:
	adrp	x0, l_.str.4@PAGE
Lloh8:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_error
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	bl	_memcpy
	strb	wzr, [x24, x22]
	ldr	x8, [x19, #8]
	add	x9, x8, x26, lsl #4
	str	w22, [x9, #8]
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh9:
	adrp	x10, _DHO_PAD@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DHO_PAD@GOTPAGEOFF]
	str	x24, [x8, x28]
	add	x8, x22, x20
	add	x20, x8, #2
Lloh11:
	adrp	x8, _DHO_END@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DHO_END@GOTPAGEOFF]
	ldrb	w8, [x8]
	b	LBB0_5
LBB0_16:
	mov	w22, #65536
	b	LBB0_18
LBB0_17:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
LBB0_18:
Lloh13:
	adrp	x20, _bad_options@GOTPAGE
Lloh14:
	ldr	x20, [x20, _bad_options@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
Lloh15:
	adrp	x8, _dhcp_options@GOTPAGE
Lloh16:
	ldr	x8, [x8, _dhcp_options@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	and	x9, x27, #0xff
	ldr	w8, [x8, x9, lsl #2]
Lloh18:
	adrp	x9, l_.str.1@PAGE
Lloh19:
	add	x9, x9, l_.str.1@PAGEOFF
	stp	x22, x9, [sp, #8]
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warning
	ldr	x8, [x20]
Lloh22:
	adrp	x9, _bad_options_max@GOTPAGE
Lloh23:
	ldr	x9, [x9, _bad_options_max@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.19:
	mov	w8, #1
	str	w8, [x19]
	str	xzr, [x20]
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_warning
LBB0_20:
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warning
	str	wzr, [x19]
	b	LBB0_2
LBB0_21:
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	and	x8, x27, #0xff
Lloh29:
	adrp	x9, _dhcp_options@GOTPAGE
Lloh30:
	ldr	x9, [x9, _dhcp_options@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	ldr	w1, [x9, x8, lsl #2]
Lloh32:
	adrp	x0, l_.str.5@PAGE
Lloh33:
	add	x0, x0, l_.str.5@PAGEOFF
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_error
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_DHO_END,1,0                    ; @DHO_END
	.comm	_DHO_PAD,4,2                    ; @DHO_PAD
	.comm	_bad_options,8,3                ; @bad_options
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"option %s (%d) %s."

	.comm	_dhcp_options,8,3               ; @dhcp_options
l_.str.1:                               ; @.str.1
	.asciz	"larger than buffer"

	.comm	_bad_options_max,8,3            ; @bad_options_max
l_.str.2:                               ; @.str.2
	.asciz	"Many bogus options seen in offers. Taking this offer in spite of bogus options - hope for the best!"

l_.str.3:                               ; @.str.3
	.asciz	"rejecting bogus offer."

l_.str.4:                               ; @.str.4
	.asciz	"Can't allocate storage for option %s."

l_.str.5:                               ; @.str.5
	.asciz	"Can't expand storage for option %s."

.subsections_via_symbols
