	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetOtherLatestIkeSa            ## -- Begin function GetOtherLatestIkeSa
	.p2align	4, 0x90
_GetOtherLatestIkeSa:                   ## @GetOtherLatestIkeSa
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.2:
	cmpq	$0, 24(%r14)
	je	LBB0_3
## %bb.4:
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_LIST_NUM
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jle	LBB0_12
## %bb.5:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movl	(%r12), %edi
	callq	_LIST_NUM
	cmpq	%rax, %rbx
	jge	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_LIST_DATA
	cmpq	%r14, %rax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%rax), %rcx
	cmpq	24(%r14), %rcx
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, (%rax)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 16(%rax)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rax), %rcx
	cmpq	%rcx, %r13
	cmovleq	%rcx, %r13
	cmovlq	%rax, %r15
	jmp	LBB0_11
LBB0_3:
	xorl	%r15d, %r15d
LBB0_12:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetOtherLatestIkeSa            ; -- Begin function GetOtherLatestIkeSa
	.p2align	2
_GetOtherLatestIkeSa:                   ; @GetOtherLatestIkeSa
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, #0
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_12
; %bb.2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_11
; %bb.3:
	mov	x20, x0
	ldr	w0, [x0]
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_11
; %bb.4:
	mov	x21, #0
	mov	x23, #0
	mov	x22, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	ldr	w0, [x20]
	bl	_LIST_NUM
	cmp	x22, x0
	b.ge	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	mov	x1, x22
	bl	_LIST_DATA
	cmp	x0, x19
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x0, #24]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x0]
	cbnz	w8, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x0, #8]
	cmp	x23, x8
	csel	x23, x23, x8, gt
	csel	x21, x0, x21, lt
	b	LBB0_5
LBB0_11:
	mov	x21, #0
LBB0_12:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
