	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_jfs_read_inode
_grub_jfs_read_inode:                   ## @grub_jfs_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r15
	leal	4095(%rsi), %eax
	testl	%esi, %esi
	cmovnsl	%esi, %eax
	movl	%eax, %edx
	sarl	$12, %edx
	andl	$-4096, %eax                    ## imm = 0xF000
	movl	%esi, %r14d
	subl	%eax, %r14d
	negl	%eax
	leal	(%rsi,%rax), %r13d
	addl	$31, %r13d
	testw	%r14w, %r14w
	cmovnsl	%r14d, %r13d
	leaq	8(%rdi), %rsi
	incl	%edx
	callq	_grub_jfs_blkno
	movl	%eax, %ebx
	movq	_grub_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %r12d
	movl	4(%r15), %edi
	callq	_grub_le_to_cpu16
	movq	_GRUB_DISK_SECTOR_BITS@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movl	%eax, %ecx
	shll	%cl, %ebx
	leaq	-56(%rbp), %r8
	movl	%r12d, %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	$8, %ecx
	callq	_grub_disk_read
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movswl	%r13w, %eax
	shrl	$5, %eax
	andl	$-32, %r13d
	subl	%r13d, %r14d
	movswl	%r14w, %r14d
	movq	-56(%rbp), %rcx
	movswq	%ax, %rax
	movl	(%rcx,%rax,4), %edi
	callq	_grub_le_to_cpu32
	movl	%eax, %ebx
	movl	4(%r15), %edi
	callq	_grub_le_to_cpu16
	movq	_GRUB_DISK_SECTOR_BITS@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movl	%eax, %ecx
	shll	%cl, %ebx
	addl	%r14d, %ebx
	movl	(%r15), %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	$8, %ecx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_grub_disk_read
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	_grub_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_grub_errno,8,3                 ## @grub_errno
	.comm	_GRUB_DISK_SECTOR_BITS,4,2      ## @GRUB_DISK_SECTOR_BITS
	.no_dead_strip	_grub_jfs_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_jfs_read_inode
_grub_jfs_read_inode:                   ; @grub_jfs_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
	add	w8, w1, #4095
	cmp	w1, #0
	csel	w25, w8, w1, lt
	asr	w8, w25, #12
	add	x1, x0, #8
	add	w2, w8, #1
	bl	_grub_jfs_blkno
	mov	x22, x0
Lloh0:
	adrp	x24, _grub_errno@GOTPAGE
Lloh1:
	ldr	x24, [x24, _grub_errno@GOTPAGEOFF]
	ldr	x0, [x24]
	cbnz	x0, LBB0_4
; %bb.1:
	ldp	w23, w0, [x20]
	bl	_grub_le_to_cpu16
Lloh2:
	adrp	x26, _GRUB_DISK_SECTOR_BITS@GOTPAGE
Lloh3:
	ldr	x26, [x26, _GRUB_DISK_SECTOR_BITS@GOTPAGEOFF]
	ldr	w8, [x26]
	sub	w8, w0, w8
	lsl	w1, w22, w8
	add	x4, sp, #8
	mov	x0, x23
	mov	w2, #0
	mov	w3, #8
	bl	_grub_disk_read
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x24]
	b	LBB0_4
LBB0_3:
	and	w8, w25, #0xfffff000
	sub	w8, w21, w8
	sxth	w9, w8
	ubfx	w9, w9, #26, #5
	add	w9, w8, w9
	sbfx	w10, w9, #5, #11
	and	w9, w9, #0xffe0
	sub	w8, w8, w9
	sxth	w22, w8
	ldr	x8, [sp, #8]
	ldr	w0, [x8, w10, sxtw #2]
	bl	_grub_le_to_cpu32
	mov	x21, x0
	ldr	w0, [x20, #4]
	bl	_grub_le_to_cpu16
	ldr	w8, [x26]
	sub	w8, w0, w8
	lsl	w8, w21, w8
	add	w1, w8, w22
	ldr	w0, [x20]
	mov	w2, #0
	mov	w3, #8
	mov	x4, x19
	bl	_grub_disk_read
	ldr	x8, [x24]
	cmp	x0, #0
	csel	x0, xzr, x8, eq
LBB0_4:
	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 AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_grub_errno,8,3                 ; @grub_errno
	.comm	_GRUB_DISK_SECTOR_BITS,4,2      ; @GRUB_DISK_SECTOR_BITS
	.no_dead_strip	_grub_jfs_read_inode
.subsections_via_symbols
