	.file	"extr_sh2_dynarec.c_DynarecMasterHandleInterrupts.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	DynarecMasterHandleInterrupts
	.type	DynarecMasterHandleInterrupts, @function
DynarecMasterHandleInterrupts:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdx, QWORD PTR master_reg[rip]
	mov	rcx, QWORD PTR SR[rip]
	mov	rax, QWORD PTR MSH2[rip]
	lea	rcx, [rdx+rcx*4]
	movsx	rdi, DWORD PTR [rax]
	mov	rsi, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rcx]
	sar	eax, 4
	and	eax, 15
	cmp	DWORD PTR -8[rsi+rdi*8], eax
	jg	.L8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	eax, DWORD PTR 60[rdx]
	lea	edi, -4[rax]
	mov	DWORD PTR 60[rdx], edi
	mov	esi, DWORD PTR [rcx]
	call	MappedMemoryWriteLong@PLT
	mov	rax, QWORD PTR master_reg[rip]
	mov	esi, DWORD PTR 60[rax]
	lea	edi, -4[rsi]
	mov	esi, DWORD PTR master_pc[rip]
	mov	DWORD PTR 60[rax], edi
	call	MappedMemoryWriteLong@PLT
	mov	rdi, QWORD PTR master_reg[rip]
	mov	rax, QWORD PTR SR[rip]
	mov	rcx, QWORD PTR MSH2[rip]
	lea	rsi, [rdi+rax*4]
	mov	edx, DWORD PTR [rsi]
	mov	r8, QWORD PTR 24[rcx]
	and	dl, 15
	mov	DWORD PTR [rsi], edx
	movsx	rax, DWORD PTR [rcx]
	mov	eax, DWORD PTR -8[r8+rax*8]
	sal	eax, 4
	or	eax, edx
	mov	DWORD PTR [rsi], eax
	movsx	rax, DWORD PTR [rcx]
	mov	edx, DWORD PTR -4[r8+rax*8]
	mov	rax, QWORD PTR VBR[rip]
	mov	eax, DWORD PTR [rdi+rax*4]
	lea	edi, [rax+rdx*4]
	call	MappedMemoryReadLong@PLT
	mov	edi, eax
	mov	DWORD PTR master_pc[rip], eax
	call	get_addr_ht@PLT
	mov	DWORD PTR master_ip[rip], eax
	mov	rax, QWORD PTR MSH2[rip]
	sub	DWORD PTR [rax], 1
	mov	QWORD PTR 16[rax], 0
	mov	QWORD PTR 8[rax], 0
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	DynarecMasterHandleInterrupts, .-DynarecMasterHandleInterrupts
	.comm	master_reg,8,8
	.comm	master_pc,4,4
	.comm	master_ip,4,4
	.comm	VBR,8,8
	.comm	SR,8,8
	.comm	MSH2,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sh2_dynarec.c_DynarecMasterHandleInterrupts.c"
	.text
	.align	2
	.global	DynarecMasterHandleInterrupts
	.syntax unified
	.arm
	.fpu softvfp
	.type	DynarecMasterHandleInterrupts, %function
DynarecMasterHandleInterrupts:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, .L5
	ldr	r5, .L5+4
	ldr	r6, .L5+8
	ldr	r3, [r4]
	ldr	r1, [r5]
	ldr	ip, [r6]
	ldr	r2, [r3]
	ldr	r0, [r3, #12]
	ldr	r3, [r1, ip, lsl #2]
	sub	r2, r2, #-536870911
	ldr	r2, [r0, r2, lsl #3]
	asr	r3, r3, #4
	and	r3, r3, #15
	cmp	r2, r3
	pople	{r4, r5, r6, r7, r8, pc}
	ldr	r0, [r1, #60]
	ldr	r7, .L5+12
	sub	r0, r0, #4
	str	r0, [r1, #60]
	ldr	r1, [r1, ip, lsl #2]
	bl	MappedMemoryWriteLong
	ldr	r3, [r5]
	ldr	r1, [r7]
	ldr	r0, [r3, #60]
	sub	r0, r0, #4
	str	r0, [r3, #60]
	bl	MappedMemoryWriteLong
	ldr	r1, [r5]
	ldr	ip, [r6]
	ldr	r0, [r4]
	ldr	r3, [r1, ip, lsl #2]
	ldr	r2, [r0, #12]
	bic	r3, r3, #240
	str	r3, [r1, ip, lsl #2]
	ldr	lr, [r0]
	ldr	r6, .L5+16
	sub	lr, lr, #-536870911
	ldr	r5, [r2, lr, lsl #3]
	ldr	lr, [r6]
	orr	r3, r3, r5, lsl #4
	str	r3, [r1, ip, lsl #2]
	ldr	r0, [r0]
	ldr	r3, [r1, lr, lsl #2]
	add	r2, r2, r0, lsl #3
	ldr	r0, [r2, #-4]
	add	r0, r3, r0, lsl #2
	bl	MappedMemoryReadLong
	str	r0, [r7]
	bl	get_addr_ht
	mov	r1, #0
	ldr	r3, [r4]
	ldr	ip, .L5+20
	ldr	r2, [r3]
	str	r1, [r3, #8]
	sub	r2, r2, #1
	str	r0, [ip]
	str	r1, [r3, #4]
	str	r2, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	.align	2
.L5:
	.word	MSH2
	.word	master_reg
	.word	SR
	.word	master_pc
	.word	VBR
	.word	master_ip
	.size	DynarecMasterHandleInterrupts, .-DynarecMasterHandleInterrupts
	.comm	master_reg,4,4
	.comm	master_pc,4,4
	.comm	master_ip,4,4
	.comm	VBR,4,4
	.comm	SR,4,4
	.comm	MSH2,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
