	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NewIkeSa                       ## -- Begin function NewIkeSa
	.p2align	4, 0x90
_NewIkeSa:                              ## @NewIkeSa
	.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
	subq	$24, %rsp
	.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_5
## %bb.1:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.2:
	movq	%rdx, %r13
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.3:
	movq	%r8, %rbx
	testq	%r8, %r8
	je	LBB0_5
## %bb.4:
	movq	%rdi, %r14
	movl	$56, %edi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_ZeroMalloc
	movq	%rax, %r15
	movq	8(%r14), %rax
	incq	%rax
	movq	%rax, 8(%r14)
	movq	%rax, 48(%r15)
	movq	%r12, 40(%r15)
	movq	%r13, 8(%r15)
	movq	%r14, %rdi
	callq	_GenerateNewResponserCookie
	movl	%eax, (%r15)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, 32(%r15)
	movl	(%r14), %eax
	movl	%eax, 20(%r15)
	movl	%eax, 24(%r15)
	leaq	16(%r15), %rdi
	movq	%rbx, %rsi
	movl	$40, %edx
	callq	_Copy
	movq	8(%r15), %rdx
	movl	(%r15), %ecx
	movq	32(%rbx), %rax
	movl	(%rax), %r8d
	movq	24(%rbx), %rax
	movl	(%rax), %r9d
	movq	16(%rbx), %rax
	movl	(%rax), %r10d
	movl	8(%rbx), %r12d
	movl	(%rbx), %r11d
	movl	4(%rbx), %eax
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	pushq	%rax
	pushq	%r12
	pushq	%r11
	pushq	%r10
	callq	_Debug
	addq	$32, %rsp
	movq	_IKE_SA_MAIN_MODE@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	__UU
	movl	(%r15), %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	32(%rbx), %rcx
	movl	(%rcx), %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	24(%rbx), %rcx
	movl	(%rcx), %r12d
	movq	16(%rbx), %rcx
	movl	(%rcx), %r13d
	movl	(%rbx), %r10d
	movl	4(%rbx), %r11d
	shll	$3, %r10d
	movl	8(%rbx), %ebx
	leaq	L_.str.1(%rip), %r8
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	movl	%eax, %r9d
	pushq	%r11
	pushq	%rbx
	pushq	%r10
	pushq	%r13
	pushq	%r12
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	8(%r15)
	callq	_IPsecLog
	addq	$64, %rsp
LBB0_5:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"New IKE SA (Mode = %u): %I64u <--> %I64u (%s %s %s(%u) %u %u)\n"

L_.str.1:                               ## @.str.1
	.asciz	"LI_NEW_IKE_SA"

	.comm	_IKE_SA_MAIN_MODE,8,3           ## @IKE_SA_MAIN_MODE
L_.str.2:                               ## @.str.2
	.asciz	"LI_TAG_MAINMODE"

L_.str.3:                               ## @.str.3
	.asciz	"LI_TAG_AGGRESSIVE"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NewIkeSa                       ; -- Begin function NewIkeSa
	.p2align	2
_NewIkeSa:                              ; @NewIkeSa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, #0
	cbz	x0, LBB0_5
; %bb.1:
	mov	x24, x1
	cbz	x1, LBB0_5
; %bb.2:
	mov	x23, x2
	cbz	x2, LBB0_5
; %bb.3:
	mov	x21, x4
	cbz	x4, LBB0_5
; %bb.4:
	mov	x22, x3
	mov	x20, x0
	mov	w0, #56
	bl	_ZeroMalloc
	mov	x19, x0
	ldr	x8, [x20, #8]
	add	x8, x8, #1
	str	x8, [x20, #8]
	stp	x24, x8, [x0, #40]
	str	x23, [x0, #8]
	mov	x0, x20
	bl	_GenerateNewResponserCookie
	str	w0, [x19]
	str	x22, [x19, #32]
	ldr	w8, [x20]
	stp	w8, w8, [x19, #20]
	add	x0, x19, #16
	mov	x1, x21
	mov	w2, #40
	bl	_Copy
	ldr	x2, [x19, #8]
	ldr	w3, [x19]
	ldr	x8, [x21, #32]
	ldr	w4, [x8]
	ldp	x9, x8, [x21, #16]
	ldr	w5, [x8]
	ldr	w6, [x9]
	ldp	w9, w8, [x21, #4]
	ldr	w7, [x21]
	stp	w8, w9, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_Debug
Lloh2:
	adrp	x8, _IKE_SA_MAIN_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IKE_SA_MAIN_MODE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, l_.str.3@PAGE
Lloh6:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh7:
	adrp	x10, l_.str.2@PAGE
Lloh8:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, x22
	csel	x0, x10, x9, eq
	bl	__UU
	mov	x5, x0
	ldr	x6, [x19, #8]
	ldr	w7, [x19]
	ldp	x9, x8, [x21, #24]
	ldr	w8, [x8]
	ldr	x10, [x21, #16]
	ldr	w9, [x9]
	ldr	w10, [x10]
	ldp	w11, w12, [x21]
	lsl	w11, w11, #3
	ldr	w13, [x21, #8]
	stp	w13, w12, [sp, #16]
	stp	w10, w11, [sp, #8]
Lloh9:
	adrp	x4, l_.str.1@PAGE
Lloh10:
	add	x4, x4, l_.str.1@PAGEOFF
	stp	w8, w9, [sp]
	mov	x0, x20
	mov	x1, #0
	mov	x2, x19
	mov	x3, #0
	bl	_IPsecLog
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"New IKE SA (Mode = %u): %I64u <--> %I64u (%s %s %s(%u) %u %u)\n"

l_.str.1:                               ; @.str.1
	.asciz	"LI_NEW_IKE_SA"

	.comm	_IKE_SA_MAIN_MODE,8,3           ; @IKE_SA_MAIN_MODE
l_.str.2:                               ; @.str.2
	.asciz	"LI_TAG_MAINMODE"

l_.str.3:                               ; @.str.3
	.asciz	"LI_TAG_AGGRESSIVE"

.subsections_via_symbols
