	.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)
	cmpq	$0, (%rsi)
	je	LBB0_11
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$0, 24(%rsi)
	je	LBB0_11
## %bb.2:
	movq	%rdx, %r15
	movq	_EAP_TLS_KEY_LEN@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %r14
	movq	(%r12), %rax
	movq	%rax, (%r15)
	cmpq	$0, 16(%rbx)
	je	LBB0_9
## %bb.4:
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	leaq	-560(%rbp), %rax
	leaq	L_.str(%rip), %rcx
	leaq	l_.str.1(%rip), %r8
	movl	$40, %edx
	movl	$1, %r9d
	pushq	$512                            ## imm = 0x200
	pushq	%rax
	callq	_peap_prfplus
	addq	$16, %rsp
	testq	%rax, %rax
	js	LBB0_10
## %bb.5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	leaq	-560(%rbp), %rbx
	movq	%rbx, %rdx
	movl	$512, %ecx                      ## imm = 0x200
	callq	_wpa_hexdump_key
	movq	(%r12), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_os_memcpy
	movl	(%r15), %edi
	movq	(%r12), %rcx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdx
	callq	_wpa_hexdump
	movq	%rbx, %rdi
	movl	$512, %esi                      ## imm = 0x200
	callq	_forced_memzero
	jmp	LBB0_12
LBB0_9:
	movq	(%rbx), %rsi
	movq	(%r12), %rdx
	movq	%r14, %rdi
	callq	_os_memcpy
	jmp	LBB0_12
LBB0_10:
	movq	%r14, %rdi
	callq	_os_free
LBB0_11:
	xorl	%r14d, %r14d
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movq	%r14, %rax
	addq	$528, %rsp                      ## imm = 0x210
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_TLS_KEY_LEN,8,3            ## @EAP_TLS_KEY_LEN
	.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"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-PEAP: Derived key"

	.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]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x20, x1
	ldr	w8, [x1, #24]
	cbz	w8, LBB0_8
; %bb.2:
	mov	x21, x2
Lloh3:
	adrp	x22, _EAP_TLS_KEY_LEN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _EAP_TLS_KEY_LEN@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_os_malloc
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.3:
	ldr	x8, [x22]
	str	x8, [x21]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
; %bb.4:
	ldp	w1, w0, [x20, #8]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
Lloh7:
	adrp	x4, l_.str.1@PAGE
Lloh8:
	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_7
; %bb.5:
Lloh9:
	adrp	x20, _MSG_DEBUG@GOTPAGE
Lloh10:
	ldr	x20, [x20, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	mov	w3, #512
	bl	_wpa_hexdump_key
	ldr	x2, [x22]
	add	x1, sp, #8
	mov	x0, x19
	bl	_os_memcpy
	ldr	w0, [x20]
	ldr	x3, [x22]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_wpa_hexdump
	add	x0, sp, #8
	mov	w1, #512
	bl	_forced_memzero
	b	LBB0_9
LBB0_6:
	ldr	x1, [x20]
	ldr	x2, [x22]
	mov	x0, x19
	bl	_os_memcpy
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_os_free
LBB0_8:
	mov	x19, #0
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	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_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_TLS_KEY_LEN,8,3            ; @EAP_TLS_KEY_LEN
	.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"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-PEAP: Derived key"

	.no_dead_strip	_eap_peap_getKey
.subsections_via_symbols
