	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StEnumDHCP                     ## -- Begin function StEnumDHCP
	.p2align	4, 0x90
_StEnumDHCP:                            ## @StEnumDHCP
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r13
	movq	8(%r13), %r12
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_MAX_HUBNAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	incl	%ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	movl	4(%r14), %edx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	%ebx, %esi
	callq	_StrCpy
	movq	%r12, %rdi
	callq	_LockHubList
	movl	4(%r14), %esi
	movq	%r12, %rdi
	callq	_GetHub
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_UnlockHubList
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	(%r15), %rax
	movq	_HUB_TYPE_FARM_STATIC@GOTPCREL(%rip), %rcx
	movq	_ERR_NOT_SUPPORTED@GOTPCREL(%rip), %rbx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_GetServerCapsBool
	testl	%eax, %eax
	je	LBB0_17
## %bb.4:
	movl	8(%r15), %edi
	callq	_Lock
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_NtEnumDhcpList
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_1:
	movq	_ERR_HUB_NOT_FOUND@GOTPCREL(%rip), %rbx
	jmp	LBB0_18
LBB0_5:
	movq	_ERR_SNAT_NOT_RUNNING@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_7:
	movl	8(%r15), %edi
	callq	_Unlock
	movq	(%r15), %rax
	movq	_HUB_TYPE_FARM_DYNAMIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.8:
	movq	_ERR_SNAT_NOT_RUNNING@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_16
## %bb.9:
	movl	(%r13), %edi
	callq	_LockList
	movl	(%r13), %edi
	callq	_LIST_NUM
	testq	%rax, %rax
	jle	LBB0_15
## %bb.10:
	xorl	%ebx, %ebx
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movl	(%r13), %edi
	callq	_LIST_NUM
	cmpq	%rax, %rbx
	jge	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_LIST_DATA
	cmpl	$0, (%rax)
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %r12
	movq	%r14, %r15
	leaq	-56(%rbp), %rdi
	movl	$8, %esi
	callq	_Zero
	movq	%r13, %r14
	movq	%r13, %rdi
	movq	%r12, %rsi
	leaq	-56(%rbp), %r12
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_SiCallEnumDhcp
	cmpl	$0, -56(%rbp)
	jg	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %rdi
	callq	_FreeRpcEnumDhcp
	movq	%r15, %rax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r14, %r13
	movq	%rax, %r14
	jmp	LBB0_14
LBB0_20:
	movq	%r15, %rdi
	callq	_FreeRpcEnumDhcp
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_Copy
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r14, %r13
LBB0_15:
	movl	(%r13), %edi
	callq	_UnlockList
LBB0_16:
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rbx
LBB0_17:
	movq	%r15, %rdi
	callq	_ReleaseHub
LBB0_18:
	movq	(%rbx), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_NO_ERROR,8,3               ## @ERR_NO_ERROR
	.comm	_MAX_HUBNAME_LEN,4,2            ## @MAX_HUBNAME_LEN
	.comm	_CHECK_RIGHT,4,2                ## @CHECK_RIGHT
	.comm	_ERR_HUB_NOT_FOUND,8,3          ## @ERR_HUB_NOT_FOUND
	.comm	_HUB_TYPE_FARM_STATIC,8,3       ## @HUB_TYPE_FARM_STATIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"b_support_securenat"

	.comm	_ERR_NOT_SUPPORTED,8,3          ## @ERR_NOT_SUPPORTED
	.comm	_ERR_SNAT_NOT_RUNNING,8,3       ## @ERR_SNAT_NOT_RUNNING
	.comm	_HUB_TYPE_FARM_DYNAMIC,8,3      ## @HUB_TYPE_FARM_DYNAMIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StEnumDHCP                     ; -- Begin function StEnumDHCP
	.p2align	2
