	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radius_msg_get_ms_keys         ## -- Begin function radius_msg_get_ms_keys
	.p2align	4, 0x90
_radius_msg_get_ms_keys:                ## @radius_msg_get_ms_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.2:
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rdi, %r13
	movl	$32, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	_RADIUS_VENDOR_ID_MICROSOFT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_RADIUS_VENDOR_ATTR_MS_MPPE_SEND_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	callq	_radius_msg_get_vendor_attr
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %r14
	movq	-48(%rbp), %rsi
	movq	(%r12), %rax
	movl	(%rax), %edx
	leaq	24(%r15), %r9
	movq	%r14, %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_decrypt_ms_key
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_7:
	movq	%r14, %rdi
	callq	_os_free
LBB0_8:
	movl	(%rbx), %esi
	movq	_RADIUS_VENDOR_ATTR_MS_MPPE_RECV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	callq	_radius_msg_get_vendor_attr
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%rax, %r14
	movq	-48(%rbp), %rsi
	movq	(%r12), %rax
	movl	(%rax), %edx
	movq	%r15, %r9
	addq	$8, %r9
	movq	%r14, %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_decrypt_ms_key
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
LBB0_11:
	movq	%r14, %rdi
	callq	_os_free
	jmp	LBB0_12
LBB0_3:
	xorl	%r15d, %r15d
LBB0_12:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADIUS_VENDOR_ID_MICROSOFT,4,2 ## @RADIUS_VENDOR_ID_MICROSOFT
	.comm	_RADIUS_VENDOR_ATTR_MS_MPPE_SEND_KEY,4,2 ## @RADIUS_VENDOR_ATTR_MS_MPPE_SEND_KEY
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RADIUS: Failed to decrypt send key"

	.comm	_RADIUS_VENDOR_ATTR_MS_MPPE_RECV_KEY,4,2 ## @RADIUS_VENDOR_ATTR_MS_MPPE_RECV_KEY
L_.str.1:                               ## @.str.1
	.asciz	"RADIUS: Failed to decrypt recv key"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radius_msg_get_ms_keys         ; -- Begin function radius_msg_get_ms_keys
	.p2align	2
_radius_msg_get_ms_keys:                ; @radius_msg_get_ms_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	x19, #0
	cbz	x0, LBB0_11
; %bb.1:
	mov	x22, x1
	cbz	x1, LBB0_11
; %bb.2:
	mov	x20, x3
	mov	x21, x2
	mov	x23, x0
	mov	w0, #32
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_11
; %bb.3:
Lloh0:
	adrp	x25, _RADIUS_VENDOR_ID_MICROSOFT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _RADIUS_VENDOR_ID_MICROSOFT@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh2:
	adrp	x8, _RADIUS_VENDOR_ATTR_MS_MPPE_SEND_KEY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RADIUS_VENDOR_ATTR_MS_MPPE_SEND_KEY@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x23
	bl	_radius_msg_get_vendor_attr
	cbz	x0, LBB0_7
; %bb.4:
	mov	x24, x0
	ldr	x1, [sp, #8]
	ldr	x8, [x22]
	ldr	w2, [x8]
	add	x5, x19, #24
	mov	x3, x21
	mov	x4, x20
	bl	_decrypt_ms_key
	str	x0, [x19, #16]
	cbnz	x0, LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_6:
	mov	x0, x24
	bl	_os_free
LBB0_7:
	ldr	w1, [x25]
Lloh10:
	adrp	x8, _RADIUS_VENDOR_ATTR_MS_MPPE_RECV_KEY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RADIUS_VENDOR_ATTR_MS_MPPE_RECV_KEY@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x23
	bl	_radius_msg_get_vendor_attr
	cbz	x0, LBB0_11
; %bb.8:
	mov	x23, x0
	ldr	x1, [sp, #8]
	ldr	x8, [x22]
	ldr	w2, [x8]
	add	x5, x19, #8
	mov	x3, x21
	mov	x4, x20
	bl	_decrypt_ms_key
	str	x0, [x19]
	cbnz	x0, LBB0_10
; %bb.9:
Lloh13:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_10:
	mov	x0, x23
	bl	_os_free
LBB0_11:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_RADIUS_VENDOR_ID_MICROSOFT,4,2 ; @RADIUS_VENDOR_ID_MICROSOFT
	.comm	_RADIUS_VENDOR_ATTR_MS_MPPE_SEND_KEY,4,2 ; @RADIUS_VENDOR_ATTR_MS_MPPE_SEND_KEY
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RADIUS: Failed to decrypt send key"

	.comm	_RADIUS_VENDOR_ATTR_MS_MPPE_RECV_KEY,4,2 ; @RADIUS_VENDOR_ATTR_MS_MPPE_RECV_KEY
l_.str.1:                               ; @.str.1
	.asciz	"RADIUS: Failed to decrypt recv key"

.subsections_via_symbols
