	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IPsecServerSetServices         ## -- Begin function IPsecServerSetServices
	.p2align	4, 0x90
_IPsecServerSetServices:                ## @IPsecServerSetServices
	.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_14
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.2:
	movq	%rdi, %rbx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_IsZero
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	movl	4(%rbx), %edi
	callq	_Lock
	leaq	32(%rbx), %rdi
	movq	%r14, %rsi
	movl	$32, %edx
	callq	_Copy
	movq	16(%rbx), %rdi
	movq	24(%rbx), %rax
	movq	(%rax), %rsi
	movl	$4, %edx
	callq	_Copy
	cmpq	$0, 24(%r14)
	movq	16(%rbx), %rdi
	movq	_IPSEC_PORT_L2TP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	je	LBB0_6
## %bb.5:
	callq	_AddPortToUdpListener
	cmpq	$0, 16(%r14)
	jne	LBB0_9
	jmp	LBB0_8
LBB0_3:
	cmpq	$0, 40(%rbx)
	je	LBB0_4
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	callq	_DeletePortFromUdpListener
	cmpq	$0, 16(%r14)
	jne	LBB0_9
LBB0_8:
	cmpq	$0, 8(%r14)
	je	LBB0_10
LBB0_9:
	movq	16(%rbx), %rdi
	movq	_IPSEC_PORT_IPSEC_ISAKMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AddPortToUdpListener
	movq	16(%rbx), %rdi
	movq	_IPSEC_PORT_IPSEC_ESP_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AddPortToUdpListener
	movq	16(%rbx), %rdi
	movq	_IPSEC_PORT_IPSEC_ESP_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AddPortToUdpListener
	movq	16(%rbx), %rdi
	movq	_IPSEC_PORT_IPSEC_ESP_RAW_WPF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AddPortToUdpListener
LBB0_11:
	movl	(%r14), %edi
	callq	_IsEmptyStr
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	movl	$4, %esi
	callq	_StrCpy
LBB0_13:
	movq	%rbx, %rdi
	callq	_IPsecNormalizeServiceSetting
	movl	4(%rbx), %edi
	callq	_Unlock
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_Set                            ## TAILCALL
LBB0_10:
	movq	16(%rbx), %rdi
	movq	_IPSEC_PORT_IPSEC_ISAKMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DeletePortFromUdpListener
	movq	16(%rbx), %rdi
	movq	_IPSEC_PORT_IPSEC_ESP_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DeletePortFromUdpListener
	movq	16(%rbx), %rdi
	movq	_IPSEC_PORT_IPSEC_ESP_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DeletePortFromUdpListener
	movq	16(%rbx), %rdi
	movq	_IPSEC_PORT_IPSEC_ESP_RAW_WPF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DeletePortFromUdpListener
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_IPSEC_PORT_L2TP,4,2            ## @IPSEC_PORT_L2TP
	.comm	_IPSEC_PORT_IPSEC_ISAKMP,4,2    ## @IPSEC_PORT_IPSEC_ISAKMP
	.comm	_IPSEC_PORT_IPSEC_ESP_UDP,4,2   ## @IPSEC_PORT_IPSEC_ESP_UDP
	.comm	_IPSEC_PORT_IPSEC_ESP_RAW,4,2   ## @IPSEC_PORT_IPSEC_ESP_RAW
	.comm	_IPSEC_PORT_IPSEC_ESP_RAW_WPF,4,2 ## @IPSEC_PORT_IPSEC_ESP_RAW_WPF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IPsecServerSetServices         ; -- Begin function IPsecServerSetServices
	.p2align	2
_IPsecServerSetServices:                ; @IPsecServerSetServices
	.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_6
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_6
; %bb.2:
	mov	x19, x0
	mov	x0, x20
	mov	w1, #32
	bl	_IsZero
	cbz	w0, LBB0_5
LBB0_3:
	ldr	w0, [x19, #4]
	bl	_Lock
	add	x0, x19, #32
	mov	x1, x20
	mov	w2, #32
	bl	_Copy
	ldp	x0, x8, [x19, #16]
	ldr	x1, [x8]
	mov	w2, #4
	bl	_Copy
	ldr	x8, [x20, #24]
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x9, _IPSEC_PORT_L2TP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IPSEC_PORT_L2TP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	cbz	x8, LBB0_7
; %bb.4:
	bl	_AddPortToUdpListener
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_9
	b	LBB0_8
LBB0_5:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_3
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	_DeletePortFromUdpListener
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_9
LBB0_8:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_13
LBB0_9:
	ldr	x0, [x19, #16]
Lloh3:
	adrp	x8, _IPSEC_PORT_IPSEC_ISAKMP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPSEC_PORT_IPSEC_ISAKMP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_AddPortToUdpListener
	ldr	x0, [x19, #16]
Lloh6:
	adrp	x8, _IPSEC_PORT_IPSEC_ESP_UDP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPSEC_PORT_IPSEC_ESP_UDP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_AddPortToUdpListener
	ldr	x0, [x19, #16]
Lloh9:
	adrp	x8, _IPSEC_PORT_IPSEC_ESP_RAW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IPSEC_PORT_IPSEC_ESP_RAW@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_AddPortToUdpListener
	ldr	x0, [x19, #16]
Lloh12:
	adrp	x8, _IPSEC_PORT_IPSEC_ESP_RAW_WPF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IPSEC_PORT_IPSEC_ESP_RAW_WPF@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_AddPortToUdpListener
LBB0_10:
	ldr	w0, [x20]
	bl	_IsEmptyStr
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w2, [x20]
	mov	w1, #4
	bl	_StrCpy
LBB0_12:
	mov	x0, x19
	bl	_IPsecNormalizeServiceSetting
	ldr	w0, [x19, #4]
	bl	_Unlock
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Set
LBB0_13:
	ldr	x0, [x19, #16]
Lloh15:
	adrp	x8, _IPSEC_PORT_IPSEC_ISAKMP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IPSEC_PORT_IPSEC_ISAKMP@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_DeletePortFromUdpListener
	ldr	x0, [x19, #16]
Lloh18:
	adrp	x8, _IPSEC_PORT_IPSEC_ESP_UDP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IPSEC_PORT_IPSEC_ESP_UDP@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_DeletePortFromUdpListener
	ldr	x0, [x19, #16]
Lloh21:
	adrp	x8, _IPSEC_PORT_IPSEC_ESP_RAW@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IPSEC_PORT_IPSEC_ESP_RAW@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_DeletePortFromUdpListener
	ldr	x0, [x19, #16]
Lloh24:
	adrp	x8, _IPSEC_PORT_IPSEC_ESP_RAW_WPF@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IPSEC_PORT_IPSEC_ESP_RAW_WPF@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_DeletePortFromUdpListener
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IPSEC_PORT_L2TP,4,2            ; @IPSEC_PORT_L2TP
	.comm	_IPSEC_PORT_IPSEC_ISAKMP,4,2    ; @IPSEC_PORT_IPSEC_ISAKMP
	.comm	_IPSEC_PORT_IPSEC_ESP_UDP,4,2   ; @IPSEC_PORT_IPSEC_ESP_UDP
	.comm	_IPSEC_PORT_IPSEC_ESP_RAW,4,2   ; @IPSEC_PORT_IPSEC_ESP_RAW
	.comm	_IPSEC_PORT_IPSEC_ESP_RAW_WPF,4,2 ; @IPSEC_PORT_IPSEC_ESP_RAW_WPF
.subsections_via_symbols
