	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_input_state_for        ## -- Begin function netplay_input_state_for
	.p2align	4, 0x90
_netplay_input_state_for:               ## @netplay_input_state_for
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	testl	%r8d, %r8d
	jne	LBB0_15
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	movl	(%rax), %eax
	movl	%eax, %edx
	orl	%r8d, %edx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r14, 8(%rbx)
	je	LBB0_14
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	je	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r15, 16(%rbx)
	jne	LBB0_3
## %bb.8:
	testl	%ecx, %ecx
	jne	LBB0_15
## %bb.9:
	cmpq	%r14, 8(%rbx)
	jne	LBB0_15
	jmp	LBB0_16
LBB0_11:
	addq	$24, %rbx
	testl	%r8d, %r8d
	jne	LBB0_15
LBB0_12:
	leal	-4(,%r14,8), %esi
	movl	$1, %edi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	%rax, (%rbx)
	movq	%r15, 16(%rax)
	movl	$1, (%rax)
	movq	%r14, 8(%rax)
	movq	%rax, %rbx
	jmp	LBB0_16
LBB0_15:
	xorl	%ebx, %ebx
LBB0_16:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r15, 16(%rbx)
	movl	$1, (%rbx)
	movl	32(%rbx), %edi
	shlq	$3, %r14
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_memset
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_input_state_for        ; -- Begin function netplay_input_state_for
	.p2align	2
_netplay_input_state_for:               ; @netplay_input_state_for
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x0]
	cbnz	x8, LBB0_3
; %bb.1:
	cbnz	w4, LBB0_10
	b	LBB0_11
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x8
	ldr	w8, [x8]
	orr	w9, w8, w4
	cbnz	w9, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x20, #8]
	cmp	x9, x19
	b.eq	LBB0_13
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	w8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #16]
	cmp	x8, x21
	b.ne	LBB0_2
; %bb.7:
	cbnz	w3, LBB0_10
; %bb.8:
	ldr	x8, [x20, #8]
	cmp	x8, x19
	b.eq	LBB0_14
	b	LBB0_10
LBB0_9:
	add	x22, x20, #24
	cbz	w4, LBB0_11
LBB0_10:
	mov	x20, #0
	b	LBB0_14
LBB0_11:
	lsl	w8, w19, #3
	sub	w1, w8, #4
	mov	w23, #1
	mov	w0, #1
	bl	_calloc
	mov	x20, x0
	cbz	x0, LBB0_14
; %bb.12:
	str	x20, [x22]
	str	w23, [x20]
	stp	x19, x21, [x20, #8]
	b	LBB0_14
LBB0_13:
	str	x21, [x20, #16]
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x20, #32]
	lsl	x2, x19, #3
	mov	w1, #0
	bl	_memset
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
