	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_driver_ctl             ## -- Begin function netplay_driver_ctl
	.p2align	4, 0x90
_netplay_driver_ctl:                    ## @netplay_driver_ctl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_in_netplay@GOTPCREL(%rip), %r14
	movl	$1, %ebx
	cmpl	$0, (%r14)
	jne	LBB0_29
## %bb.1:
	movl	%edi, %eax
	movq	_netplay_data@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movl	$1, (%r14)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.8:
	addl	$-128, %eax
	cmpl	$19, %eax
	ja	LBB0_27
## %bb.9:
	movl	$1, %ebx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_17:
	xorl	%esi, %esi
	callq	_netplay_frontend_paused
	jmp	LBB0_28
LBB0_2:
	movl	$1, %ebx
	addl	$-135, %eax
	cmpl	$10, %eax
	ja	LBB0_28
## %bb.3:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_27:
	xorl	%ebx, %ebx
	jmp	LBB0_28
LBB0_11:
	movq	_netplay_enabled@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	setne	%al
	movq	_netplay_is_client@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %ebx
	jmp	LBB0_28
LBB0_7:
	movq	_netplay_enabled@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_28
LBB0_4:
	movq	_netplay_enabled@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_netplay_is_client@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	jmp	LBB0_28
LBB0_5:
	movq	_netplay_enabled@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_netplay_is_client@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_28
LBB0_6:
	movq	_netplay_enabled@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	jmp	LBB0_28
LBB0_20:
	callq	_netplay_core_reset
	jmp	LBB0_28
LBB0_14:
	callq	_netplay_pre_frame
	movl	%eax, %ebx
	jmp	LBB0_28
LBB0_13:
	callq	_netplay_post_frame
	jmp	LBB0_28
LBB0_16:
	movl	$1, %ebx
	movl	$1, %esi
	callq	_netplay_frontend_paused
	jmp	LBB0_28
LBB0_18:
	movl	$1, %ebx
	jmp	LBB0_19
LBB0_10:
	movl	(%rdi), %ebx
	jmp	LBB0_28
LBB0_12:
	movl	4(%rdi), %ebx
	jmp	LBB0_28
LBB0_15:
	callq	_netplay_toggle_play_spectate
	jmp	LBB0_28
LBB0_22:
	movl	$0, 8(%rdi)
	callq	_netplay_announce_nat_traversal
	jmp	LBB0_28
LBB0_21:
	callq	_netplay_disconnect
	movl	%eax, %ebx
	jmp	LBB0_28
LBB0_23:
	incl	12(%rdi)
	jmp	LBB0_28
