	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_pax_getKey
_eap_pax_getKey:                        ## @eap_pax_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	_PAX_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	_EAP_MSK_LEN@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r14
	movq	(%r12), %rax
	movq	%rax, (%r15)
	movl	16(%rbx), %edi
	movl	8(%rbx), %r8d
	movl	12(%rbx), %esi
	movq	_EAP_PAX_MK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EAP_PAX_RAND_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	addl	%r9d, %r9d
	leaq	L_.str(%rip), %rcx
	pushq	%r14
	pushq	(%r12)
	callq	_eap_pax_kdf
	addq	$16, %rsp
	testq	%rax, %rax
	jns	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_os_free
LBB0_4:
	xorl	%r14d, %r14d
LBB0_5:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAX_DONE,8,3                   ## @PAX_DONE
	.comm	_EAP_MSK_LEN,8,3                ## @EAP_MSK_LEN
	.comm	_EAP_PAX_MK_LEN,4,2             ## @EAP_PAX_MK_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Master Session Key"

	.comm	_EAP_PAX_RAND_LEN,4,2           ## @EAP_PAX_RAND_LEN
	.no_dead_strip	_eap_pax_getKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_pax_getKey
_eap_pax_getKey:                        ; @eap_pax_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, _PAX_DONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAX_DONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x21, x2
	mov	x20, x1
Lloh3:
	adrp	x22, _EAP_MSK_LEN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _EAP_MSK_LEN@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_os_malloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x22]
	str	x8, [x21]
	ldp	w1, w0, [x20, #12]
Lloh5:
	adrp	x8, _EAP_PAX_MK_LEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAP_PAX_MK_LEN@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	ldr	w4, [x20, #8]
Lloh8:
	adrp	x8, _EAP_PAX_RAND_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAP_PAX_RAND_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	w5, w8, #1
	ldr	x6, [x22]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	mov	x7, x19
	bl	_eap_pax_kdf
	tbz	x0, #63, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_os_free
LBB0_4:
	mov	x19, #0
LBB0_5:
	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	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PAX_DONE,8,3                   ; @PAX_DONE
	.comm	_EAP_MSK_LEN,8,3                ; @EAP_MSK_LEN
	.comm	_EAP_PAX_MK_LEN,4,2             ; @EAP_PAX_MK_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Master Session Key"

	.comm	_EAP_PAX_RAND_LEN,4,2           ; @EAP_PAX_RAND_LEN
	.no_dead_strip	_eap_pax_getKey
.subsections_via_symbols
