	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_minix_read_inode
_grub_minix_read_inode:                 ## @grub_minix_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, (%rdi)
	decl	%ebx
	movl	24(%rdi), %edi
	callq	_grub_le_to_cpu16
	movl	%eax, %r15d
	movl	20(%r14), %edi
	callq	_grub_le_to_cpu16
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r15,%rax), %esi
	addl	$2, %esi
	movq	_GRUB_MINIX_LOG2_BSIZE@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	movl	4(%r14), %ecx
	movslq	%ebx, %rax
	movq	_GRUB_DISK_SECTOR_SIZE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdi
	shrq	$2, %rdi
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rdi
	jmp	LBB0_3
LBB0_1:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	xorl	%ebx, %ebx
	cmpl	$1, %ecx
	sete	%bl
	addl	%eax, %esi
	shll	$2, %edx
	movl	12(%r14), %edi
	leaq	(%r14,%rbx,8), %r8
	addq	$8, %r8
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$4, %ecx
	callq	_grub_disk_read
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_MINIX_LOG2_BSIZE,4,2      ## @GRUB_MINIX_LOG2_BSIZE
	.comm	_GRUB_DISK_SECTOR_SIZE,4,2      ## @GRUB_DISK_SECTOR_SIZE
	.comm	_GRUB_ERR_NONE,4,2              ## @GRUB_ERR_NONE
	.no_dead_strip	_grub_minix_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_minix_read_inode
_grub_minix_read_inode:                 ; @grub_minix_read_inode
	.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, x0
	str	w1, [x0]
	sub	w21, w1, #1
	ldr	w0, [x0, #24]
	bl	_grub_le_to_cpu16
	mov	x20, x0
	ldr	w0, [x19, #20]
	bl	_grub_le_to_cpu16
	add	w8, w20, w0
Lloh0:
	adrp	x9, _GRUB_MINIX_LOG2_BSIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GRUB_MINIX_LOG2_BSIZE@GOTPAGEOFF]
	add	w8, w8, #2
Lloh2:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	ldr	w9, [x19, #4]
Lloh3:
	adrp	x10, _GRUB_DISK_SECTOR_SIZE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _GRUB_DISK_SECTOR_SIZE@GOTPAGEOFF]
	sxtw	x11, w21
Lloh5:
	ldrsw	x10, [x10]
	lsr	x10, x10, #2
	udiv	x12, x11, x10
	add	w1, w8, w12
	msub	w8, w12, w10, w11
	lsl	w2, w8, #2
	ldr	w0, [x19, #12]
	add	x8, x19, #8
	add	x10, x19, #16
	cmp	w9, #1
	csel	x4, x10, x8, eq
	mov	w3, #4
	bl	_grub_disk_read
Lloh6:
	adrp	x8, _GRUB_ERR_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GRUB_ERR_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_MINIX_LOG2_BSIZE,4,2      ; @GRUB_MINIX_LOG2_BSIZE
	.comm	_GRUB_DISK_SECTOR_SIZE,4,2      ; @GRUB_DISK_SECTOR_SIZE
	.comm	_GRUB_ERR_NONE,4,2              ; @GRUB_ERR_NONE
	.no_dead_strip	_grub_minix_read_inode
.subsections_via_symbols
