	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NtEnumDhcpList                 ## -- Begin function NtEnumDhcpList
	.p2align	4, 0x90
_NtEnumDhcpList:                        ## @NtEnumDhcpList
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	4(%rdi), %edi
	callq	_Lock
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_2
## %bb.3:
	movq	%r12, %rdi
	callq	_LockVirtual
	cmpl	$0, (%r12)
	je	LBB0_4
## %bb.5:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_FreeRpcEnumDhcp
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_Zero
	movl	4(%r12), %edi
	callq	_LockList
	movl	4(%r12), %edi
	callq	_LIST_NUM
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, (%r13)
	shll	$3, %eax
	leal	(%rax,%rax,4), %edi
	callq	_ZeroMalloc
	movq	%rax, 8(%r13)
	cmpl	$0, (%r13)
	je	LBB0_8
## %bb.6:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %edi
	movq	%rbx, %rsi
	callq	_LIST_DATA
	movq	%rax, %r14
	movq	8(%r13), %r12
	movl	24(%rax), %eax
	movl	%eax, 32(%r12,%r15)
	movl	20(%r14), %edi
	callq	_TickToTime
	movq	%rax, 24(%r12,%r15)
	movl	16(%r14), %edi
	callq	_TickToTime
	movq	%rax, 16(%r12,%r15)
	movl	12(%r12,%r15), %edi
	movl	12(%r14), %esi
	movl	$6, %edx
	callq	_Copy
	movl	8(%r14), %eax
	movl	%eax, 8(%r12,%r15)
	movl	4(%r14), %eax
	movl	%eax, 4(%r12,%r15)
	movl	(%r12,%r15), %edi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	(%r14), %edx
	movl	$4, %esi
	callq	_StrCpy
	incq	%rbx
	movslq	(%r13), %rax
	addq	$40, %r15
	cmpq	%rax, %rbx
	jb	LBB0_7
LBB0_8:
	movl	4(%r12), %edi
	callq	_UnlockList
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_2:
	movq	_ERR_OFFLINE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_10
LBB0_4:
	movq	_ERR_OFFLINE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_9:
	movq	%r12, %rdi
	callq	_UnlockVirtual
LBB0_10:
	movl	4(%rbx), %edi
	callq	_Unlock
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_NO_ERROR,8,3               ## @ERR_NO_ERROR
	.comm	_ERR_OFFLINE,8,3                ## @ERR_OFFLINE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NtEnumDhcpList                 ; -- Begin function NtEnumDhcpList
	.p2align	2
_NtEnumDhcpList:                        ; @NtEnumDhcpList
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ERR_NO_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_NO_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	ldr	w0, [x0, #4]
	bl	_Lock
	ldr	x21, [x19, #8]
	ldr	w8, [x19]
	cmp	w8, #0
	ccmp	x21, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERR_OFFLINE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_OFFLINE@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x8]
	b	LBB0_9
LBB0_2:
	mov	x0, x21
	bl	_LockVirtual
	ldr	w8, [x21]
	cbz	w8, LBB0_7
; %bb.3:
	mov	x0, x22
	bl	_FreeRpcEnumDhcp
	mov	x0, x22
	mov	w1, #16
	bl	_Zero
	ldr	w0, [x21, #4]
	bl	_LockList
	ldr	w0, [x21, #4]
	bl	_LIST_NUM
	str	w0, [x22]
	add	w8, w0, w0, lsl #2
	lsl	w0, w8, #3
	bl	_ZeroMalloc
	str	x0, [x22, #8]
	ldr	w8, [x22]
	cbz	w8, LBB0_6
; %bb.4:
	mov	x25, #0
	mov	x23, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #4]
	mov	x1, x23
	bl	_LIST_DATA
	mov	x24, x0
	ldr	x8, [x22, #8]
	add	x26, x8, x25
	ldp	w0, w8, [x0, #20]
	str	w8, [x26, #32]
	bl	_TickToTime
	str	x0, [x26, #24]
	ldr	w0, [x24, #16]
	bl	_TickToTime
	str	x0, [x26, #16]
	ldr	w0, [x26, #12]
	ldr	w1, [x24, #12]
	mov	w2, #6
	bl	_Copy
	ldur	d0, [x24, #4]
	stur	d0, [x26, #4]
	ldr	w0, [x26]
	ldr	w2, [x24]
	mov	w1, #4
	bl	_StrCpy
	add	x23, x23, #1
	ldrsw	x8, [x22]
	add	x25, x25, #40
	cmp	x23, x8
	b.lo	LBB0_5
LBB0_6:
	ldr	w0, [x21, #4]
	bl	_UnlockList
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _ERR_OFFLINE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_OFFLINE@GOTPAGEOFF]
Lloh8:
	ldr	x20, [x8]
LBB0_8:
	mov	x0, x21
	bl	_UnlockVirtual
LBB0_9:
	ldr	w0, [x19, #4]
	bl	_Unlock
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_NO_ERROR,8,3               ; @ERR_NO_ERROR
	.comm	_ERR_OFFLINE,8,3                ; @ERR_OFFLINE
.subsections_via_symbols
