	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_rpcc_start_crypto          ## -- Begin function tcp_rpcc_start_crypto
	.p2align	4, 0x90
_tcp_rpcc_start_crypto:                 ## @tcp_rpcc_start_crypto
	.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	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_TCP_RPC_DATA
	movq	%rax, %r13
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movl	%r12d, %edx
	callq	_vkprintf
	movl	$-1, %r15d
	cmpq	$0, 40(%rbx)
	jne	LBB0_9
## %bb.1:
	cmpq	$0, 32(%rbx)
	jne	LBB0_9
## %bb.2:
	cmpq	$0, 24(%rbx)
	je	LBB0_3
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.4:
	cmpl	$0, (%r13)
	je	LBB0_9
## %bb.5:
	xorl	%eax, %eax
	callq	_get_crypto_key_id
	cmpl	%r12d, %eax
	jne	LBB0_9
## %bb.6:
	movl	(%r13), %r8d
	movl	4(%r13), %ecx
	movl	20(%rbx), %r9d
	movl	16(%rbx), %r10d
	movl	12(%rbx), %r11d
	movl	8(%rbx), %r15d
	movl	(%rbx), %eax
	movl	4(%rbx), %r12d
	subq	$8, %rsp
	leaq	-48(%rbp), %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	pushq	%rax
	pushq	%r12
	pushq	%r15
	pushq	%r11
	pushq	%r10
	callq	_aes_create_keys
	addq	$48, %rsp
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_aes_crypto_init
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setns	%cl
	leal	(%rcx,%rcx), %r15d
	decl	%r15d
	jmp	LBB0_9
LBB0_7:
	movl	$-1, %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rpcc_start_crypto: key_select = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_rpcc_start_crypto          ; -- Begin function tcp_rpcc_start_crypto
	.p2align	2
_tcp_rpcc_start_crypto:                 ; @tcp_rpcc_start_crypto
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_TCP_RPC_DATA
	mov	x23, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x22
	bl	_vkprintf
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
LBB0_3:
	mov	w21, #-1
LBB0_4:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
LBB0_5:
	mov	w21, #-1
	cbz	w22, LBB0_4
; %bb.6:
	ldr	w8, [x23]
	cbz	w8, LBB0_4
; %bb.7:
	bl	_get_crypto_key_id
	cmp	w0, w22
	b.ne	LBB0_3
; %bb.8:
	ldp	w4, w3, [x23]
	ldp	w6, w5, [x19, #16]
	ldp	w8, w7, [x19, #8]
	ldp	w10, w9, [x19]
	stp	w9, w10, [sp, #4]
	add	x0, sp, #24
	str	w8, [sp]
	mov	w1, #1
	mov	x2, x20
	bl	_aes_create_keys
	mov	w21, #-1
	tbnz	x0, #63, LBB0_4
; %bb.9:
	add	x1, sp, #24
	mov	x0, x19
	mov	w2, #4
	bl	_aes_crypto_init
	cmp	x0, #0
	cneg	w21, w21, ge
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rpcc_start_crypto: key_select = %d\n"

.subsections_via_symbols
