	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_ext2_read_inode
_grub_ext2_read_inode:                  ## @grub_ext2_read_inode
	.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	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	callq	_grub_le_to_cpu32
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movl	%eax, %ecx
	decl	%ebx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_grub_ext2_blockgroup
	movq	_grub_errno@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	movq	%r15, %rdi
	callq	_EXT2_INODE_SIZE
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_EXT2_BLOCK_SIZE
	cltd
	idivl	%r12d
	testl	%eax, %eax
	jle	LBB0_1
## %bb.6:
	movl	%eax, %r13d
	movl	4(%r15), %edi
	callq	_grub_le_to_cpu32
	movl	%eax, %ecx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%r13d
	movl	%eax, %r12d
	movl	4(%r15), %edi
	callq	_grub_le_to_cpu32
	movl	%eax, %ecx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%r13d
	movl	%edx, %ebx
	movl	(%r15), %r13d
	movl	-48(%rbp), %edi
	callq	_grub_le_to_cpu32
	addl	%eax, %r12d
	movq	%r15, %rdi
	callq	_LOG2_EXT2_BLOCK_SIZE
	movl	%eax, %ecx
	shll	%cl, %r12d
	movq	%r15, %rdi
	callq	_EXT2_INODE_SIZE
	imull	%eax, %ebx
	movl	%r13d, %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	$4, %ecx
	movq	%r14, %r8
	callq	_grub_disk_read
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_grub_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_grub_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_ERR_BAD_FS,8,3            ## @GRUB_ERR_BAD_FS
	.comm	_grub_errno,8,3                 ## @grub_errno
	.no_dead_strip	_grub_ext2_read_inode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_ext2_read_inode
_grub_ext2_read_inode:                  ; @grub_ext2_read_inode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_grub_le_to_cpu32
	cmp	w0, #0
	b.le	LBB0_5
; %bb.1:
	sub	w22, w21, #1
	sdiv	w1, w22, w0
	add	x2, sp, #8
	mov	x0, x20
	bl	_grub_ext2_blockgroup
Lloh0:
	adrp	x23, _grub_errno@GOTPAGE
Lloh1:
	ldr	x23, [x23, _grub_errno@GOTPAGEOFF]
	ldr	x0, [x23]
	cbnz	x0, LBB0_7
; %bb.2:
	mov	x0, x20
	bl	_EXT2_INODE_SIZE
	cmp	w0, #0
	b.le	LBB0_6
; %bb.3:
	mov	x21, x0
	mov	x0, x20
	bl	_EXT2_BLOCK_SIZE
	sdiv	w21, w0, w21
	cmp	w21, #0
	b.le	LBB0_6
; %bb.4:
	ldr	w0, [x20, #4]
	bl	_grub_le_to_cpu32
	udiv	w8, w22, w0
	msub	w8, w8, w0, w22
	ldr	w0, [x20, #4]
	udiv	w24, w8, w21
	bl	_grub_le_to_cpu32
	udiv	w8, w22, w0
	msub	w8, w8, w0, w22
	udiv	w9, w8, w21
	msub	w25, w9, w21, w8
	ldr	w21, [x20]
	ldr	w0, [sp, #8]
	bl	_grub_le_to_cpu32
	add	w22, w0, w24
	mov	x0, x20
	bl	_LOG2_EXT2_BLOCK_SIZE
	lsl	w22, w22, w0
	mov	x0, x20
	bl	_EXT2_INODE_SIZE
	mul	w2, w0, w25
	mov	x0, x21
	mov	x1, x22
	mov	w3, #4
	mov	x4, x19
	bl	_grub_disk_read
	ldr	x8, [x23]
	cmp	x0, #0
	csel	x0, xzr, x8, eq
	b	LBB0_7
LBB0_5:
Lloh2:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
Lloh5:
	adrp	x8, _grub_errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
Lloh7:
	str	x0, [x8]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
	str	x0, [x23]
LBB0_7:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_ERR_BAD_FS,8,3            ; @GRUB_ERR_BAD_FS
	.comm	_grub_errno,8,3                 ; @grub_errno
	.no_dead_strip	_grub_ext2_read_inode
.subsections_via_symbols
