	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sh2_irl_irq                    ## -- Begin function sh2_irl_irq
	.p2align	4, 0x90
_sh2_irl_irq:                           ## @sh2_irl_irq
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%esi, (%rdi)
	movl	4(%rdi), %eax
	movl	12(%rdi), %r15d
	cmpl	%esi, %eax
	cmovgl	%eax, %ebx
	movl	%ebx, 8(%rdi)
	shrl	$4, %r15d
	andl	$15, %r15d
	cmpl	%r15d, %ebx
	jle	LBB0_4
## %bb.1:
	movq	%rdi, %r14
	testl	%edx, %edx
	je	LBB0_2
## %bb.3:
	movl	$1, 24(%r14)
	jmp	LBB0_4
LBB0_2:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	*16(%r14)
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_sh2_do_irq
	movups	(%r14), %xmm0
	movups	16(%r14), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$13, %edi
	callq	_C_SH2_TO_M68K
	addl	%eax, 28(%r14)
LBB0_4:
	xorl	%eax, %eax
	cmpl	%r15d, %ebx
	setg	%al
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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	_sh2_irl_irq                    ; -- Begin function sh2_irl_irq
	.p2align	2
_sh2_irl_irq:                           ; @sh2_irl_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	str	w1, [x0]
	ldr	w8, [x0, #4]
	cmp	w8, w1
	csel	w20, w8, w1, gt
	str	w20, [x0, #8]
	ldr	w8, [x0, #12]
	ubfx	w21, w8, #4, #4
	cmp	w20, w21
	b.le	LBB0_4
; %bb.1:
	mov	x19, x0
	cbz	w2, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x19, #24]
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_sh2_do_irq
	ldp	q0, q1, [x19]
	stp	q0, q1, [sp]
	mov	x0, sp
	mov	w1, #13
	bl	_C_SH2_TO_M68K
	ldr	w8, [x19, #28]
	add	w8, w8, w0
	str	w8, [x19, #28]
LBB0_4:
	cmp	w20, w21
	cset	w0, gt
	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
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
