	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_jfs_getent
_grub_jfs_getent:                       ## @grub_jfs_getent
	.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	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -1076(%rbp)
	movq	(%rdi), %rax
	cmpq	8(%rdi), %rax
	jne	LBB0_1
## %bb.2:
	movq	72(%r12), %rax
	movq	_GRUB_JFS_TREE_LEAF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
LBB0_4:
	movq	_GRUB_ERR_OUT_OF_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_16
LBB0_1:
	movq	40(%r12), %rcx
	movq	48(%r12), %r14
LBB0_8:
	movslq	(%rcx,%rax,8), %r15
	shlq	$4, %r15
	movl	(%r14,%r15), %ebx
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.11:
	movl	12(%r14,%r15), %edi
	cmpl	$11, %ebx
	movl	$11, %esi
	cmovll	%ebx, %esi
	leaq	-1072(%rbp), %rdx
	leaq	-1076(%rbp), %rcx
	callq	_addstr
	movl	8(%r14,%r15), %edi
	callq	_grub_le_to_cpu32
	movl	%eax, 32(%r12)
	movl	4(%r14,%r15), %eax
	cmpl	$255, %eax
	je	LBB0_15
## %bb.12:
	addl	$-11, %ebx
	leaq	-1076(%rbp), %r15
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %r13
	movslq	%eax, %r14
	movl	4(%r13,%r14,8), %edi
	cmpl	$15, %ebx
	movl	$15, %esi
	cmovll	%ebx, %esi
	leaq	-1072(%rbp), %rdx
	movq	%r15, %rcx
	callq	_addstr
	movl	(%r13,%r14,8), %eax
	cmpl	$255, %eax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	leal	-15(%rbx), %ecx
	cmpl	$15, %ebx
	movl	%ecx, %ebx
	jg	LBB0_13
LBB0_15:
	incq	(%r12)
	movq	16(%r12), %rdi
	movl	-1076(%rbp), %edx
	leaq	-1072(%rbp), %rsi
	callq	_grub_utf16_to_utf8
	movb	$0, (%rax)
	xorl	%eax, %eax
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	incq	%rax
	movq	%rax, (%r12)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.10:
	movq	%r12, %rdi
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_grub_jfs_getent                ## TAILCALL
LBB0_3:
	movq	56(%r12), %rax
	movl	16(%rax), %edi
	callq	_grub_le_to_cpu64
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	56(%r12), %rax
	movl	16(%rax), %edi
	callq	_grub_le_to_cpu64
	movl	%eax, %r14d
	movq	64(%r12), %rax
	movl	4(%rax), %edi
	callq	_grub_le_to_cpu16
	movq	_GRUB_DISK_SECTOR_BITS@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movl	%eax, %ecx
	shll	%cl, %r14d
	movq	64(%r12), %rax
	movl	(%rax), %edi
	movl	8(%rax), %r15d
	callq	_grub_le_to_cpu32
	movq	56(%r12), %rcx
	movq	24(%rcx), %r8
	movl	%r15d, %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_grub_disk_read
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_grub_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_16
LBB0_7:
	movq	56(%r12), %rax
	movq	40(%rax), %r14
	movq	%r14, 48(%r12)
	movq	32(%rax), %rcx
	movq	%rcx, 24(%r12)
	movslq	(%rax), %rcx
	shlq	$8, %rcx
	addq	24(%rax), %rcx
	movq	%rcx, 40(%r12)
	movq	8(%rax), %rax
	movq	%rax, 8(%r12)
	movq	$0, (%r12)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_JFS_TREE_LEAF,4,2         ## @GRUB_JFS_TREE_LEAF
	.comm	_GRUB_ERR_OUT_OF_RANGE,4,2      ## @GRUB_ERR_OUT_OF_RANGE
	.comm	_GRUB_DISK_SECTOR_BITS,4,2      ## @GRUB_DISK_SECTOR_BITS
	.comm	_grub_errno,4,2                 ## @grub_errno
	.no_dead_strip	_grub_jfs_getent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_jfs_getent
