	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_tls_getKey
_eap_tls_getKey:                        ## @eap_tls_getKey
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EAP_TYPE_TLS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	(%rsi), %rax
	movq	_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	%rdx, %r14
	movq	8(%rsi), %rax
	addq	$8, %rsi
	xorl	%r8d, %r8d
	testq	%rax, %rax
	setne	%r8b
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str(%rip), %rdx
	cmoveq	%rcx, %rdx
	leaq	-36(%rbp), %rcx
	cmoveq	%rax, %rcx
	movq	_EAP_TLS_KEY_LEN@GOTPCREL(%rip), %r12
	movq	_EAP_EMSK_LEN@GOTPCREL(%rip), %r15
	movq	(%r15), %r9
	addq	(%r12), %r9
	callq	_eap_server_tls_derive_key
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rbx
	movq	(%r12), %rax
	movq	%rax, (%r14)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rcx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_hexdump
	movq	(%r12), %rax
	leaq	(%rbx,%rax,4), %rdi
	movq	(%r15), %rdx
	xorl	%esi, %esi
	callq	_os_memset
	jmp	LBB0_5
LBB0_3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_TYPE_TLS,4,2               ## @EAP_TYPE_TLS
	.comm	_SUCCESS,8,3                    ## @SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EXPORTER_EAP_TLS_Key_Material"

L_.str.1:                               ## @.str.1
	.asciz	"client EAP encryption"

	.comm	_EAP_TLS_KEY_LEN,8,3            ## @EAP_TLS_KEY_LEN
	.comm	_EAP_EMSK_LEN,8,3               ## @EAP_EMSK_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"EAP-TLS: Derived key"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-TLS: Failed to derive key"

	.no_dead_strip	_eap_tls_getKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_tls_getKey
_eap_tls_getKey:                        ; @eap_tls_getKey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _EAP_TYPE_TLS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAP_TYPE_TLS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	x8, [x1]
Lloh3:
	adrp	x9, _SUCCESS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x2
	ldr	x8, [x1, #8]!
Lloh6:
	adrp	x9, l_.str@PAGE
Lloh7:
	add	x9, x9, l_.str@PAGEOFF
Lloh8:
	adrp	x10, l_.str.1@PAGE
Lloh9:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x8, #0
	csel	x2, x10, x9, eq
	cset	w4, ne
	add	x8, sp, #12
Lloh10:
	adrp	x21, _EAP_TLS_KEY_LEN@GOTPAGE
Lloh11:
	ldr	x21, [x21, _EAP_TLS_KEY_LEN@GOTPAGEOFF]
	csel	x3, xzr, x8, eq
	ldr	x8, [x21]
Lloh12:
	adrp	x22, _EAP_EMSK_LEN@GOTPAGE
Lloh13:
	ldr	x22, [x22, _EAP_EMSK_LEN@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x5, x9, x8
	bl	_eap_server_tls_derive_key
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x21]
	str	x8, [x19]
Lloh14:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	x3, [x21]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_wpa_hexdump
	ldr	x8, [x21]
	add	x0, x20, x8, lsl #2
	ldr	x2, [x22]
	mov	w1, #0
	bl	_os_memset
	b	LBB0_5
LBB0_3:
	mov	x20, #0
	b	LBB0_5
LBB0_4:
Lloh19:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_TYPE_TLS,4,2               ; @EAP_TYPE_TLS
	.comm	_SUCCESS,8,3                    ; @SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EXPORTER_EAP_TLS_Key_Material"

l_.str.1:                               ; @.str.1
	.asciz	"client EAP encryption"

	.comm	_EAP_TLS_KEY_LEN,8,3            ; @EAP_TLS_KEY_LEN
	.comm	_EAP_EMSK_LEN,8,3               ; @EAP_EMSK_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"EAP-TLS: Derived key"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-TLS: Failed to derive key"

	.no_dead_strip	_eap_tls_getKey
.subsections_via_symbols
