	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_input_frame
_send_input_frame:                      ## @send_input_frame
	.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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -180(%rbp)                ## 4-byte Spill
	movq	%r8, %r15
	movq	%rcx, -192(%rbp)                ## 8-byte Spill
	movq	%rdx, -232(%rbp)                ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NETPLAY_CMD_INPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_htonl
	movq	%rax, -176(%rbp)
	movq	%rbx, -216(%rbp)                ## 8-byte Spill
	movq	(%rbx), %rdi
	callq	_htonl
	movq	%rax, -160(%rbp)
	movq	%r15, %rdi
	callq	_htonl
	movq	%rax, -152(%rbp)
	movq	_MAX_INPUT_DEVICES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%r13), %rcx
	movq	(%rcx,%r15,8), %rbx
	movl	$4, %esi
	xorl	%r14d, %r14d
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %r9
	movl	-180(%rbp), %r8d                ## 4-byte Reload
	movq	-216(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, -224(%rbp)                ## 8-byte Spill
	movq	%r15, -200(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	%rcx, %rsi
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	cmpq	%rax, %r14
	jae	LBB0_18
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
	movl	$1, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	movslq	%edx, %rcx
	testq	%rcx, %rbx
	je	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rdi), %rcx
	movq	(%rcx,%r14,8), %r12
	testq	%r12, %r12
	je	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rcx
	testl	%r8d, %r8d
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r9), %rcx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	movq	24(%r12), %r12
	testq	%r12, %r12
	je	LBB0_17
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, 32(%r12)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpq	%rcx, (%r12)
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rcx
	leaq	(%rcx,%rsi), %rdx
	cmpq	$15, %rdx
	ja	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsi, -208(%rbp)                ## 8-byte Spill
	leaq	-176(,%rsi,8), %r13
	addq	%rbp, %r13
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r12), %rax
	movq	(%rax,%r15,8), %rdi
	callq	_htonl
	movq	%rax, (%r13,%r15,8)
	incq	%r15
	movq	8(%r12), %rcx
	cmpq	%rcx, %r15
	jb	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_MAX_INPUT_DEVICES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-224(%rbp), %r13                ## 8-byte Reload
	movq	-200(%rbp), %r15                ## 8-byte Reload
	movq	-208(%rbp), %rsi                ## 8-byte Reload
	movl	-180(%rbp), %r8d                ## 4-byte Reload
	movq	-216(%rbp), %rdi                ## 8-byte Reload
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %r9
	jmp	LBB0_16
LBB0_1:
	movl	$4, %esi
LBB0_18:
	leaq	-16(,%rsi,8), %rdi
	shlq	$3, %rsi
	movq	%rsi, %rbx
	callq	_htonl
	movq	%rax, -168(%rbp)
	movq	-232(%rbp), %rax                ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_19
## %bb.30:
	leaq	12(%rax), %rdi
	movl	8(%rax), %esi
	movq	%rax, %r15
	leaq	-176(%rbp), %rdx
	movq	%rbx, %rcx
	callq	_netplay_send
	movl	$1, %ecx
	testl	%eax, %eax
	jne	LBB0_32
## %bb.31:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_netplay_hangup
	xorl	%ecx, %ecx
	jmp	LBB0_32
LBB0_19:
	movq	%rbx, -208(%rbp)                ## 8-byte Spill
	movl	$1, %ecx
	cmpq	$0, 8(%r13)
	je	LBB0_32
