	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sh2rec_check_interrupts        ## -- Begin function sh2rec_check_interrupts
	.p2align	4, 0x90
_sh2rec_check_interrupts:               ## @sh2rec_check_interrupts
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movslq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %rcx
	shlq	$4, %rax
	movq	-16(%rax,%rcx), %rax
	cmpq	48(%rdi), %rax
	jle	LBB0_3
## %bb.2:
	movq	24(%rbx), %rax
	movl	60(%rax), %edi
	addl	$-4, %edi
	movl	%edi, 60(%rax)
	movl	56(%rbx), %esi
	callq	_MappedMemoryWriteLong
	movq	24(%rbx), %rax
	movl	60(%rax), %edi
	addl	$-4, %edi
	movl	%edi, 60(%rax)
	movl	40(%rbx), %esi
	callq	_MappedMemoryWriteLong
	movq	16(%rbx), %rax
	movslq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	-16(%rcx,%rax), %rdx
	movq	%rdx, 48(%rbx)
	movl	-8(%rcx,%rax), %eax
	shll	$2, %eax
	movslq	%eax, %rdi
	addq	32(%rbx), %rdi
	callq	_MappedMemoryReadLong
	movl	%eax, 40(%rbx)
	decl	(%rbx)
	movq	$0, 8(%rbx)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sh2rec_check_interrupts        ; -- Begin function sh2rec_check_interrupts
	.p2align	2
_sh2rec_check_interrupts:               ; @sh2rec_check_interrupts
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0, #16]
	sub	w8, w8, #1
	sbfiz	x8, x8, #4, #32
	ldr	x8, [x9, x8]
	ldr	x9, [x0, #48]
	cmp	x8, x9
	b.le	LBB0_3
; %bb.2:
	ldr	x8, [x19, #24]
	ldr	w9, [x8, #60]
	sub	w0, w9, #4
	str	w0, [x8, #60]
	ldr	w1, [x19, #56]
	bl	_MappedMemoryWriteLong
	ldr	x8, [x19, #24]
	ldr	w9, [x8, #60]
	sub	w0, w9, #4
	str	w0, [x8, #60]
	ldr	w1, [x19, #40]
	bl	_MappedMemoryWriteLong
	ldr	x8, [x19, #16]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #4
	ldur	x9, [x8, #-16]
	str	x9, [x19, #48]
	ldr	x9, [x19, #32]
	ldur	w8, [x8, #-8]
	lsl	w8, w8, #2
	add	x0, x9, w8, sxtw
	bl	_MappedMemoryReadLong
	str	w0, [x19, #40]
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
	str	xzr, [x19, #8]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
