	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_cmd_crc                ## -- Begin function netplay_cmd_crc
	.p2align	4, 0x90
_netplay_cmd_crc:                       ## @netplay_cmd_crc
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	4(%rsi), %edi
	callq	_htonl
	movl	%eax, -56(%rbp)
	movl	(%r14), %edi
	callq	_htonl
	movl	%eax, -52(%rbp)
	movq	(%r12), %rax
	movl	$1, %r14d
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	movq	_NETPLAY_CONNECTION_CONNECTED@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	addq	$16, %rbx
	cmpq	%rax, %r15
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rsi
	cmpq	$0, 8(%rsi,%rbx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rsi,%rbx), %rcx
	cmpq	(%r13), %rcx
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%rbx, %rsi
	movq	_NETPLAY_CMD_CRC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	leaq	-56(%rbp), %rcx
	movl	$8, %r8d
	callq	_netplay_send_raw_cmd
	testq	%rax, %rax
	setne	%al
	testl	%r14d, %r14d
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %r14d
	movq	(%r12), %rax
	jmp	LBB0_5
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NETPLAY_CONNECTION_CONNECTED,8,3 ## @NETPLAY_CONNECTION_CONNECTED
	.comm	_NETPLAY_CMD_CRC,4,2            ## @NETPLAY_CMD_CRC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_cmd_crc                ; -- Begin function netplay_cmd_crc
	.p2align	2
_netplay_cmd_crc:                       ; @netplay_cmd_crc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	w0, [x1, #4]
	bl	_htonl
	str	w0, [sp]
	ldr	w0, [x20]
	bl	_htonl
	str	w0, [sp, #4]
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x21, #0
	mov	x22, #0
	mov	w20, #1
Lloh3:
	adrp	x23, _NETPLAY_CONNECTION_CONNECTED@GOTPAGE
Lloh4:
	ldr	x23, [x23, _NETPLAY_CONNECTION_CONNECTED@GOTPAGEOFF]
Lloh5:
	adrp	x24, _NETPLAY_CMD_CRC@GOTPAGE
Lloh6:
	ldr	x24, [x24, _NETPLAY_CMD_CRC@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	add	x21, x21, #16
	cmp	x22, x8
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	add	x1, x9, x21
	ldr	x10, [x1, #8]
	cbz	x10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x9, x21]
	ldr	x10, [x23]
	cmp	x9, x10
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x24]
	mov	x3, sp
	mov	x0, x19
	mov	w4, #8
	bl	_netplay_send_raw_cmd
	cmp	x0, #0
	ccmp	w20, #0, #4, ne
	cset	w20, ne
	ldr	x8, [x19]
	b	LBB0_2
LBB0_6:
	mov	w20, #1
LBB0_7:
	ldr	x8, [sp, #8]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NETPLAY_CONNECTION_CONNECTED,8,3 ; @NETPLAY_CONNECTION_CONNECTED
	.comm	_NETPLAY_CMD_CRC,4,2            ; @NETPLAY_CMD_CRC
.subsections_via_symbols
