	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_eke_derive_key             ## -- Begin function eap_eke_derive_key
	.p2align	4, 0x90
_eap_eke_derive_key:                    ## @eap_eke_derive_key
	.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
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EAP_EKE_MAX_HASH_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	(%r12), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_os_memset
	movl	8(%r12), %edi
	movq	(%r12), %rdx
	movq	%r14, %rsi
	movq	%r13, %rcx
	movq	%r15, %r8
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	$0
	callq	_eap_eke_prf
	addq	$16, %rsp
	movl	$-1, %ecx
	testq	%rax, %rax
	js	LBB0_5
## %bb.1:
	movq	16(%rbp), %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_hexdump_key
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r14,%rax), %r15
	movq	%r15, %rdi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_os_memcpy
	leaq	(,%r14,4), %rdi
	addq	%r13, %rdi
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	16(%rbp), %rdx
	callq	_os_memcpy
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_wpa_hexdump_ascii
	movl	8(%r12), %edi
	movq	(%r12), %rdx
	subq	$8, %rsp
	movq	%rbx, %rsi
	movq	%r13, %rcx
	movq	%r15, %r8
	movq	24(%rbp), %r15
	movq	%r15, %r9
	pushq	$16
	callq	_eap_eke_prfplus
	addq	$16, %rsp
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_os_free
	testq	%rbx, %rbx
	movl	$-1, %ecx
	js	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$16, %ecx
	movq	%r15, %rdx
	callq	_wpa_hexdump_key
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_2:
	movl	$-1, %ecx
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%ecx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_EKE_MAX_HASH_LEN,4,2       ## @EAP_EKE_MAX_HASH_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-EKE: temp = prf(0+, password)"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-EKE: ID_S | ID_P"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-EKE: key = prf+(temp, ID_S | ID_P)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_eke_derive_key             ; -- Begin function eap_eke_derive_key
	.p2align	2
_eap_eke_derive_key:                    ; @eap_eke_derive_key
	.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, #16
	mov	x19, x7
	mov	x21, x6
	mov	x22, x5
	mov	x23, x4
	mov	x25, x3
	mov	x26, x2
	mov	x27, x1
	mov	x20, x0
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, _EAP_EKE_MAX_HASH_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_EKE_MAX_HASH_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x28, x9, x12
	mov	sp, x28
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x24, x8, x12
	mov	sp, x24
	ldr	x2, [x0]
	mov	x0, x28
	mov	w1, #0
	bl	_os_memset
	ldr	w0, [x20, #8]
	ldr	x2, [x20]
	mov	x1, x28
	mov	x3, x27
	mov	x4, x26
	mov	x5, #0
	mov	w6, #0
	mov	x7, x24
	bl	_eap_eke_prf
	tbnz	x0, #63, LBB0_4
; %bb.1:
Lloh10:
	adrp	x28, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x28, [x28, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x28]
	ldr	x3, [x20]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_wpa_hexdump_key
	add	x27, x21, x23
	mov	x0, x27
	bl	_os_malloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x26, x0
	mov	x1, x25
	mov	x2, x23
	bl	_os_memcpy
	add	x0, x26, x23, lsl #2
	mov	x1, x22
	mov	x2, x21
	bl	_os_memcpy
	ldr	w0, [x28]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x26
	mov	x3, x27
	bl	_wpa_hexdump_ascii
	ldr	w0, [x20, #8]
	ldr	x2, [x20]
	mov	x1, x24
	mov	x3, x26
	mov	x4, x27
	mov	x5, x19
	mov	w6, #16
	bl	_eap_eke_prfplus
	mov	x20, x0
	mov	x0, x26
	bl	_os_free
	tbnz	x20, #63, LBB0_4
; %bb.3:
	ldr	w0, [x28]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	mov	w3, #16
	bl	_wpa_hexdump_key
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	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_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_EKE_MAX_HASH_LEN,4,2       ; @EAP_EKE_MAX_HASH_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-EKE: temp = prf(0+, password)"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-EKE: ID_S | ID_P"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-EKE: key = prf+(temp, ID_S | ID_P)"

.subsections_via_symbols
