	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpcc_process_handshake_packet
_rpcc_process_handshake_packet:         ## @rpcc_process_handshake_packet
	.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, %r14
	callq	_RPCC_DATA
	movl	$-2, %ebx
	cmpl	$-1, (%rax)
	jne	LBB0_10
## %bb.1:
	movq	%rax, %r15
	movq	8(%rax), %rax
	movq	_RPC_HANDSHAKE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.2:
	movl	$-3, %ebx
	cmpl	$16, 16(%r15)
	jne	LBB0_9
## %bb.3:
	leaq	_rpcc_process_handshake_packet.P(%rip), %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_read_in
	xorl	%edi, %edi
	cmpl	16(%r15), %eax
	sete	%dil
	callq	_assert
	addq	$24, %r15
	leaq	_rpcc_process_handshake_packet.P+8(%rip), %rdi
	movq	%r15, %rsi
	callq	_matches_pid
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	cmpq	$0, _rpcc_process_handshake_packet.P+8(%rip)
	jne	LBB0_7
## %bb.6:
	movq	(%r15), %rax
	movq	%rax, _rpcc_process_handshake_packet.P+8(%rip)
LBB0_7:
	leaq	_rpcc_process_handshake_packet.P+8(%rip), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcpy
	leaq	_rpcc_process_handshake_packet.P(%rip), %rsi
	movq	_PID@GOTPCREL(%rip), %rdi
	callq	_matches_pid
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movl	$-4, %ebx
	jmp	LBB0_9
LBB0_4:
	movl	$-6, %ebx
LBB0_9:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_rpcc_send_handshake_error_packet
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_rpcc_process_handshake_packet.P,16,3 ## @rpcc_process_handshake_packet.P
	.comm	_RPC_HANDSHAKE,8,3              ## @RPC_HANDSHAKE
	.comm	_PID,8,3                        ## @PID
	.no_dead_strip	_rpcc_process_handshake_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpcc_process_handshake_packet
_rpcc_process_handshake_packet:         ; @rpcc_process_handshake_packet
	.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	_RPCC_DATA
	ldr	w8, [x0]
	cmn	w8, #1
	b.ne	LBB0_8
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _RPC_HANDSHAKE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RPC_HANDSHAKE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.2:
	ldr	w8, [x21, #16]
	cmp	w8, #16
	b.ne	LBB0_10
; %bb.3:
Lloh3:
	adrp	x20, _rpcc_process_handshake_packet.P@PAGE
Lloh4:
	add	x20, x20, _rpcc_process_handshake_packet.P@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	w2, #16
	bl	_read_in
	ldr	w8, [x21, #16]
	cmp	w0, w8
	cset	w0, eq
	bl	_assert
	add	x21, x21, #24
	add	x0, x20, #8
	mov	x1, x21
	bl	_matches_pid
	cbz	w0, LBB0_11
; %bb.4:
	adrp	x8, _rpcc_process_handshake_packet.P@PAGE+8
	ldr	x9, [x8, _rpcc_process_handshake_packet.P@PAGEOFF+8]
	cbnz	x9, LBB0_6
; %bb.5:
	ldr	x9, [x21]
	str	x9, [x8, _rpcc_process_handshake_packet.P@PAGEOFF+8]
LBB0_6:
	add	x1, x20, #8
	mov	x0, x21
	mov	w2, #4
	bl	_memcpy
Lloh5:
	adrp	x0, _PID@GOTPAGE
Lloh6:
	ldr	x0, [x0, _PID@GOTPAGEOFF]
	mov	x1, x20
	bl	_matches_pid
	cbz	w0, LBB0_12
; %bb.7:
	mov	w20, #0
	b	LBB0_9
LBB0_8:
	mov	w20, #-2
LBB0_9:
	mov	x0, x20
	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
LBB0_10:
	mov	w20, #-3
	b	LBB0_13
LBB0_11:
	mov	w20, #-6
	b	LBB0_13
LBB0_12:
	mov	w20, #-4
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_rpcc_send_handshake_error_packet
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_rpcc_process_handshake_packet.P,16,3 ; @rpcc_process_handshake_packet.P
	.comm	_RPC_HANDSHAKE,8,3              ; @RPC_HANDSHAKE
	.comm	_PID,8,3                        ; @PID
	.no_dead_strip	_rpcc_process_handshake_packet
.subsections_via_symbols
