	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_handshake_info         ## -- Begin function netplay_handshake_info
	.p2align	4, 0x90
_netplay_handshake_info:                ## @netplay_handshake_info
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	xorl	%eax, %eax
	callq	_runloop_get_libretro_system_info
	movq	%rax, %rbx
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_NETPLAY_CMD_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	-32(%rbp), %rcx
	movq	%rax, (%rcx)
	movl	$16, %edi
	callq	_htonl
	movq	-32(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movl	-36(%rbp), %edi
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movl	-40(%rbp), %edi
	movq	8(%rbx), %rsi
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rbx
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movl	-40(%rbp), %edi
	movq	%rbx, %rsi
LBB0_3:
	movl	$4, %edx
	callq	_strlcpy
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_content_get_crc
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %edi
	callq	_htonl
	movq	%rax, -48(%rbp)
LBB0_5:
	leaq	8(%r14), %rbx
	movl	4(%r14), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$24, %ecx
	callq	_netplay_send
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	4(%r14), %esi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_netplay_send_flush
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	_NETPLAY_CONNECTION_PRE_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	$1, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETPLAY_CMD_INFO,4,2           ## @NETPLAY_CMD_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UNKNOWN"

	.comm	_NETPLAY_CONNECTION_PRE_INFO,4,2 ## @NETPLAY_CONNECTION_PRE_INFO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_handshake_info         ; -- Begin function netplay_handshake_info
	.p2align	2
_netplay_handshake_info:                ; @netplay_handshake_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
	bl	_runloop_get_libretro_system_info
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _NETPLAY_CMD_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETPLAY_CMD_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htonl
	ldr	x8, [sp, #24]
	str	x0, [x8]
	mov	w0, #16
	bl	_htonl
	ldr	x8, [sp, #24]
	str	x0, [x8, #8]
	ldr	w0, [sp, #20]
	cbz	x20, LBB0_2
; %bb.1:
	ldr	x1, [x20]
	mov	w2, #4
	bl	_strlcpy
	ldr	w0, [sp, #16]
	ldr	x1, [x20, #8]
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x20, l_.str@PAGE
Lloh4:
	add	x20, x20, l_.str@PAGEOFF
	mov	x1, x20
	mov	w2, #4
	bl	_strlcpy
	ldr	w0, [sp, #16]
	mov	x1, x20
LBB0_3:
	mov	w2, #4
	bl	_strlcpy
	bl	_content_get_crc
	cbz	w0, LBB0_5
; %bb.4:
	bl	_htonl
	str	x0, [sp, #8]
LBB0_5:
	add	x20, x19, #8
	ldr	w1, [x19, #4]
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #24
	bl	_netplay_send
	cbz	w0, LBB0_8
; %bb.6:
	ldr	w1, [x19, #4]
	mov	x0, x20
	mov	w2, #0
	bl	_netplay_send_flush
	cbz	w0, LBB0_8
; %bb.7:
Lloh5:
	adrp	x8, _NETPLAY_CONNECTION_PRE_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NETPLAY_CONNECTION_PRE_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NETPLAY_CMD_INFO,4,2           ; @NETPLAY_CMD_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UNKNOWN"

	.comm	_NETPLAY_CONNECTION_PRE_INFO,4,2 ; @NETPLAY_CONNECTION_PRE_INFO
.subsections_via_symbols
