	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_teap_derive_eap_emsk       ## -- Begin function eap_teap_derive_eap_emsk
	.p2align	4, 0x90
_eap_teap_derive_eap_emsk:              ## @eap_teap_derive_eap_emsk
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_EAP_TEAP_SIMCK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EAP_EMSK_LEN@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	xorl	%r14d, %r14d
	xorl	%r8d, %r8d
	movq	%rbx, %r9
	callq	_eap_teap_tls_prf
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_hexdump_key
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_TEAP_SIMCK_LEN,4,2         ## @EAP_TEAP_SIMCK_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Extended Session Key Generating Function"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_EAP_EMSK_LEN,4,2               ## @EAP_EMSK_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"EAP-TEAP: Derived key (EMSK)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_teap_derive_eap_emsk       ; -- Begin function eap_teap_derive_eap_emsk
	.p2align	2
_eap_teap_derive_eap_emsk:              ; @eap_teap_derive_eap_emsk
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _EAP_TEAP_SIMCK_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAP_TEAP_SIMCK_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x20, _EAP_EMSK_LEN@GOTPAGE
Lloh4:
	ldr	x20, [x20, _EAP_EMSK_LEN@GOTPAGEOFF]
	ldr	w6, [x20]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
Lloh7:
	adrp	x3, l_.str.1@PAGE
Lloh8:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w4, #0
	mov	x5, x19
	bl	_eap_teap_tls_prf
	tbnz	x0, #63, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w3, [x20]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_wpa_hexdump_key
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_TEAP_SIMCK_LEN,4,2         ; @EAP_TEAP_SIMCK_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Extended Session Key Generating Function"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_EAP_EMSK_LEN,4,2               ; @EAP_EMSK_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"EAP-TEAP: Derived key (EMSK)"

.subsections_via_symbols
