	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_rpcs_process_handshake_packet
_tcp_rpcs_process_handshake_packet:     ## @tcp_rpcs_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_TCP_RPC_DATA
	movq	%rax, %r12
	movq	_PID@GOTPCREL(%rip), %rbx
	cmpq	$0, 16(%rbx)
	jne	LBB0_3
## %bb.1:
	movl	(%r14), %esi
	movl	4(%r14), %edi
	callq	_init_server_PID
	cmpq	$0, 16(%rbx)
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_get_my_ipv4
	movq	%rax, 16(%rbx)
LBB0_3:
	movl	$-2, %ebx
	cmpl	$-1, (%r12)
	jne	LBB0_9
## %bb.4:
	movq	8(%r12), %rax
	movq	_RPC_HANDSHAKE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.5:
	movl	$-3, %ebx
	cmpl	$20, 16(%r12)
	jne	LBB0_8
## %bb.6:
	leaq	_tcp_rpcs_process_handshake_packet.P(%rip), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$20, %edx
	callq	_rwm_fetch_data
	xorl	%edi, %edi
	cmpl	16(%r12), %eax
	sete	%dil
	callq	_assert
	addq	$20, %r12
	leaq	_tcp_rpcs_process_handshake_packet.P+16(%rip), %rsi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	_PID@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_matches_pid
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	16(%r15), %rdx
	movl	8(%r15), %ecx
	movl	(%r15), %r9d
	movl	4(%r15), %r8d
	movl	_tcp_rpcs_process_handshake_packet.P+12(%rip), %r10d
	movl	_tcp_rpcs_process_handshake_packet.P+8(%rip), %r11d
	movl	_tcp_rpcs_process_handshake_packet.P+4(%rip), %eax
	movl	_tcp_rpcs_process_handshake_packet.P(%rip), %ebx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	pushq	%rbx
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_vkprintf
	addq	$32, %rsp
	movl	$-4, %ebx
LBB0_8:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_tcp_rpcs_send_handshake_error_packet
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_tcp_rpcs_process_handshake_packet.P,20,2 ## @tcp_rpcs_process_handshake_packet.P
	.comm	_PID,24,3                       ## @PID
	.comm	_RPC_HANDSHAKE,8,3              ## @RPC_HANDSHAKE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PID mismatch during handshake: local %08x:%d:%d:%d, remote %08x:%d:%d:%d\n"

	.no_dead_strip	_tcp_rpcs_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 tcp_rpcs_process_handshake_packet
_tcp_rpcs_process_handshake_packet:     ; @tcp_rpcs_process_handshake_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x19, x0
	bl	_TCP_RPC_DATA
	mov	x20, x0
Lloh0:
	adrp	x22, _PID@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PID@GOTPAGEOFF]
	ldr	x8, [x22, #16]
	cbnz	x8, LBB0_3
; %bb.1:
	ldp	w1, w0, [x19]
	bl	_init_server_PID
	ldr	x8, [x22, #16]
	cbnz	x8, LBB0_3
; %bb.2:
	bl	_get_my_ipv4
	str	x0, [x22, #16]
LBB0_3:
	ldr	w8, [x20]
	cmn	w8, #1
	b.ne	LBB0_8
; %bb.4:
	ldr	x8, [x20, #8]
Lloh2:
	adrp	x9, _RPC_HANDSHAKE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RPC_HANDSHAKE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	ldr	w8, [x20, #16]
	cmp	w8, #20
	b.ne	LBB0_10
; %bb.6:
Lloh5:
	adrp	x22, _tcp_rpcs_process_handshake_packet.P@PAGE
Lloh6:
	add	x22, x22, _tcp_rpcs_process_handshake_packet.P@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	mov	w2, #20
	bl	_rwm_fetch_data
	ldr	w8, [x20, #16]
	cmp	w0, w8
	cset	w0, eq
	bl	_assert
	add	x0, x20, #20
	add	x1, x22, #16
	mov	w2, #4
	bl	_memcpy
Lloh7:
	adrp	x20, _PID@GOTPAGE
Lloh8:
	ldr	x20, [x20, _PID@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x22
	bl	_matches_pid
	cbz	w0, LBB0_11
; %bb.7:
	mov	w20, #0
	b	LBB0_9
LBB0_8:
	mov	w20, #-2
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
	mov	w20, #-3
	b	LBB0_12
LBB0_11:
	ldr	x2, [x20, #16]
	ldp	w4, w3, [x20, #4]
	ldr	w5, [x20]
	ldp	w7, w6, [x22, #8]
	ldp	w9, w8, [x22]
	stp	w8, w9, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
	mov	w20, #-4
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	bl	_tcp_rpcs_send_handshake_error_packet
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_tcp_rpcs_process_handshake_packet.P,20,2 ; @tcp_rpcs_process_handshake_packet.P
	.comm	_PID,24,3                       ; @PID
	.comm	_RPC_HANDSHAKE,8,3              ; @RPC_HANDSHAKE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PID mismatch during handshake: local %08x:%d:%d:%d, remote %08x:%d:%d:%d\n"

	.no_dead_strip	_tcp_rpcs_process_handshake_packet
.subsections_via_symbols
