	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dhcpoffer                      ## -- Begin function dhcpoffer
	.p2align	4, 0x90
_dhcpoffer:                             ## @dhcpoffer
	.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, %r13
	movq	(%rdi), %rax
	movq	24(%rdi), %r14
	movq	_DHO_DHCP_MESSAGE_TYPE@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	cmpq	$0, (%rax,%rcx,8)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %r15
	cmoveq	%rax, %r15
	leaq	-44(%rbp), %rdi
	callq	_time
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_S_SELECTING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_32
## %bb.1:
	movq	8(%r13), %rax
	movq	24(%r13), %rcx
	movq	(%rcx), %rdx
	movq	8(%rdx), %rdx
	cmpq	(%rax), %rdx
	jne	LBB0_32
## %bb.2:
	movq	8(%rcx), %rdx
	cmpq	8(%rax), %rdx
	jne	LBB0_32
## %bb.3:
	movl	16(%rcx), %edi
	movq	24(%rax), %rsi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_4
LBB0_32:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	16(%r13), %edi
	callq	_piaddr
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_note
	movq	(%r14), %rax
	movq	48(%rax), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %esi
	testl	%esi, %esi
	je	LBB0_9
## %bb.5:
	movq	(%r13), %rdx
	addq	$4, %rcx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%esi, %rsi
	cmpq	$0, (%rdx,%rsi,8)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rcx), %esi
	addq	$4, %rcx
	testl	%esi, %esi
	jne	LBB0_7
LBB0_9:
	movq	24(%rax), %rbx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%rbx), %rbx
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$4, 16(%rbx)
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	20(%rbx), %edi
	movq	8(%r13), %rsi
	addq	$16, %rsi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rdi
	movq	%r15, %rsi
	callq	_debug
	jmp	LBB0_32
LBB0_15:
	movq	%r13, %rdi
	callq	_packet_to_lease
	testq	%rax, %rax
	je	LBB0_16
## %bb.18:
	movq	%rax, %r15
	movq	(%r13), %rax
	movq	(%r12), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_20
## %bb.19:
	movl	$1, (%r15)
