	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SH2DynarecWriteNotify          ## -- Begin function SH2DynarecWriteNotify
	.p2align	4, 0x90
_SH2DynarecWriteNotify:                 ## @SH2DynarecWriteNotify
	.cfi_startproc
## %bb.0:
                                        ## kill: def $esi killed $esi def $rsi
	movl	%edi, %eax
	andl	$-537919488, %eax               ## imm = 0xDFF00000
	cmpl	$2097152, %eax                  ## imm = 0x200000
	je	LBB0_2
## %bb.1:
	movl	%edi, %eax
	andl	$-570425344, %eax               ## imm = 0xDE000000
	cmpl	$100663296, %eax                ## imm = 0x6000000
	jne	LBB0_10
LBB0_2:
	movl	%edi, %eax
	shrl	$12, %edi
	addl	%eax, %esi
	decl	%esi
	sarl	$12, %esi
	cmpl	%edi, %esi
	jl	LBB0_10
## %bb.3:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	_cached_code@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movl	%esi, %eax
	subl	%edi, %eax
	leal	1(%rax), %r8d
	jne	LBB0_5
## %bb.4:
	xorl	%ecx, %ecx
	movl	%edi, %eax
	jmp	LBB0_7
LBB0_5:
	movl	%r8d, %r10d
	andl	$-2, %r10d
	xorl	%ecx, %ecx
	movl	%edi, %eax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edx
	shrl	$3, %edx
	movl	(%r9,%rdx,4), %r11d
	movl	%eax, %edx
	andb	$7, %dl
	movzbl	%dl, %edx
	xorl	%ebx, %ebx
	btl	%edx, %r11d
	setb	%bl
	orl	%ecx, %ebx
	leal	1(%rax), %ecx
	movl	%ecx, %edx
	shrl	$3, %edx
	movl	(%r9,%rdx,4), %r11d
	andb	$7, %cl
	movzbl	%cl, %edx
	xorl	%ecx, %ecx
	btl	%edx, %r11d
	setb	%cl
	orl	%ebx, %ecx
	addl	$2, %eax
	addl	$-2, %r10d
	jne	LBB0_6
LBB0_7:
	testb	$1, %r8b
	je	LBB0_9
## %bb.8:
	movl	%eax, %edx
	shrl	$3, %edx
	movl	(%r9,%rdx,4), %edx
	andb	$7, %al
	movzbl	%al, %eax
	xorl	%ebx, %ebx
	btl	%eax, %edx
	setb	%bl
	orl	%ebx, %ecx
LBB0_9:
	testl	%ecx, %ecx
	popq	%rbx
	popq	%rbp
	je	LBB0_10
## %bb.11:
	jmp	_invalidate_blocks              ## TAILCALL
LBB0_10:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cached_code,8,3                ## @cached_code
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SH2DynarecWriteNotify          ; -- Begin function SH2DynarecWriteNotify
	.p2align	2
_SH2DynarecWriteNotify:                 ; @SH2DynarecWriteNotify
	.cfi_startproc
; %bb.0:
	mov	w9, #-537919488
	and	w9, w0, w9
	mov	w10, #-570425344
	and	w10, w0, w10
	cmp	w9, #512, lsl #12               ; =2097152
	mov	w9, #100663296
	ccmp	w10, w9, #4, ne
	b.ne	LBB0_10
; %bb.1:
	mov	x8, x0
	lsr	w0, w0, #12
	add	w8, w8, w1
	sub	w8, w8, #1
	asr	w1, w8, #12
	cmp	w0, w1
	b.gt	LBB0_10
; %bb.2:
	stp	x22, x21, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
Lloh0:
	adrp	x8, _cached_code@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cached_code@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	w9, w1, #1
	sub	w11, w9, w0
	cmp	w11, #4
	b.hs	LBB0_4
; %bb.3:
	mov	w13, #0
	mov	x10, x0
	b	LBB0_7
LBB0_4:
	mov	w15, #0
	mov	w16, #0
	mov	w14, #0
	mov	w13, #0
	and	w12, w11, #0xfffffffc
	add	w10, w0, w12
	mov	x17, x0
	mov	x2, x12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w3, w17, #1
	add	w4, w17, #2
	add	w5, w17, #3
	lsr	w6, w17, #3
	lsr	w7, w3, #3
	lsr	w19, w4, #3
	lsr	w20, w5, #3
	ldr	w6, [x8, w6, uxtw #2]
	ldr	w7, [x8, w7, uxtw #2]
	ldr	w19, [x8, w19, uxtw #2]
	ldr	w20, [x8, w20, uxtw #2]
	and	w21, w17, #0x7
	and	w3, w3, #0x7
	and	w4, w4, #0x7
	and	w5, w5, #0x7
	lsr	w6, w6, w21
	lsr	w3, w7, w3
	lsr	w4, w19, w4
	lsr	w5, w20, w5
	and	w6, w6, #0x1
	and	w3, w3, #0x1
	and	w4, w4, #0x1
	and	w5, w5, #0x1
	orr	w15, w6, w15
	orr	w16, w3, w16
	orr	w14, w4, w14
	orr	w13, w5, w13
	add	w17, w17, #4
	subs	w2, w2, #4
	b.ne	LBB0_5
; %bb.6:
	orr	w15, w16, w15
	orr	w14, w14, w15
	orr	w13, w13, w14
	cmp	w11, w12
	b.eq	LBB0_8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w11, w10, #3
	ldr	w11, [x8, w11, uxtw #2]
	and	w12, w10, #0x7
	lsr	w11, w11, w12
	and	w11, w11, #0x1
	orr	w13, w11, w13
	add	w10, w10, #1
	cmp	w9, w10
	b.ne	LBB0_7
LBB0_8:
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #32             ; 16-byte Folded Reload
	cbz	w13, LBB0_10
; %bb.9:
	b	_invalidate_blocks
LBB0_10:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_cached_code,8,3                ; @cached_code
.subsections_via_symbols
