	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_disk_cache_store
_grub_disk_cache_store:                 ## @grub_disk_cache_store
	.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
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_grub_disk_cache_get_index
	movq	_grub_disk_cache_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movl	%eax, %eax
	leaq	(%rax,%rax,4), %r12
	movl	$1, (%rbx,%r12,8)
	movq	32(%rbx,%r12,8), %rdi
	callq	_grub_free
	movq	$0, 32(%rbx,%r12,8)
	movl	$0, (%rbx,%r12,8)
	movq	_GRUB_DISK_SECTOR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GRUB_DISK_CACHE_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	callq	_grub_malloc
	movq	%rax, 32(%rbx,%r12,8)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_GRUB_DISK_SECTOR_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_GRUB_DISK_CACHE_BITS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_grub_memcpy
	movq	%r13, 8(%rbx,%r12,8)
	movq	%r15, 16(%rbx,%r12,8)
	movl	%r14d, 24(%rbx,%r12,8)
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_grub_errno@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_grub_disk_cache_table,8,3      ## @grub_disk_cache_table
	.comm	_GRUB_DISK_SECTOR_SIZE,4,2      ## @GRUB_DISK_SECTOR_SIZE
	.comm	_GRUB_DISK_CACHE_BITS,4,2       ## @GRUB_DISK_CACHE_BITS
	.comm	_grub_errno,4,2                 ## @grub_errno
	.comm	_GRUB_ERR_NONE,4,2              ## @GRUB_ERR_NONE
	.no_dead_strip	_grub_disk_cache_store
.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_store
_grub_disk_cache_store:                 ; @grub_disk_cache_store
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_grub_disk_cache_get_index
	mov	x23, x0
Lloh0:
	adrp	x8, _grub_disk_cache_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _grub_disk_cache_table@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	mov	w8, #40
	umaddl	x27, w0, w8, x24
	mov	w8, #1
	str	w8, [x27]
	ldr	x0, [x27, #32]
	bl	_grub_free
	str	xzr, [x27, #32]
Lloh3:
	adrp	x25, _GRUB_DISK_SECTOR_SIZE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _GRUB_DISK_SECTOR_SIZE@GOTPAGEOFF]
	str	wzr, [x27]
	ldr	w8, [x25]
Lloh5:
	adrp	x26, _GRUB_DISK_CACHE_BITS@GOTPAGE
Lloh6:
	ldr	x26, [x26, _GRUB_DISK_CACHE_BITS@GOTPAGEOFF]
	ldr	w9, [x26]
	lsl	w0, w8, w9
	bl	_grub_malloc
	str	x0, [x27, #32]
	cbz	x0, LBB0_2
; %bb.1:
	mov	w23, w23
	ldr	w8, [x25]
	ldr	w9, [x26]
	lsl	w2, w8, w9
	mov	x1, x22
	bl	_grub_memcpy
	mov	w8, #40
	madd	x8, x23, x8, x24
	stp	x21, x20, [x8, #8]
	str	w19, [x8, #24]
Lloh7:
	adrp	x8, _GRUB_ERR_NONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GRUB_ERR_NONE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _grub_errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_grub_disk_cache_table,8,3      ; @grub_disk_cache_table
	.comm	_GRUB_DISK_SECTOR_SIZE,4,2      ; @GRUB_DISK_SECTOR_SIZE
	.comm	_GRUB_DISK_CACHE_BITS,4,2       ; @GRUB_DISK_CACHE_BITS
	.comm	_grub_errno,4,2                 ; @grub_errno
	.comm	_GRUB_ERR_NONE,4,2              ; @GRUB_ERR_NONE
	.no_dead_strip	_grub_disk_cache_store
.subsections_via_symbols
