	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_ttls_v0_derive_key
_eap_ttls_v0_derive_key:                ## @eap_ttls_v0_derive_key
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_eap_ttls_free_key
	leaq	16(%rbx), %r15
	movq	_EAP_TLS_KEY_LEN@GOTPCREL(%rip), %r12
	movq	_EAP_EMSK_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	addq	(%r12), %r9
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_eap_peer_tls_derive_key
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	(%r12), %rcx
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdx
	callq	_wpa_hexdump_key
	movl	(%r13), %edi
	movq	(%r12), %rdx
	addq	24(%rbx), %rdx
	movq	_EAP_EMSK_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_hexdump_key
	movq	8(%rbx), %rdi
	callq	_os_free
	movq	_EAP_TYPE_TTLS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rcx
	callq	_eap_peer_tls_derive_session_id
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rbx), %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	%rax, %rdx
	callq	_wpa_hexdump
	jmp	LBB0_5
LBB0_1:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movl	$-1, %eax
	jmp	LBB0_6
LBB0_4:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_wpa_printf
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ttls keying material"

	.comm	_EAP_TLS_KEY_LEN,8,3            ## @EAP_TLS_KEY_LEN
	.comm	_EAP_EMSK_LEN,8,3               ## @EAP_EMSK_LEN
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TTLS: Failed to derive key"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"EAP-TTLS: Derived key"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-TTLS: Derived EMSK"

	.comm	_EAP_TYPE_TTLS,4,2              ## @EAP_TYPE_TTLS
L_.str.4:                               ## @.str.4
	.asciz	"EAP-TTLS: Derived Session-Id"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.5:                               ## @.str.5
	.asciz	"EAP-TTLS: Failed to derive Session-Id"

	.no_dead_strip	_eap_ttls_v0_derive_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_ttls_v0_derive_key
_eap_ttls_v0_derive_key:                ; @eap_ttls_v0_derive_key
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_eap_ttls_free_key
Lloh0:
	adrp	x23, _EAP_TLS_KEY_LEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EAP_TLS_KEY_LEN@GOTPAGEOFF]
	add	x21, x19, #16
	ldr	x8, [x23]
Lloh2:
	adrp	x24, _EAP_EMSK_LEN@GOTPAGE
Lloh3:
	ldr	x24, [x24, _EAP_EMSK_LEN@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x5, x9, x8
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x3, #0
	mov	w4, #0
	bl	_eap_peer_tls_derive_key
	str	x0, [x19, #24]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x2, x0
Lloh6:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	x3, [x23]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_hexdump_key
	ldr	w0, [x22]
	ldr	x8, [x19, #24]
	ldr	x9, [x23]
	add	x2, x9, x8
	ldr	x3, [x24]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_hexdump_key
	ldr	x0, [x19, #8]
	bl	_os_free
Lloh12:
	adrp	x8, _EAP_TYPE_TTLS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EAP_TYPE_TTLS@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	bl	_eap_peer_tls_derive_session_id
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x2, x0
	ldr	w0, [x22]
	ldr	w3, [x19]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_hexdump
	b	LBB0_5
LBB0_3:
Lloh17:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_6
LBB0_4:
Lloh22:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ttls keying material"

	.comm	_EAP_TLS_KEY_LEN,8,3            ; @EAP_TLS_KEY_LEN
	.comm	_EAP_EMSK_LEN,8,3               ; @EAP_EMSK_LEN
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TTLS: Failed to derive key"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"EAP-TTLS: Derived key"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-TTLS: Derived EMSK"

	.comm	_EAP_TYPE_TTLS,4,2              ; @EAP_TYPE_TTLS
l_.str.4:                               ; @.str.4
	.asciz	"EAP-TTLS: Derived Session-Id"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.5:                               ; @.str.5
	.asciz	"EAP-TTLS: Failed to derive Session-Id"

	.no_dead_strip	_eap_ttls_v0_derive_key
.subsections_via_symbols
