	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function netplay_cmd_mode
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
LCPI0_2:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_3:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_4:
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
LCPI0_5:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_netplay_cmd_mode
	.p2align	4, 0x90
_netplay_cmd_mode:                      ## @netplay_cmd_mode
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	$0, -44(%rbp)
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, %r12
	movq	(%r15), %rax
	leaq	8(%r15), %r14
	testq	%rax, %rax
	cmovneq	%r13, %r14
	cmpl	$128, %ebx
	je	LBB0_1
## %bb.2:
	cmpl	$130, %ebx
	je	LBB0_5
## %bb.3:
	cmpl	$129, %ebx
	jne	LBB0_20
## %bb.4:
	movq	_NETPLAY_CMD_PLAY_BIT_SLAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_5:
	xorl	%eax, %eax
	callq	_netplay_settings_share_mode
	shll	$16, %eax
	orl	%r13d, %eax
	movq	_MAX_INPUT_DEVICES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%edx, %edx
	jle	LBB0_16
## %bb.6:
	movq	(%r12), %rsi
	cmpl	$8, %edx
	jae	LBB0_8
## %bb.7:
	xorl	%ecx, %ecx
	jmp	LBB0_15
LBB0_1:
	movq	_NETPLAY_CMD_SPECTATE@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_8:
	movl	%edx, %ecx
	andl	$-8, %ecx
	movd	%eax, %xmm0
	leaq	-8(%rcx), %rax
	movq	%rax, %rbx
	shrq	$3, %rbx
	incq	%rbx
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rbx, %rax
	andq	$-2, %rax
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,1,2,3]
	pxor	%xmm12, %xmm12
	xorl	%edi, %edi
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm13           ## xmm13 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	movdqa	LCPI0_4(%rip), %xmm10           ## xmm10 = [12,12,12,12]
	movdqa	LCPI0_5(%rip), %xmm11           ## xmm11 = [16,16,16,16]
	movdqa	%xmm0, %xmm7
	pxor	%xmm6, %xmm6
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm1, %xmm0
	paddd	%xmm8, %xmm0
	movdqa	%xmm1, %xmm2
	pslld	$23, %xmm2
	paddd	%xmm13, %xmm2
	cvttps2dq	%xmm2, %xmm5
	pslld	$23, %xmm0
	paddd	%xmm13, %xmm0
	cvttps2dq	%xmm0, %xmm14
	movdqu	(%rsi,%rdi,4), %xmm3
	movdqu	16(%rsi,%rdi,4), %xmm4
	movdqu	32(%rsi,%rdi,4), %xmm0
	movdqu	48(%rsi,%rdi,4), %xmm2
	pcmpeqd	%xmm12, %xmm3
	pandn	%xmm5, %xmm3
	por	%xmm7, %xmm3
	pcmpeqd	%xmm12, %xmm4
	pandn	%xmm14, %xmm4
	por	%xmm6, %xmm4
	movdqa	%xmm1, %xmm5
	paddd	%xmm9, %xmm5
	movdqa	%xmm1, %xmm6
	paddd	%xmm10, %xmm6
	pslld	$23, %xmm5
	paddd	%xmm13, %xmm5
	cvttps2dq	%xmm5, %xmm5
	pslld	$23, %xmm6
	paddd	%xmm13, %xmm6
	cvttps2dq	%xmm6, %xmm6
	pcmpeqd	%xmm12, %xmm0
	pandn	%xmm5, %xmm0
	por	%xmm3, %xmm0
	pcmpeqd	%xmm12, %xmm2
	pandn	%xmm6, %xmm2
	por	%xmm4, %xmm2
	addq	$16, %rdi
	paddd	%xmm11, %xmm1
	movdqa	%xmm0, %xmm7
	movdqa	%xmm2, %xmm6
	addq	$-2, %rax
	jne	LBB0_11
## %bb.12:
	testb	$1, %bl
	je	LBB0_14
LBB0_13:
	movdqa	LCPI0_1(%rip), %xmm3            ## xmm3 = [4,4,4,4]
	paddd	%xmm1, %xmm3
	movdqu	(%rsi,%rdi,4), %xmm4
	movdqu	16(%rsi,%rdi,4), %xmm5
	pxor	%xmm6, %xmm6
	pslld	$23, %xmm1
	movdqa	LCPI0_2(%rip), %xmm7            ## xmm7 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm7, %xmm1
	cvttps2dq	%xmm1, %xmm1
	pslld	$23, %xmm3
	paddd	%xmm7, %xmm3
	cvttps2dq	%xmm3, %xmm3
	pcmpeqd	%xmm6, %xmm4
	pandn	%xmm1, %xmm4
	por	%xmm4, %xmm0
	pcmpeqd	%xmm6, %xmm5
	pandn	%xmm3, %xmm5
	por	%xmm5, %xmm2
LBB0_14:
	por	%xmm2, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpq	%rdx, %rcx
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	shll	%cl, %edi
	movl	(%rsi,%rcx,4), %ebx
	testl	%ebx, %ebx
	cmovel	%ebx, %edi
	orl	%edi, %eax
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_15
LBB0_16:
	movl	%eax, %edi
	callq	_htonl
	movl	%eax, -44(%rbp)
	movq	(%r15), %rax
	movq	_NETPLAY_CMD_PLAY@GOTPCREL(%rip), %rcx
	leaq	-44(%rbp), %r13
LBB0_17:
	movl	(%rcx), %ecx
	xorl	%r8d, %r8d
	testq	%r13, %r13
	setne	%r8b
	shll	$2, %r8d
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r13, %r9
	callq	_handle_play_spectate
	movl	$1, %r13d
	jmp	LBB0_20
