	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NewIPsecServer                 ## -- Begin function NewIPsecServer
	.p2align	4, 0x90
_NewIPsecServer:                        ## @NewIPsecServer
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movl	$48, %edi
	callq	_ZeroMalloc
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_NewLock
	movl	%eax, 40(%rbx)
	movq	%r14, 32(%rbx)
	movl	8(%r14), %edi
	callq	_AddRef
	movq	%r14, %rdi
	callq	_NewL2TPServer
	movl	%eax, 24(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_NewIKEServer
	movq	%rax, 16(%rbx)
	movl	(%rax), %edi
	movq	_IPSEC_DEFAULT_SECRET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_StrCpy
	movq	_IPsecServerUdpPacketRecvProc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	movq	%rbx, %rsi
	callq	_NewUdpListener
	movl	%eax, 12(%rbx)
	movq	_CmpEtherIPId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_NewList
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
	callq	_NewEvent
	movl	%eax, 4(%rbx)
	movq	_IPsecOsServiceCheckThread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_NewThread
	movl	%eax, (%rbx)
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPSEC_DEFAULT_SECRET,4,2       ## @IPSEC_DEFAULT_SECRET
	.comm	_IPsecServerUdpPacketRecvProc,4,2 ## @IPsecServerUdpPacketRecvProc
	.comm	_CmpEtherIPId,4,2               ## @CmpEtherIPId
	.comm	_IPsecOsServiceCheckThread,4,2  ## @IPsecOsServiceCheckThread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NewIPsecServer                 ; -- Begin function NewIPsecServer
	.p2align	2
_NewIPsecServer:                        ; @NewIPsecServer
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	mov	w0, #48
	bl	_ZeroMalloc
	mov	x19, x0
	bl	_NewLock
	str	w0, [x19, #40]
	str	x20, [x19, #32]
	ldr	w0, [x20, #8]
	bl	_AddRef
	mov	x0, x20
	bl	_NewL2TPServer
	str	w0, [x19, #24]
	mov	x0, x20
	mov	x1, x19
	bl	_NewIKEServer
	str	x0, [x19, #16]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _IPSEC_DEFAULT_SECRET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPSEC_DEFAULT_SECRET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_StrCpy
Lloh3:
	adrp	x8, _IPsecServerUdpPacketRecvProc@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPsecServerUdpPacketRecvProc@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x2, [x20]
	mov	x1, x19
	bl	_NewUdpListener
	str	w0, [x19, #12]
Lloh6:
	adrp	x8, _CmpEtherIPId@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CmpEtherIPId@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_NewList
	str	w0, [x19, #8]
	bl	_NewEvent
	str	w0, [x19, #4]
Lloh9:
	adrp	x8, _IPsecOsServiceCheckThread@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IPsecOsServiceCheckThread@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_NewThread
	str	w0, [x19]
	b	LBB0_3
LBB0_2:
	mov	x19, #0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IPSEC_DEFAULT_SECRET,4,2       ; @IPSEC_DEFAULT_SECRET
	.comm	_IPsecServerUdpPacketRecvProc,4,2 ; @IPsecServerUdpPacketRecvProc
	.comm	_CmpEtherIPId,4,2               ; @CmpEtherIPId
	.comm	_IPsecOsServiceCheckThread,4,2  ; @IPsecOsServiceCheckThread
.subsections_via_symbols
