	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dhcpack                        ## -- Begin function dhcpack
	.p2align	4, 0x90
_dhcpack:                               ## @dhcpack
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	leaq	-20(%rbp), %rdi
	callq	_time
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	(%rcx), %rdx
	movq	(%rdx), %rdx
	cmpq	(%rax), %rdx
	jne	LBB0_29
## %bb.1:
	movq	8(%rcx), %rdx
	cmpq	8(%rax), %rdx
	jne	LBB0_29
## %bb.2:
	movl	16(%rcx), %edi
	movl	16(%rax), %esi
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_29
## %bb.3:
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movq	_S_REBOOTING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.4:
	movq	_S_REQUESTING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.5:
	movq	_S_RENEWING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_S_REBINDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
LBB0_7:
	movl	(%rbx), %edi
	callq	_piaddr
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_note
	movq	%rbx, %rdi
	callq	_packet_to_lease
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	(%r14), %rcx
	movq	%rax, 16(%rcx)
	movq	_send_request@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_cancel_timeout
	movq	(%r14), %rax
	movq	16(%rax), %rdx
	movq	16(%rdx), %rax
	movq	_DHO_DHCP_LEASE_TIME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_getULong
	movq	(%r14), %rcx
	movq	16(%rcx), %rdx
	jmp	LBB0_12
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_note
	jmp	LBB0_29
LBB0_11:
	movq	_DHCP_DEFAULT_LEASE_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	movl	%eax, (%rdx)
	testl	%eax, %eax
	jns	LBB0_14
## %bb.13:
	movq	_TIME_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdx)
LBB0_14:
	cmpl	$59, %eax
	jg	LBB0_16
## %bb.15:
	movl	$60, (%rdx)
	movl	$60, %eax
LBB0_16:
	movq	16(%rdx), %rcx
	movq	_DHO_DHCP_RENEWAL_TIME@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	shlq	$4, %rsi
	cmpq	$0, 8(%rcx,%rsi)
	je	LBB0_18
## %bb.17:
	movq	(%rcx,%rsi), %rdi
	callq	_getULong
	movq	(%r14), %rcx
	movq	16(%rcx), %rdx
	movl	%eax, 4(%rdx)
	movq	16(%rdx), %rcx
	jmp	LBB0_19
LBB0_18:
	shrl	%eax
	movl	%eax, 4(%rdx)
LBB0_19:
	movq	_DHO_DHCP_REBINDING_TIME@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	shlq	$4, %rsi
	cmpq	$0, 8(%rcx,%rsi)
	je	LBB0_21
## %bb.20:
	movq	(%rcx,%rsi), %rdi
	callq	_getULong
	movq	%rax, %rcx
	movq	(%r14), %rax
	movq	16(%rax), %rdx
	jmp	LBB0_22
LBB0_21:
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	addl	%eax, %esi
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	addl	%esi, %ecx
LBB0_22:
	movl	%ecx, 8(%rdx)
	movl	(%rdx), %esi
	addl	-20(%rbp), %esi
	movl	%esi, (%rdx)
	movl	-20(%rbp), %eax
	cmpl	%eax, %esi
	jge	LBB0_24
## %bb.23:
	movq	_TIME_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	-20(%rbp), %eax
LBB0_24:
	movl	4(%rdx), %esi
	leal	(%rsi,%rax), %edi
	movl	%edi, 4(%rdx)
	testl	%esi, %esi
	jns	LBB0_26
## %bb.25:
	movq	_TIME_MAX@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 4(%rdx)
LBB0_26:
	addl	%ecx, %eax
	movl	%eax, 8(%rdx)
	testl	%ecx, %ecx
	jns	LBB0_28
## %bb.27:
	movq	_TIME_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdx)
LBB0_28:
	movq	%r14, %rdi
	callq	_bind_lease
