	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ikev2_derive_sk_keys           ## -- Begin function ikev2_derive_sk_keys
	.p2align	4, 0x90
_ikev2_derive_sk_keys:                  ## @ikev2_derive_sk_keys
	.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
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rbp), %r13
	movq	%r13, %rdi
	callq	_ikev2_free_keys
	movl	(%r14), %eax
	movl	%eax, (%r13)
	movl	(%rbx), %ecx
	movl	%ecx, 4(%r13)
	movl	(%r12), %edx
	movl	%edx, 8(%r13)
	movq	%r13, %rbx
	movl	%eax, 12(%r13)
	addl	%eax, %ecx
	addl	%edx, %ecx
	leal	(%rax,%rcx,2), %eax
	movslq	%eax, %r12
	movq	%r12, %rdi
	callq	_os_malloc
	movq	%rax, %r13
	movl	$-1, %eax
	testq	%r13, %r13
	je	LBB0_20
## %bb.1:
	movl	4(%r14), %edx
	movl	8(%r14), %edi
	movq	%r12, (%rsp)
	movq	%r15, %rsi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, %r9
	callq	_ikev2_prf_plus
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	callq	_os_free
LBB0_19:
	movl	$-1, %eax
	jmp	LBB0_20
LBB0_3:
	movq	%rbx, %r14
	movslq	(%rbx), %rdi
	callq	_os_malloc
	movq	%rax, 64(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movslq	(%r14), %rdx
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_os_memcpy
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	64(%r14), %rdx
	movslq	(%r14), %rcx
	leaq	L_.str(%rip), %rsi
	callq	_wpa_hexdump_key
LBB0_5:
	movslq	(%r14), %rax
	leaq	(,%rax,4), %rbx
	addq	%r13, %rbx
	movslq	4(%r14), %rdi
	callq	_os_malloc
	movq	%rax, 56(%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movslq	4(%r14), %rdx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_os_memcpy
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	56(%r14), %rdx
	movslq	4(%r14), %rcx
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_hexdump_key
LBB0_7:
	movslq	4(%r14), %rdi
	leaq	(%rbx,%rdi,4), %rbx
	callq	_os_malloc
	movq	%rax, 48(%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movslq	4(%r14), %rdx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_os_memcpy
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	48(%r14), %rdx
	movslq	4(%r14), %rcx
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_hexdump_key
LBB0_9:
	movslq	4(%r14), %rax
	leaq	(%rbx,%rax,4), %rbx
	movslq	8(%r14), %rdi
	callq	_os_malloc
	movq	%rax, 40(%r14)
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movslq	8(%r14), %rdx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_os_memcpy
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	40(%r14), %rdx
	movslq	8(%r14), %rcx
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_hexdump_key
LBB0_11:
	movslq	8(%r14), %rdi
	leaq	(%rbx,%rdi,4), %rbx
	callq	_os_malloc
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movslq	8(%r14), %rdx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_os_memcpy
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	32(%r14), %rdx
	movslq	8(%r14), %rcx
	leaq	L_.str.4(%rip), %rsi
	callq	_wpa_hexdump_key
LBB0_13:
	movslq	8(%r14), %rax
	leaq	(%rbx,%rax,4), %r15
	movslq	12(%r14), %rdi
	callq	_os_malloc
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movslq	12(%r14), %rdx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_os_memcpy
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%r14), %rdx
	movslq	12(%r14), %rcx
	leaq	L_.str.5(%rip), %rsi
	callq	_wpa_hexdump_key
LBB0_15:
	movslq	12(%r14), %rbx
	movq	%rbx, %rdi
	callq	_os_malloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	(%r15,%rbx,4), %rsi
	movslq	12(%r14), %rdx
	movq	%rax, %rdi
	callq	_os_memcpy
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r14), %rdx
	movslq	12(%r14), %rcx
	leaq	L_.str.6(%rip), %rsi
	callq	_wpa_hexdump_key
LBB0_17:
	movq	%r13, %rdi
	callq	_os_free
	movq	%r14, %rdi
	callq	_ikev2_keys_set
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_18
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%r14, %rdi
	callq	_ikev2_free_keys
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IKEV2: SK_d"

L_.str.1:                               ## @.str.1
	.asciz	"IKEV2: SK_ai"

L_.str.2:                               ## @.str.2
	.asciz	"IKEV2: SK_ar"

L_.str.3:                               ## @.str.3
	.asciz	"IKEV2: SK_ei"

L_.str.4:                               ## @.str.4
	.asciz	"IKEV2: SK_er"

L_.str.5:                               ## @.str.5
	.asciz	"IKEV2: SK_pi"

L_.str.6:                               ## @.str.6
	.asciz	"IKEV2: SK_pr"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ikev2_derive_sk_keys           ; -- Begin function ikev2_derive_sk_keys
	.p2align	2
_ikev2_derive_sk_keys:                  ; @ikev2_derive_sk_keys
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x20, x2
	mov	x25, x1
	mov	x24, x0
	mov	x0, x6
	bl	_ikev2_free_keys
	ldr	w8, [x24]
	ldr	w9, [x25]
	stp	w8, w9, [x19]
	ldr	w10, [x20]
	stp	w10, w8, [x19, #8]
	add	w9, w9, w8
	add	w9, w9, w10
	add	w8, w8, w9, lsl #1
	sxtw	x25, w8
	mov	x0, x25
	bl	_os_malloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldp	w2, w0, [x24, #4]
	mov	x1, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	mov	x6, x25
	bl	_ikev2_prf_plus
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_os_free
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldrsw	x0, [x19]
	bl	_os_malloc
	str	x0, [x19, #64]
Lloh0:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.6:
	ldrsw	x2, [x19]
	mov	x1, x20
	bl	_os_memcpy
	ldr	w0, [x23]
	ldr	x2, [x19, #64]
	ldrsw	x3, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_hexdump_key
LBB0_7:
	ldpsw	x8, x0, [x19]
	add	x21, x20, x8, lsl #2
	bl	_os_malloc
	str	x0, [x19, #56]
	cbz	x0, LBB0_9
; %bb.8:
	ldrsw	x2, [x19, #4]
	mov	x1, x21
	bl	_os_memcpy
	ldr	w0, [x23]
	ldr	x2, [x19, #56]
	ldrsw	x3, [x19, #4]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_hexdump_key
LBB0_9:
	ldrsw	x0, [x19, #4]
	add	x21, x21, x0, lsl #2
	bl	_os_malloc
	str	x0, [x19, #48]
	cbz	x0, LBB0_11
; %bb.10:
	ldrsw	x2, [x19, #4]
	mov	x1, x21
	bl	_os_memcpy
	ldr	w0, [x23]
	ldr	x2, [x19, #48]
	ldrsw	x3, [x19, #4]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_hexdump_key
LBB0_11:
	ldpsw	x8, x0, [x19, #4]
	add	x21, x21, x8, lsl #2
	bl	_os_malloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_13
; %bb.12:
	ldrsw	x2, [x19, #8]
	mov	x1, x21
	bl	_os_memcpy
	ldr	w0, [x23]
	ldr	x2, [x19, #40]
	ldrsw	x3, [x19, #8]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_hexdump_key
LBB0_13:
	ldrsw	x0, [x19, #8]
	add	x21, x21, x0, lsl #2
	bl	_os_malloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_15
; %bb.14:
	ldrsw	x2, [x19, #8]
	mov	x1, x21
	bl	_os_memcpy
	ldr	w0, [x23]
	ldr	x2, [x19, #32]
	ldrsw	x3, [x19, #8]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_hexdump_key
LBB0_15:
	ldpsw	x8, x0, [x19, #8]
	add	x21, x21, x8, lsl #2
	bl	_os_malloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_17
; %bb.16:
	ldrsw	x2, [x19, #12]
	mov	x1, x21
	bl	_os_memcpy
	ldr	w0, [x23]
	ldr	x2, [x19, #24]
	ldrsw	x3, [x19, #12]
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_hexdump_key
LBB0_17:
	ldrsw	x22, [x19, #12]
	mov	x0, x22
	bl	_os_malloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_19
; %bb.18:
	add	x1, x21, x22, lsl #2
	ldrsw	x2, [x19, #12]
	bl	_os_memcpy
	ldr	w0, [x23]
	ldr	x2, [x19, #16]
	ldrsw	x3, [x19, #12]
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_hexdump_key
LBB0_19:
	mov	x0, x20
	bl	_os_free
	mov	x0, x19
	bl	_ikev2_keys_set
	cbz	w0, LBB0_21
; %bb.20:
	mov	w0, #0
	b	LBB0_4
LBB0_21:
	mov	x0, x19
	bl	_ikev2_free_keys
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IKEV2: SK_d"

l_.str.1:                               ; @.str.1
	.asciz	"IKEV2: SK_ai"

l_.str.2:                               ; @.str.2
	.asciz	"IKEV2: SK_ar"

l_.str.3:                               ; @.str.3
	.asciz	"IKEV2: SK_ei"

l_.str.4:                               ; @.str.4
	.asciz	"IKEV2: SK_er"

l_.str.5:                               ; @.str.5
	.asciz	"IKEV2: SK_pi"

l_.str.6:                               ; @.str.6
	.asciz	"IKEV2: SK_pr"

.subsections_via_symbols
