	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_sim_derive_mk              ## -- Begin function eap_sim_derive_mk
	.p2align	4, 0x90
_eap_sim_derive_mk:                     ## @eap_sim_derive_mk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$112, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	32(%rbp), %r14
	movslq	16(%rbp), %rax
	movq	24(%rbp), %r10
	movq	___stack_chk_guard@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rbx
	movq	%rbx, -24(%rbp)
	movq	%rdi, -64(%rbp)
	movq	%rsi, -112(%rbp)
	movq	%r10, -56(%rbp)
	movq	_EAP_SIM_KC_LEN@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rsi
	imulq	%rax, %rsi
	movq	%rsi, -104(%rbp)
	movq	%rdx, -48(%rbp)
	movq	_EAP_SIM_NONCE_MT_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)
	movq	%r8, -40(%rbp)
	movq	%r9, -88(%rbp)
	leaq	-114(%rbp), %rdi
	movq	%rdi, -32(%rbp)
	movq	$2, -80(%rbp)
	movl	%ecx, %esi
	callq	_WPA_PUT_BE16
	leaq	-64(%rbp), %rsi
	leaq	-112(%rbp), %rdx
	movl	$5, %edi
	movq	%r14, %rcx
	callq	_sha1_vector
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_SIM_MK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_wpa_hexdump_key
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$112, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_SIM_KC_LEN,4,2             ## @EAP_SIM_KC_LEN
	.comm	_EAP_SIM_NONCE_MT_LEN,8,3       ## @EAP_SIM_NONCE_MT_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-SIM: MK"

	.comm	_EAP_SIM_MK_LEN,4,2             ## @EAP_SIM_MK_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_sim_derive_mk              ; -- Begin function eap_sim_derive_mk
	.p2align	2
_eap_sim_derive_mk:                     ; @eap_sim_derive_mk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w6 killed $w6 def $x6
	ldr	x19, [x29, #16]
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	stp	x0, x7, [sp, #48]
Lloh3:
	adrp	x8, _EAP_SIM_KC_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_SIM_KC_LEN@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	sxtw	x9, w6
	mul	x8, x8, x9
	stp	x1, x8, [sp, #8]
Lloh6:
	adrp	x8, _EAP_SIM_NONCE_MT_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAP_SIM_NONCE_MT_LEN@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	stp	x2, x4, [sp, #64]
	stp	x8, x5, [sp, #24]
	add	x8, sp, #6
	str	x8, [sp, #80]
	mov	w8, #2
	str	x8, [sp, #40]
	add	x0, sp, #6
	mov	x1, x3
	bl	_WPA_PUT_BE16
	add	x1, sp, #48
	add	x2, sp, #8
	mov	w0, #5
	mov	x3, x19
	bl	_sha1_vector
Lloh9:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _EAP_SIM_MK_LEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EAP_SIM_MK_LEN@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_wpa_hexdump_key
	ldur	x8, [x29, #-24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_SIM_KC_LEN,4,2             ; @EAP_SIM_KC_LEN
	.comm	_EAP_SIM_NONCE_MT_LEN,8,3       ; @EAP_SIM_NONCE_MT_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-SIM: MK"

	.comm	_EAP_SIM_MK_LEN,4,2             ; @EAP_SIM_MK_LEN
.subsections_via_symbols
