	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FreeNativeStack                ## -- Begin function FreeNativeStack
	.p2align	4, 0x90
_FreeNativeStack:                       ## @FreeNativeStack
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	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
	cmpq	$0, 24(%rdi)
	je	LBB0_4
## %bb.2:
	leaq	40(%rbx), %rdi
	movl	$4, %esi
	callq	_IsZero
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	40(%rbx), %esi
	leaq	-20(%rbp), %r14
	movq	%r14, %rdi
	callq	_UINTToIP
	movq	24(%rbx), %rdi
	movq	%r14, %rsi
	callq	_IPCDhcpFreeIP
	movl	$200, %edi
	callq	_SleepThread
LBB0_4:
	movl	$1, (%rbx)
	movl	16(%rbx), %edi
	callq	_Cancel
	movl	12(%rbx), %edi
	callq	_Disconnect
	movl	8(%rbx), %edi
	callq	_Disconnect
	movl	36(%rbx), %edi
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WaitThread
	movl	36(%rbx), %edi
	callq	_ReleaseThread
	movl	32(%rbx), %edi
	callq	_CloseEth
	movq	24(%rbx), %rdi
	callq	_FreeIPC
	movq	%rbx, %rdi
	callq	_NsStopIpTablesTracking
	movl	16(%rbx), %edi
	callq	_ReleaseCancel
	movl	12(%rbx), %edi
	callq	_ReleaseSock
	movl	8(%rbx), %edi
	callq	_ReleaseSock
	movl	4(%rbx), %edi
	callq	_ReleaseCedar
	movq	%rbx, %rdi
	callq	_Free
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
LBB0_5:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INFINITE,4,2                   ## @INFINITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FreeNativeStack                ; -- Begin function FreeNativeStack
	.p2align	2
_FreeNativeStack:                       ; @FreeNativeStack
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_5
; %bb.1:
	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	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_4
; %bb.2:
	add	x0, x19, #40
	mov	w1, #4
	bl	_IsZero
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w1, [x19, #40]
	add	x0, sp, #12
	bl	_UINTToIP
	ldr	x0, [x19, #24]
	add	x1, sp, #12
	bl	_IPCDhcpFreeIP
	mov	w0, #200
	bl	_SleepThread
LBB0_4:
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x19, #16]
	bl	_Cancel
	ldr	w0, [x19, #12]
	bl	_Disconnect
	ldr	w0, [x19, #8]
	bl	_Disconnect
	ldr	w0, [x19, #36]
Lloh0:
	adrp	x8, _INFINITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_WaitThread
	ldr	w0, [x19, #36]
	bl	_ReleaseThread
	ldr	w0, [x19, #32]
	bl	_CloseEth
	ldr	x0, [x19, #24]
	bl	_FreeIPC
	mov	x0, x19
	bl	_NsStopIpTablesTracking
	ldr	w0, [x19, #16]
	bl	_ReleaseCancel
	ldr	w0, [x19, #12]
	bl	_ReleaseSock
	ldr	w0, [x19, #8]
	bl	_ReleaseSock
	ldr	w0, [x19, #4]
	bl	_ReleaseCedar
	mov	x0, x19
	bl	_Free
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
LBB0_5:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INFINITE,4,2                   ; @INFINITE
.subsections_via_symbols
