	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_rpcc_init_crypto           ## -- Begin function tcp_rpcc_init_crypto
	.p2align	4, 0x90
_tcp_rpcc_init_crypto:                  ## @tcp_rpcc_init_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_TCP_RPC_DATA
	testb	$2, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tcp_rpcc_init_fake_crypto      ## TAILCALL
LBB0_1:
	xorl	%edi, %edi
	callq	_time
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_TCP_RPC_DATA
	movl	%r14d, 4(%rax)
	movq	%rbx, %rdi
	callq	_TCP_RPC_DATA
	movl	8(%rax), %edi
	callq	_aes_generate_nonce
	leaq	_tcp_rpcc_init_crypto.buf(%rip), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movl	_tcp_rpcc_init_crypto.buf+16(%rip), %r15d
	movq	%rbx, %rdi
	callq	_TCP_RPC_DATA
	movl	8(%rax), %esi
	movl	%r15d, %edi
	movl	$16, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_TCP_RPC_DATA
	movl	4(%rax), %eax
	movl	%eax, _tcp_rpcc_init_crypto.buf+12(%rip)
	movq	_RPC_NONCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, _tcp_rpcc_init_crypto.buf+8(%rip)
	xorl	%eax, %eax
	callq	_get_crypto_key_id
	movl	%eax, _tcp_rpcc_init_crypto.buf+4(%rip)
	movq	_RPC_CRYPTO_AES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, _tcp_rpcc_init_crypto.buf(%rip)
	movq	%rbx, %rdi
	movl	$20, %esi
	movq	%r14, %rdx
	callq	_tcp_rpc_conn_send_data
	movq	%rbx, %rdi
	callq	_TCP_RPC_DATA
	movl	(%rax), %eax
	andl	$14, %eax
	xorl	%edi, %edi
	cmpl	$2, %eax
	sete	%dil
	callq	_assert
	movq	%rbx, %rdi
	callq	_TCP_RPC_DATA
	orb	$4, (%rax)
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	sete	%dil
	callq	_assert
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_tcp_rpcc_init_crypto.buf,20,2 ## @tcp_rpcc_init_crypto.buf
	.comm	_RPC_NONCE,4,2                  ## @RPC_NONCE
	.comm	_RPC_CRYPTO_AES,4,2             ## @RPC_CRYPTO_AES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_rpcc_init_crypto           ; -- Begin function tcp_rpcc_init_crypto
	.p2align	2
_tcp_rpcc_init_crypto:                  ; @tcp_rpcc_init_crypto
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_TCP_RPC_DATA
	ldrb	w8, [x0]
	tbnz	w8, #1, LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_tcp_rpcc_init_fake_crypto
LBB0_2:
	mov	w0, #0
	bl	_time
	mov	x20, x0
	mov	x0, x19
	bl	_TCP_RPC_DATA
	str	w20, [x0, #4]
	mov	x0, x19
	bl	_TCP_RPC_DATA
	ldr	w0, [x0, #8]
	bl	_aes_generate_nonce
Lloh0:
	adrp	x20, _tcp_rpcc_init_crypto.buf@PAGE
Lloh1:
	add	x20, x20, _tcp_rpcc_init_crypto.buf@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	ldr	w21, [x20, #16]
	mov	x0, x19
	bl	_TCP_RPC_DATA
	ldr	w1, [x0, #8]
	mov	x0, x21
	mov	w2, #16
	bl	_memcpy
	mov	x0, x19
	bl	_TCP_RPC_DATA
	ldr	w8, [x0, #4]
Lloh2:
	adrp	x9, _RPC_NONCE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RPC_NONCE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
	bl	_get_crypto_key_id
Lloh5:
	adrp	x8, _RPC_CRYPTO_AES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RPC_CRYPTO_AES@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	stp	w8, w0, [x20]
	mov	x0, x19
	mov	w1, #20
	mov	x2, x20
	bl	_tcp_rpc_conn_send_data
	mov	x0, x19
	bl	_TCP_RPC_DATA
	ldr	w8, [x0]
	and	w8, w8, #0xe
	cmp	w8, #2
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	bl	_TCP_RPC_DATA
	ldr	w8, [x0]
	orr	w8, w8, #0x4
	str	w8, [x0]
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_tcp_rpcc_init_crypto.buf,20,2 ; @tcp_rpcc_init_crypto.buf
	.comm	_RPC_NONCE,4,2                  ; @RPC_NONCE
	.comm	_RPC_CRYPTO_AES,4,2             ; @RPC_CRYPTO_AES
.subsections_via_symbols
