	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_disk_cache_get_index
_grub_disk_cache_get_index:             ## @grub_disk_cache_get_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %eax
	movq	%rdi, %rcx
	shlq	$19, %rcx
	subq	%rdi, %rcx
	imulq	$2606459, %rsi, %rdx            ## imm = 0x27C57B
	addq	%rcx, %rdx
	movq	_GRUB_DISK_CACHE_BITS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	addq	%rdx, %rax
	movq	_GRUB_DISK_CACHE_NUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_DISK_CACHE_BITS,4,2       ## @GRUB_DISK_CACHE_BITS
	.comm	_GRUB_DISK_CACHE_NUM,4,2        ## @GRUB_DISK_CACHE_NUM
	.no_dead_strip	_grub_disk_cache_get_index
.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_get_index
_grub_disk_cache_get_index:             ; @grub_disk_cache_get_index
	.cfi_startproc
; %bb.0:
	lsl	x8, x0, #19
	sub	x8, x8, x0
	mov	w9, #50555
	movk	w9, #39, lsl #16
	madd	x8, x1, x9, x8
Lloh0:
	adrp	x9, _GRUB_DISK_CACHE_BITS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GRUB_DISK_CACHE_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	asr	w9, w2, w9
	add	x8, x8, x9
Lloh3:
	adrp	x9, _GRUB_DISK_CACHE_NUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GRUB_DISK_CACHE_NUM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	udiv	x10, x8, x9
	msub	w0, w10, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_DISK_CACHE_BITS,4,2       ; @GRUB_DISK_CACHE_BITS
	.comm	_GRUB_DISK_CACHE_NUM,4,2        ; @GRUB_DISK_CACHE_NUM
	.no_dead_strip	_grub_disk_cache_get_index
.subsections_via_symbols
