	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_ikev2_derive_keymat        ## -- Begin function eap_ikev2_derive_keymat
	.p2align	4, 0x90
_eap_ikev2_derive_keymat:               ## @eap_ikev2_derive_keymat
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %eax
	testq	%r8, %r8
	je	LBB0_7
## %bb.1:
	movq	%rdx, %r15
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.2:
	movq	%rsi, %r14
	cmpq	$0, 8(%rsi)
	je	LBB0_7
## %bb.3:
	movq	%r8, %r13
	movq	%rcx, %r12
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	leaq	(%r9,%rcx), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_os_memcpy
	leaq	(%rbx,%r12,4), %rdi
	movq	%r13, %rsi
	movq	16(%rbp), %r13
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_os_memcpy
	movq	8(%r14), %rsi
	movl	(%r14), %edx
	movq	_EAP_MSK_LEN@GOTPCREL(%rip), %r15
	movq	_EAP_EMSK_LEN@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	addq	(%r15), %rax
	movq	%rax, (%rsp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, %r9
	callq	_ikev2_prf_plus
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_os_free
	testq	%r14, %r14
	movl	$-1, %eax
	jne	LBB0_7
## %bb.6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rcx
	addq	(%r15), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	callq	_wpa_hexdump_key
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_4:
	movl	$-1, %eax
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_MSK_LEN,8,3                ## @EAP_MSK_LEN
	.comm	_EAP_EMSK_LEN,8,3               ## @EAP_EMSK_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-IKEV2: KEYMAT"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_ikev2_derive_keymat        ; -- Begin function eap_ikev2_derive_keymat
	.p2align	2
_eap_ikev2_derive_keymat:               ; @eap_ikev2_derive_keymat
	.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
	mov	x20, x0
	mov	w0, #-1
	cbz	x4, LBB0_7
; %bb.1:
	mov	x27, x2
	cbz	x2, LBB0_7
; %bb.2:
	mov	x21, x1
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_7
; %bb.3:
	mov	x19, x6
	mov	x22, x5
	mov	x24, x4
	mov	x26, x3
	add	x25, x5, x3
	mov	x0, x25
	bl	_os_malloc
	cbz	x0, LBB0_5
; %bb.4:
	mov	x23, x0
	mov	x1, x27
	mov	x2, x26
	bl	_os_memcpy
	add	x0, x23, x26, lsl #2
	mov	x1, x24
	mov	x2, x22
	bl	_os_memcpy
	ldr	x1, [x21, #8]
Lloh0:
	adrp	x22, _EAP_MSK_LEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EAP_MSK_LEN@GOTPAGEOFF]
	ldr	w2, [x21]
	ldr	x8, [x22]
Lloh2:
	adrp	x21, _EAP_EMSK_LEN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _EAP_EMSK_LEN@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x6, x9, x8
	mov	x0, x20
	mov	x3, x23
	mov	x4, x25
	mov	x5, x19
	bl	_ikev2_prf_plus
	mov	x20, x0
	mov	x0, x23
	bl	_os_free
	cbz	x20, LBB0_6
LBB0_5:
	mov	w0, #-1
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	x8, [x22]
	ldr	x9, [x21]
	add	x3, x9, x8
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_wpa_hexdump_key
	mov	w0, #0
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_MSK_LEN,8,3                ; @EAP_MSK_LEN
	.comm	_EAP_EMSK_LEN,8,3               ; @EAP_EMSK_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-IKEV2: KEYMAT"

.subsections_via_symbols
