	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DynarecMasterHandleInterrupts  ## -- Begin function DynarecMasterHandleInterrupts
	.p2align	4, 0x90
_DynarecMasterHandleInterrupts:         ## @DynarecMasterHandleInterrupts
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MSH2@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	24(%rax), %rdx
	movslq	(%rax), %rsi
	movq	_master_reg@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_SR@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %edi
	shrl	$4, %edi
	andl	$15, %edi
	cmpl	%edi, -8(%rdx,%rsi,8)
	jle	LBB0_2
## %bb.1:
	movl	60(%rax), %edi
	addl	$-4, %edi
	movl	%edi, 60(%rax)
	movl	(%rax,%rcx,4), %esi
	callq	_MappedMemoryWriteLong
	movq	(%rbx), %rax
	movl	60(%rax), %edi
	addl	$-4, %edi
	movl	%edi, 60(%rax)
	movq	_master_pc@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_MappedMemoryWriteLong
	movq	(%rbx), %rax
	movq	(%r12), %rcx
	movl	$-241, %edx
	andl	(%rax,%rcx,4), %edx
	movl	%edx, (%rax,%rcx,4)
	movq	(%r14), %rsi
	movq	24(%rsi), %rdi
	movslq	(%rsi), %rbx
	movl	-8(%rdi,%rbx,8), %ebx
	shll	$4, %ebx
	orl	%edx, %ebx
	movl	%ebx, (%rax,%rcx,4)
	movq	_VBR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rsi), %rdx
	movl	-4(%rdi,%rdx,8), %edi
	shll	$2, %edi
	addl	(%rax,%rcx,4), %edi
	callq	_MappedMemoryReadLong
	movl	%eax, (%r15)
	movl	%eax, %edi
	callq	_get_addr_ht
	movq	_master_ip@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	(%r14), %rax
	decl	(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSH2,8,3                       ## @MSH2
	.comm	_master_reg,8,3                 ## @master_reg
	.comm	_SR,8,3                         ## @SR
	.comm	_master_pc,4,2                  ## @master_pc
	.comm	_VBR,8,3                        ## @VBR
	.comm	_master_ip,4,2                  ## @master_ip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DynarecMasterHandleInterrupts  ; -- Begin function DynarecMasterHandleInterrupts
	.p2align	2
_DynarecMasterHandleInterrupts:         ; @DynarecMasterHandleInterrupts
	.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
Lloh0:
	adrp	x19, _MSH2@GOTPAGE
Lloh1:
	ldr	x19, [x19, _MSH2@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x8, #24]
	ldrsw	x8, [x8]
	add	x8, x9, x8, lsl #3
	ldur	w10, [x8, #-8]
Lloh2:
	adrp	x20, _master_reg@GOTPAGE
Lloh3:
	ldr	x20, [x20, _master_reg@GOTPAGEOFF]
Lloh4:
	adrp	x21, _SR@GOTPAGE
Lloh5:
	ldr	x21, [x21, _SR@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	w11, [x8, x9, lsl #2]
	ubfx	w11, w11, #4, #4
	cmp	w10, w11
	b.le	LBB0_2
; %bb.1:
	ldr	w10, [x8, #60]
	sub	w0, w10, #4
	str	w0, [x8, #60]
	ldr	w1, [x8, x9, lsl #2]
	bl	_MappedMemoryWriteLong
	ldr	x8, [x20]
	ldr	w9, [x8, #60]
	sub	w0, w9, #4
	str	w0, [x8, #60]
Lloh6:
	adrp	x22, _master_pc@GOTPAGE
Lloh7:
	ldr	x22, [x22, _master_pc@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_MappedMemoryWriteLong
	ldr	x8, [x20]
	ldr	x9, [x21]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	and	w10, w10, #0xffffff0f
	str	w10, [x8, x9]
	ldr	x11, [x19]
	ldr	x12, [x11, #24]
	ldrsw	x13, [x11]
	add	x13, x12, x13, lsl #3
	ldur	w13, [x13, #-8]
	orr	w10, w10, w13, lsl #4
	str	w10, [x8, x9]
Lloh8:
	adrp	x9, _VBR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VBR@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	ldrsw	x9, [x11]
	add	x9, x12, x9, lsl #3
	ldur	w9, [x9, #-4]
	add	w0, w8, w9, lsl #2
	bl	_MappedMemoryReadLong
	str	w0, [x22]
	bl	_get_addr_ht
Lloh11:
	adrp	x8, _master_ip@GOTPAGE
Lloh12:
	ldr	x8, [x8, _master_ip@GOTPAGEOFF]
Lloh13:
	str	w0, [x8]
	ldr	x8, [x19]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	stp	xzr, xzr, [x8, #8]
LBB0_2:
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MSH2,8,3                       ; @MSH2
	.comm	_master_reg,8,3                 ; @master_reg
	.comm	_SR,8,3                         ; @SR
	.comm	_master_pc,4,2                  ; @master_pc
	.comm	_VBR,8,3                        ; @VBR
	.comm	_master_ip,4,2                  ; @master_ip
.subsections_via_symbols
