	.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), %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
	movq	(%r14), %rax
	movq	(%rax), %rcx
	movq	_S_SELECTING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_26
## %bb.1:
	movq	%rdi, %r13
	movq	8(%rax), %rcx
	movq	8(%rdi), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_26
## %bb.2:
	movq	8(%r14), %rdx
	cmpq	8(%rax), %rdx
	jne	LBB0_26
## %bb.3:
	movl	16(%r14), %edi
	movq	24(%rax), %rsi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_4
LBB0_26:
	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_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%rbx), %rbx
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$4, 16(%rbx)
	jne	LBB0_13
## %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_13
## %bb.27:
	leaq	L_.str.4(%rip), %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_debug                          ## TAILCALL
LBB0_14:
	movq	%r13, %rdi
	callq	_packet_to_lease
	testq	%rax, %rax
	je	LBB0_28
## %bb.15:
	movq	%rax, %r15
	movq	(%r13), %rax
	movq	(%r12), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_17
## %bb.16:
	movl	$1, (%r15)
LBB0_17:
	movq	(%r14), %rax
	movl	56(%rax), %esi
	movl	%esi, 24(%r15)
	leaq	L_.str.6(%rip), %rdi
	callq	_script_init
	leaq	L_.str.7(%rip), %rdi
	movq	%r15, %rsi
	callq	_script_write_params
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_script_go
	xorl	%ebx, %ebx
	testq	%rax, %rax
	sete	%bl
	movq	(%r14), %rcx
	movq	48(%rcx), %rax
	movl	8(%rax), %r12d
	addl	16(%rcx), %r12d
	addl	%ebx, %ebx
	movslq	16(%r15), %rdx
	cmpq	%rdx, 32(%rcx)
	jne	LBB0_20
## %bb.18:
	movl	20(%r15), %edi
	movq	40(%rcx), %rsi
	callq	_memcmp
	movq	(%r14), %rcx
	testq	%rax, %rax
	je	LBB0_19
LBB0_20:
	movq	24(%rcx), %rax
	movq	_cur_time@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	leal	(%rdi,%rbx), %edx
	cmpl	%r12d, %edx
	cmovlel	%ebx, %r13d
	movq	$0, 8(%r15)
	testq	%rax, %rax
	cmovel	%ebx, %r13d
	je	LBB0_21
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rcx
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_22
## %bb.23:
	movq	%r15, 8(%rcx)
	movl	%r13d, %ebx
	jmp	LBB0_24
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_note                           ## TAILCALL
LBB0_28:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_note                           ## TAILCALL
LBB0_21:
	movq	%r15, 24(%rcx)
	jmp	LBB0_24
LBB0_19:
	movq	24(%rcx), %rax
	movq	%rax, 8(%r15)
	movq	%r15, 24(%rcx)
	movq	_cur_time@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_24:
	movl	%r12d, %eax
	subl	%edi, %eax
	addl	%ebx, %edi
	cmpl	%ebx, %eax
	cmovgel	%r12d, %edi
	testl	%edi, %edi
	jle	LBB0_29
## %bb.25:
	movq	_state_selecting@GOTPCREL(%rip), %rsi
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r14, %rdx
	callq	_add_timeout
	movq	_send_discover@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cancel_timeout                 ## TAILCALL
LBB0_29:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_state_selecting                ## TAILCALL
	.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	"ARPSEND"

L_.str.7:                               ## @.str.7
	.asciz	"check_"

	.comm	_cur_time,4,2                   ## @cur_time
	.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, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	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
	ldr	x8, [x19]
	ldr	x9, [x8]
Lloh6:
	adrp	x10, _S_SELECTING@GOTPAGE
Lloh7:
	ldr	x10, [x10, _S_SELECTING@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x9, [x8, #8]
	ldr	x8, [x0, #8]
	ldr	x10, [x8]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.2:
	ldr	x2, [x19, #8]
	ldr	x9, [x8, #8]
	cmp	x2, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19, #16]
	ldr	x1, [x8, #24]
	bl	_memcmp
	cbz	x0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	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_22
; %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_19
LBB0_10:
	mov	x0, x20
	bl	_packet_to_lease
	cbz	x0, LBB0_23
; %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	w1, [x8, #56]
	str	w1, [x21, #24]
Lloh11:
	adrp	x0, l_.str.6@PAGE
Lloh12:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_script_init
Lloh13:
	adrp	x0, l_.str.7@PAGE
Lloh14:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x21
	bl	_script_write_params
	bl	_script_go
	cmp	x0, #0
	cset	w8, eq
	lsl	w22, w8, #1
	ldr	x9, [x19]
	ldr	w8, [x9, #16]
	ldr	x10, [x9, #48]
	ldr	w10, [x10, #8]
	add	w20, w10, w8
	ldrsw	x2, [x21, #16]
	ldr	x8, [x9, #32]
	cmp	x8, x2
	b.ne	LBB0_15
; %bb.14:
	ldr	w0, [x21, #20]
	ldr	x1, [x9, #40]
	bl	_memcmp
	ldr	x9, [x19]
	cbz	x0, LBB0_25
LBB0_15:
	ldr	x10, [x9, #24]
Lloh15:
	adrp	x8, _cur_time@GOTPAGE
Lloh16:
	ldr	x8, [x8, _cur_time@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	add	w11, w8, w22
	cmp	w11, w20
	csel	w11, wzr, w22, gt
	cmp	x10, #0
	csel	w11, w22, w11, eq
	str	xzr, [x21, #8]
	cbz	x10, LBB0_24
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x9, x10
	ldr	x10, [x10, #8]
	cbnz	x10, LBB0_16
; %bb.17:
	str	x21, [x9, #8]
	mov	x22, x11
	b	LBB0_26
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x23, [x23, #8]
	cbz	x23, LBB0_10
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23, #16]
	cmp	w8, #4
	b.ne	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w0, [x23, #20]
	ldr	x8, [x20, #8]
	add	x1, x8, #16
	mov	w2, #4
	bl	_memcmp
	cbnz	x0, LBB0_18
; %bb.21:
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_debug
LBB0_22:
	str	x21, [sp]
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_note
	b	LBB0_4
LBB0_23:
Lloh22:
	adrp	x0, l_.str.5@PAGE
Lloh23:
	add	x0, x0, l_.str.5@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_note
LBB0_24:
	str	x21, [x9, #24]
	b	LBB0_26
LBB0_25:
	ldr	x8, [x9, #24]
	str	x8, [x21, #8]
	str	x21, [x9, #24]
Lloh24:
	adrp	x8, _cur_time@GOTPAGE
Lloh25:
	ldr	x8, [x8, _cur_time@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
LBB0_26:
	add	w9, w8, w22
	sub	w8, w20, w8
	cmp	w8, w22
	csel	w0, w9, w20, lt
	cmp	w0, #0
	b.le	LBB0_28
; %bb.27:
Lloh27:
	adrp	x1, _state_selecting@GOTPAGE
Lloh28:
	ldr	x1, [x1, _state_selecting@GOTPAGEOFF]
	mov	x2, x19
	bl	_add_timeout
Lloh29:
	adrp	x8, _send_discover@GOTPAGE
Lloh30:
	ldr	x8, [x8, _send_discover@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_cancel_timeout
LBB0_28:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_state_selecting
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.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	"ARPSEND"

l_.str.7:                               ; @.str.7
	.asciz	"check_"

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