	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_nilfs2_dat_translate
_grub_nilfs2_dat_translate:             ## @grub_nilfs2_dat_translate
	.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
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	4(%rdi), %r14d
	callq	_LOG2_NILFS2_BLOCK_SIZE
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	$4, %edx
	callq	_grub_nilfs2_palloc_entry_offset
	movl	%eax, %r13d
	shll	$2, %r12d
	movq	%rbx, %rdi
	callq	_NILFS2_BLOCK_SIZE
	leaq	-52(%rbp), %rdx
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_grub_divmod64
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	callq	_grub_nilfs2_bmap_lookup
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	%r15d, %ecx
	shll	%cl, %eax
	movl	-52(%rbp), %edx
	leaq	-48(%rbp), %r8
	movl	%r14d, %edi
	movl	%eax, %esi
	movl	$4, %ecx
	callq	_grub_disk_read
	movl	-48(%rbp), %edi
	callq	_grub_le_to_cpu64
	jmp	LBB0_3
LBB0_1:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_grub_error
	movl	$-1, %eax
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_ERR_BAD_FS,4,2            ## @GRUB_ERR_BAD_FS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"btree lookup failure"

	.no_dead_strip	_grub_nilfs2_dat_translate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_nilfs2_dat_translate
_grub_nilfs2_dat_translate:             ; @grub_nilfs2_dat_translate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x22, x0
	ldr	w19, [x0, #4]
	bl	_LOG2_NILFS2_BLOCK_SIZE
	mov	x20, x0
	mov	x0, x22
	mov	x1, x21
	mov	w2, #4
	bl	_grub_nilfs2_palloc_entry_offset
	mov	x23, x0
	lsl	w21, w21, #2
	mov	x0, x22
	bl	_NILFS2_BLOCK_SIZE
	mov	x1, x0
	add	x2, sp, #4
	mov	x0, x21
	bl	_grub_divmod64
	mov	x0, x22
	mov	x1, x22
	mov	x2, x23
	mov	w3, #0
	bl	_grub_nilfs2_bmap_lookup
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	lsl	w1, w0, w20
	ldr	w2, [sp, #4]
	add	x4, sp, #8
	mov	x0, x19
	mov	w3, #4
	bl	_grub_disk_read
	ldr	w0, [sp, #8]
	bl	_grub_le_to_cpu64
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_grub_error
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_ERR_BAD_FS,4,2            ; @GRUB_ERR_BAD_FS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"btree lookup failure"

	.no_dead_strip	_grub_nilfs2_dat_translate
.subsections_via_symbols
