	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_send_input                     ## -- Begin function send_input
	.p2align	4, 0x90
_send_input:                            ## @send_input
	.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
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_ranp_in@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_cmd@GOTPCREL(%rip), %r13
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_read
	xorl	%r15d, %r15d
	cmpl	$8, %eax
	jne	LBB0_9
## %bb.1:
	movq	_cmd_size@GOTPCREL(%rip), %r12
	movq	_payload@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_read
	cmpl	$8, %eax
	jne	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_read
	cmpl	$8, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	callq	_ntohl
	movl	%eax, (%r13)
	movl	(%r12), %edi
	callq	_ntohl
	movl	%eax, (%r12)
	xorl	%eax, %eax
	callq	_EXPAND
	movl	(%rbx), %edi
	movq	(%r14), %rsi
	movl	(%r12), %edx
	callq	_read
	cmpl	(%r12), %eax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %eax
	movq	_NETPLAY_CMD_INFO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	callq	_frame_offset_cmd
	movq	%r13, %r12
	movq	%r14, %r13
	movq	%rax, %r14
	movq	_frame_offset@GOTPCREL(%rip), %rcx
	subq	(%rcx), %r14
	testq	%rax, %rax
	cmoveq	%rax, %r14
	xorl	%eax, %eax
	callq	_SEND
	cmpq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	movq	%r13, %r14
	movq	%r12, %r13
	movq	_cmd_size@GOTPCREL(%rip), %r12
	jle	LBB0_8
## %bb.7:
	movl	$1, %r15d
	jmp	LBB0_9
LBB0_3:
	xorl	%r15d, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ranp_in,4,2                    ## @ranp_in
	.comm	_cmd,4,2                        ## @cmd
	.comm	_cmd_size,4,2                   ## @cmd_size
	.comm	_payload,8,3                    ## @payload
	.comm	_NETPLAY_CMD_INFO,4,2           ## @NETPLAY_CMD_INFO
	.comm	_frame_offset,8,3               ## @frame_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_send_input                     ; -- Begin function send_input
	.p2align	2
_send_input:                            ; @send_input
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x22, _ranp_in@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ranp_in@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x20, _cmd@GOTPAGE
Lloh3:
	ldr	x20, [x20, _cmd@GOTPAGEOFF]
	mov	x1, x20
	mov	w2, #8
	bl	_read
	cmp	w0, #8
	b.ne	LBB0_8
; %bb.1:
Lloh4:
	adrp	x21, _cmd_size@GOTPAGE
Lloh5:
	ldr	x21, [x21, _cmd_size@GOTPAGEOFF]
Lloh6:
	adrp	x23, _payload@GOTPAGE
Lloh7:
	ldr	x23, [x23, _payload@GOTPAGEOFF]
Lloh8:
	adrp	x24, _NETPLAY_CMD_INFO@GOTPAGE
Lloh9:
	ldr	x24, [x24, _NETPLAY_CMD_INFO@GOTPAGEOFF]
Lloh10:
	adrp	x25, _frame_offset@GOTPAGE
Lloh11:
	ldr	x25, [x25, _frame_offset@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22]
	mov	x1, x20
	mov	w2, #8
	bl	_read
	cmp	w0, #8
	b.ne	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x21
	mov	w2, #8
	bl	_read
	cmp	w0, #8
	b.ne	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20]
	bl	_ntohl
	str	w0, [x20]
	ldr	w0, [x21]
	bl	_ntohl
	str	w0, [x21]
	bl	_EXPAND
	ldr	w0, [x22]
	ldr	x1, [x23]
	ldr	w2, [x21]
	bl	_read
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
	bl	_frame_offset_cmd
	ldr	x8, [x25]
	sub	x8, x0, x8
	cmp	x0, #0
	csel	x26, xzr, x8, eq
	bl	_SEND
	cmp	x26, x19
	b.le	LBB0_2
; %bb.7:
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ranp_in,4,2                    ; @ranp_in
	.comm	_cmd,4,2                        ; @cmd
	.comm	_cmd_size,4,2                   ; @cmd_size
	.comm	_payload,8,3                    ; @payload
	.comm	_NETPLAY_CMD_INFO,4,2           ; @NETPLAY_CMD_INFO
	.comm	_frame_offset,8,3               ; @frame_offset
.subsections_via_symbols
