	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_disk_cache_invalidate
_grub_disk_cache_invalidate:            ## @grub_disk_cache_invalidate
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_GRUB_DISK_CACHE_SIZE@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	andl	%ecx, %r13d
	movl	%r13d, %edx
	callq	_grub_disk_cache_get_index
	movq	_grub_disk_cache_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	movl	%eax, %ebx
	shlq	$5, %rbx
	cmpq	%r15, (%r12,%rbx)
	jne	LBB0_5
## %bb.1:
	cmpq	%r14, 8(%r12,%rbx)
	jne	LBB0_5
## %bb.2:
	cmpl	%r13d, 16(%r12,%rbx)
	jne	LBB0_5
## %bb.3:
	movq	24(%r12,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	leaq	(%r12,%rbx), %r14
	addq	$24, %r14
	movl	$1, 20(%r12,%rbx)
	callq	_grub_free
	movq	$0, (%r14)
	movl	$0, 20(%r12,%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_DISK_CACHE_SIZE,4,2       ## @GRUB_DISK_CACHE_SIZE
	.comm	_grub_disk_cache_table,8,3      ## @grub_disk_cache_table
	.no_dead_strip	_grub_disk_cache_invalidate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_disk_cache_invalidate
_grub_disk_cache_invalidate:            ; @grub_disk_cache_invalidate
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GRUB_DISK_CACHE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GRUB_DISK_CACHE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
	and	w20, w8, w2
	mov	x2, x20
	bl	_grub_disk_cache_get_index
Lloh3:
	adrp	x8, _grub_disk_cache_table@GOTPAGE
Lloh4:
	ldr	x8, [x8, _grub_disk_cache_table@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w9, w0
	lsl	x10, x9, #5
	ldr	x10, [x8, x10]
	cmp	x10, x21
	b.ne	LBB0_5
; %bb.1:
	add	x10, x8, x9, lsl #5
	ldr	x11, [x10, #8]
	cmp	x11, x19
	b.ne	LBB0_5
; %bb.2:
	ldr	w10, [x10, #16]
	cmp	w10, w20
	b.ne	LBB0_5
; %bb.3:
	add	x19, x8, x9, lsl #5
	mov	x20, x19
	ldr	x0, [x20, #24]!
	cbz	x0, LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x19, #20]
	bl	_grub_free
	str	xzr, [x20]
	str	wzr, [x19, #20]
LBB0_5:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_DISK_CACHE_SIZE,4,2       ; @GRUB_DISK_CACHE_SIZE
	.comm	_grub_disk_cache_table,8,3      ; @grub_disk_cache_table
	.no_dead_strip	_grub_disk_cache_invalidate
.subsections_via_symbols