## %bb.20:
	decq	%r15
	movq	%r15, -200(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	_NETPLAY_CONNECTION_CONNECTED@GOTPCREL(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-192(%rbp), %rdx                ## 8-byte Reload
	jmp	LBB0_21
LBB0_26:                                ##   in Loop: Header=BB0_21 Depth=1
	leaq	(%rax,%r15), %rdi
	addq	$12, %rdi
	movq	%rsi, %r14
	movl	8(%rax,%r15), %esi
	leaq	-176(%rbp), %rdx
	movq	-208(%rbp), %rcx                ## 8-byte Reload
	callq	_netplay_send
	movq	%r14, %rsi
	movq	-192(%rbp), %rdx                ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_27
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%rbx
	addq	$24, %r15
	cmpq	8(%r13), %rbx
	jae	LBB0_29
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	leaq	(%rax,%r15), %r12
	cmpq	%rdx, %r12
	je	LBB0_28
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	cmpq	$0, 16(%rax,%r15)
	je	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	(%rax,%r15), %rcx
	cmpq	(%rsi), %rcx
	jl	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	_NETPLAY_CONNECTION_PLAYING@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rcx
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_21 Depth=1
	cmpq	%rbx, -200(%rbp)                ## 8-byte Folded Reload
	je	LBB0_28
	jmp	LBB0_26
LBB0_27:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_netplay_hangup
	movq	%r14, %rsi
	movq	-192(%rbp), %rdx                ## 8-byte Reload
	jmp	LBB0_28
LBB0_29:
	movl	$1, %ecx
LBB0_32:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_34
## %bb.33:
	movl	%ecx, %eax
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NETPLAY_CMD_INPUT,8,3          ## @NETPLAY_CMD_INPUT
	.comm	_MAX_INPUT_DEVICES,8,3          ## @MAX_INPUT_DEVICES
	.comm	_MAX_CLIENTS,8,3                ## @MAX_CLIENTS
	.comm	_NETPLAY_CONNECTION_CONNECTED,8,3 ## @NETPLAY_CONNECTION_CONNECTED
	.comm	_NETPLAY_CONNECTION_PLAYING,8,3 ## @NETPLAY_CONNECTION_PLAYING
	.comm	_BUFSZ,4,2                      ## @BUFSZ
	.no_dead_strip	_send_input_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_input_frame
_send_input_frame:                      ; @send_input_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #176]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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
	mov	x23, x5
	mov	x22, x4
	str	x3, [sp]                        ; 8-byte Folded Spill
	mov	x20, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _NETPLAY_CMD_INPUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETPLAY_CMD_INPUT@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	bl	_htonl
	str	x0, [sp, #32]
	ldr	x0, [x24]
	bl	_htonl
	str	x0, [sp, #48]
	mov	x0, x22
	bl	_htonl
	str	x0, [sp, #56]
Lloh6:
	adrp	x8, _MAX_INPUT_DEVICES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_INPUT_DEVICES@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.1:
	mov	x27, #0
	ldr	x9, [x19]
	ldr	x28, [x9, x22, lsl #3]
	mov	w26, #4
	mov	w25, #1
Lloh9:
	adrp	x11, _MAX_CLIENTS@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MAX_CLIENTS@GOTPAGEOFF]
	stp	x22, x20, [sp, #16]             ; 16-byte Folded Spill
	str	w23, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x9, x26
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	cmp	x27, x8
	b.hs	LBB0_16
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	lsl	w9, w25, w27
	sxtw	x9, w9
	tst	x28, x9
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x24, #8]
	ldr	x21, [x9, x27, lsl #3]
	cbz	x21, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x11]
	cmp	w23, #0
	csel	x9, x22, x9, eq
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	x21, [x21, #24]
	cbz	x21, LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x21, #32]
	cbz	w10, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x10, [x21]
	cmp	x10, x9
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21, #8]
	add	x10, x9, x26
	cmp	x10, #15
	b.hi	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	cbz	x9, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, #0
	add	x8, sp, #32
	add	x23, x8, x26, lsl #3
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21, #16]
	lsl	x22, x20, #3
	ldr	x0, [x8, x22]
	bl	_htonl
	str	x0, [x23, x22]
	add	x20, x20, #1
	ldr	x9, [x21, #8]
	cmp	x20, x9
	b.lo	LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh11:
	adrp	x8, _MAX_INPUT_DEVICES@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX_INPUT_DEVICES@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldp	x22, x20, [sp, #16]             ; 16-byte Folded Reload
	ldr	w23, [sp, #12]                  ; 4-byte Folded Reload
Lloh14:
	adrp	x11, _MAX_CLIENTS@GOTPAGE
Lloh15:
	ldr	x11, [x11, _MAX_CLIENTS@GOTPAGEOFF]
	b	LBB0_2
LBB0_15:
	mov	w26, #4
LBB0_16:
	lsl	x23, x26, #3
	sub	x0, x23, #16
	bl	_htonl
	str	x0, [sp, #40]
	cbz	x20, LBB0_19
; %bb.17:
	add	x0, x20, #12
	ldr	w1, [x20, #8]
	add	x2, sp, #32
	mov	x3, x23
	bl	_netplay_send
	cbnz	w0, LBB0_28
; %bb.18:
	mov	x0, x19
	mov	x1, x20
	bl	_netplay_hangup
	mov	w0, #0
	b	LBB0_29
LBB0_19:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_28
; %bb.20:
	mov	x24, #0
	mov	x25, #0
	sub	x22, x22, #1
Lloh16:
	adrp	x26, _NETPLAY_CONNECTION_CONNECTED@GOTPAGE
Lloh17:
	ldr	x26, [x26, _NETPLAY_CONNECTION_CONNECTED@GOTPAGEOFF]
Lloh18:
	adrp	x27, _NETPLAY_CONNECTION_PLAYING@GOTPAGE
Lloh19:
	ldr	x27, [x27, _NETPLAY_CONNECTION_PLAYING@GOTPAGEOFF]
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x25, x25, #1
	ldr	x8, [x19, #8]
	add	x24, x24, #24
	cmp	x25, x8
	b.hs	LBB0_28
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x21, x8, x24
	cmp	x21, x20
	b.eq	LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x9, [x21, #16]
	cbz	x9, LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x9, [x8, x24]
	ldr	x10, [x26]
	cmp	x9, x10
	b.lt	LBB0_21
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x10, [x27]
	cmp	x9, x10
	ccmp	x22, x25, #0, eq
	b.eq	LBB0_21
; %bb.26:                               ;   in Loop: Header=BB0_22 Depth=1
	add	x8, x8, x24
	add	x0, x8, #12
	ldr	w1, [x8, #8]
	add	x2, sp, #32
	mov	x3, x23
	bl	_netplay_send
	cbnz	w0, LBB0_21
; %bb.27:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_netplay_hangup
	b	LBB0_21
LBB0_28:
	mov	w0, #1
LBB0_29:
	ldur	x8, [x29, #-96]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.30:
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_31:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_NETPLAY_CMD_INPUT,8,3          ; @NETPLAY_CMD_INPUT
	.comm	_MAX_INPUT_DEVICES,8,3          ; @MAX_INPUT_DEVICES
	.comm	_MAX_CLIENTS,8,3                ; @MAX_CLIENTS
	.comm	_NETPLAY_CONNECTION_CONNECTED,8,3 ; @NETPLAY_CONNECTION_CONNECTED
	.comm	_NETPLAY_CONNECTION_PLAYING,8,3 ; @NETPLAY_CONNECTION_PLAYING
	.comm	_BUFSZ,4,2                      ; @BUFSZ
	.no_dead_strip	_send_input_frame
.subsections_via_symbols
