	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_peap_getKey
_eap_peap_getKey:                       ## @eap_peap_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	$528, %rsp                      ## imm = 0x210
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rsi), %rax
	movq	_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.1:
	movq	%rdx, %r14
	cmpq	$0, 24(%rsi)
	je	LBB0_7
## %bb.2:
	movl	12(%rsi), %eax
	movl	16(%rsi), %edi
	leaq	-560(%rbp), %rbx
	leaq	L_.str(%rip), %rcx
	leaq	l_.str.1(%rip), %r8
	movl	%eax, %esi
	movl	$40, %edx
	movl	$1, %r9d
	pushq	$512                            ## imm = 0x200
	pushq	%rbx
	callq	_peap_prfplus
	addq	$16, %rsp
	testq	%rax, %rax
	js	LBB0_10
## %bb.3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	leaq	-560(%rbp), %rdx
	movl	$512, %ecx                      ## imm = 0x200
	callq	_wpa_hexdump_key
	movq	_EAP_TLS_KEY_LEN@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_os_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%r12), %rdx
	leaq	-560(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_os_memcpy
	movq	(%r12), %rax
	movq	%rax, (%r14)
	movl	(%r15), %edi
	movq	(%r12), %rcx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_hexdump
	jmp	LBB0_6
LBB0_7:
	addq	$8, %rsi
	movq	_EAP_TLS_KEY_LEN@GOTPCREL(%rip), %r15
	movq	_EAP_EMSK_LEN@GOTPCREL(%rip), %r12
	movq	(%r12), %r9
	addq	(%r15), %r9
	leaq	L_.str.5(%rip), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_eap_server_tls_derive_key
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, %rbx
	movq	(%r15), %rax
	leaq	(%rbx,%rax,4), %rdi
	movq	(%r12), %rdx
	xorl	%esi, %esi
	callq	_os_memset
	movq	(%r15), %rax
	movq	%rax, (%r14)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rcx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_hexdump
	jmp	LBB0_11
LBB0_5:
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_wpa_printf
LBB0_6:
	leaq	-560(%rbp), %rdi
	movl	$512, %esi                      ## imm = 0x200
	callq	_forced_memzero
	jmp	LBB0_11
LBB0_9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_wpa_printf
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movq	%rbx, %rax
	addq	$528, %rsp                      ## imm = 0x210
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SUCCESS,8,3                    ## @SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Session Key Generating Function"

	.section	__TEXT,__const
l_.str.1:                               ## @.str.1
	.space	2

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"EAP-PEAP: CSK"

	.comm	_EAP_TLS_KEY_LEN,8,3            ## @EAP_TLS_KEY_LEN
L_.str.3:                               ## @.str.3
	.asciz	"EAP-PEAP: Derived key"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-PEAP: Failed to derive key"

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

	.comm	_EAP_EMSK_LEN,8,3               ## @EAP_EMSK_LEN
	.no_dead_strip	_eap_peap_getKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_peap_getKey
_eap_peap_getKey:                       ; @eap_peap_getKey
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #528
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x8, [x1]
Lloh3:
	adrp	x9, _SUCCESS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x2
	ldr	x8, [x1, #24]
	cbz	x8, LBB0_6
; %bb.2:
	ldp	w1, w0, [x1, #12]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
Lloh8:
	adrp	x4, l_.str.1@PAGE
Lloh9:
	add	x4, x4, l_.str.1@PAGEOFF
	add	x6, sp, #8
	mov	w2, #40
	mov	w5, #1
	mov	w7, #512
	bl	_peap_prfplus
	tbnz	x0, #63, LBB0_5
; %bb.3:
Lloh10:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	mov	w3, #512
	bl	_wpa_hexdump_key
Lloh14:
	adrp	x22, _EAP_TLS_KEY_LEN@GOTPAGE
Lloh15:
	ldr	x22, [x22, _EAP_TLS_KEY_LEN@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_os_malloc
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.4:
	ldr	x2, [x22]
	add	x1, sp, #8
	mov	x0, x20
	bl	_os_memcpy
	ldr	x8, [x22]
	str	x8, [x19]
	ldr	w0, [x21]
	ldr	x3, [x22]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	bl	_wpa_hexdump
	b	LBB0_9
LBB0_5:
	mov	x20, #0
	b	LBB0_11
LBB0_6:
Lloh18:
	adrp	x21, _EAP_TLS_KEY_LEN@GOTPAGE
Lloh19:
	ldr	x21, [x21, _EAP_TLS_KEY_LEN@GOTPAGEOFF]
	add	x1, x1, #8
	ldr	x8, [x21]
Lloh20:
	adrp	x22, _EAP_EMSK_LEN@GOTPAGE
Lloh21:
	ldr	x22, [x22, _EAP_EMSK_LEN@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x5, x9, x8
Lloh22:
	adrp	x2, l_.str.5@PAGE
Lloh23:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x3, #0
	mov	w4, #0
	bl	_eap_server_tls_derive_key
	mov	x20, x0
	cbz	x0, LBB0_10
; %bb.7:
	ldr	x8, [x21]
	add	x0, x20, x8, lsl #2
	ldr	x2, [x22]
	mov	w1, #0
	bl	_os_memset
	ldr	x8, [x21]
	str	x8, [x19]
Lloh24:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	x3, [x21]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	bl	_wpa_hexdump
	b	LBB0_11
LBB0_8:
	ldr	w0, [x21]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
LBB0_9:
	add	x0, sp, #8
	mov	w1, #512
	bl	_forced_memzero
	b	LBB0_11
LBB0_10:
Lloh31:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
LBB0_11:
	ldur	x8, [x29, #-56]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x20
	add	sp, sp, #528
	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	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_SUCCESS,8,3                    ; @SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Session Key Generating Function"

	.section	__TEXT,__const
l_.str.1:                               ; @.str.1
	.space	2

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"EAP-PEAP: CSK"

	.comm	_EAP_TLS_KEY_LEN,8,3            ; @EAP_TLS_KEY_LEN
l_.str.3:                               ; @.str.3
	.asciz	"EAP-PEAP: Derived key"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-PEAP: Failed to derive key"

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

	.comm	_EAP_EMSK_LEN,8,3               ; @EAP_EMSK_LEN
	.no_dead_strip	_eap_peap_getKey
.subsections_via_symbols
