	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_hfsplus_iterate_dir
_grub_hfsplus_iterate_dir:              ## @grub_hfsplus_iterate_dir
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	$0, -40(%rbp)
	movl	$0, -28(%rbp)
	movl	8(%rdi), %eax
	movl	%eax, -80(%rbp)
	leaq	L_.str(%rip), %rax
	movq	%rax, -88(%rbp)
	movq	(%rdi), %rdi
	movq	_grub_hfsplus_cmp_catkey@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-88(%rbp), %rsi
	leaq	-40(%rbp), %rcx
	leaq	-28(%rbp), %r8
	callq	_grub_hfsplus_btree_search
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	movq	%rbx, -48(%rbp)
	movq	%r15, -72(%rbp)
	movq	%r14, -56(%rbp)
	movl	$0, -64(%rbp)
	movq	(%rbx), %rdi
	movq	-40(%rbp), %rsi
	movl	-28(%rbp), %edx
	movq	_list_nodes@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-72(%rbp), %r8
	callq	_grub_hfsplus_btree_iterate_node
	movq	-40(%rbp), %rdi
	callq	_grub_free
	movl	-64(%rbp), %eax
LBB0_2:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_grub_hfsplus_cmp_catkey,4,2    ## @grub_hfsplus_cmp_catkey
	.comm	_list_nodes,4,2                 ## @list_nodes
	.no_dead_strip	_grub_hfsplus_iterate_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_hfsplus_iterate_dir
_grub_hfsplus_iterate_dir:              ; @grub_hfsplus_iterate_dir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x2
	mov	x21, x1
	mov	x19, x0
	str	wzr, [sp, #36]
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, l_.str@PAGE
Lloh1:
	add	x9, x9, l_.str@PAGEOFF
	str	w8, [sp, #56]
	stp	xzr, x9, [sp, #40]
	ldr	x0, [x0]
Lloh2:
	adrp	x8, _grub_hfsplus_cmp_catkey@GOTPAGE
Lloh3:
	ldr	x8, [x8, _grub_hfsplus_cmp_catkey@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x1, sp, #48
	add	x3, sp, #40
	add	x4, sp, #36
	bl	_grub_hfsplus_btree_search
	mov	x8, x0
	mov	w0, #0
	cbnz	x8, LBB0_2
; %bb.1:
	str	x21, [sp]
	stp	x20, x19, [sp, #16]
	str	wzr, [sp, #8]
	ldr	x0, [x19]
	ldr	x1, [sp, #40]
	ldr	w2, [sp, #36]
Lloh5:
	adrp	x8, _list_nodes@GOTPAGE
Lloh6:
	ldr	x8, [x8, _list_nodes@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x4, sp
	bl	_grub_hfsplus_btree_iterate_node
	ldr	x0, [sp, #40]
	bl	_grub_free
	ldr	w0, [sp, #8]
LBB0_2:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_grub_hfsplus_cmp_catkey,4,2    ; @grub_hfsplus_cmp_catkey
	.comm	_list_nodes,4,2                 ; @list_nodes
	.no_dead_strip	_grub_hfsplus_iterate_dir
.subsections_via_symbols
