	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netplay_frontend_paused
_netplay_frontend_paused:               ## @netplay_frontend_paused
	.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
	cmpl	%esi, (%rdi)
	je	LBB0_22
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	%esi, (%rdi)
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.2:
	movq	24(%r15), %rcx
	cmpq	$1, %rax
	jne	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	xorl	%edx, %edx
LBB0_10:
	testb	$1, %al
	je	LBB0_13
## %bb.11:
	shlq	$5, %rsi
	cmpq	$0, 16(%rcx,%rsi)
	je	LBB0_13
## %bb.12:
	cmpq	$1, 24(%rcx,%rsi)
	sbbl	$-1, %edx
LBB0_13:
	cmpl	$1, %edx
	jle	LBB0_14
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rax, %rdi
	andq	$-2, %rdi
	leaq	56(%rcx), %rbx
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$2, %rsi
	addq	$64, %rbx
	cmpq	%rsi, %rdi
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -40(%rbx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$1, -32(%rbx)
	sbbl	$-1, %edx
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, -8(%rbx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$1, (%rbx)
	sbbl	$-1, %edx
	jmp	LBB0_9
LBB0_14:
	xorl	%ebx, %ebx
	movq	_NETPLAY_CONNECTION_CONNECTED@GOTPCREL(%rip), %rdx
	xorl	%r13d, %r13d
	jmp	LBB0_15
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	_NETPLAY_CMD_RESUME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	callq	_netplay_send_raw_cmd
	leaq	(%r12,%rbx), %rdi
	addq	$12, %rdi
	movl	8(%r12,%rbx), %esi
	movl	$1, %edx
	callq	_netplay_send_flush
	movq	8(%r15), %rax
	movq	_NETPLAY_CONNECTION_CONNECTED@GOTPCREL(%rip), %rdx
LBB0_21:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%r13
	addq	$32, %rbx
	cmpq	%rax, %r13
	jae	LBB0_22
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %r12
	cmpq	$0, 16(%r12,%rbx)
	je	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	(%r12,%rbx), %rcx
	cmpq	(%rdx), %rcx
	jl	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	leaq	(%r12,%rbx), %rsi
	testl	%r14d, %r14d
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_NETPLAY_CMD_PAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	16(%r15), %rcx
	movq	_NETPLAY_NICK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_NETPLAY_CONNECTION_CONNECTED,8,3 ## @NETPLAY_CONNECTION_CONNECTED
	.comm	_NETPLAY_CMD_PAUSE,4,2          ## @NETPLAY_CMD_PAUSE
	.comm	_NETPLAY_NICK_LEN,4,2           ## @NETPLAY_NICK_LEN
	.comm	_NETPLAY_CMD_RESUME,4,2         ## @NETPLAY_CMD_RESUME
	.no_dead_strip	_netplay_frontend_paused
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netplay_frontend_paused
_netplay_frontend_paused:               ; @netplay_frontend_paused
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cmp	w8, w1
	b.eq	LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	str	w1, [x0]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_7
; %bb.2:
	mov	w9, #0
	ldr	x10, [x20, #24]
	add	x10, x10, #24
	mov	x11, x8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #32
	subs	x11, x11, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x10, #-8]
	cbz	x12, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x12, [x10]
	cmp	x12, #0
	cinc	w9, w9, ne
	b	LBB0_3
LBB0_6:
	cmp	w9, #1
	b.le	LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x21, #0
	mov	x22, #0
Lloh0:
	adrp	x23, _NETPLAY_CONNECTION_CONNECTED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NETPLAY_CONNECTION_CONNECTED@GOTPAGEOFF]
Lloh2:
	adrp	x24, _NETPLAY_CMD_RESUME@GOTPAGE
Lloh3:
	ldr	x24, [x24, _NETPLAY_CMD_RESUME@GOTPAGEOFF]
Lloh4:
	adrp	x25, _NETPLAY_CMD_PAUSE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _NETPLAY_CMD_PAUSE@GOTPAGEOFF]
Lloh6:
	adrp	x26, _NETPLAY_NICK_LEN@GOTPAGE
Lloh7:
	ldr	x26, [x26, _NETPLAY_NICK_LEN@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_12 Depth=1
	ldr	w2, [x24]
	mov	x0, x20
	mov	x3, #0
	mov	w4, #0
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_netplay_send_raw_cmd
	add	x8, x27, x21
	add	x0, x8, #12
	ldr	w1, [x8, #8]
	mov	w2, #1
	bl	_netplay_send_flush
	ldr	x8, [x20, #8]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x22, #1
	add	x21, x21, #32
	cmp	x22, x8
	b.hs	LBB0_7
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x20, #24]
	add	x1, x27, x21
	ldr	x9, [x1, #16]
	cbz	x9, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x27, x21]
	ldr	x10, [x23]
	cmp	x9, x10
	b.lt	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	cbz	w19, LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w2, [x25]
	ldr	x3, [x20, #16]
	ldr	w4, [x26]
	mov	x0, x20
	b	LBB0_10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NETPLAY_CONNECTION_CONNECTED,8,3 ; @NETPLAY_CONNECTION_CONNECTED
	.comm	_NETPLAY_CMD_PAUSE,4,2          ; @NETPLAY_CMD_PAUSE
	.comm	_NETPLAY_NICK_LEN,4,2           ; @NETPLAY_NICK_LEN
	.comm	_NETPLAY_CMD_RESUME,4,2         ; @NETPLAY_CMD_RESUME
	.no_dead_strip	_netplay_frontend_paused
.subsections_via_symbols