_grub_jfs_getent:                       ; @grub_jfs_getent
	.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
	sub	sp, sp, #1040
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	wzr, [sp, #8]
	ldp	x8, x9, [x0]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #72]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _GRUB_JFS_TREE_LEAF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GRUB_JFS_TREE_LEAF@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
LBB0_2:
Lloh6:
	adrp	x8, _GRUB_ERR_OUT_OF_RANGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GRUB_ERR_OUT_OF_RANGE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_3:
	ldp	x10, x9, [x19, #40]
LBB0_4:
	ldr	x11, [x10, x8, lsl #3]
	sbfiz	x10, x11, #4, #32
	ldr	w10, [x9, x10]
	cbz	w10, LBB0_11
; %bb.5:
	sxtw	x8, w11
	add	x21, x9, x8, lsl #4
	ldr	w0, [x21, #12]
	subs	w20, w10, #11
	mov	w8, #11
	csel	w1, w10, w8, lt
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_addstr
	ldr	w0, [x21, #8]
	bl	_grub_le_to_cpu32
	str	w0, [x19, #32]
	ldr	w8, [x21, #4]
	cmp	w8, #255
	b.eq	LBB0_8
; %bb.6:
	mov	w21, #15
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	add	x22, x9, w8, sxtw #3
	ldr	w0, [x22, #4]
	subs	w23, w20, #15
	csel	w1, w20, w21, lt
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_addstr
	ldr	w8, [x22]
	cmp	w8, #255
	ccmp	w20, #15, #4, ne
	mov	x20, x23
	b.gt	LBB0_7
LBB0_8:
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	ldr	x0, [x19, #16]
	ldr	w2, [sp, #8]
	add	x1, sp, #12
	bl	_grub_utf16_to_utf8
	mov	x8, x0
	mov	w0, #0
	strb	wzr, [x8]
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.10:
	add	sp, sp, #1040
	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
LBB0_11:
	add	x8, x8, #1
	str	x8, [x19]
	ldur	x8, [x29, #-56]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.12:
	mov	x0, x19
	add	sp, sp, #1040
	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_jfs_getent
LBB0_13:
	ldr	x8, [x19, #56]
	ldr	w0, [x8, #16]
	bl	_grub_le_to_cpu64
	cbz	w0, LBB0_2
; %bb.14:
	ldr	x8, [x19, #56]
	ldr	w0, [x8, #16]
	bl	_grub_le_to_cpu64
	mov	x20, x0
	ldr	x8, [x19, #64]
	ldr	w0, [x8, #4]
	bl	_grub_le_to_cpu16
Lloh15:
	adrp	x8, _GRUB_DISK_SECTOR_BITS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GRUB_DISK_SECTOR_BITS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	sub	w8, w0, w8
	lsl	w20, w20, w8
	ldr	x8, [x19, #64]
	ldr	w21, [x8, #8]
	ldr	w0, [x8]
	bl	_grub_le_to_cpu32
	mov	x3, x0
	ldr	x8, [x19, #56]
	ldr	x4, [x8, #24]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_grub_disk_read
	cbz	x0, LBB0_16
; %bb.15:
Lloh18:
	adrp	x8, _grub_errno@GOTPAGE
Lloh19:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_16:
	mov	x8, #0
	ldr	x11, [x19, #56]
	ldr	x9, [x11, #40]
	str	x9, [x19, #48]
	ldr	x10, [x11, #32]
	str	x10, [x19, #24]
	ldr	x10, [x11, #24]
	ldrsw	x12, [x11]
	add	x10, x10, x12, lsl #8
	str	x10, [x19, #40]
	ldr	x11, [x11, #8]
	stp	xzr, x11, [x19]
	b	LBB0_4
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_JFS_TREE_LEAF,4,2         ; @GRUB_JFS_TREE_LEAF
	.comm	_GRUB_ERR_OUT_OF_RANGE,4,2      ; @GRUB_ERR_OUT_OF_RANGE
	.comm	_GRUB_DISK_SECTOR_BITS,4,2      ; @GRUB_DISK_SECTOR_BITS
	.comm	_grub_errno,4,2                 ; @grub_errno
	.no_dead_strip	_grub_jfs_getent
.subsections_via_symbols
