	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_minix_get_file_block
_grub_minix_get_file_block:             ## @grub_minix_get_file_block
	.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	%esi, %ebx
	movq	%rdi, %r14
	cmpl	$6, %esi
	ja	LBB0_1
## %bb.7:
	movq	%r14, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_GRUB_MINIX_INODE_DIR_ZONES     ## TAILCALL
LBB0_1:
	addl	$-7, %ebx
	movq	_GRUB_MINIX_ZONESZ@GOTPCREL(%rip), %r13
	movl	(%r13), %r15d
	movq	%r14, %rdi
	callq	_GRUB_MINIX_INODE_BLKSZ
	movl	%eax, %ecx
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
	cmpl	%eax, %ebx
	jae	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	_GRUB_MINIX_INODE_INDIR_ZONE
	movl	%eax, %edi
	movl	%ebx, %esi
	jmp	LBB0_3
LBB0_4:
	movl	(%r13), %r15d
	movq	%r14, %rdi
	callq	_GRUB_MINIX_INODE_BLKSZ
	movl	%eax, %ecx
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
	subl	%eax, %ebx
	movl	(%r13), %r15d
	movq	%r14, %rdi
	callq	_GRUB_MINIX_INODE_BLKSZ
	movl	%eax, %ecx
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r15d
	movl	(%r13), %r12d
	movq	%r14, %rdi
	callq	_GRUB_MINIX_INODE_BLKSZ
	movl	%eax, %ecx
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
	imull	%r15d, %eax
	cmpl	%eax, %ebx
	jae	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_GRUB_MINIX_INODE_DINDIR_ZONE
	movl	%eax, %edi
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	(%r13)
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_grub_get_indir
	movl	%eax, %edi
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	(%r13)
	movl	%edx, %esi
LBB0_3:
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_grub_get_indir                 ## TAILCALL
LBB0_6:
	movq	_GRUB_ERR_OUT_OF_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_grub_error
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_MINIX_ZONESZ,4,2          ## @GRUB_MINIX_ZONESZ
	.comm	_GRUB_ERR_OUT_OF_RANGE,4,2      ## @GRUB_ERR_OUT_OF_RANGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file bigger than maximum size"

	.no_dead_strip	_grub_minix_get_file_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_minix_get_file_block
_grub_minix_get_file_block:             ; @grub_minix_get_file_block
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	cmp	w1, #6
	b.hi	LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_GRUB_MINIX_INODE_DIR_ZONES
LBB0_2:
	sub	w20, w1, #7
Lloh0:
	adrp	x21, _GRUB_MINIX_ZONESZ@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GRUB_MINIX_ZONESZ@GOTPAGEOFF]
	ldr	w22, [x21]
	mov	x0, x19
	bl	_GRUB_MINIX_INODE_BLKSZ
	udiv	w8, w22, w0
	cmp	w20, w8
	b.hs	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_GRUB_MINIX_INODE_INDIR_ZONE
	mov	x1, x20
	b	LBB0_6
LBB0_4:
	ldr	w22, [x21]
	mov	x0, x19
	bl	_GRUB_MINIX_INODE_BLKSZ
	udiv	w8, w22, w0
	sub	w20, w20, w8
	ldr	w22, [x21]
	mov	x0, x19
	bl	_GRUB_MINIX_INODE_BLKSZ
	ldr	w23, [x21]
	udiv	w22, w22, w0
	mov	x0, x19
	bl	_GRUB_MINIX_INODE_BLKSZ
	udiv	w8, w23, w0
	mul	w8, w8, w22
	cmp	w20, w8
	b.hs	LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_GRUB_MINIX_INODE_DINDIR_ZONE
	ldr	w8, [x21]
	udiv	w1, w20, w8
	mov	x2, x19
	bl	_grub_get_indir
	ldr	w8, [x21]
	udiv	w9, w20, w8
	msub	w1, w9, w8, w20
LBB0_6:
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_grub_get_indir
LBB0_7:
Lloh2:
	adrp	x8, _GRUB_ERR_OUT_OF_RANGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GRUB_ERR_OUT_OF_RANGE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_grub_error
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_MINIX_ZONESZ,4,2          ; @GRUB_MINIX_ZONESZ
	.comm	_GRUB_ERR_OUT_OF_RANGE,4,2      ; @GRUB_ERR_OUT_OF_RANGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file bigger than maximum size"

	.no_dead_strip	_grub_minix_get_file_block
.subsections_via_symbols
