	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_invalidate_addr                ## -- Begin function invalidate_addr
	.p2align	4, 0x90
_invalidate_addr:                       ## @invalidate_addr
	.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
	movl	%edi, %r15d
	movl	%edi, %ecx
	andl	$-536870913, %ecx               ## imm = 0xDFFFFFFF
	movl	%edi, %eax
	andl	$4194303, %eax                  ## imm = 0x3FFFFF
	orl	$4194304, %eax                  ## imm = 0x400000
	cmpl	$4194305, %ecx                  ## imm = 0x400001
	cmovll	%ecx, %eax
	movq	_cached_code_words@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	%eax, %edx
	sarl	$5, %edx
	movslq	%edx, %r12
	movl	(%rcx,%r12,4), %ecx
	movl	%eax, %ebx
	shrl	$2, %ebx
	andl	$7, %ebx
	btl	%ebx, %ecx
	jb	LBB0_3
## %bb.1:
	movq	_invalidate_count@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leal	1(%rdx), %esi
	movl	%esi, (%rcx)
	cmpl	$499, %edx                      ## imm = 0x1F3
	jg	LBB0_3
## %bb.2:
	movq	_restore_candidate@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %edx
	sarl	$15, %edx
	movslq	%edx, %rdx
	movl	(%rcx,%rdx,4), %ecx
	shrl	$12, %eax
	andb	$7, %al
	movzbl	%al, %eax
	btl	%eax, %ecx
	jb	LBB0_4
	jmp	LBB0_5
LBB0_3:
	movl	%r15d, %edi
	sarl	$12, %edi
	movl	%edi, %esi
	callq	_invalidate_blocks
	movq	(%r14), %rax
	movl	(%rax,%r12,4), %eax
	xorl	%edi, %edi
	btl	%ebx, %eax
	setae	%dil
	callq	_assert
LBB0_4:
	movq	_recent_writes@GOTPCREL(%rip), %rdx
	movq	_recent_write_index@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(,%rax,4), %rcx
	addq	(%rdx), %rcx
	movl	%r15d, (%rcx)
	incl	%eax
	andl	$7, %eax
	movq	_recent_write_index@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cached_code_words,8,3          ## @cached_code_words
	.comm	_invalidate_count,4,2           ## @invalidate_count
	.comm	_restore_candidate,8,3          ## @restore_candidate
	.comm	_recent_writes,8,3              ## @recent_writes
	.comm	_recent_write_index,8,3         ## @recent_write_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_invalidate_addr                ; -- Begin function invalidate_addr
	.p2align	2
_invalidate_addr:                       ; @invalidate_addr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	and	w8, w0, #0xdfffffff
	mov	w9, #4194304
	bfxil	w9, w0, #0, #22
	cmp	w8, #1024, lsl #12              ; =4194304
	csel	w8, w9, w8, gt
Lloh0:
	adrp	x21, _cached_code_words@GOTPAGE
Lloh1:
	ldr	x21, [x21, _cached_code_words@GOTPAGEOFF]
	ldr	x9, [x21]
	asr	w10, w8, #5
	ldr	w9, [x9, w10, sxtw #2]
	ubfx	w22, w8, #2, #3
	lsr	w9, w9, w22
Lloh2:
	adrp	x20, _recent_write_index@GOTPAGE
Lloh3:
	ldr	x20, [x20, _recent_write_index@GOTPAGEOFF]
	tbnz	w9, #0, LBB0_3
; %bb.1:
Lloh4:
	adrp	x9, _invalidate_count@GOTPAGE
Lloh5:
	ldr	x9, [x9, _invalidate_count@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w11, w10, #1
	str	w11, [x9]
	cmp	w10, #499
	b.gt	LBB0_3
; %bb.2:
Lloh6:
	adrp	x9, _restore_candidate@GOTPAGE
Lloh7:
	ldr	x9, [x9, _restore_candidate@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	asr	w10, w8, #15
	ldr	w9, [x9, w10, sxtw #2]
	ubfx	w8, w8, #12, #3
	lsr	w8, w9, w8
	tbnz	w8, #0, LBB0_4
	b	LBB0_5
LBB0_3:
	sbfx	x23, x8, #5, #27
	asr	w0, w19, #12
	mov	x1, x0
	bl	_invalidate_blocks
	ldr	x8, [x21]
	ldr	w8, [x8, x23, lsl #2]
	mvn	w8, w8
	lsr	w8, w8, w22
	and	w0, w8, #0x1
	bl	_assert
LBB0_4:
Lloh9:
	adrp	x8, _recent_writes@GOTPAGE
Lloh10:
	ldr	x8, [x8, _recent_writes@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x8]
	ldr	x8, [x20]
	add	x9, x9, x8, lsl #2
	str	w19, [x9]
	add	w8, w8, #1
	and	x8, x8, #0x7
	str	x8, [x20]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_cached_code_words,8,3          ; @cached_code_words
	.comm	_invalidate_count,4,2           ; @invalidate_count
	.comm	_restore_candidate,8,3          ; @restore_candidate
	.comm	_recent_writes,8,3              ; @recent_writes
	.comm	_recent_write_index,8,3         ; @recent_write_index
.subsections_via_symbols
