	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DSRenewIpAddressLease          ## -- Begin function DSRenewIpAddressLease
	.p2align	4, 0x90
_DSRenewIpAddressLease:                 ## @DSRenewIpAddressLease
	.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	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_ApiLock
	movl	(%rbx), %edi
	callq	_AdapterFindIndex
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	16(%rax), %rax
	movq	_S_STATIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movl	$0, -24(%rbp)
	jmp	LBB0_7
LBB0_3:
	movl	$1, -24(%rbp)
	movq	%rbx, %rdi
	callq	_find_protocol_by_adapter
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rdi
	callq	_remove_protocol
LBB0_5:
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	_got_one@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rcx
	callq	_add_protocol
	movq	_S_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_state_reboot
	movq	_AdapterStateChangedEvent@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_SetEvent
LBB0_7:
	xorl	%eax, %eax
	callq	_ApiUnlock
	leaq	-24(%rbp), %rdi
	callq	*%r14
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_STATIC,8,3                   ## @S_STATIC
	.comm	_got_one,4,2                    ## @got_one
	.comm	_S_INIT,4,2                     ## @S_INIT
	.comm	_AdapterStateChangedEvent,8,3   ## @AdapterStateChangedEvent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DSRenewIpAddressLease          ; -- Begin function DSRenewIpAddressLease
	.p2align	2
_DSRenewIpAddressLease:                 ; @DSRenewIpAddressLease
	.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, x1
	mov	x19, x0
	bl	_ApiLock
	ldr	w0, [x20]
	bl	_AdapterFindIndex
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _S_STATIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S_STATIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	str	wzr, [sp, #8]
	b	LBB0_7
LBB0_3:
	mov	w8, #1
	str	w8, [sp, #8]
	mov	x0, x20
	bl	_find_protocol_by_adapter
	cbz	x0, LBB0_5
; %bb.4:
	bl	_remove_protocol
LBB0_5:
	ldp	w1, w0, [x20, #8]
Lloh3:
	adrp	x8, _got_one@GOTPAGE
Lloh4:
	ldr	x8, [x8, _got_one@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x3, x20
	bl	_add_protocol
Lloh6:
	adrp	x8, _S_INIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S_INIT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9]
	mov	x0, x20
	bl	_state_reboot
Lloh9:
	adrp	x8, _AdapterStateChangedEvent@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AdapterStateChangedEvent@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_SetEvent
LBB0_7:
	bl	_ApiUnlock
	add	x0, sp, #8
	blr	x19
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_S_STATIC,8,3                   ; @S_STATIC
	.comm	_got_one,4,2                    ; @got_one
	.comm	_S_INIT,4,2                     ; @S_INIT
	.comm	_AdapterStateChangedEvent,8,3   ; @AdapterStateChangedEvent
.subsections_via_symbols
