	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_minix_mount
_grub_minix_mount:                      ## @grub_minix_mount
	.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	%edi, %r14d
	movl	$24, %edi
	callq	_grub_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	_GRUB_MINIX_SBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %r15
	addq	$20, %r15
	movl	%r14d, %edi
	xorl	%edx, %edx
	movl	$4, %ecx
	movq	%r15, %r8
	callq	_grub_disk_read
	movq	_grub_errno@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_grub_free
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_grub_error
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_4:
	movl	(%r15), %edi
	callq	_grub_le_to_cpu16
	movq	_GRUB_MINIX_MAGIC@GOTPCREL(%rip), %rcx
	movl	$14, %r12d
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.6:
	movl	(%r15), %edi
	callq	_grub_le_to_cpu16
	movq	_GRUB_MINIX2_MAGIC@GOTPCREL(%rip), %rcx
	movl	$2, %r13d
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.7:
	movl	(%r15), %edi
	callq	_grub_le_to_cpu16
	movq	_GRUB_MINIX_MAGIC_30@GOTPCREL(%rip), %rcx
	movl	$30, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_5:
	movl	$1, %r13d
LBB0_10:
	movl	%r13d, (%rbx)
	movl	%r12d, 4(%rbx)
	movl	%r14d, 16(%rbx)
	movq	$0, 8(%rbx)
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	(%r15), %edi
	callq	_grub_le_to_cpu16
	movq	_GRUB_MINIX2_MAGIC_30@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_MINIX_SBLOCK,4,2          ## @GRUB_MINIX_SBLOCK
	.comm	_grub_errno,8,3                 ## @grub_errno
	.comm	_GRUB_MINIX_MAGIC,8,3           ## @GRUB_MINIX_MAGIC
	.comm	_GRUB_MINIX2_MAGIC,8,3          ## @GRUB_MINIX2_MAGIC
	.comm	_GRUB_MINIX_MAGIC_30,8,3        ## @GRUB_MINIX_MAGIC_30
	.comm	_GRUB_MINIX2_MAGIC_30,8,3       ## @GRUB_MINIX2_MAGIC_30
	.comm	_GRUB_ERR_BAD_FS,4,2            ## @GRUB_ERR_BAD_FS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not a minix filesystem"

	.no_dead_strip	_grub_minix_mount
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function grub_minix_mount
lCPI0_0:
	.long	1                               ; 0x1
	.long	14                              ; 0xe
lCPI0_1:
	.long	2                               ; 0x2
	.long	14                              ; 0xe
lCPI0_2:
	.long	1                               ; 0x1
	.long	30                              ; 0x1e
lCPI0_3:
	.long	2                               ; 0x2
	.long	30                              ; 0x1e
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_grub_minix_mount:                      ; @grub_minix_mount
	.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	x20, x0
	mov	w0, #24
	bl	_grub_malloc
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.1:
Lloh0:
	adrp	x8, _GRUB_MINIX_SBLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GRUB_MINIX_SBLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x21, x19, #20
	mov	x0, x20
	mov	w2, #0
	mov	w3, #4
	mov	x4, x21
	bl	_grub_disk_read
Lloh3:
	adrp	x8, _grub_errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_grub_free
Lloh6:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_grub_error
	mov	x19, #0
	b	LBB0_12
LBB0_3:
	ldr	w0, [x21]
	bl	_grub_le_to_cpu16
Lloh11:
	adrp	x8, _GRUB_MINIX_MAGIC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GRUB_MINIX_MAGIC@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, lCPI0_0@PAGE
Lloh15:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	b	LBB0_11
LBB0_5:
	ldr	w0, [x21]
	bl	_grub_le_to_cpu16
Lloh16:
	adrp	x8, _GRUB_MINIX2_MAGIC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GRUB_MINIX2_MAGIC@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
Lloh19:
	adrp	x8, lCPI0_1@PAGE
Lloh20:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	b	LBB0_11
LBB0_7:
	ldr	w0, [x21]
	bl	_grub_le_to_cpu16
Lloh21:
	adrp	x8, _GRUB_MINIX_MAGIC_30@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GRUB_MINIX_MAGIC_30@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.8:
Lloh24:
	adrp	x8, lCPI0_2@PAGE
Lloh25:
	ldr	d0, [x8, lCPI0_2@PAGEOFF]
	b	LBB0_11
LBB0_9:
	ldr	w0, [x21]
	bl	_grub_le_to_cpu16
Lloh26:
	adrp	x8, _GRUB_MINIX2_MAGIC_30@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GRUB_MINIX2_MAGIC_30@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.10:
Lloh29:
	adrp	x8, lCPI0_3@PAGE
Lloh30:
	ldr	d0, [x8, lCPI0_3@PAGEOFF]
LBB0_11:
	str	d0, [x19]
	str	w20, [x19, #16]
	str	xzr, [x19, #8]
LBB0_12:
	mov	x0, x19
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdr	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdr	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdr	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_MINIX_SBLOCK,4,2          ; @GRUB_MINIX_SBLOCK
	.comm	_grub_errno,8,3                 ; @grub_errno
	.comm	_GRUB_MINIX_MAGIC,8,3           ; @GRUB_MINIX_MAGIC
	.comm	_GRUB_MINIX2_MAGIC,8,3          ; @GRUB_MINIX2_MAGIC
	.comm	_GRUB_MINIX_MAGIC_30,8,3        ; @GRUB_MINIX_MAGIC_30
	.comm	_GRUB_MINIX2_MAGIC_30,8,3       ; @GRUB_MINIX2_MAGIC_30
	.comm	_GRUB_ERR_BAD_FS,4,2            ; @GRUB_ERR_BAD_FS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not a minix filesystem"

	.no_dead_strip	_grub_minix_mount
.subsections_via_symbols
