	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_peap_derive_cmk
_eap_peap_derive_cmk:                   ## @eap_peap_derive_cmk
	.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
	subq	$376, %rsp                      ## imm = 0x178
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	20(%rsi), %rbx
	movq	_EAP_TLS_KEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_eap_server_tls_derive_key
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r13
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	movl	$60, %ecx
	callq	_wpa_hexdump_key
	movl	(%r12), %edi
	movl	(%rbx), %esi
	callq	_tls_connection_resumed
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	8(%r14), %rdi
	movq	%r13, %rsi
	movl	$40, %edx
	callq	_os_memcpy
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	8(%r14), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	$40, %ecx
	callq	_wpa_hexdump_key
	movq	(%r14), %rdi
	movq	%r13, %rsi
	addq	$160, %rsi
	movl	$20, %edx
	callq	_os_memcpy
	movl	(%rbx), %edi
	movq	(%r14), %rdx
	leaq	L_.str.3(%rip), %rsi
	movl	$20, %ecx
	callq	_wpa_hexdump_key
	movq	%r13, %rdi
	callq	_os_free
	jmp	LBB0_6
LBB0_3:
	leaq	-176(%rbp), %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$128, %edx
	callq	_eap_peap_get_isk
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdx
	movl	$128, %ecx
	callq	_wpa_hexdump_key
	movl	(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdx
	movl	$40, %ecx
	callq	_wpa_hexdump_key
	movl	16(%r14), %edi
	leaq	-416(%rbp), %rax
	leaq	L_.str.6(%rip), %rcx
	movq	%r13, %rsi
	movl	$40, %edx
	movq	%r12, %r8
	movl	$128, %r9d
	pushq	$240
	pushq	%rax
	callq	_peap_prfplus
	addq	$16, %rsp
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	$128, %esi
	callq	_forced_memzero
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	leaq	-416(%rbp), %r15
	movq	%r15, %rdx
	movl	$240, %ecx
	callq	_wpa_hexdump_key
	movq	%r13, %rdi
	callq	_os_free
	movq	8(%r14), %rdi
	movq	%r15, %rsi
	movl	$40, %edx
	callq	_os_memcpy
	movl	(%rbx), %edi
	movq	8(%r14), %rdx
	leaq	L_.str.8(%rip), %rsi
	movl	$40, %ecx
	callq	_wpa_hexdump_key
	movq	(%r14), %rdi
	leaq	-256(%rbp), %rsi
	movl	$20, %edx
	callq	_os_memcpy
	movl	(%rbx), %edi
	movq	(%r14), %rdx
	leaq	L_.str.9(%rip), %rsi
	movl	$20, %ecx
	callq	_wpa_hexdump_key
	movq	%r15, %rdi
	movl	$240, %esi
	callq	_forced_memzero
LBB0_6:
	xorl	%r15d, %r15d
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%r15d, %eax
	addq	$376, %rsp                      ## imm = 0x178
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r13, %rdi
	callq	_os_free
	jmp	LBB0_7
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"client EAP encryption"

	.comm	_EAP_TLS_KEY_LEN,4,2            ## @EAP_TLS_KEY_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"EAP-PEAP: TK"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-PEAP: IPMK from TK"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-PEAP: CMK from TK"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-PEAP: ISK"

L_.str.5:                               ## @.str.5
	.asciz	"EAP-PEAP: TempKey"

L_.str.6:                               ## @.str.6
	.asciz	"Inner Methods Compound Keys"

L_.str.7:                               ## @.str.7
	.asciz	"EAP-PEAP: IMCK (IPMKj)"

L_.str.8:                               ## @.str.8
	.asciz	"EAP-PEAP: IPMK (S-IPMKj)"

L_.str.9:                               ## @.str.9
	.asciz	"EAP-PEAP: CMK (CMKj)"

	.no_dead_strip	_eap_peap_derive_cmk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_peap_derive_cmk
_eap_peap_derive_cmk:                   ; @eap_peap_derive_cmk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #448
	.cfi_def_cfa_offset 448
	stp	x24, x23, [sp, #384]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #400]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #416]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #432]            ; 16-byte Folded Spill
	add	x29, sp, #432
	.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	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x22, x1, #20
Lloh3:
	adrp	x8, _EAP_TLS_KEY_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_TLS_KEY_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x22
	mov	x3, #0
	mov	w4, #0
	bl	_eap_server_tls_derive_key
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh8:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	mov	w3, #60
	bl	_wpa_hexdump_key
	ldr	w0, [x21]
	ldr	w1, [x22]
	bl	_tls_connection_resumed
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x19, #8]
	mov	x1, x20
	mov	w2, #40
	bl	_os_memcpy
	ldr	w0, [x23]
	ldr	x2, [x19, #8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w3, #40
	bl	_wpa_hexdump_key
	ldr	x0, [x19]
	add	x1, x20, #160
	mov	w2, #20
	bl	_os_memcpy
	ldr	w0, [x23]
	ldr	x2, [x19]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w3, #20
	bl	_wpa_hexdump_key
	mov	x0, x20
	bl	_os_free
	b	LBB0_6
LBB0_3:
	mov	w0, #-1
	b	LBB0_7
LBB0_4:
	sub	x1, x29, #184
	mov	x0, x19
	mov	w2, #128
	bl	_eap_peap_get_isk
	ldr	w0, [x23]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	sub	x2, x29, #184
	mov	w3, #128
	bl	_wpa_hexdump_key
	ldr	w0, [x23]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x20
	mov	w3, #40
	bl	_wpa_hexdump_key
	ldr	w0, [x19, #16]
Lloh20:
	adrp	x3, l_.str.6@PAGE
Lloh21:
	add	x3, x3, l_.str.6@PAGEOFF
	add	x22, sp, #8
	sub	x4, x29, #184
	add	x6, sp, #8
	mov	x1, x20
	mov	w2, #40
	mov	w5, #128
	mov	w7, #240
	bl	_peap_prfplus
	mov	x21, x0
	sub	x0, x29, #184
	mov	w1, #128
	bl	_forced_memzero
	tbnz	w21, #31, LBB0_9
; %bb.5:
	ldr	w0, [x23]
Lloh22:
	adrp	x1, l_.str.7@PAGE
Lloh23:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x2, sp, #8
	mov	w3, #240
	bl	_wpa_hexdump_key
	mov	x0, x20
	bl	_os_free
	ldr	x0, [x19, #8]
	add	x1, sp, #8
	mov	w2, #40
	bl	_os_memcpy
	ldr	w0, [x23]
	ldr	x2, [x19, #8]
Lloh24:
	adrp	x1, l_.str.8@PAGE
Lloh25:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w3, #40
	bl	_wpa_hexdump_key
	ldr	x0, [x19]
	add	x1, x22, #160
	mov	w2, #20
	bl	_os_memcpy
	ldr	w0, [x23]
	ldr	x2, [x19]
Lloh26:
	adrp	x1, l_.str.9@PAGE
Lloh27:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w3, #20
	bl	_wpa_hexdump_key
	add	x0, sp, #8
	mov	w1, #240
	bl	_forced_memzero
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.8:
	ldp	x29, x30, [sp, #432]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #416]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #400]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #384]            ; 16-byte Folded Reload
	add	sp, sp, #448
	ret
LBB0_9:
	mov	x0, x20
	bl	_os_free
	mov	w0, #-1
	b	LBB0_7
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"client EAP encryption"

	.comm	_EAP_TLS_KEY_LEN,4,2            ; @EAP_TLS_KEY_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"EAP-PEAP: TK"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-PEAP: IPMK from TK"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-PEAP: CMK from TK"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-PEAP: ISK"

l_.str.5:                               ; @.str.5
	.asciz	"EAP-PEAP: TempKey"

l_.str.6:                               ; @.str.6
	.asciz	"Inner Methods Compound Keys"

l_.str.7:                               ; @.str.7
	.asciz	"EAP-PEAP: IMCK (IPMKj)"

l_.str.8:                               ; @.str.8
	.asciz	"EAP-PEAP: IPMK (S-IPMKj)"

l_.str.9:                               ; @.str.9
	.asciz	"EAP-PEAP: CMK (CMKj)"

	.no_dead_strip	_eap_peap_derive_cmk
.subsections_via_symbols
