	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee802_1x_get_keys
_ieee802_1x_get_keys:                   ## @ieee802_1x_get_keys
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	movq	%r8, %rcx
	callq	_radius_msg_get_ms_keys
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	addq	$24, %r15
	movq	24(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
LBB0_5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	callq	_wpa_hexdump
	jmp	LBB0_6
LBB0_2:
	cmpq	$0, 16(%rbx)
	je	LBB0_3
LBB0_6:
	movq	16(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	8(%rbx), %rcx
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_hexdump
	movq	8(%rbx), %rax
	movq	_PMK_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	cmovlq	%rax, %rdx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%rdx, (%r12)
	movl	8(%r12), %edi
	movq	16(%rbx), %rsi
	callq	_os_memcpy
	cmpq	$16, (%r12)
	jne	LBB0_11
## %bb.8:
	cmpq	$0, (%r15)
	je	LBB0_11
## %bb.9:
	cmpq	$16, (%rbx)
	jne	LBB0_11
## %bb.10:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	8(%r14), %edi
	addl	(%r14), %edi
	movq	(%r15), %rsi
	movq	(%rbx), %rdx
	callq	_os_memcpy
	movq	(%rbx), %rax
	addq	%rax, (%r14)
LBB0_11:
	movq	(%r15), %rdi
	callq	_os_free
	movq	16(%rbx), %rdi
	callq	_os_free
	movq	%rbx, %rdi
	callq	_os_free
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_12:
	movq	_RADIUS_ATTR_EAP_KEY_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	leaq	-72(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%r8d, %r8d
	callq	_radius_msg_get_attr_ptr
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movl	12(%r15), %edi
	movq	-72(%rbp), %rsi
	movq	-64(%rbp), %rdx
	callq	_os_memcpy
	movq	-64(%rbp), %rbx
LBB0_14:
	movq	%rbx, 16(%r15)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	callq	_os_free
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_radius_msg_get_cisco_keys
	testq	%rax, %rax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_12
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %r15
	addq	$24, %r15
	movq	24(%rax), %rdx
	testq	%rdx, %rdx
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MS-MPPE-Send-Key (sign)"

L_.str.1:                               ## @.str.1
	.asciz	"MS-MPPE-Recv-Key (crypt)"

	.comm	_PMK_LEN,8,3                    ## @PMK_LEN
L_.str.2:                               ## @.str.2
	.asciz	"Use MS-MPPE-Send-Key to extend PMK to 32 octets"

	.comm	_RADIUS_ATTR_EAP_KEY_NAME,4,2   ## @RADIUS_ATTR_EAP_KEY_NAME
	.no_dead_strip	_ieee802_1x_get_keys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee802_1x_get_keys
_ieee802_1x_get_keys:                   ; @ieee802_1x_get_keys
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	mov	x3, x4
	bl	_radius_msg_get_ms_keys
	cbz	x0, LBB0_10
; %bb.1:
	mov	x21, x0
	mov	x25, x0
	ldr	x2, [x25, #24]!
Lloh0:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
	cbz	x2, LBB0_3
LBB0_2:
	ldr	w0, [x26]
	ldr	x3, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_hexdump
	b	LBB0_4
LBB0_3:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_13
LBB0_4:
	ldr	x2, [x21, #16]
	cbz	x2, LBB0_9
; %bb.5:
	ldr	w0, [x26]
	ldr	x3, [x21, #8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_hexdump
	ldr	x8, [x21, #8]
Lloh6:
	adrp	x9, _PMK_LEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PMK_LEN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x2, x8, x9, lt
	str	x2, [x19]
	ldr	w0, [x19, #8]
	ldr	x1, [x21, #16]
	bl	_os_memcpy
	ldr	x8, [x19]
	cmp	x8, #16
	b.ne	LBB0_9
; %bb.6:
	ldr	x8, [x25]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x21]
	cmp	x8, #16
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x26]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	ldr	w8, [x19, #8]
	ldr	w9, [x19]
	add	w0, w8, w9
	ldr	x1, [x25]
	ldr	x2, [x21]
	bl	_os_memcpy
	ldr	x8, [x21]
	ldr	x9, [x19]
	add	x8, x9, x8
	str	x8, [x19]
LBB0_9:
	ldr	x0, [x25]
	bl	_os_free
	ldr	x0, [x21, #16]
	bl	_os_free
	mov	x0, x21
	bl	_os_free
LBB0_10:
Lloh11:
	adrp	x8, _RADIUS_ATTR_EAP_KEY_NAME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RADIUS_ATTR_EAP_KEY_NAME@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	mov	x4, #0
	bl	_radius_msg_get_attr_ptr
	mov	x8, #0
	cbnz	x0, LBB0_12
; %bb.11:
	ldr	w0, [x19, #12]
	ldp	x2, x1, [sp]
	bl	_os_memcpy
	ldr	x8, [sp]
LBB0_12:
	str	x8, [x19, #16]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
	mov	x0, x21
	bl	_os_free
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	bl	_radius_msg_get_cisco_keys
	cbz	x0, LBB0_10
; %bb.14:
	mov	x21, x0
	mov	x25, x0
	ldr	x2, [x25, #24]!
	cbnz	x2, LBB0_2
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MS-MPPE-Send-Key (sign)"

l_.str.1:                               ; @.str.1
	.asciz	"MS-MPPE-Recv-Key (crypt)"

	.comm	_PMK_LEN,8,3                    ; @PMK_LEN
l_.str.2:                               ; @.str.2
	.asciz	"Use MS-MPPE-Send-Key to extend PMK to 32 octets"

	.comm	_RADIUS_ATTR_EAP_KEY_NAME,4,2   ; @RADIUS_ATTR_EAP_KEY_NAME
	.no_dead_strip	_ieee802_1x_get_keys
.subsections_via_symbols
