	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_teap_getKey
_eap_teap_getKey:                       ## @eap_teap_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_7
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	_EAP_TEAP_KEY_LEN@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r15
	movl	8(%rbx), %edi
	movq	%rax, %rsi
	callq	_eap_teap_derive_eap_msk
	testq	%rax, %rax
	js	LBB0_6
## %bb.3:
	movq	(%r12), %rax
	movq	%rax, (%r14)
	jmp	LBB0_8
LBB0_6:
	movq	%r15, %rdi
	callq	_os_free
LBB0_7:
	xorl	%r15d, %r15d
LBB0_8:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUCCESS,8,3                    ## @SUCCESS
	.comm	_EAP_TEAP_KEY_LEN,8,3           ## @EAP_TEAP_KEY_LEN
	.no_dead_strip	_eap_teap_getKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_teap_getKey
_eap_teap_getKey:                       ; @eap_teap_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_5
; %bb.1:
	mov	x19, x2
	mov	x21, x1
Lloh3:
	adrp	x22, _EAP_TEAP_KEY_LEN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _EAP_TEAP_KEY_LEN@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_os_malloc
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x21, #8]
	mov	x1, x20
	bl	_eap_teap_derive_eap_msk
	tbnz	x0, #63, LBB0_4
; %bb.3:
	ldr	x8, [x22]
	str	x8, [x19]
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_os_free
LBB0_5:
	mov	x20, #0
LBB0_6:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_SUCCESS,8,3                    ; @SUCCESS
	.comm	_EAP_TEAP_KEY_LEN,8,3           ; @EAP_TEAP_KEY_LEN
	.no_dead_strip	_eap_teap_getKey
.subsections_via_symbols
