	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_areplay_reset                  ## -- Begin function areplay_reset
	.p2align	4, 0x90
_areplay_reset:                         ## @areplay_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_action_replay@GOTPCREL(%rip), %rbx
	cmpq	$0, 32(%rbx)
	je	LBB0_4
## %bb.1:
	movl	%edi, %r14d
	testl	%edi, %edi
	jne	LBB0_3
## %bb.2:
	movq	(%rbx), %rax
	movq	_AR_SWITCH_TRAINER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_3:
	movl	28(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	24(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	20(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	16(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	12(%rbx), %eax
	movq	_m68k@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.5:
	movl	8(%rbx), %edi
	movl	$255, %esi
	movl	$65536, %edx                    ## imm = 0x10000
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_action_replay,40,3             ## @action_replay
	.comm	_AR_SWITCH_TRAINER,8,3          ## @AR_SWITCH_TRAINER
	.comm	_m68k,8,3                       ## @m68k
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_areplay_reset                  ; -- Begin function areplay_reset
	.p2align	2
_areplay_reset:                         ; @areplay_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _action_replay@GOTPAGE
Lloh1:
	ldr	x20, [x20, _action_replay@GOTPAGEOFF]
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x0
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _AR_SWITCH_TRAINER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AR_SWITCH_TRAINER@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_3:
	ldr	w0, [x20, #28]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [x20, #24]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [x20, #20]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [x20, #16]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w8, [x20, #12]
Lloh5:
	adrp	x9, _m68k@GOTPAGE
Lloh6:
	ldr	x9, [x9, _m68k@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	str	w8, [x9]
	cbz	w19, LBB0_5
; %bb.4:
	ldr	w0, [x20, #8]
	mov	w1, #255
	mov	w2, #65536
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_memset
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_action_replay,40,3             ; @action_replay
	.comm	_AR_SWITCH_TRAINER,8,3          ; @AR_SWITCH_TRAINER
	.comm	_m68k,8,3                       ; @m68k
.subsections_via_symbols
