	.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:
	movq	%rsi, %r13
	movslq	%edx, %rdx
	addq	%rsi, %rdx
	movq	_DHO_PAD@GOTPCREL(%rip), %rsi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%cl, %r14d
	cmpl	%r14d, (%rsi)
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	2(%r13), %rbx
	cmpq	%rdx, %rbx
	ja	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movzbl	1(%r13), %r15d
	leaq	(%rbx,%r15), %rax
	cmpq	%rdx, %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	%r14, %r12
	shlq	$4, %r12
	movq	(%rax,%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movl	8(%rax,%r12), %r13d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leal	(%r15,%r13), %esi
	incl	%esi
	movl	$1, %edi
	callq	_calloc
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_dhcp_options@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %esi
	leaq	L_.str.5(%rip), %rdi
	callq	_error
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax,%r12), %rsi
	movl	8(%rax,%r12), %r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rdi
	movl	%r13d, %edx
	movq	%rax, %rbx
	callq	_memcpy
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rax
	movslq	8(%rax,%r12), %rdi
	addq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_memcpy
	movq	8(%r14), %rax
	movslq	8(%rax,%r12), %rcx
	addq	%r15, %rcx
	movl	%ecx, 8(%rax,%r12)
	movb	$0, (%rbx,%rcx)
	movq	(%rax,%r12), %rdi
	callq	_free
	movq	8(%r14), %rax
	movq	%rbx, %rcx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%r15), %esi
	movl	$1, %edi
	callq	_calloc
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_dhcp_options@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_error
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movq	%rax, %r14
	callq	_memcpy
	movb	$0, (%r14,%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	%r15d, 8(%rax,%r12)
	movq	%r14, %rcx
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, (%rax,%r12)
	addq	%r15, %r13
	addq	$2, %r13
	movq	_DHO_END@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	_DHO_PAD@GOTPCREL(%rip), %rsi
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%r13), %ecx
	cmpb	%al, %cl
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdx, %r13
	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, %r15d                   ## imm = 0x10000
LBB0_11:
	movq	_bad_options@GOTPCREL(%rip), %rbx
	incq	(%rbx)
	movq	_dhcp_options@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %esi
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rcx
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_warning
	movq	(%rbx), %rax
	movq	_bad_options_max@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.22:
	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
	.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	w8, [x1]
Lloh0:
	adrp	x27, _DHO_END@GOTPAGE
Lloh1:
	ldr	x27, [x27, _DHO_END@GOTPAGEOFF]
	ldrb	w9, [x27]
	cmp	w8, w9
	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	x22, x1, w2, sxtw
Lloh2:
	adrp	x11, _DHO_PAD@GOTPAGE
Lloh3:
	ldr	x11, [x11, _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	w8, [x20]
	cmp	w8, w9
	ccmp	x20, x22, #2, ne
	b.hs	LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x11]
	cmp	w10, w8
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x20, #2
	cmp	x24, x22
	b.hi	LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w23, [x20, #1]
	add	x9, x24, x23
	cmp	x9, x22
	b.hi	LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x19, #8]
	and	x28, x8, #0xff
	lsl	x21, x28, #4
	ldr	x26, [x9, x21]
	cbz	x26, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x9, x28, lsl #4
	ldr	w27, [x8, #8]
	add	w8, w23, w27
	add	w1, w8, #1
	mov	w0, #1
	bl	_calloc
	mov	x25, x0
	cbnz	x0, LBB0_12
; %bb.11:                               ;   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, x28, lsl #2]
Lloh7:
	adrp	x0, l_.str.5@PAGE
Lloh8:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_error
	ldr	x8, [x19, #8]
	add	x8, x8, x28, lsl #4
	ldr	x26, [x8]
	ldr	w27, [x8, #8]
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	mov	x1, x26
	mov	x2, x27
	bl	_memcpy
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	ldrsw	x8, [x8, #8]
	add	x0, x25, x8
	mov	x1, x24
	mov	x2, x23
	bl	_memcpy
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	ldrsw	x9, [x8, #8]
	add	x9, x9, x23
	str	w9, [x8, #8]
	strb	wzr, [x25, x9]
	ldr	x0, [x8]
	bl	_free
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x27, _DHO_END@GOTPAGE
Lloh10:
	ldr	x27, [x27, _DHO_END@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w1, w23, #1
	mov	w0, #1
	bl	_calloc
	mov	x25, x0
	cbnz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh11:
	adrp	x8, _dhcp_options@GOTPAGE
Lloh12:
	ldr	x8, [x8, _dhcp_options@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w1, [x8, x28, lsl #2]
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_error
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	bl	_memcpy
	strb	wzr, [x25, x23]
	ldr	x8, [x19, #8]
	add	x9, x8, x28, lsl #4
	str	w23, [x9, #8]
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh16:
	adrp	x11, _DHO_PAD@GOTPAGE
Lloh17:
	ldr	x11, [x11, _DHO_PAD@GOTPAGEOFF]
	str	x25, [x8, x21]
	add	x8, x23, x20
	add	x20, x8, #2
	ldrb	w9, [x27]
	b	LBB0_5
LBB0_17:
	mov	w23, #65536
	b	LBB0_19
LBB0_18:
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
LBB0_19:
Lloh18:
	adrp	x20, _bad_options@GOTPAGE
Lloh19:
	ldr	x20, [x20, _bad_options@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x9, x9, #1
	str	x9, [x20]
Lloh20:
	adrp	x9, _dhcp_options@GOTPAGE
Lloh21:
	ldr	x9, [x9, _dhcp_options@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	and	x8, x8, #0xff
	ldr	w8, [x9, x8, lsl #2]
Lloh23:
	adrp	x9, l_.str.1@PAGE
Lloh24:
	add	x9, x9, l_.str.1@PAGEOFF
	stp	x23, x9, [sp, #8]
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warning
	ldr	x8, [x20]
Lloh27:
	adrp	x9, _bad_options_max@GOTPAGE
Lloh28:
	ldr	x9, [x9, _bad_options_max@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.20:
	mov	w8, #1
	str	w8, [x19]
	str	xzr, [x20]
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	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_21:
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warning
	str	wzr, [x19]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.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