LBB0_29:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_REBOOTING,8,3                ## @S_REBOOTING
	.comm	_S_REQUESTING,8,3               ## @S_REQUESTING
	.comm	_S_RENEWING,8,3                 ## @S_RENEWING
	.comm	_S_REBINDING,8,3                ## @S_REBINDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DHCPACK from %s"

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

	.comm	_send_request,4,2               ## @send_request
	.comm	_DHO_DHCP_LEASE_TIME,8,3        ## @DHO_DHCP_LEASE_TIME
	.comm	_DHCP_DEFAULT_LEASE_TIME,4,2    ## @DHCP_DEFAULT_LEASE_TIME
	.comm	_TIME_MAX,8,3                   ## @TIME_MAX
	.comm	_DHO_DHCP_RENEWAL_TIME,8,3      ## @DHO_DHCP_RENEWAL_TIME
	.comm	_DHO_DHCP_REBINDING_TIME,8,3    ## @DHO_DHCP_REBINDING_TIME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dhcpack                        ; -- Begin function dhcpack
	.p2align	2
_dhcpack:                               ; @dhcpack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	x19, [x0, #16]
	add	x0, sp, #12
	bl	_time
	ldp	x9, x8, [x20, #8]
	ldr	x10, [x8]
	ldr	x10, [x10]
	ldr	x11, [x9]
	cmp	x10, x11
	b.ne	LBB0_26
; %bb.1:
	ldr	x2, [x8, #8]
	ldr	x10, [x9, #8]
	cmp	x2, x10
	b.ne	LBB0_26
; %bb.2:
	ldr	w0, [x8, #16]
	ldr	w1, [x9, #16]
	bl	_memcmp
	cbnz	x0, LBB0_26
; %bb.3:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
Lloh0:
	adrp	x9, _S_REBOOTING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S_REBOOTING@GOTPAGEOFF]
Lloh2:
	adrp	x10, _S_REQUESTING@GOTPAGE
Lloh3:
	ldr	x10, [x10, _S_REQUESTING@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _S_RENEWING@GOTPAGE
Lloh7:
	ldr	x11, [x11, _S_RENEWING@GOTPAGEOFF]
Lloh8:
	adrp	x12, _S_REBINDING@GOTPAGE
Lloh9:
	ldr	x12, [x12, _S_REBINDING@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
Lloh11:
	ldr	x12, [x12]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	b.ne	LBB0_26
; %bb.4:
	ldr	w0, [x20]
	bl	_piaddr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_note
	mov	x0, x20
	bl	_packet_to_lease
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x19]
	str	x0, [x8, #16]
Lloh14:
	adrp	x8, _send_request@GOTPAGE
Lloh15:
	ldr	x8, [x8, _send_request@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_cancel_timeout
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	ldr	x9, [x8, #16]
Lloh17:
	adrp	x10, _DHO_DHCP_LEASE_TIME@GOTPAGE
Lloh18:
	ldr	x10, [x10, _DHO_DHCP_LEASE_TIME@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	lsl	x10, x10, #4
	ldr	x0, [x9, x10]
	cbz	x0, LBB0_8
; %bb.6:
	bl	_getULong
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	b	LBB0_9
LBB0_7:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_note
	b	LBB0_26
LBB0_8:
Lloh22:
	adrp	x9, _DHCP_DEFAULT_LEASE_TIME@GOTPAGE
Lloh23:
	ldr	x9, [x9, _DHCP_DEFAULT_LEASE_TIME@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x9]
LBB0_9:
	str	w0, [x8]
	tbz	w0, #31, LBB0_11
; %bb.10:
Lloh25:
	adrp	x9, _TIME_MAX@GOTPAGE
Lloh26:
	ldr	x9, [x9, _TIME_MAX@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x9]
	str	w0, [x8]
LBB0_11:
	cmp	w0, #59
	b.gt	LBB0_13
; %bb.12:
	mov	w0, #60
	str	w0, [x8]
LBB0_13:
	ldr	x9, [x8, #16]
Lloh28:
	adrp	x10, _DHO_DHCP_RENEWAL_TIME@GOTPAGE
Lloh29:
	ldr	x10, [x10, _DHO_DHCP_RENEWAL_TIME@GOTPAGEOFF]
Lloh30:
	ldr	x10, [x10]
	add	x11, x9, x10, lsl #4
	ldr	x11, [x11, #8]
	cbz	x11, LBB0_15
; %bb.14:
	lsl	x8, x10, #4
	ldr	x0, [x9, x8]
	bl	_getULong
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	str	w0, [x8, #4]
	ldr	x9, [x8, #16]
	b	LBB0_16
LBB0_15:
	lsr	w0, w0, #1
	str	w0, [x8, #4]
LBB0_16:
Lloh31:
	adrp	x10, _DHO_DHCP_REBINDING_TIME@GOTPAGE
Lloh32:
	ldr	x10, [x10, _DHO_DHCP_REBINDING_TIME@GOTPAGEOFF]
Lloh33:
	ldr	x10, [x10]
	add	x11, x9, x10, lsl #4
	ldr	x11, [x11, #8]
	cbz	x11, LBB0_18
; %bb.17:
	lsl	x8, x10, #4
	ldr	x0, [x9, x8]
	bl	_getULong
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	b	LBB0_19
LBB0_18:
	add	w9, w0, #3
	cmp	w0, #0
	csel	w9, w9, w0, lt
	cinc	w10, w0, lt
	add	w10, w0, w10, asr #1
	add	w0, w10, w9, asr #2
LBB0_19:
	str	w0, [x8, #8]
	ldr	w9, [sp, #12]
	ldr	w10, [x8]
	add	w10, w10, w9
	str	w10, [x8]
	ldr	w9, [sp, #12]
	cmp	w10, w9
	b.ge	LBB0_21
; %bb.20:
Lloh34:
	adrp	x9, _TIME_MAX@GOTPAGE
Lloh35:
	ldr	x9, [x9, _TIME_MAX@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	str	w9, [x8]
	ldr	w9, [sp, #12]
LBB0_21:
	ldr	w10, [x8, #4]
	add	w11, w10, w9
	str	w11, [x8, #4]
	tbz	w10, #31, LBB0_23
; %bb.22:
Lloh37:
	adrp	x10, _TIME_MAX@GOTPAGE
Lloh38:
	ldr	x10, [x10, _TIME_MAX@GOTPAGEOFF]
Lloh39:
	ldr	x10, [x10]
	str	w10, [x8, #4]
LBB0_23:
	add	w9, w0, w9
	str	w9, [x8, #8]
	tbz	w0, #31, LBB0_25
; %bb.24:
Lloh40:
	adrp	x9, _TIME_MAX@GOTPAGE
Lloh41:
	ldr	x9, [x9, _TIME_MAX@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	str	w9, [x8, #8]
LBB0_25:
	mov	x0, x19
	bl	_bind_lease
LBB0_26:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_S_REBOOTING,8,3                ; @S_REBOOTING
	.comm	_S_REQUESTING,8,3               ; @S_REQUESTING
	.comm	_S_RENEWING,8,3                 ; @S_RENEWING
	.comm	_S_REBINDING,8,3                ; @S_REBINDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DHCPACK from %s"

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

	.comm	_send_request,4,2               ; @send_request
	.comm	_DHO_DHCP_LEASE_TIME,8,3        ; @DHO_DHCP_LEASE_TIME
	.comm	_DHCP_DEFAULT_LEASE_TIME,4,2    ; @DHCP_DEFAULT_LEASE_TIME
	.comm	_TIME_MAX,8,3                   ; @TIME_MAX
	.comm	_DHO_DHCP_RENEWAL_TIME,8,3      ; @DHO_DHCP_RENEWAL_TIME
	.comm	_DHO_DHCP_REBINDING_TIME,8,3    ; @DHO_DHCP_REBINDING_TIME
.subsections_via_symbols
