	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bind_lease                     ## -- Begin function bind_lease
	.p2align	4, 0x90
_bind_lease:                            ## @bind_lease
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	16(%rax), %r14
	leaq	-32(%rbp), %rdi
	callq	_time
	movq	(%r15), %rcx
	movl	24(%rcx), %edx
	movq	16(%rcx), %rax
	movl	%edx, 12(%rax)
	movq	8(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_free_client_lease
	movq	(%r15), %rcx
	movq	16(%rcx), %rax
LBB0_2:
	movq	%rax, 8(%rcx)
	movq	$0, 16(%rcx)
	movq	(%rax), %rdi
	cmpq	-32(%rbp), %rdi
	je	LBB0_4
## %bb.3:
	movq	_state_bound@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_add_timeout
	movq	(%r15), %rax
	movq	8(%rax), %rax
LBB0_4:
	movl	8(%rax), %edi
	callq	_piaddr
	movq	(%r15), %rcx
	movq	8(%rcx), %rcx
	movq	(%rcx), %rdx
	subq	-32(%rbp), %rdx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_note
	movq	_S_BOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	movq	%r15, %rdi
	callq	_AdapterFindInfo
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_setup_adapter
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_set_name_servers
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_set_domain
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_warning
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_state_bound,4,2                ## @state_bound
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bound to %s -- renewal in %ld seconds."

	.comm	_S_BOUND,4,2                    ## @S_BOUND
L_.str.1:                               ## @.str.1
	.asciz	"Could not find adapter for info %p\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bind_lease                     ; -- Begin function bind_lease
	.p2align	2
_bind_lease:                            ; @bind_lease
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x19, [x8, #16]
	add	x0, sp, #8
	bl	_time
	ldr	x9, [x20]
	ldr	w10, [x9, #24]
	ldp	x0, x8, [x9, #8]
	str	w10, [x8, #12]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_free_client_lease
	ldr	x9, [x20]
	ldr	x8, [x9, #16]
LBB0_2:
	stp	x8, xzr, [x9, #8]
	ldr	x0, [x8]
	ldr	x9, [sp, #8]
	cmp	x0, x9
	b.eq	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _state_bound@GOTPAGE
Lloh1:
	ldr	x8, [x8, _state_bound@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_add_timeout
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
LBB0_4:
	ldr	w0, [x8, #8]
	bl	_piaddr
	mov	x1, x0
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	x9, [sp, #8]
	sub	x2, x8, x9
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_note
Lloh5:
	adrp	x8, _S_BOUND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _S_BOUND@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9]
	mov	x0, x20
	bl	_AdapterFindInfo
	cbz	x0, LBB0_6
; %bb.5:
	mov	x21, x0
	mov	x1, x19
	bl	_setup_adapter
	mov	x0, x21
	mov	x1, x19
	bl	_set_name_servers
	mov	x0, x21
	mov	x1, x19
	bl	_set_domain
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_warning
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_state_bound,4,2                ; @state_bound
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bound to %s -- renewal in %ld seconds."

	.comm	_S_BOUND,4,2                    ; @S_BOUND
l_.str.1:                               ; @.str.1
	.asciz	"Could not find adapter for info %p\n"

.subsections_via_symbols
