	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_eke_derive_ka              ## -- Begin function eap_eke_derive_ka
	.p2align	4, 0x90
_eap_eke_derive_ka:                     ## @eap_eke_derive_ka
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, %r12
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_os_strlen
	movq	%rax, %r13
	movslq	(%r14), %rax
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rbx), %rcx
	addq	%r13, %rcx
	leaq	(%rcx,%rax,2), %rbx
	movq	%rbx, %rdi
	callq	_os_malloc
	movq	%rax, %r12
	movl	$-1, %eax
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_os_memcpy
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %r15
	addq	%r13, %r15
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_os_memcpy
	addq	%rbx, %r15
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_os_memcpy
	addq	%rbx, %r15
	movslq	(%r14), %rdx
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_os_memcpy
	movslq	(%r14), %rdx
	addq	%rdx, %r15
	movq	%r15, %rdi
	movq	16(%rbp), %rsi
	callq	_os_memcpy
	movl	16(%r14), %edi
	movl	12(%r14), %esi
	movl	4(%r14), %edx
	movl	8(%r14), %r9d
	movl	%edx, (%rsp)
	movq	%r12, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_eap_eke_prfplus
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_os_free
	movl	$-1, %eax
	testq	%rbx, %rbx
	js	LBB0_3
## %bb.2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %ecx
	movl	8(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_hexdump_key
	xorl	%eax, %eax
LBB0_3:
	addq	$56, %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	"EAP-EKE Ka"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"EAP-EKE: Ka"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_eke_derive_ka              ; -- Begin function eap_eke_derive_ka
	.p2align	2
_eap_eke_derive_ka:                     ; @eap_eke_derive_ka
	.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, x6
	mov	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x26, x2
	mov	x27, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_os_strlen
	mov	x28, x0
	ldrsw	x8, [x19]
	add	x9, x24, x26
	add	x9, x9, x0
	add	x22, x9, x8, lsl #1
	mov	x0, x22
	bl	_os_malloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x28
	bl	_os_memcpy
	add	x28, x21, x28
	mov	x0, x28
	mov	x1, x27
	mov	x2, x26
	bl	_os_memcpy
	add	x26, x28, x26
	mov	x0, x26
	mov	x1, x25
	mov	x2, x24
	bl	_os_memcpy
	add	x24, x26, x24
	ldrsw	x2, [x19]
	mov	x0, x24
	mov	x1, x23
	bl	_os_memcpy
	ldrsw	x2, [x19]
	add	x0, x24, x2
	mov	x1, x20
	bl	_os_memcpy
	ldp	w1, w0, [x19, #12]
	ldp	w2, w5, [x19, #4]
	mov	x3, x21
	mov	x4, x22
	mov	x6, x2
	bl	_eap_eke_prfplus
	mov	x20, x0
	mov	x0, x21
	bl	_os_free
	tbnz	x20, #63, LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldp	w3, w2, [x19, #4]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_hexdump_key
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-EKE Ka"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"EAP-EKE: Ka"

.subsections_via_symbols
