	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	40(%rsi), %r15
	movl	$-1, %eax
	testq	%r15, %r15
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	movl	$60, %ecx
	callq	_wpa_hexdump_key
	movl	(%r12), %edi
	movl	36(%r13), %esi
	callq	_tls_connection_resumed
	movl	%eax, %ebx
	movl	(%r14), %edi
	movq	24(%r13), %rdx
	movl	20(%r13), %r8d
	movl	32(%r13), %r9d
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %ecx
	callq	_wpa_printf
	cmpq	$0, 24(%r13)
	je	LBB0_5
## %bb.2:
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.3:
	cmpl	$0, 20(%r13)
	jne	LBB0_5
## %bb.4:
	movq	8(%r13), %rdi
	movq	%r15, %rsi
	movl	$40, %edx
	callq	_os_memcpy
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	8(%r13), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	$40, %ecx
	callq	_wpa_hexdump_key
	movq	(%r13), %rdi
	addq	$160, %r15
	movq	%r15, %rsi
	movl	$20, %edx
	callq	_os_memcpy
	movl	(%rbx), %edi
	movq	(%r13), %rdx
	leaq	L_.str.3(%rip), %rsi
	movl	$20, %ecx
	callq	_wpa_hexdump_key
	jmp	LBB0_9
LBB0_5:
	leaq	-176(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$128, %ecx
	callq	_eap_peap_get_isk
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	leaq	-176(%rbp), %r12
	movq	%r12, %rdx
	movl	$128, %ecx
	callq	_wpa_hexdump_key
	movl	(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdx
	movl	$40, %ecx
	callq	_wpa_hexdump_key
	movl	16(%r13), %edi
	leaq	-416(%rbp), %rax
	leaq	L_.str.6(%rip), %rcx
	movq	%r15, %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
	movl	$-1, %eax
	js	LBB0_10
## %bb.8:
	movl	(%r14), %edi
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rbx
	leaq	-416(%rbp), %r14
	movq	%r14, %rdx
	movl	$240, %ecx
	callq	_wpa_hexdump_key
	movq	8(%r13), %rdi
	movq	%r14, %rsi
	movl	$40, %edx
	callq	_os_memcpy
	movl	(%rbx), %edi
	movq	8(%r13), %rdx
	leaq	L_.str.8(%rip), %rsi
	movl	$40, %ecx
	callq	_wpa_hexdump_key
	movq	(%r13), %rdi
	leaq	-256(%rbp), %rsi
	movl	$20, %edx
	callq	_os_memcpy
	movl	(%rbx), %edi
	movq	(%r13), %rdx
	leaq	L_.str.9(%rip), %rsi
	movl	$20, %ecx
	callq	_wpa_hexdump_key
	movq	%r14, %rdi
	movl	$240, %esi
	callq	_forced_memzero
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_6:
	movl	$-1, %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$376, %rsp                      ## imm = 0x178
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-PEAP: TK"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-PEAP: CMK derivation - reauth=%d resumed=%d phase2_eap_started=%d phase2_success=%d"

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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x20, [x1, #40]
	cbz	x20, LBB0_9
; %bb.1:
	mov	x19, x1
	mov	x21, x0
Lloh3:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	w3, #60
	bl	_wpa_hexdump_key
	ldr	w0, [x21]
	ldr	w1, [x19, #36]
	bl	_tls_connection_resumed
	mov	x22, x0
	ldr	w0, [x23]
	ldr	x2, [x19, #24]
	ldr	w4, [x19, #20]
	ldr	w5, [x19, #32]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x22
	bl	_wpa_printf
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.2:
	cbz	w22, LBB0_5
; %bb.3:
	ldr	w8, [x19, #20]
	cbnz	w8, LBB0_5
; %bb.4:
	ldr	x0, [x19, #8]
	mov	x1, x20
	mov	w2, #40
	bl	_os_memcpy
	ldr	w0, [x23]
	ldr	x2, [x19, #8]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	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]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w3, #20
	bl	_wpa_hexdump_key
	b	LBB0_8
LBB0_5:
	sub	x2, x29, #184
	mov	x0, x21
	mov	x1, x19
	mov	w3, #128
	bl	_eap_peap_get_isk
	tbnz	x0, #63, LBB0_9
; %bb.6:
	ldr	w0, [x23]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	sub	x2, x29, #184
	mov	w3, #128
	bl	_wpa_hexdump_key
	ldr	w0, [x23]
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x20
	mov	w3, #40
	bl	_wpa_hexdump_key
	ldr	w0, [x19, #16]
Lloh17:
	adrp	x3, l_.str.6@PAGE
Lloh18:
	add	x3, x3, l_.str.6@PAGEOFF
	add	x21, 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	x20, x0
	sub	x0, x29, #184
	mov	w1, #128
	bl	_forced_memzero
	tbnz	w20, #31, LBB0_9
; %bb.7:
	ldr	w0, [x23]
Lloh19:
	adrp	x1, l_.str.7@PAGE
Lloh20:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x2, sp, #8
	mov	w3, #240
	bl	_wpa_hexdump_key
	ldr	x0, [x19, #8]
	add	x1, sp, #8
	mov	w2, #40
	bl	_os_memcpy
	ldr	w0, [x23]
	ldr	x2, [x19, #8]
Lloh21:
	adrp	x1, l_.str.8@PAGE
Lloh22:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w3, #40
	bl	_wpa_hexdump_key
	ldr	x0, [x19]
	add	x1, x21, #160
	mov	w2, #20
	bl	_os_memcpy
	ldr	w0, [x23]
	ldr	x2, [x19]
Lloh23:
	adrp	x1, l_.str.9@PAGE
Lloh24:
	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_8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	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_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-PEAP: TK"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-PEAP: CMK derivation - reauth=%d resumed=%d phase2_eap_started=%d phase2_success=%d"

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
