	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_clean_blocks                   ## -- Begin function clean_blocks
	.p2align	4, 0x90
_clean_blocks:                          ## @clean_blocks
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_inv_debug
	movq	_jump_dirty@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rbx,8), %r12
	testq	%r12, %r12
	je	LBB0_47
## %bb.1:
	movq	_cached_code@GOTPCREL(%rip), %r15
	movq	_out@GOTPCREL(%rip), %r13
	movq	_TARGET_SIZE_2@GOTPCREL(%rip), %r14
	movq	_MAX_OUTPUT_BLOCK_SIZE@GOTPCREL(%rip), %rbx
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
	jmp	LBB0_2
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_cached_code@GOTPCREL(%rip), %r15
	movq	_out@GOTPCREL(%rip), %r13
LBB0_45:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_TARGET_SIZE_2@GOTPCREL(%rip), %r14
	movq	_MAX_OUTPUT_BLOCK_SIZE@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_46:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %r12
	testq	%r12, %r12
	je	LBB0_47
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
                                        ##     Child Loop BB0_44 Depth 2
	movq	(%r15), %rax
	movl	(%r12), %ecx
	movl	%ecx, %edx
	sarl	$15, %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	shrl	$12, %ecx
	andb	$7, %cl
	movzbl	%cl, %ecx
	btl	%ecx, %eax
	jae	LBB0_46
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rdi
	movq	%rdi, %rdx
	subq	(%r13), %rdx
	movb	(%r14), %al
	movb	$32, %cl
	subb	%al, %cl
	shlq	%cl, %rdx
	movl	(%rbx), %esi
	negb	%al
	movl	%eax, %ecx
	shll	%cl, %esi
	addl	$1610612736, %esi               ## imm = 0x60000000
	movslq	%esi, %rax
	cmpq	%rax, %rdx
	jbe	LBB0_46
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_verify_dirty
	testq	%rax, %rax
	je	LBB0_46
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r12), %edi
	leaq	-88(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	callq	_get_bounds
	movq	-88(%rbp), %r14
	movq	_HighWram@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %r9
	subq	%rdx, %r9
	cmpq	$1048575, %r9                   ## imm = 0xFFFFF
	ja	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$100663296, %r9                 ## imm = 0x6000000
	movq	-72(%rbp), %rax
	subq	%rdx, %rax
	leaq	100663296(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%r9, %rcx
	shrq	$12, %rcx
	addq	$100663295, %rax                ## imm = 0x5FFFFFF
	shrq	$12, %rax
	subq	%rcx, %rax
	jae	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	xorl	%r9d, %r9d
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_LowWram@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	subq	%rdx, %r14
	cmpq	$1048575, %r14                  ## imm = 0xFFFFF
	ja	LBB0_23
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	$2097152, %r14                  ## imm = 0x200000
	movq	-72(%rbp), %r8
	subq	%rdx, %r8
	leaq	2097152(%r8), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	shrq	$12, %rdi
	addq	$2097151, %r8                   ## imm = 0x1FFFFF
	shrq	$12, %r8
	cmpq	%rdi, %r8
	jb	LBB0_25
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %r9
	movl	%r8d, %esi
	subl	%edi, %esi
	incl	%esi
	testb	$1, %sil
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, %rsi
	movl	$1, %r10d
	cmpq	%rdi, %r8
	jne	LBB0_21
	jmp	LBB0_25
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%r9, %r9
	je	LBB0_48
## %bb.24:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r9, %r14
	jmp	LBB0_25
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %r10
	leaq	1(%rax), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_48:                                ##   in Loop: Header=BB0_2 Depth=1
	movb	$1, %cl
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_45
	jmp	LBB0_36
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rsi
	shrq	$15, %rsi
	movl	(%r9,%rsi,4), %esi
	movl	%edi, %ebx
	andb	$7, %bl
	movzbl	%bl, %ebx
	btl	%ebx, %esi
	movl	$1, %r10d
	cmovaeq	%r10, %rax
	leaq	1(%rdi), %rsi
	cmpq	%rdi, %r8
	je	LBB0_25
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r8
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rsi, %rdi
	shrq	$3, %rdi
	movl	(%r9,%rdi,4), %edi
	movl	%esi, %ebx
	andb	$7, %bl
	movzbl	%bl, %ebx
	leaq	1(%rsi), %rcx
	movq	%rcx, %rdx
	shrq	$3, %rdx
	andb	$7, %cl
	btl	%ebx, %edi
	movl	(%r9,%rdx,4), %edx
	movzbl	%cl, %ecx
	cmovaeq	%r10, %rax
	btl	%ecx, %edx
	cmovaeq	%r10, %rax
	addq	$2, %rsi
	cmpq	%rsi, %r8
	jne	LBB0_22
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_recent_writes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	(%rsi), %rcx
	movq	8(%rsi), %rdx
	cmpq	%r14, %rcx
	setae	-42(%rbp)                       ## 1-byte Folded Spill
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	cmpq	%r13, %rcx
	setb	-41(%rbp)                       ## 1-byte Folded Spill
	cmpq	%r14, %rdx
	setae	-44(%rbp)                       ## 1-byte Folded Spill
	cmpq	%r13, %rdx
	setb	-43(%rbp)                       ## 1-byte Folded Spill
	movq	16(%rsi), %rcx
	cmpq	%r14, %rcx
	setae	%r10b
	cmpq	%r13, %rcx
	setb	-45(%rbp)                       ## 1-byte Folded Spill
	movq	24(%rsi), %rdi
	cmpq	%r14, %rdi
	setae	%cl
	cmpq	%r13, %rdi
	setb	-46(%rbp)                       ## 1-byte Folded Spill
	movq	32(%rsi), %rdi
	cmpq	%r14, %rdi
	setae	%r15b
	cmpq	%r13, %rdi
	setb	-56(%rbp)                       ## 1-byte Folded Spill
	movq	40(%rsi), %rdi
	cmpq	%r14, %rdi
	setae	%r11b
	cmpq	%r13, %rdi
	setb	%dil
	movq	48(%rsi), %rbx
	cmpq	%r14, %rbx
	setae	%r8b
	cmpq	%r13, %rbx
	setb	%r9b
	movq	56(%rsi), %rsi
	cmpq	%r14, %rsi
	setae	%bl
	cmpq	%r13, %rsi
	setb	%dl
	testb	%dl, %bl
	jne	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_2 Depth=1
	andb	%r9b, %r8b
	jne	LBB0_26
## %bb.28:                              ##   in Loop: Header=BB0_2 Depth=1
	andb	%dil, %r11b
	jne	LBB0_26
## %bb.29:                              ##   in Loop: Header=BB0_2 Depth=1
	andb	-56(%rbp), %r15b                ## 1-byte Folded Reload
	jne	LBB0_26
## %bb.30:                              ##   in Loop: Header=BB0_2 Depth=1
	andb	-46(%rbp), %cl                  ## 1-byte Folded Reload
	jne	LBB0_26
## %bb.31:                              ##   in Loop: Header=BB0_2 Depth=1
	andb	-45(%rbp), %r10b                ## 1-byte Folded Reload
	jne	LBB0_26
## %bb.32:                              ##   in Loop: Header=BB0_2 Depth=1
	movb	-43(%rbp), %cl                  ## 1-byte Reload
	andb	%cl, -44(%rbp)                  ## 1-byte Folded Spill
	movq	_cached_code@GOTPCREL(%rip), %r15
	movq	_out@GOTPCREL(%rip), %r13
	jne	LBB0_45
## %bb.33:                              ##   in Loop: Header=BB0_2 Depth=1
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	andb	%cl, -42(%rbp)                  ## 1-byte Folded Spill
	jne	LBB0_45
## %bb.34:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	testq	%rax, %rax
	jne	LBB0_45
LBB0_36:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	16(%r12), %edi
	callq	_get_clean_addr
	movq	%rax, %rbx
	movq	%rax, %rdx
	subq	(%r13), %rdx
	movq	_TARGET_SIZE_2@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	$32, %cl
	subb	%al, %cl
	shlq	%cl, %rdx
	movq	_MAX_OUTPUT_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	negb	%al
	movl	%eax, %ecx
	shll	%cl, %esi
	addl	$1610612736, %esi               ## imm = 0x60000000
	movslq	%esi, %rax
	cmpq	%rax, %rdx
	jbe	LBB0_41
## %bb.37:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %esi
	movl	16(%r12), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_inv_debug
	movq	_jump_in@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	-80(%rbp), %rdi                 ## 8-byte Folded Reload
	movl	(%r12), %esi
	movq	%rbx, %rdx
	callq	_ll_add_nodup
	movq	_hash_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	(%r12), %eax
	movl	%eax, %edx
	shrl	$16, %edx
	movzwl	%ax, %esi
	xorl	%edx, %esi
	movq	(%rcx,%rsi,8), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, 4(%rcx)
	movl	(%r12), %eax
LBB0_39:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, 8(%rcx)
	jne	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, 12(%rcx)
LBB0_41:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$0, -56(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_45
## %bb.42:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	subq	%r14, %rax
	je	LBB0_45
## %bb.43:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_cached_code_words@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	%r14d, %esi
	andl	$4194303, %esi                  ## imm = 0x3FFFFF
	orq	$4194304, %rsi                  ## imm = 0x400000
	cmpq	$4194304, %r14                  ## imm = 0x400000
	cmovbq	%r14, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_44:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r14,%rdi), %ecx
	shrb	$2, %cl
	andb	$7, %cl
	movl	$1, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	leaq	(%rsi,%rdi), %rcx
	shrq	$5, %rcx
	orl	%ebx, (%rdx,%rcx,4)
	addq	$4, %rdi
	cmpq	%rax, %rdi
	jb	LBB0_44
	jmp	LBB0_45
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	andq	$-2, %rdi
	xorl	%eax, %eax
	movl	$1, %r8d
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movl	(%r10,%rdx,4), %r11d
	movl	%ecx, %ebx
	andb	$7, %bl
	movzbl	%bl, %ebx
	leaq	1(%rcx), %rsi
	movq	%rsi, %rdx
	shrq	$3, %rdx
	andb	$7, %sil
	btl	%ebx, %r11d
	movl	(%r10,%rdx,4), %edx
	movzbl	%sil, %esi
	cmovaeq	%r8, %rax
	btl	%esi, %edx
	cmovaeq	%r8, %rax
	addq	$2, %rcx
	addq	$-2, %rdi
	jne	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %esi
	testb	$1, -56(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, %rdx
	shrq	$3, %rdx
	movl	(%r10,%rdx,4), %edx
	andb	$7, %cl
	movzbl	%cl, %ecx
	btl	%ecx, %edx
	cmovaeq	%rsi, %rax
	jmp	LBB0_15
LBB0_47:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"INV: clean_blocks page=%d\n"

	.comm	_jump_dirty,8,3                 ## @jump_dirty
	.comm	_cached_code,8,3                ## @cached_code
	.comm	_out,8,3                        ## @out
	.comm	_TARGET_SIZE_2,4,2              ## @TARGET_SIZE_2
	.comm	_MAX_OUTPUT_BLOCK_SIZE,4,2      ## @MAX_OUTPUT_BLOCK_SIZE
	.comm	_HighWram,8,3                   ## @HighWram
	.comm	_LowWram,8,3                    ## @LowWram
	.comm	_recent_writes,8,3              ## @recent_writes
L_.str.1:                               ## @.str.1
	.asciz	"INV: Restored %x (%x/%x)\n"

	.comm	_jump_in,8,3                    ## @jump_in
	.comm	_hash_table,8,3                 ## @hash_table
	.comm	_cached_code_words,8,3          ## @cached_code_words
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_clean_blocks                   ; -- Begin function clean_blocks
	.p2align	2
_clean_blocks:                          ; @clean_blocks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_inv_debug
Lloh2:
	adrp	x8, _jump_dirty@GOTPAGE
Lloh3:
	ldr	x8, [x8, _jump_dirty@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
	ldr	x22, [x8, x19, lsl #3]
	cbz	x22, LBB0_31
; %bb.1:
Lloh5:
	adrp	x23, _cached_code@GOTPAGE
Lloh6:
	ldr	x23, [x23, _cached_code@GOTPAGEOFF]
Lloh7:
	adrp	x21, _out@GOTPAGE
Lloh8:
	ldr	x21, [x21, _out@GOTPAGEOFF]
Lloh9:
	adrp	x25, _TARGET_SIZE_2@GOTPAGE
Lloh10:
	ldr	x25, [x25, _TARGET_SIZE_2@GOTPAGEOFF]
	mov	w26, #32
	mov	w27, #1610612736
Lloh11:
	adrp	x28, _MAX_OUTPUT_BLOCK_SIZE@GOTPAGE
Lloh12:
	ldr	x28, [x28, _MAX_OUTPUT_BLOCK_SIZE@GOTPAGEOFF]
Lloh13:
	adrp	x24, _HighWram@GOTPAGE
Lloh14:
	ldr	x24, [x24, _HighWram@GOTPAGEOFF]
                                        ; implicit-def: $x19
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh15:
	adrp	x21, _out@GOTPAGE
Lloh16:
	ldr	x21, [x21, _out@GOTPAGEOFF]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh17:
	adrp	x24, _HighWram@GOTPAGE
Lloh18:
	ldr	x24, [x24, _HighWram@GOTPAGEOFF]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x22, [x22, #8]
	cbz	x22, LBB0_31
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
                                        ;     Child Loop BB0_30 Depth 2
	ldr	x8, [x23]
	ldr	w9, [x22]
	asr	w10, w9, #15
	ldr	w8, [x8, w10, sxtw #2]
	ubfx	w9, w9, #12, #3
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x22, #16]
	ldr	x8, [x21]
	sub	x8, x0, x8
	ldr	w9, [x25]
	sub	w10, w26, w9
	lsl	x8, x8, x10
	ldr	w10, [x28]
	neg	w9, w9
	lsl	w9, w10, w9
	add	w9, w9, w27
	cmp	x8, w9, sxtw
	b.ls	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_verify_dirty
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22, #16]
	add	x1, sp, #40
	add	x2, sp, #32
	bl	_get_bounds
	ldr	x9, [sp, #40]
	ldr	x8, [x24]
	sub	x10, x9, x8
	lsr	x11, x10, #20
	cbnz	x11, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w11, #100663296
	add	x20, x10, x11
	ldr	x10, [sp, #32]
	sub	x8, x10, x8
	add	x19, x8, x11
	lsr	x10, x20, #12
	mov	w11, #100663295
	add	x8, x8, x11
	lsr	x12, x8, #12
	cmp	x10, x12
	b.ls	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, #0
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, #0
	mov	x20, #0
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, #0
	ldr	x11, [x23]
	add	x12, x12, #1
LBB0_13:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsr	x13, x10, #1
	and	x13, x13, #0x7ffffffffffffffc
	ldr	w13, [x11, x13]
	and	w14, w10, #0x7
	lsr	w13, w13, w14
	tst	w13, #0x1
	csinc	x8, x8, xzr, ne
	add	x10, x10, #1
	cmp	x12, x10
	b.ne	LBB0_13
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh19:
	adrp	x10, _LowWram@GOTPAGE
Lloh20:
	ldr	x10, [x10, _LowWram@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	sub	x9, x9, x10
	lsr	x11, x9, #20
	cbnz	x11, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x9, #512, lsl #12          ; =2097152
	ldr	x9, [sp, #32]
	sub	x9, x9, x10
	mov	w10, #2097151
	add	x10, x9, x10
	add	x19, x9, #512, lsl #12          ; =2097152
	lsr	x9, x20, #12
	lsr	x11, x10, #12
	cmp	x9, x11
	b.hi	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x23]
	add	x11, x11, #1
LBB0_17:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsr	x12, x9, #1
	and	x12, x12, #0x7ffffffffffffffc
	ldr	w12, [x10, x12]
	and	w13, w9, #0x7
	lsr	w12, w12, w13
	tst	w12, #0x1
	csinc	x8, x8, xzr, ne
	add	x9, x9, #1
	cmp	x11, x9
	b.ne	LBB0_17
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x20, LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh22:
	adrp	x9, _recent_writes@GOTPAGE
Lloh23:
	ldr	x9, [x9, _recent_writes@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	ldp	q0, q1, [x9]
	ldp	q2, q3, [x9, #32]
	dup.2d	v4, x20
	cmhs.2d	v5, v3, v4
	cmhs.2d	v6, v2, v4
	uzp1.4s	v5, v6, v5
	cmhs.2d	v6, v1, v4
	cmhs.2d	v4, v0, v4
	uzp1.4s	v4, v4, v6
	dup.2d	v6, x19
	uzp1.8h	v4, v4, v5
	cmhi.2d	v3, v6, v3
	cmhi.2d	v2, v6, v2
	uzp1.4s	v2, v2, v3
	cmhi.2d	v1, v6, v1
	cmhi.2d	v0, v6, v0
	uzp1.4s	v0, v0, v1
	uzp1.8h	v0, v0, v2
	and.16b	v0, v4, v0
	xtn.8b	v0, v0
	umov.b	w9, v0[1]
	and	w9, w9, #0x1
	umov.b	w10, v0[0]
	and	w10, w10, #0x1
	bfi	w10, w9, #1, #1
	umov.b	w9, v0[2]
	and	w9, w9, #0x1
	bfi	w10, w9, #2, #1
	umov.b	w9, v0[3]
	and	w9, w9, #0x1
	bfi	w10, w9, #3, #1
	umov.b	w9, v0[4]
	and	w9, w9, #0x1
	bfi	w10, w9, #4, #1
	umov.b	w9, v0[5]
	and	w9, w9, #0x1
	bfi	w10, w9, #5, #1
	umov.b	w9, v0[6]
	and	w9, w9, #0x1
	orr	w9, w10, w9, lsl #6
	umov.b	w10, v0[7]
	orr	w9, w9, w10, lsl #7
	tst	w9, #0xff
	b.ne	LBB0_4
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w24, #0
	cbnz	x8, LBB0_3
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w24, #1
	cbnz	x8, LBB0_3
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22, #16]
	bl	_get_clean_addr
	mov	x8, x21
	ldr	x8, [x21]
	sub	x8, x0, x8
	ldr	w9, [x25]
	sub	w10, w26, w9
	lsl	x8, x8, x10
	ldr	w10, [x28]
	neg	w9, w9
	lsl	w9, w10, w9
	add	w9, w9, w27
	cmp	x8, w9, sxtw
	b.ls	LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, x0
	ldr	w1, [x22]
	ldr	x8, [x22, #16]
	stp	x8, x0, [sp]
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_inv_debug
Lloh27:
	adrp	x8, _jump_in@GOTPAGE
Lloh28:
	ldr	x8, [x8, _jump_in@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	x0, x8, x9
	ldr	w1, [x22]
	mov	x2, x21
	bl	_ll_add_nodup
Lloh30:
	adrp	x8, _hash_table@GOTPAGE
Lloh31:
	ldr	x8, [x8, _hash_table@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	ldr	w9, [x22]
	and	w10, w9, #0xffff
	eor	w10, w10, w9, lsr #16
	ldr	x8, [x8, w10, uxtw #3]
	ldr	w10, [x8]
	cmp	w10, w9
	b.ne	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_5 Depth=1
	str	w21, [x8, #4]
	ldr	w9, [x22]
LBB0_25:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x8, #8]
	cmp	w10, w9
	b.ne	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_5 Depth=1
	str	w21, [x8, #12]
LBB0_27:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w15, #1
	tbnz	w24, #0, LBB0_2
; %bb.28:                               ;   in Loop: Header=BB0_5 Depth=1
	subs	x8, x19, x20
Lloh33:
	adrp	x21, _out@GOTPAGE
Lloh34:
	ldr	x21, [x21, _out@GOTPAGEOFF]
Lloh35:
	adrp	x24, _HighWram@GOTPAGE
Lloh36:
	ldr	x24, [x24, _HighWram@GOTPAGEOFF]
	b.eq	LBB0_4
; %bb.29:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x9, #0
Lloh37:
	adrp	x10, _cached_code_words@GOTPAGE
Lloh38:
	ldr	x10, [x10, _cached_code_words@GOTPAGEOFF]
Lloh39:
	ldr	x10, [x10]
	mov	w11, #4194304
	bfxil	x11, x20, #0, #22
	cmp	x20, #1024, lsl #12             ; =4194304
	csel	x11, x20, x11, lo
LBB0_30:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w12, w20, w9
	ubfx	w12, w12, #2, #3
	add	x13, x11, x9
	lsr	x13, x13, #3
	and	x13, x13, #0x1ffffffffffffffc
	ldr	w14, [x10, x13]
	lsl	w12, w15, w12
	orr	w12, w14, w12
	str	w12, [x10, x13]
	add	x9, x9, #4
	cmp	x9, x8
	b.lo	LBB0_30
	b	LBB0_4
LBB0_31:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"INV: clean_blocks page=%d\n"

	.comm	_jump_dirty,8,3                 ; @jump_dirty
	.comm	_cached_code,8,3                ; @cached_code
	.comm	_out,8,3                        ; @out
	.comm	_TARGET_SIZE_2,4,2              ; @TARGET_SIZE_2
	.comm	_MAX_OUTPUT_BLOCK_SIZE,4,2      ; @MAX_OUTPUT_BLOCK_SIZE
	.comm	_HighWram,8,3                   ; @HighWram
	.comm	_LowWram,8,3                    ; @LowWram
	.comm	_recent_writes,8,3              ; @recent_writes
l_.str.1:                               ; @.str.1
	.asciz	"INV: Restored %x (%x/%x)\n"

	.comm	_jump_in,8,3                    ; @jump_in
	.comm	_hash_table,8,3                 ; @hash_table
	.comm	_cached_code_words,8,3          ; @cached_code_words
.subsections_via_symbols
