	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_jfs_mount
_grub_jfs_mount:                        ## @grub_jfs_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movl	$40, %edi
	callq	_grub_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r15
	movq	_GRUB_JFS_SBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rbx
	addq	$32, %rbx
	movl	%r14d, %edi
	xorl	%edx, %edx
	movl	$4, %ecx
	movq	%rbx, %r8
	callq	_grub_disk_read
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_grub_strncmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_grub_error
	jmp	LBB0_5
LBB0_4:
	movl	%r14d, 8(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r15)
	movq	_GRUB_JFS_FS1_INODE_BLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	xorl	%edx, %edx
	movl	$4, %ecx
	movq	%r15, %r8
	callq	_grub_disk_read
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:
	movq	%r15, %rdi
	callq	_grub_free
	movq	_grub_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GRUB_ERR_OUT_OF_RANGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_grub_error
LBB0_7:
	xorl	%r15d, %r15d
LBB0_8:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_JFS_SBLOCK,4,2            ## @GRUB_JFS_SBLOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"JFS1"

	.comm	_GRUB_ERR_BAD_FS,4,2            ## @GRUB_ERR_BAD_FS
L_.str.1:                               ## @.str.1
	.asciz	"not a JFS filesystem"

	.comm	_GRUB_JFS_FS1_INODE_BLK,4,2     ## @GRUB_JFS_FS1_INODE_BLK
	.comm	_grub_errno,8,3                 ## @grub_errno
	.comm	_GRUB_ERR_OUT_OF_RANGE,8,3      ## @GRUB_ERR_OUT_OF_RANGE
	.no_dead_strip	_grub_jfs_mount
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_jfs_mount
_grub_jfs_mount:                        ; @grub_jfs_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, #40
	bl	_grub_malloc
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _GRUB_JFS_SBLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GRUB_JFS_SBLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x21, x19, #32
	mov	x0, x20
	mov	w2, #0
	mov	w3, #4
	mov	x4, x21
	bl	_grub_disk_read
	cbnz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x21]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_grub_strncmp
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_grub_error
	b	LBB0_5
LBB0_4:
	str	w20, [x19, #8]
	stp	xzr, xzr, [x19, #16]
Lloh10:
	adrp	x8, _GRUB_JFS_FS1_INODE_BLK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GRUB_JFS_FS1_INODE_BLK@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #4
	mov	x4, x19
	bl	_grub_disk_read
	cbz	x0, LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_grub_free
Lloh13:
	adrp	x8, _grub_errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _GRUB_ERR_OUT_OF_RANGE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _GRUB_ERR_OUT_OF_RANGE@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh19:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_grub_error
LBB0_7:
	mov	x19, #0
LBB0_8:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_JFS_SBLOCK,4,2            ; @GRUB_JFS_SBLOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"JFS1"

	.comm	_GRUB_ERR_BAD_FS,4,2            ; @GRUB_ERR_BAD_FS
l_.str.1:                               ; @.str.1
	.asciz	"not a JFS filesystem"

	.comm	_GRUB_JFS_FS1_INODE_BLK,4,2     ; @GRUB_JFS_FS1_INODE_BLK
	.comm	_grub_errno,8,3                 ; @grub_errno
	.comm	_GRUB_ERR_OUT_OF_RANGE,8,3      ; @GRUB_ERR_OUT_OF_RANGE
	.no_dead_strip	_grub_jfs_mount
.subsections_via_symbols