LBB0_20:
	movq	(%r14), %rax
	movl	56(%rax), %eax
	movl	%eax, 24(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_check_arp
	testl	%eax, %eax
	je	LBB0_21
## %bb.22:
	movq	(%r14), %rcx
	movq	48(%rcx), %rax
	movl	8(%rax), %ebx
	addl	16(%rcx), %ebx
	movslq	16(%r15), %rdx
	cmpq	%rdx, 32(%rcx)
	jne	LBB0_25
## %bb.23:
	movl	20(%r15), %edi
	movq	40(%rcx), %rsi
	callq	_memcmp
	movq	(%r14), %rcx
	testq	%rax, %rax
	je	LBB0_24
LBB0_25:
	movq	24(%rcx), %rax
	movq	$0, 8(%r15)
	testq	%rax, %rax
	je	LBB0_26
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rcx
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_27
## %bb.28:
	addq	$8, %rcx
	jmp	LBB0_29
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_note
	jmp	LBB0_32
LBB0_16:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_17
LBB0_21:
	leaq	L_.str.6(%rip), %rdi
LBB0_17:
	xorl	%eax, %eax
	callq	_note
	jmp	LBB0_32
LBB0_26:
	addq	$24, %rcx
	jmp	LBB0_29
LBB0_24:
	movq	24(%rcx), %rax
	addq	$24, %rcx
	movq	%rax, 8(%r15)
LBB0_29:
	movq	%r15, (%rcx)
	movl	-44(%rbp), %edi
	cmpl	%edi, %ebx
	cmovgl	%ebx, %edi
	testl	%edi, %edi
	jle	LBB0_30
## %bb.31:
	movq	_state_selecting@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	callq	_add_timeout
	movq	_send_discover@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_cancel_timeout
	jmp	LBB0_32
LBB0_30:
	movq	%r14, %rdi
	callq	_state_selecting
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.comm	_DHO_DHCP_MESSAGE_TYPE,8,3      ## @DHO_DHCP_MESSAGE_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DHCPOFFER"

L_.str.1:                               ## @.str.1
	.asciz	"BOOTREPLY"

	.comm	_S_SELECTING,8,3                ## @S_SELECTING
L_.str.2:                               ## @.str.2
	.asciz	"%s from %s"

L_.str.3:                               ## @.str.3
	.asciz	"%s isn't satisfactory."

L_.str.4:                               ## @.str.4
	.asciz	"%s already seen."

L_.str.5:                               ## @.str.5
	.asciz	"packet_to_lease failed."

L_.str.6:                               ## @.str.6
	.asciz	"Arp check failed\n"

	.comm	_send_discover,4,2              ## @send_discover
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dhcpoffer                      ; -- Begin function dhcpoffer
	.p2align	2
_dhcpoffer:                             ; @dhcpoffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x0
	ldr	x19, [x0, #24]
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _DHO_DHCP_MESSAGE_TYPE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DHO_DHCP_MESSAGE_TYPE@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
Lloh2:
	adrp	x9, l_.str@PAGE
Lloh3:
	add	x9, x9, l_.str@PAGEOFF
Lloh4:
	adrp	x10, l_.str.1@PAGE
Lloh5:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x8, #0
	csel	x21, x10, x9, eq
	add	x0, sp, #28
	bl	_time
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _S_SELECTING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _S_SELECTING@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x20, #24]
	ldr	x9, [x8]
	ldr	x10, [x9, #8]
	ldr	x9, [x20, #8]
	ldr	x11, [x9]
	cmp	x10, x11
	b.ne	LBB0_4
; %bb.2:
	ldr	x2, [x8, #8]
	ldr	x10, [x9, #8]
	cmp	x2, x10
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x8, #16]
	ldr	x1, [x9, #24]
	bl	_memcmp
	cbz	x0, LBB0_5
LBB0_4:
	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
	add	sp, sp, #96
	ret
LBB0_5:
	ldr	w0, [x20, #16]
	bl	_piaddr
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_note
	ldr	x8, [x19]
	ldr	x9, [x8, #48]
	ldr	x11, [x9]
	ldr	w10, [x11]
	cbz	w10, LBB0_9
; %bb.6:
	ldr	x9, [x20]
	add	x11, x11, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, w10, sxtw #3]
	cbz	x10, LBB0_23
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x11], #4
	cbnz	w10, LBB0_7
LBB0_9:
	ldr	x23, [x8, #24]
	cbnz	x23, LBB0_20
LBB0_10:
	mov	x0, x20
	bl	_packet_to_lease
	cbz	x0, LBB0_24
; %bb.11:
	mov	x21, x0
	ldr	x8, [x20]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	cbnz	x8, LBB0_13
; %bb.12:
	mov	w8, #1
	str	w8, [x21]
LBB0_13:
	ldr	x8, [x19]
	ldr	w8, [x8, #56]
	str	w8, [x21, #24]
	mov	x0, x19
	mov	x1, x21
	bl	_check_arp
	cbz	w0, LBB0_25
; %bb.14:
	ldr	x8, [x19]
	ldr	w9, [x8, #16]
	ldr	x10, [x8, #48]
	ldr	w10, [x10, #8]
	add	w20, w10, w9
	ldrsw	x2, [x21, #16]
	ldr	x9, [x8, #32]
	cmp	x9, x2
	b.ne	LBB0_16
; %bb.15:
	ldr	w0, [x21, #20]
	ldr	x1, [x8, #40]
	bl	_memcmp
	ldr	x8, [x19]
	cbz	x0, LBB0_26
LBB0_16:
	ldr	x9, [x8, #24]!
	str	xzr, [x21, #8]
	cbz	x9, LBB0_27
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x8, x9
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_17
; %bb.18:
	add	x8, x8, #8
	b	LBB0_27
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x23, [x23, #8]
	cbz	x23, LBB0_10
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23, #16]
	cmp	w8, #4
	b.ne	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w0, [x23, #20]
	ldr	x8, [x20, #8]
	add	x1, x8, #16
	mov	w2, #4
	bl	_memcmp
	cbnz	x0, LBB0_19
; %bb.22:
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x21
	bl	_debug
	b	LBB0_4
LBB0_23:
	str	x21, [sp]
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_note
	b	LBB0_4
LBB0_24:
Lloh15:
	adrp	x0, l_.str.5@PAGE
Lloh16:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_note
	b	LBB0_4
LBB0_25:
Lloh17:
	adrp	x0, l_.str.6@PAGE
Lloh18:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_note
	b	LBB0_4
LBB0_26:
	ldr	x9, [x8, #24]!
	str	x9, [x21, #8]
LBB0_27:
	str	x21, [x8]
	ldr	w8, [sp, #28]
	cmp	w20, w8
	csel	w0, w20, w8, gt
	cmp	w0, #0
	b.le	LBB0_29
; %bb.28:
Lloh19:
	adrp	x1, _state_selecting@GOTPAGE
Lloh20:
	ldr	x1, [x1, _state_selecting@GOTPAGEOFF]
	mov	x2, x19
	bl	_add_timeout
Lloh21:
	adrp	x8, _send_discover@GOTPAGE
Lloh22:
	ldr	x8, [x8, _send_discover@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_cancel_timeout
	b	LBB0_4
LBB0_29:
	mov	x0, x19
	bl	_state_selecting
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_DHO_DHCP_MESSAGE_TYPE,8,3      ; @DHO_DHCP_MESSAGE_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DHCPOFFER"

l_.str.1:                               ; @.str.1
	.asciz	"BOOTREPLY"

	.comm	_S_SELECTING,8,3                ; @S_SELECTING
l_.str.2:                               ; @.str.2
	.asciz	"%s from %s"

l_.str.3:                               ; @.str.3
	.asciz	"%s isn't satisfactory."

l_.str.4:                               ; @.str.4
	.asciz	"%s already seen."

l_.str.5:                               ; @.str.5
	.asciz	"packet_to_lease failed."

l_.str.6:                               ; @.str.6
	.asciz	"Arp check failed\n"

	.comm	_send_discover,4,2              ; @send_discover
.subsections_via_symbols
