	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_teap_derive_key_auth
_eap_teap_derive_key_auth:              ## @eap_teap_derive_key_auth
	.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
	movl	(%rdi), %edi
	movl	8(%rsi), %r9d
	movl	16(%rsi), %esi
	movq	_TEAP_TLS_EXPORTER_LABEL_SKS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EAP_TEAP_SIMCK_LEN@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, (%rsp)
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_tls_connection_export_key
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	movl	(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_wpa_hexdump_key
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movl	(%r15), %edx
	callq	_os_memcpy
	movq	$0, (%rbx)
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TEAP_TLS_EXPORTER_LABEL_SKS,4,2 ## @TEAP_TLS_EXPORTER_LABEL_SKS
	.comm	_EAP_TEAP_SIMCK_LEN,4,2         ## @EAP_TEAP_SIMCK_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TEAP: session_key_seed (S-IMCK[0])"

	.no_dead_strip	_eap_teap_derive_key_auth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_teap_derive_key_auth
_eap_teap_derive_key_auth:              ; @eap_teap_derive_key_auth
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _TEAP_TLS_EXPORTER_LABEL_SKS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEAP_TLS_EXPORTER_LABEL_SKS@GOTPAGEOFF]
	ldr	w1, [x1, #16]
Lloh2:
	ldr	w2, [x8]
	ldr	w5, [x19, #8]
Lloh3:
	adrp	x21, _EAP_TEAP_SIMCK_LEN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _EAP_TEAP_SIMCK_LEN@GOTPAGEOFF]
	ldr	w6, [x21]
	mov	x3, #0
	mov	w4, #0
	bl	_tls_connection_export_key
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
	ldr	w3, [x21]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_hexdump_key
	ldp	w1, w0, [x19, #8]
	ldr	w2, [x21]
	bl	_os_memcpy
	str	xzr, [x19]
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TEAP_TLS_EXPORTER_LABEL_SKS,4,2 ; @TEAP_TLS_EXPORTER_LABEL_SKS
	.comm	_EAP_TEAP_SIMCK_LEN,4,2         ; @EAP_TEAP_SIMCK_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TEAP: session_key_seed (S-IMCK[0])"

	.no_dead_strip	_eap_teap_derive_key_auth
.subsections_via_symbols