_StEnumDHCP:                            ; @StEnumDHCP
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x19, [x0]
Lloh3:
	adrp	x8, _ERR_NO_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_NO_ERROR@GOTPAGEOFF]
	ldr	x23, [x19, #8]
Lloh5:
	ldr	x24, [x8]
Lloh6:
	adrp	x8, _MAX_HUBNAME_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_HUBNAME_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w1, w8, #1
	mov	x9, x1
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	ldr	w2, [x20, #4]
	mov	x0, x22
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_StrCpy
	mov	x0, x23
	bl	_LockHubList
	ldr	w1, [x20, #4]
	mov	x0, x23
	bl	_GetHub
	mov	x21, x0
	mov	x0, x23
	bl	_UnlockHubList
	cbz	x21, LBB0_6
; %bb.1:
	ldr	x8, [x21]
Lloh11:
	adrp	x9, _HUB_TYPE_FARM_STATIC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HUB_TYPE_FARM_STATIC@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.2:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_GetServerCapsBool
	cbz	w0, LBB0_5
; %bb.3:
	ldr	w0, [x21, #8]
	bl	_Lock
	ldr	x8, [x21, #16]
Lloh16:
	adrp	x23, _ERR_SNAT_NOT_RUNNING@GOTPAGE
Lloh17:
	ldr	x23, [x23, _ERR_SNAT_NOT_RUNNING@GOTPAGEOFF]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_NtEnumDhcpList
	b	LBB0_8
LBB0_5:
Lloh18:
	adrp	x19, _ERR_NOT_SUPPORTED@GOTPAGE
Lloh19:
	ldr	x19, [x19, _ERR_NOT_SUPPORTED@GOTPAGEOFF]
	b	LBB0_18
LBB0_6:
Lloh20:
	adrp	x19, _ERR_HUB_NOT_FOUND@GOTPAGE
Lloh21:
	ldr	x19, [x19, _ERR_HUB_NOT_FOUND@GOTPAGEOFF]
	b	LBB0_19
LBB0_7:
	ldr	x24, [x23]
LBB0_8:
	ldr	w0, [x21, #8]
	bl	_Unlock
	ldr	x8, [x21]
Lloh22:
	adrp	x9, _HUB_TYPE_FARM_DYNAMIC@GOTPAGE
Lloh23:
	ldr	x9, [x9, _HUB_TYPE_FARM_DYNAMIC@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	ldr	x10, [x23]
	cmp	x8, x9
	ccmp	x24, x10, #0, eq
	b.ne	LBB0_17
; %bb.9:
	ldr	w0, [x19]
	bl	_LockList
	ldr	w0, [x19]
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_16
; %bb.10:
	mov	x23, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #1
	ldr	w0, [x19]
	bl	_LIST_NUM
	cmp	x23, x0
	b.ge	LBB0_16
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	x1, x23
	bl	_LIST_DATA
	ldr	w8, [x0]
	cbnz	w8, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x24, x0
	sub	x0, x29, #64
	mov	w1, #8
	bl	_Zero
	sub	x3, x29, #64
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	bl	_SiCallEnumDhcp
	ldur	w8, [x29, #-64]
	cmp	w8, #0
	b.gt	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	x0, x29, #64
	bl	_FreeRpcEnumDhcp
	b	LBB0_11
LBB0_15:
	mov	x0, x20
	bl	_FreeRpcEnumDhcp
	sub	x1, x29, #64
	mov	x0, x20
	mov	w2, #8
	bl	_Copy
LBB0_16:
	ldr	w0, [x19]
	bl	_UnlockList
LBB0_17:
Lloh25:
	adrp	x19, _ERR_NO_ERROR@GOTPAGE
Lloh26:
	ldr	x19, [x19, _ERR_NO_ERROR@GOTPAGEOFF]
LBB0_18:
	mov	x0, x21
	bl	_ReleaseHub
LBB0_19:
	ldr	x0, [x19]
	ldur	x8, [x29, #-56]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_NO_ERROR,8,3               ; @ERR_NO_ERROR
	.comm	_MAX_HUBNAME_LEN,4,2            ; @MAX_HUBNAME_LEN
	.comm	_CHECK_RIGHT,4,2                ; @CHECK_RIGHT
	.comm	_ERR_HUB_NOT_FOUND,8,3          ; @ERR_HUB_NOT_FOUND
	.comm	_HUB_TYPE_FARM_STATIC,8,3       ; @HUB_TYPE_FARM_STATIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"b_support_securenat"

	.comm	_ERR_NOT_SUPPORTED,8,3          ; @ERR_NOT_SUPPORTED
	.comm	_ERR_SNAT_NOT_RUNNING,8,3       ; @ERR_SNAT_NOT_RUNNING
	.comm	_HUB_TYPE_FARM_DYNAMIC,8,3      ; @HUB_TYPE_FARM_DYNAMIC
.subsections_via_symbols
