	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee802_1x_create_preshared_mka ## -- Begin function ieee802_1x_create_preshared_mka
	.p2align	4, 0x90
_ieee802_1x_create_preshared_mka:       ## @ieee802_1x_create_preshared_mka
	.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
	movl	(%rsi), %eax
	movq	_MKA_PSK_SET@GOTPCREL(%rip), %rcx
	notl	%eax
	testl	%eax, (%rcx)
	jne	LBB0_11
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	$12, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %r14
	movl	$12, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ieee802_1x_alloc_kay_sm
	testq	%rax, %rax
	js	LBB0_8
## %bb.4:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	(%rax), %rax
	movq	_DO_NOT_SECURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movl	16(%rbx), %edx
	movl	%edx, (%r15)
	movl	8(%r15), %edi
	movl	12(%rbx), %esi
	callq	_os_memcpy
	movl	8(%rbx), %edx
	movl	%edx, (%r14)
	movl	4(%r14), %edi
	movl	4(%rbx), %esi
	callq	_os_memcpy
	movq	(%r12), %rdi
	movq	_PSK@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_ieee802_1x_kay_create_mka
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_9
LBB0_7:
	movq	%r12, %rdi
	callq	_ieee802_1x_dealloc_kay_sm
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%r15, %rdi
	callq	_os_free
	jmp	LBB0_13
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%r14, %rdi
	callq	_os_free
LBB0_14:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MKA_PSK_SET,4,2                ## @MKA_PSK_SET
	.comm	_DO_NOT_SECURE,8,3              ## @DO_NOT_SECURE
	.comm	_PSK,4,2                        ## @PSK
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee802_1x_create_preshared_mka ; -- Begin function ieee802_1x_create_preshared_mka
	.p2align	2
_ieee802_1x_create_preshared_mka:       ; @ieee802_1x_create_preshared_mka
	.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	w8, [x1]
Lloh0:
	adrp	x9, _MKA_PSK_SET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MKA_PSK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_10
; %bb.1:
	mov	x22, x1
	mov	x20, x0
	mov	w0, #12
	bl	_os_zalloc
	cbz	x0, LBB0_10
; %bb.2:
	mov	x19, x0
	mov	w0, #12
	bl	_os_zalloc
	cbz	x0, LBB0_11
; %bb.3:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x22
	bl	_ieee802_1x_alloc_kay_sm
	tbnz	x0, #63, LBB0_8
; %bb.4:
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DO_NOT_SECURE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DO_NOT_SECURE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
	ldp	w1, w2, [x22, #12]
	str	w2, [x21]
	ldr	w0, [x21, #8]
	bl	_os_memcpy
	ldp	w1, w2, [x22, #4]
	str	w2, [x19]
	ldr	w0, [x19, #4]
	bl	_os_memcpy
	ldr	x0, [x20]
Lloh6:
	adrp	x8, _PSK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PSK@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _FALSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
	mov	x1, x19
	mov	x2, x21
	mov	w3, #0
	bl	_ieee802_1x_kay_create_mka
	mov	x22, x0
	cbnz	x0, LBB0_9
LBB0_7:
	mov	x0, x20
	bl	_ieee802_1x_dealloc_kay_sm
LBB0_8:
	mov	x22, #0
LBB0_9:
	mov	x0, x21
	bl	_os_free
	b	LBB0_12
LBB0_10:
	mov	x22, #0
	b	LBB0_13
LBB0_11:
	mov	x22, #0
LBB0_12:
	mov	x0, x19
	bl	_os_free
LBB0_13:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MKA_PSK_SET,4,2                ; @MKA_PSK_SET
	.comm	_DO_NOT_SECURE,8,3              ; @DO_NOT_SECURE
	.comm	_PSK,4,2                        ; @PSK
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