LBB0_24:
	movl	12(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_28
## %bb.25:
	decl	%eax
	movl	%eax, 12(%rdi)
	jne	LBB0_28
## %bb.26:
	movl	$1, %ebx
	xorl	%esi, %esi
LBB0_19:
	movl	$1, %edx
	callq	_netplay_load_savestate
LBB0_28:
	movl	$0, (%r14)
LBB0_29:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_20
	.long	L0_0_set_14
	.long	L0_0_set_13
	.long	L0_0_set_16
	.long	L0_0_set_27
	.long	L0_0_set_18
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_28
	.long	L0_0_set_28
	.long	L0_0_set_12
	.long	L0_0_set_15
	.long	L0_0_set_22
	.long	L0_0_set_28
	.long	L0_0_set_28
	.long	L0_0_set_21
	.long	L0_0_set_27
	.long	L0_0_set_23
	.long	L0_0_set_24
.set L0_1_set_11, LBB0_11-LJTI0_1
.set L0_1_set_27, LBB0_27-LJTI0_1
.set L0_1_set_7, LBB0_7-LJTI0_1
.set L0_1_set_28, LBB0_28-LJTI0_1
.set L0_1_set_4, LBB0_4-LJTI0_1
.set L0_1_set_5, LBB0_5-LJTI0_1
.set L0_1_set_6, LBB0_6-LJTI0_1
LJTI0_1:
	.long	L0_1_set_11
	.long	L0_1_set_27
	.long	L0_1_set_7
	.long	L0_1_set_27
	.long	L0_1_set_27
	.long	L0_1_set_28
	.long	L0_1_set_28
	.long	L0_1_set_4
	.long	L0_1_set_5
	.long	L0_1_set_28
	.long	L0_1_set_6
	.end_data_region
                                        ## -- End function
	.comm	_netplay_data,8,3               ## @netplay_data
	.comm	_in_netplay,4,2                 ## @in_netplay
	.comm	_netplay_enabled,4,2            ## @netplay_enabled
	.comm	_netplay_is_client,4,2          ## @netplay_is_client
	.comm	_CMD_EVENT_DISCORD_UPDATE,4,2   ## @CMD_EVENT_DISCORD_UPDATE
	.comm	_DISCORD_PRESENCE_NETPLAY_NETPLAY_STOPPED,4,2 ## @DISCORD_PRESENCE_NETPLAY_NETPLAY_STOPPED
	.comm	_discord_is_inited,4,2          ## @discord_is_inited
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_driver_ctl             ; -- Begin function netplay_driver_ctl
	.p2align	2
_netplay_driver_ctl:                    ; @netplay_driver_ctl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _in_netplay@GOTPAGE
Lloh1:
	ldr	x20, [x20, _in_netplay@GOTPAGEOFF]
	ldr	w9, [x20]
	mov	w19, #1
	cbnz	w9, LBB0_30
; %bb.1:
	mov	x8, x0
Lloh2:
	adrp	x9, _netplay_data@GOTPAGE
Lloh3:
	ldr	x9, [x9, _netplay_data@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x9]
	str	w19, [x20]
	cbz	x0, LBB0_5
; %bb.2:
	sub	w8, w8, #128
	cmp	w8, #19
	b.hi	LBB0_7
; %bb.3:
	mov	w19, #1
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	mov	w1, #0
	bl	_netplay_frontend_paused
	b	LBB0_28
LBB0_5:
	mov	w19, #1
	sub	w8, w8, #135
	cmp	w8, #10
	b.hi	LBB0_29
; %bb.6:
Lloh7:
	adrp	x9, lJTI0_1@PAGE
Lloh8:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	mov	w19, #0
	b	LBB0_29
LBB0_8:
Lloh9:
	adrp	x8, _netplay_enabled@GOTPAGE
Lloh10:
	ldr	x8, [x8, _netplay_enabled@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, #0
Lloh12:
	adrp	x8, _netplay_is_client@GOTPAGE
Lloh13:
	ldr	x8, [x8, _netplay_is_client@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ccmp	w8, #0, #0, ne
	cset	w19, eq
	b	LBB0_29
LBB0_9:
Lloh15:
	adrp	x8, _netplay_enabled@GOTPAGE
Lloh16:
	ldr	x8, [x8, _netplay_enabled@GOTPAGEOFF]
Lloh17:
	ldr	w19, [x8]
	b	LBB0_29
LBB0_10:
Lloh18:
	adrp	x8, _netplay_enabled@GOTPAGE
Lloh19:
	ldr	x8, [x8, _netplay_enabled@GOTPAGEOFF]
	mov	w19, #1
Lloh20:
	str	w19, [x8]
Lloh21:
	adrp	x8, _netplay_is_client@GOTPAGE
Lloh22:
	ldr	x8, [x8, _netplay_is_client@GOTPAGEOFF]
Lloh23:
	str	wzr, [x8]
	b	LBB0_29
LBB0_11:
Lloh24:
	adrp	x8, _netplay_enabled@GOTPAGE
Lloh25:
	ldr	x8, [x8, _netplay_enabled@GOTPAGEOFF]
	mov	w19, #1
Lloh26:
	str	w19, [x8]
Lloh27:
	adrp	x8, _netplay_is_client@GOTPAGE
Lloh28:
	ldr	x8, [x8, _netplay_is_client@GOTPAGEOFF]
Lloh29:
	str	w19, [x8]
	b	LBB0_29
LBB0_12:
Lloh30:
	adrp	x8, _netplay_enabled@GOTPAGE
Lloh31:
	ldr	x8, [x8, _netplay_enabled@GOTPAGEOFF]
Lloh32:
	str	wzr, [x8]
	b	LBB0_28
LBB0_13:
	bl	_netplay_core_reset
	b	LBB0_28
LBB0_14:
	bl	_netplay_pre_frame
	mov	x19, x0
	b	LBB0_29
LBB0_15:
	bl	_netplay_post_frame
	b	LBB0_28
LBB0_16:
	mov	w19, #1
	mov	w1, #1
	bl	_netplay_frontend_paused
	b	LBB0_29
LBB0_17:
	mov	w19, #1
	b	LBB0_27
LBB0_18:
	ldr	w19, [x0]
	b	LBB0_29
LBB0_19:
	ldr	w19, [x0, #4]
	b	LBB0_29
LBB0_20:
	bl	_netplay_toggle_play_spectate
	b	LBB0_28
LBB0_21:
	str	wzr, [x0, #8]
	bl	_netplay_announce_nat_traversal
	b	LBB0_28
LBB0_22:
	bl	_netplay_disconnect
	mov	x19, x0
	b	LBB0_29
LBB0_23:
	ldr	w8, [x0, #12]
	add	w8, w8, #1
	str	w8, [x0, #12]
	b	LBB0_28
LBB0_24:
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_28
; %bb.25:
	subs	w8, w8, #1
	str	w8, [x0, #12]
	mov	w19, #1
	b.ne	LBB0_29
; %bb.26:
	mov	x1, #0
LBB0_27:
	mov	w2, #1
	bl	_netplay_load_savestate
	b	LBB0_29
LBB0_28:
	mov	w19, #1
LBB0_29:
	str	wzr, [x20]
LBB0_30:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_17-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_18-LBB0_4)>>2
	.byte	(LBB0_29-LBB0_4)>>2
	.byte	(LBB0_29-LBB0_4)>>2
	.byte	(LBB0_19-LBB0_4)>>2
	.byte	(LBB0_20-LBB0_4)>>2
	.byte	(LBB0_21-LBB0_4)>>2
	.byte	(LBB0_29-LBB0_4)>>2
	.byte	(LBB0_29-LBB0_4)>>2
	.byte	(LBB0_22-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_23-LBB0_4)>>2
	.byte	(LBB0_24-LBB0_4)>>2
lJTI0_1:
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_29-LBB0_7)>>2
	.byte	(LBB0_29-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
	.byte	(LBB0_29-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
                                        ; -- End function
	.comm	_netplay_data,8,3               ; @netplay_data
	.comm	_in_netplay,4,2                 ; @in_netplay
	.comm	_netplay_enabled,4,2            ; @netplay_enabled
	.comm	_netplay_is_client,4,2          ; @netplay_is_client
	.comm	_CMD_EVENT_DISCORD_UPDATE,4,2   ; @CMD_EVENT_DISCORD_UPDATE
	.comm	_DISCORD_PRESENCE_NETPLAY_NETPLAY_STOPPED,4,2 ; @DISCORD_PRESENCE_NETPLAY_NETPLAY_STOPPED
	.comm	_discord_is_inited,4,2          ; @discord_is_inited
.subsections_via_symbols
