	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PurgeIPsecSa                   ## -- Begin function PurgeIPsecSa
	.p2align	4, 0x90
_PurgeIPsecSa:                          ## @PurgeIPsecSa
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.2:
	movq	%rdi, %r12
	movq	%r14, %rsi
	callq	_GetOtherLatestIPsecSa
	movq	%rax, %r15
	movl	(%r12), %edi
	callq	_LIST_NUM
	testq	%rax, %rax
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movl	(%r12), %edi
	callq	_LIST_NUM
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_LIST_DATA
	cmpq	%r14, (%rax)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, (%rax)
	jmp	LBB0_6
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	4(%r12), %edi
	callq	_LIST_NUM
	testq	%rax, %rax
	jle	LBB0_14
## %bb.8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	movl	4(%r12), %edi
	callq	_LIST_NUM
	cmpq	%rax, %rbx
	jge	LBB0_14
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %edi
	movq	%rbx, %rsi
	callq	_LIST_DATA
	cmpq	%r14, 8(%rax)
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%r14, (%rax)
	jne	LBB0_13
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, 8(%rax)
	cmpq	%r14, (%rax)
	jne	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, (%rax)
	jmp	LBB0_13
LBB0_14:
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_Delete
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FreeIPsecSa                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PurgeIPsecSa                   ; -- Begin function PurgeIPsecSa
	.p2align	2
_PurgeIPsecSa:                          ; @PurgeIPsecSa
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_7
; %bb.2:
	mov	x20, x0
	mov	x1, x19
	bl	_GetOtherLatestIPsecSa
	mov	x21, x0
	ldr	w0, [x20]
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x22, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldr	w0, [x20]
	bl	_LIST_NUM
	cmp	x22, x0
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	mov	x1, x22
	bl	_LIST_DATA
	ldr	x8, [x0]
	cmp	x8, x19
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x21, [x0]
	b	LBB0_4
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w0, [x20, #4]
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_15
; %bb.9:
	mov	x22, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x22, #1
	ldr	w0, [x20, #4]
	bl	_LIST_NUM
	cmp	x22, x0
	b.ge	LBB0_15
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]
	mov	x1, x22
	bl	_LIST_DATA
	ldr	x8, [x0, #8]
	cmp	x8, x19
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	str	x21, [x0, #8]
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x0]
	cmp	x8, x19
	b.ne	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	str	x21, [x0]
	b	LBB0_10
LBB0_15:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_Delete
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_FreeIPsecSa
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
