	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IkeCalcSaKeySet                ## -- Begin function IkeCalcSaKeySet
	.p2align	4, 0x90
_IkeCalcSaKeySet:                       ## @IkeCalcSaKeySet
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rsp, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	testq	%r12, %r12
	je	LBB0_7
## %bb.1:
	testq	%r15, %r15
	je	LBB0_7
## %bb.2:
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	8(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	80(%r15), %edi
	testq	%r14, %r14
	jne	LBB0_4
## %bb.3:
	movq	(%r12), %r14
LBB0_4:
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movl	$4, %esi
	movq	%r14, %rdx
	callq	_StrCpy
	movl	80(%r15), %edi
	callq	_IkeStrToPassword
	movq	%rax, %r14
	movq	72(%r15), %rdi
	callq	_CloneBuf
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_SeekBufToEnd
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movq	%r13, %rdi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_BinToStrEx
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	callq	_Debug
	movq	64(%r15), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_BinToStrEx
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	callq	_Debug
	movq	64(%r15), %rsi
	movq	%rbx, %rdi
	callq	_WriteBufBuf
	movl	32(%r15), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdx
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	callq	_IkeHMacBuf
	movl	16(%r15), %ecx
	movl	32(%r15), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_BinToStrEx
	leaq	L_.str.2(%rip), %rdi
	movq	%r13, %rsi
	callq	_Debug
	movq	48(%r15), %rdi
	callq	_CloneBuf
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_SeekBufToEnd
	movl	40(%r15), %esi
	movq	%rbx, %rdi
	callq	_WriteBufInt64
	movl	36(%r15), %esi
	movq	%rbx, %rdi
	callq	_WriteBufInt64
	movl	$0, -52(%rbp)
	leaq	-52(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_WriteBuf
	movl	60(%r15), %esi
	movl	16(%r15), %ecx
	movl	32(%r15), %edx
	movl	(%rbx), %r9d
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %r8d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_IkeHMac
	movl	16(%r15), %ecx
	movl	60(%r15), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_BinToStrEx
	leaq	L_.str.3(%rip), %rdi
	movq	%r13, %rsi
	callq	_Debug
	movl	16(%r15), %esi
	movl	60(%r15), %edi
	callq	_MemToBuf
	movq	%r13, %rbx
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_SeekBufToEnd
	movq	48(%r15), %rsi
	movq	%r13, %rdi
	callq	_WriteBufBuf
	movl	40(%r15), %esi
	movq	%r13, %rdi
	callq	_WriteBufInt64
	movl	36(%r15), %esi
	movq	%r13, %rdi
	callq	_WriteBufInt64
	movl	$1, -52(%rbp)
	movq	%r13, %rdi
	leaq	-52(%rbp), %rsi
	movl	$1, %edx
	callq	_WriteBuf
	movl	56(%r15), %esi
	movl	16(%r15), %ecx
	movl	32(%r15), %edx
	movl	(%r13), %r9d
	movl	4(%r13), %r8d
	movq	%r14, %rdi
	callq	_IkeHMac
	movl	16(%r15), %ecx
	movl	56(%r15), %edx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_BinToStrEx
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	callq	_Debug
	movl	16(%r15), %esi
	movl	56(%r15), %edi
	callq	_MemToBuf
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_SeekBufToEnd
	movq	48(%r15), %rsi
	movq	%r12, %rdi
	callq	_WriteBufBuf
	movl	40(%r15), %esi
	movq	%r12, %rdi
	callq	_WriteBufInt64
	movl	36(%r15), %esi
	movq	%r12, %rdi
	callq	_WriteBufInt64
	movl	$2, -52(%rbp)
	movq	%r12, %rdi
	leaq	-52(%rbp), %rsi
	movl	$1, %edx
	callq	_WriteBuf
	movl	16(%r15), %ecx
	movl	20(%r15), %esi
	movl	32(%r15), %edx
	movl	(%r12), %r9d
	movl	4(%r12), %r8d
	movq	%r14, %rdi
	callq	_IkeHMac
	movl	16(%r15), %ecx
	movl	20(%r15), %edx
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_BinToStrEx
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rsi
	callq	_Debug
	movq	24(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_IkeFreeKey
LBB0_6:
	movl	20(%r15), %esi
	movl	16(%r15), %edx
	movq	8(%r15), %rcx
	movl	(%r15), %r9d
	movl	4(%r15), %r8d
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_IkeNewCryptoKeyFromK
	movq	%rax, 24(%r15)
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_FreeBuf
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_FreeBuf
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_FreeBuf
	movq	%r13, %rdi
	callq	_FreeBuf
	movq	%r12, %rdi
	callq	_FreeBuf
	movq	-112(%rbp), %rbx                ## 8-byte Reload
LBB0_7:
	movq	%rbx, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SIZE,4,2                   ## @MAX_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ResponderRand: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"InitiatorRand: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"SKEYID: %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"SKEYID_d: %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"SKEYID_a: %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"SKEYID_e: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IkeCalcSaKeySet                ; -- Begin function IkeCalcSaKeySet
	.p2align	2
_IkeCalcSaKeySet:                       ; @IkeCalcSaKeySet
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x19, x1
	mov	x20, x0
	mov	x23, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	cbz	x0, LBB0_7
; %bb.1:
	cbz	x19, LBB0_7
; %bb.2:
	ldr	x25, [x19, #8]
	ldr	w0, [x19, #80]
	cbnz	x2, LBB0_4
; %bb.3:
	ldr	x2, [x20]
LBB0_4:
	mov	w1, #4
	bl	_StrCpy
	ldr	w0, [x19, #80]
	bl	_IkeStrToPassword
	mov	x26, x0
	ldr	x0, [x19, #72]
	bl	_CloneBuf
	mov	x24, x0
	bl	_SeekBufToEnd
	ldp	w3, w2, [x24]
	mov	x0, x22
	mov	x1, x21
	bl	_BinToStrEx
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_Debug
	ldr	x8, [x19, #64]
	ldp	w3, w2, [x8]
	mov	x0, x22
	mov	x1, x21
	bl	_BinToStrEx
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_Debug
	ldr	x1, [x19, #64]
	mov	x0, x24
	bl	_WriteBufBuf
	ldr	w1, [x19, #32]
	mov	x0, x25
	stur	x26, [x29, #-104]               ; 8-byte Folded Spill
	mov	x2, x26
	mov	x3, x24
	bl	_IkeHMacBuf
	ldr	w2, [x19, #32]
	ldr	w3, [x19, #16]
	mov	x0, x22
	mov	x1, x21
	bl	_BinToStrEx
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	bl	_Debug
	ldr	x0, [x19, #48]
	bl	_CloneBuf
	mov	x26, x0
	bl	_SeekBufToEnd
	ldr	w1, [x19, #40]
	mov	x0, x26
	bl	_WriteBufInt64
	ldr	w1, [x19, #36]
	mov	x0, x26
	bl	_WriteBufInt64
	stur	wzr, [x29, #-92]
	mov	w28, #1
	sub	x1, x29, #92
	mov	x0, x26
	mov	w2, #1
	bl	_WriteBuf
	ldr	w1, [x19, #60]
	ldr	w2, [x19, #32]
	ldr	w3, [x19, #16]
	ldp	w5, w4, [x26]
	mov	x0, x25
	bl	_IkeHMac
	ldr	w2, [x19, #60]
	ldr	w3, [x19, #16]
	mov	x0, x22
	mov	x1, x21
	bl	_BinToStrEx
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	bl	_Debug
	ldr	w0, [x19, #60]
	ldr	w1, [x19, #16]
	bl	_MemToBuf
	mov	x27, x0
	bl	_SeekBufToEnd
	ldr	x1, [x19, #48]
	mov	x0, x27
	bl	_WriteBufBuf
	ldr	w1, [x19, #40]
	mov	x0, x27
	bl	_WriteBufInt64
	ldr	w1, [x19, #36]
	mov	x0, x27
	bl	_WriteBufInt64
	stur	w28, [x29, #-92]
	sub	x1, x29, #92
	mov	x0, x27
	mov	w2, #1
	bl	_WriteBuf
	ldr	w1, [x19, #56]
	ldr	w2, [x19, #32]
	ldr	w3, [x19, #16]
	ldp	w5, w4, [x27]
	mov	x0, x25
	bl	_IkeHMac
	ldr	w2, [x19, #56]
	ldr	w3, [x19, #16]
	mov	x0, x22
	mov	x1, x21
	bl	_BinToStrEx
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x22
	bl	_Debug
	ldr	w0, [x19, #56]
	ldr	w1, [x19, #16]
	bl	_MemToBuf
	mov	x28, x0
	bl	_SeekBufToEnd
	ldr	x1, [x19, #48]
	mov	x0, x28
	bl	_WriteBufBuf
	ldr	w1, [x19, #40]
	mov	x0, x28
	bl	_WriteBufInt64
	ldr	w1, [x19, #36]
	mov	x0, x28
	bl	_WriteBufInt64
	mov	w8, #2
	stur	w8, [x29, #-92]
	sub	x1, x29, #92
	mov	x0, x28
	mov	w2, #1
	bl	_WriteBuf
	ldr	w2, [x19, #32]
	ldp	w3, w1, [x19, #16]
	ldp	w5, w4, [x28]
	mov	x0, x25
	bl	_IkeHMac
	ldp	w3, w2, [x19, #16]
	mov	x0, x22
	mov	x1, x21
	bl	_BinToStrEx
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x22
	bl	_Debug
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_IkeFreeKey
LBB0_6:
	ldp	w2, w1, [x19, #16]
	ldr	x3, [x19, #8]
	ldp	w5, w4, [x19]
	mov	x0, x20
	bl	_IkeNewCryptoKeyFromK
	str	x0, [x19, #24]
	ldur	x0, [x29, #-104]                ; 8-byte Folded Reload
	bl	_FreeBuf
	mov	x0, x24
	bl	_FreeBuf
	mov	x0, x26
	bl	_FreeBuf
	mov	x0, x27
	bl	_FreeBuf
	mov	x0, x28
	bl	_FreeBuf
LBB0_7:
	mov	sp, x23
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SIZE,4,2                   ; @MAX_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ResponderRand: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"InitiatorRand: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"SKEYID: %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"SKEYID_d: %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"SKEYID_a: %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"SKEYID_e: %s\n"

.subsections_via_symbols
