	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_eke_derive_msk             ## -- Begin function eap_eke_derive_msk
	.p2align	4, 0x90
_eap_eke_derive_msk:                    ## @eap_eke_derive_msk
	.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	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EAP_MSK_LEN@GOTPCREL(%rip), %rcx
	movq	_EAP_EMSK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	(%rcx), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	callq	_os_strlen
	movq	%rax, %r15
	movslq	(%r14), %rax
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%r13), %rcx
	addq	%r15, %rcx
	leaq	(%rcx,%rax,2), %rdi
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movl	%r15d, %edx
	callq	_os_memcpy
	movq	%r12, %r13
	addq	%r15, %r13
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_os_memcpy
	addq	%rbx, %r13
	movq	%r13, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %edx
	callq	_os_memcpy
	addq	%rbx, %r13
	movl	(%r14), %edx
	movq	%r13, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_os_memcpy
	movslq	(%r14), %rdx
	addq	%rdx, %r13
	movq	%r13, %rdi
	movq	_EAP_EMSK_LEN@GOTPCREL(%rip), %r13
	movq	16(%rbp), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcpy
	movl	12(%r14), %edi
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	movl	(%r13), %eax
	movq	_EAP_MSK_LEN@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	subq	$8, %rsp
	movq	%r12, %rcx
	movq	-104(%rbp), %r8                 ## 8-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	pushq	%rax
	callq	_eap_eke_prfplus
	addq	$16, %rsp
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_os_free
	testq	%rbx, %rbx
	movl	$-1, %r14d
	js	LBB0_4
## %bb.3:
	movq	32(%rbp), %r14
	movq	24(%rbp), %r15
	movq	_EAP_MSK_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_os_memcpy
	movslq	(%r12), %rax
	movq	%rbx, %rsi
	addq	%rax, %rsi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_os_memcpy
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memset
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	(%r12), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	callq	_wpa_hexdump_key
	movl	(%rbx), %edi
	movl	(%r13), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	callq	_wpa_hexdump_key
	jmp	LBB0_4
LBB0_1:
	movl	$-1, %r14d
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-EKE Exported Keys"

	.comm	_EAP_MSK_LEN,4,2                ## @EAP_MSK_LEN
	.comm	_EAP_EMSK_LEN,4,2               ## @EAP_EMSK_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"EAP-EKE: MSK"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-EKE: EMSK"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_eke_derive_msk             ; -- Begin function eap_eke_derive_msk
	.p2align	2
_eap_eke_derive_msk:                    ; @eap_eke_derive_msk
	.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
	stp	x7, x5, [x29, #-112]            ; 16-byte Folded Spill
	stur	x6, [x29, #-96]                 ; 8-byte Folded Spill
	mov	x25, x4
	mov	x28, x3
	mov	x19, x2
	mov	x23, x1
	mov	x22, 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_MSK_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_MSK_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _EAP_EMSK_LEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EAP_EMSK_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	add	w20, w9, w8
	add	x8, x20, #15
	and	x8, x8, #0x1fffffff0
	mov	x9, x20
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x21, x9, x8
	mov	sp, x21
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_os_strlen
	mov	x24, x0
	ldrsw	x8, [x22]
	add	x9, x25, x19
	add	x9, x9, x0
	add	x27, x9, x8, lsl #1
	mov	x0, x27
	bl	_os_malloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x26, x0
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_os_memcpy
	add	x24, x26, x24
	mov	x0, x24
	mov	x1, x23
	mov	x2, x19
	bl	_os_memcpy
	add	x19, x24, x19
	mov	x0, x19
	mov	x1, x28
	mov	x2, x25
	bl	_os_memcpy
	add	x19, x19, x25
	ldr	w2, [x22]
	mov	x0, x19
	ldur	x1, [x29, #-104]                ; 8-byte Folded Reload
	bl	_os_memcpy
	ldrsw	x2, [x22]
	add	x0, x19, x2
	ldur	x1, [x29, #-96]                 ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_os_memcpy
	ldp	w1, w0, [x22, #8]
	ldr	w2, [x22, #4]
Lloh15:
	adrp	x24, _EAP_MSK_LEN@GOTPAGE
Lloh16:
	ldr	x24, [x24, _EAP_MSK_LEN@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh17:
	adrp	x23, _EAP_EMSK_LEN@GOTPAGE
Lloh18:
	ldr	x23, [x23, _EAP_EMSK_LEN@GOTPAGEOFF]
	ldr	w9, [x23]
	add	w6, w9, w8
	mov	x3, x26
	mov	x4, x27
	mov	x5, x21
	bl	_eap_eke_prfplus
	mov	x19, x0
	mov	x0, x26
	bl	_os_free
	tbnz	x19, #63, LBB0_3
; %bb.2:
	ldr	x19, [x29, #16]
	ldr	w2, [x24]
	ldur	x22, [x29, #-112]               ; 8-byte Folded Reload
	mov	x0, x22
	mov	x1, x21
	bl	_os_memcpy
	ldrsw	x8, [x24]
	add	x1, x21, x8
	ldr	w2, [x23]
	mov	x0, x19
	bl	_os_memcpy
	mov	x0, x21
	mov	w1, #0
	mov	x2, x20
	bl	_os_memset
Lloh19:
	adrp	x19, _MSG_DEBUG@GOTPAGE
Lloh20:
	ldr	x19, [x19, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x19]
	ldr	w3, [x24]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_wpa_hexdump_key
	ldr	w0, [x19]
	ldr	w3, [x23]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_wpa_hexdump_key
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	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_6:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-EKE Exported Keys"

	.comm	_EAP_MSK_LEN,4,2                ; @EAP_MSK_LEN
	.comm	_EAP_EMSK_LEN,4,2               ; @EAP_EMSK_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"EAP-EKE: MSK"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-EKE: EMSK"

.subsections_via_symbols
