	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FreeIPsecServer                ## -- Begin function FreeIPsecServer
	.p2align	4, 0x90
_FreeIPsecServer:                       ## @FreeIPsecServer
	.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, %r14
	movl	$1, (%rdi)
	movl	28(%rdi), %edi
	xorl	%esi, %esi
	callq	_StopL2TPServer
	movl	24(%r14), %edi
	callq	_StopIKEServer
	leaq	-20(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_Zero
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_IPsecServerSetServices
	movl	36(%r14), %edi
	callq	_FreeUdpListener
	movl	32(%r14), %edi
	callq	_ReleaseCedar
	movl	28(%r14), %edi
	callq	_FreeL2TPServer
	movl	24(%r14), %edi
	callq	_FreeIKEServer
	movl	20(%r14), %edi
	callq	_LIST_NUM
	testq	%rax, %rax
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	20(%r14), %edi
	movq	%rbx, %rsi
	callq	_LIST_DATA
	movq	%rax, %rdi
	callq	_Free
	incq	%rbx
	movl	20(%r14), %edi
	callq	_LIST_NUM
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	movl	20(%r14), %edi
	callq	_ReleaseList
	movl	$1, 4(%r14)
	movl	12(%r14), %edi
	callq	_Set
	movl	16(%r14), %edi
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WaitThread
	movl	16(%r14), %edi
	callq	_ReleaseThread
	movl	12(%r14), %edi
	callq	_ReleaseEvent
	movl	8(%r14), %edi
	callq	_DeleteLock
	movq	%r14, %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	_FreeIPsecServer                ; -- Begin function FreeIPsecServer
	.p2align	2
_FreeIPsecServer:                       ; @FreeIPsecServer
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_5
; %bb.1:
	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	x19, x0
	mov	w21, #1
	str	w21, [x0]
	ldr	w0, [x0, #28]
	mov	w1, #0
	bl	_StopL2TPServer
	ldr	w0, [x19, #24]
	bl	_StopIKEServer
	add	x0, sp, #12
	mov	w1, #4
	bl	_Zero
	add	x1, sp, #12
	mov	x0, x19
	bl	_IPsecServerSetServices
	ldr	w0, [x19, #36]
	bl	_FreeUdpListener
	ldr	w0, [x19, #32]
	bl	_ReleaseCedar
	ldr	w0, [x19, #28]
	bl	_FreeL2TPServer
	ldr	w0, [x19, #24]
	bl	_FreeIKEServer
	ldr	w0, [x19, #20]
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #20]
	mov	x1, x20
	bl	_LIST_DATA
	bl	_Free
	add	x20, x20, #1
	ldr	w0, [x19, #20]
	bl	_LIST_NUM
	cmp	x20, x0
	b.lt	LBB0_3
LBB0_4:
	ldr	w0, [x19, #20]
	bl	_ReleaseList
	str	w21, [x19, #4]
	ldr	w0, [x19, #12]
	bl	_Set
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x8, _INFINITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_WaitThread
	ldr	w0, [x19, #16]
	bl	_ReleaseThread
	ldr	w0, [x19, #12]
	bl	_ReleaseEvent
	ldr	w0, [x19, #8]
	bl	_DeleteLock
	mov	x0, x19
	bl	_Free
	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
LBB0_5:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INFINITE,4,2                   ; @INFINITE
.subsections_via_symbols
