	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radius_msg_get_cisco_keys      ## -- Begin function radius_msg_get_cisco_keys
	.p2align	4, 0x90
_radius_msg_get_cisco_keys:             ## @radius_msg_get_cisco_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	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.2:
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movl	$8, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	_RADIUS_VENDOR_ID_CISCO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RADIUS_CISCO_AV_PAIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_radius_msg_get_vendor_attr
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	cmpq	$51, -48(%rbp)
	jne	LBB0_8
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	$17, %edx
	callq	_os_memcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	%r13, %rdi
	addq	$68, %rdi
	movq	-48(%rbp), %rsi
	addq	$-17, %rsi
	movq	(%r12), %rax
	movl	(%rax), %edx
	movq	%r15, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r14, %r9
	callq	_decrypt_ms_key
	movl	%eax, 4(%r14)
LBB0_8:
	movq	%r13, %rdi
	callq	_os_free
	jmp	LBB0_9
LBB0_3:
	xorl	%r14d, %r14d
LBB0_9:
	movq	%r14, %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_CISCO,4,2     ## @RADIUS_VENDOR_ID_CISCO
	.comm	_RADIUS_CISCO_AV_PAIR,4,2       ## @RADIUS_CISCO_AV_PAIR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"leap:session-key="

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radius_msg_get_cisco_keys      ; -- Begin function radius_msg_get_cisco_keys
	.p2align	2
_radius_msg_get_cisco_keys:             ; @radius_msg_get_cisco_keys
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, #0
	cbz	x0, LBB0_8
; %bb.1:
	mov	x22, x1
	cbz	x1, LBB0_8
; %bb.2:
	mov	x20, x3
	mov	x21, x2
	mov	x23, x0
	mov	w0, #8
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _RADIUS_VENDOR_ID_CISCO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADIUS_VENDOR_ID_CISCO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _RADIUS_CISCO_AV_PAIR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RADIUS_CISCO_AV_PAIR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x23
	bl	_radius_msg_get_vendor_attr
	mov	x23, x0
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x8, [sp, #8]
	cmp	x8, #51
	b.ne	LBB0_7
; %bb.5:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	w2, #17
	bl	_os_memcmp
	cbnz	x0, LBB0_7
; %bb.6:
	add	x0, x23, #68
	ldr	x8, [sp, #8]
	sub	x1, x8, #17
	ldr	x8, [x22]
	ldr	w2, [x8]
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	bl	_decrypt_ms_key
	str	w0, [x19, #4]
LBB0_7:
	mov	x0, x23
	bl	_os_free
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RADIUS_VENDOR_ID_CISCO,4,2     ; @RADIUS_VENDOR_ID_CISCO
	.comm	_RADIUS_CISCO_AV_PAIR,4,2       ; @RADIUS_CISCO_AV_PAIR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"leap:session-key="

.subsections_via_symbols
