	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_mschapv2_getKey
_eap_mschapv2_getKey:                   ## @eap_mschapv2_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	movq	_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$0, 12(%rsi)
	je	LBB0_10
## %bb.2:
	movq	%rdx, %r14
	movq	_MSCHAPV2_KEY_LEN@GOTPCREL(%rip), %r12
	movslq	(%r12), %rdi
	addq	%rdi, %rdi
	movq	%rdi, (%rdx)
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, %r15
	movl	8(%rbx), %edi
	movl	(%r12), %edx
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_get_asymetric_start_key
	testq	%rax, %rax
	js	LBB0_9
## %bb.4:
	movl	8(%rbx), %edi
	movslq	(%r12), %rdx
	leaq	(%r15,%rdx,4), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_get_asymetric_start_key
	testq	%rax, %rax
	js	LBB0_9
## %bb.5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_wpa_hexdump_key
	jmp	LBB0_11
LBB0_9:
	movq	%r15, %rdi
	callq	_os_free
LBB0_10:
	xorl	%r15d, %r15d
LBB0_11:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUCCESS,8,3                    ## @SUCCESS
	.comm	_MSCHAPV2_KEY_LEN,4,2           ## @MSCHAPV2_KEY_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-MSCHAPV2: Derived key"

	.no_dead_strip	_eap_mschapv2_getKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_mschapv2_getKey
_eap_mschapv2_getKey:                   ; @eap_mschapv2_getKey
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _SUCCESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	mov	x21, x1
	ldr	w8, [x1, #12]
	cbz	w8, LBB0_7
; %bb.2:
	mov	x20, x2
Lloh3:
	adrp	x22, _MSCHAPV2_KEY_LEN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MSCHAPV2_KEY_LEN@GOTPAGEOFF]
	ldrsw	x8, [x22]
	lsl	x0, x8, #1
	str	x0, [x2]
	bl	_os_malloc
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w0, [x21, #8]
	ldr	w2, [x22]
	mov	x1, x19
	mov	w3, #0
	mov	w4, #1
	bl	_get_asymetric_start_key
	tbnz	x0, #63, LBB0_6
; %bb.4:
	ldr	w0, [x21, #8]
	ldrsw	x2, [x22]
	add	x1, x19, x2, lsl #2
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	w3, #1
	mov	w4, #1
	bl	_get_asymetric_start_key
	tbnz	x0, #63, LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x3, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_wpa_hexdump_key
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_os_free
LBB0_7:
	mov	x19, #0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SUCCESS,8,3                    ; @SUCCESS
	.comm	_MSCHAPV2_KEY_LEN,4,2           ; @MSCHAPV2_KEY_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-MSCHAPV2: Derived key"

	.no_dead_strip	_eap_mschapv2_getKey
.subsections_via_symbols