LBB0_19:
	movq	%r14, %rsi
	movl	%ecx, %edx
	movq	%r13, %rcx
	callq	_netplay_send_raw_cmd
	movl	%eax, %r13d
LBB0_20:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,1,2,3]
	pxor	%xmm2, %xmm2
	xorl	%edi, %edi
	testb	$1, %bl
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_NETPLAY_CMD_SPECTATE,4,2       ## @NETPLAY_CMD_SPECTATE
	.comm	_NETPLAY_CMD_PLAY_BIT_SLAVE,4,2 ## @NETPLAY_CMD_PLAY_BIT_SLAVE
	.comm	_MAX_INPUT_DEVICES,4,2          ## @MAX_INPUT_DEVICES
	.comm	_NETPLAY_CMD_PLAY,4,2           ## @NETPLAY_CMD_PLAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function netplay_cmd_mode
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_netplay_cmd_mode
	.p2align	2
_netplay_cmd_mode:                      ; @netplay_cmd_mode
	.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	x23, x1
	mov	x19, x0
	mov	w21, #0
	str	wzr, [sp, #12]
	bl	_config_get_ptr
	mov	x9, x19
	ldr	x8, [x9], #8
	cmp	x8, #0
	csel	x20, x9, xzr, eq
	cmp	w23, #128
	b.eq	LBB0_7
; %bb.1:
	mov	x22, x0
	cmp	w23, #130
	b.eq	LBB0_4
; %bb.2:
	cmp	w23, #129
	b.ne	LBB0_17
; %bb.3:
Lloh0:
	adrp	x8, _NETPLAY_CMD_PLAY_BIT_SLAVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETPLAY_CMD_PLAY_BIT_SLAVE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
LBB0_4:
	bl	_netplay_settings_share_mode
	orr	w0, w21, w0, lsl #16
Lloh3:
	adrp	x8, _MAX_INPUT_DEVICES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_INPUT_DEVICES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.5:
	ldr	x9, [x22]
	cmp	w8, #16
	b.hs	LBB0_8
; %bb.6:
	mov	x10, #0
	b	LBB0_11
LBB0_7:
	mov	x5, #0
Lloh6:
	adrp	x9, _NETPLAY_CMD_SPECTATE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NETPLAY_CMD_SPECTATE@GOTPAGEOFF]
	b	LBB0_14
LBB0_8:
	and	x10, x8, #0xfffffff0
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w0
	movi.2d	v1, #0000000000000000
	movi.4s	v2, #4
Lloh8:
	adrp	x11, lCPI0_0@PAGE
Lloh9:
	ldr	q3, [x11, lCPI0_0@PAGEOFF]
	add	x11, x9, #32
	movi.4s	v4, #8
	movi.4s	v5, #12
	movi.4s	v6, #1
	movi.4s	v7, #16
	mov	x12, x10
	movi.2d	v16, #0000000000000000
	movi.2d	v17, #0000000000000000
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v18, v3, v2
	add.4s	v19, v3, v4
	add.4s	v20, v3, v5
	ldp	q21, q22, [x11, #-32]
	ldp	q23, q24, [x11], #64
	cmeq.4s	v21, v21, #0
	cmeq.4s	v22, v22, #0
	cmeq.4s	v23, v23, #0
	cmeq.4s	v24, v24, #0
	ushl.4s	v25, v6, v3
	ushl.4s	v18, v6, v18
	ushl.4s	v19, v6, v19
	ushl.4s	v20, v6, v20
	bic.16b	v21, v25, v21
	bic.16b	v18, v18, v22
	bic.16b	v19, v19, v23
	bic.16b	v20, v20, v24
	orr.16b	v0, v0, v21
	orr.16b	v1, v1, v18
	orr.16b	v16, v16, v19
	orr.16b	v17, v17, v20
	add.4s	v3, v3, v7
	subs	x12, x12, #16
	b.ne	LBB0_9
; %bb.10:
	orr.16b	v0, v1, v0
	orr.16b	v0, v16, v0
	orr.16b	v0, v17, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w11, s0
	mov.s	w12, v0[1]
	orr	w0, w11, w12
	cmp	x10, x8
	b.eq	LBB0_13
LBB0_11:
	mov	w11, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9, x10, lsl #2]
	lsl	w13, w11, w10
	cmp	w12, #0
	csel	w12, wzr, w13, eq
	orr	w0, w0, w12
	add	x10, x10, #1
	cmp	x8, x10
	b.ne	LBB0_12
LBB0_13:
	bl	_htonl
	str	w0, [sp, #12]
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _NETPLAY_CMD_PLAY@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NETPLAY_CMD_PLAY@GOTPAGEOFF]
	add	x5, sp, #12
LBB0_14:
	ldr	w3, [x9]
	cmp	x5, #0
	cset	w9, ne
	lsl	w4, w9, #2
	mov	x0, x19
	cbz	x8, LBB0_16
; %bb.15:
	mov	w1, #0
	mov	x2, #0
	bl	_handle_play_spectate
	mov	w21, #1
	b	LBB0_17
LBB0_16:
	mov	x1, x20
	mov	x2, x3
	mov	x3, x5
	bl	_netplay_send_raw_cmd
	mov	x21, x0
LBB0_17:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NETPLAY_CMD_SPECTATE,4,2       ; @NETPLAY_CMD_SPECTATE
	.comm	_NETPLAY_CMD_PLAY_BIT_SLAVE,4,2 ; @NETPLAY_CMD_PLAY_BIT_SLAVE
	.comm	_MAX_INPUT_DEVICES,4,2          ; @MAX_INPUT_DEVICES
	.comm	_NETPLAY_CMD_PLAY,4,2           ; @NETPLAY_CMD_PLAY
.subsections_via_symbols
