	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee802_1x_auth_get_msk
_ieee802_1x_auth_get_msk:               ## @ieee802_1x_auth_get_msk
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %edi
	movl	$-1, %r12d
	testl	%edi, %edi
	je	LBB0_6
## %bb.1:
	movq	%rcx, %r14
	movq	%rdx, %r15
	leaq	-48(%rbp), %rsi
	callq	_ieee802_1x_get_key
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	-48(%rbp), %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r13), %edi
	movq	-48(%rbp), %rcx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_hexdump_key
	movq	-48(%rbp), %rdx
	movq	(%r14), %rax
	cmpq	%rax, %rdx
	jbe	LBB0_5
## %bb.4:
	movq	%rax, -48(%rbp)
	movq	%rax, %rdx
LBB0_5:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_os_memcpy
	movq	-48(%rbp), %rax
	movq	%rax, (%r14)
	jmp	LBB0_6
LBB0_2:
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MACsec: Failed to get MSK from EAPOL state machines"

L_.str.1:                               ## @.str.1
	.asciz	"MACsec: Successfully fetched key (len=%lu)"

L_.str.2:                               ## @.str.2
	.asciz	"MSK: "

	.no_dead_strip	_ieee802_1x_auth_get_msk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee802_1x_auth_get_msk
_ieee802_1x_auth_get_msk:               ; @ieee802_1x_auth_get_msk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	w0, [x1]
	cbz	w0, LBB0_6
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	add	x1, sp, #8
	bl	_ieee802_1x_get_key
	mov	x21, x0
Lloh0:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
	cbz	x21, LBB0_5
; %bb.2:
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x22]
	ldr	x3, [sp, #8]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_wpa_hexdump_key
	ldr	x2, [sp, #8]
	ldr	x8, [x19]
	cmp	x2, x8
	b.ls	LBB0_4
; %bb.3:
	str	x8, [sp, #8]
	mov	x2, x8
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	bl	_os_memcpy
	mov	w0, #0
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_6:
	mov	w0, #-1
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MACsec: Failed to get MSK from EAPOL state machines"

l_.str.1:                               ; @.str.1
	.asciz	"MACsec: Successfully fetched key (len=%lu)"

l_.str.2:                               ; @.str.2
	.asciz	"MSK: "

	.no_dead_strip	_ieee802_1x_auth_get_msk
.subsections_via_symbols
