	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netplay_handle_frame_hash
_netplay_handle_frame_hash:             ## @netplay_handle_frame_hash
	.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	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.2:
	movl	(%r14), %r15d
	callq	_abs
	movl	%eax, %ecx
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	LBB0_14
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_netplay_delta_frame_crc
	movq	%rax, 8(%r14)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netplay_cmd_crc                ## TAILCALL
LBB0_4:
	cmpq	$0, 8(%r14)
	je	LBB0_14
## %bb.5:
	cmpl	$0, 8(%rbx)
	je	LBB0_14
## %bb.6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_netplay_delta_frame_crc
	movl	12(%rbx), %ecx
	cmpq	%rax, 8(%r14)
	jne	LBB0_7
## %bb.12:
	testl	%ecx, %ecx
	jne	LBB0_14
## %bb.13:
	movl	$1, 12(%rbx)
	jmp	LBB0_14
LBB0_7:
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.9:
	cmpl	$0, 8(%rbx)
	je	LBB0_14
## %bb.10:
	cmpq	$0, (%rbx)
	js	LBB0_15
## %bb.11:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netplay_cmd_request_savestate  ## TAILCALL
LBB0_8:
	movl	$0, 8(%rbx)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RARCH_ERR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Netplay CRCs mismatch!\n"

	.no_dead_strip	_netplay_handle_frame_hash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netplay_handle_frame_hash
_netplay_handle_frame_hash:             ; @netplay_handle_frame_hash
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x0, [x19]
	cbz	x0, LBB0_14
; %bb.2:
	ldr	w21, [x20]
	bl	_abs
	sdiv	w8, w21, w0
	msub	w8, w8, w0, w21
	cbnz	w8, LBB0_14
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_netplay_delta_frame_crc
	str	x0, [x20, #8]
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_netplay_cmd_crc
LBB0_4:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_14
; %bb.5:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_14
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_netplay_delta_frame_crc
	ldr	x9, [x20, #8]
	ldr	w8, [x19, #12]
	cmp	x9, x0
	b.ne	LBB0_9
; %bb.7:
	cbnz	w8, LBB0_14
; %bb.8:
	mov	w8, #1
	str	w8, [x19, #12]
	b	LBB0_14
LBB0_9:
	cbz	w8, LBB0_13
; %bb.10:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_14
; %bb.11:
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_15
; %bb.12:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_netplay_cmd_request_savestate
LBB0_13:
	str	wzr, [x19, #8]
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_RARCH_ERR
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Netplay CRCs mismatch!\n"

	.no_dead_strip	_netplay_handle_frame_hash
.subsections_via_symbols
