	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_hfs_iterate_dir
_grub_hfs_iterate_dir:                  ## @grub_hfs_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r12
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	$0, -112(%rbp)
	movl	%edx, %edi
	callq	_grub_cpu_to_be32
	movl	%eax, -104(%rbp)
	movl	$0, -100(%rbp)
	leaq	L_.str(%rip), %rax
	movl	%eax, -96(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, -48(%rbp)
	movl	%r13d, -88(%rbp)
	movq	%r12, -80(%rbp)
	movq	%r15, -56(%rbp)
	movq	$0, -64(%rbp)
	movl	$0, -72(%rbp)
	movq	_grub_hfs_iterate_dir_node_found@GOTPCREL(%rip), %r12
	leaq	-88(%rbp), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$-1, -68(%rbp)
	movl	(%r12), %r8d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r9
	callq	_grub_hfs_iterate_records
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-68(%rbp), %ebx
	cmpl	$-1, %ebx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, -64(%rbp)
	je	LBB0_1
## %bb.5:
	movl	-72(%rbp), %edx
	movq	_grub_hfs_iterate_dir_it_dir@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-88(%rbp), %r9
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %ecx
	callq	_grub_hfs_iterate_records
LBB0_6:
	movq	_grub_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_3:
	xorl	%eax, %eax
LBB0_7:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_grub_hfs_iterate_dir_node_found,4,2 ## @grub_hfs_iterate_dir_node_found
	.comm	_grub_errno,4,2                 ## @grub_errno
	.comm	_grub_hfs_iterate_dir_it_dir,4,2 ## @grub_hfs_iterate_dir_it_dir
	.no_dead_strip	_grub_hfs_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_hfs_iterate_dir
_grub_hfs_iterate_dir:                  ; @grub_hfs_iterate_dir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #56]
	mov	x0, x2
	bl	_grub_cpu_to_be32
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	stp	w0, wzr, [sp, #64]
	str	w8, [sp, #72]
	add	x8, sp, #56
	stp	x21, x8, [sp, #40]
	str	w23, [sp, #8]
	str	x22, [sp, #16]
	str	xzr, [sp, #32]
	str	wzr, [sp, #24]
	mov	w21, #-1
Lloh2:
	adrp	x22, _grub_hfs_iterate_dir_node_found@GOTPAGE
Lloh3:
	ldr	x22, [x22, _grub_hfs_iterate_dir_node_found@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	str	w21, [sp, #28]
	ldr	w4, [x22]
	add	x5, sp, #8
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	mov	w3, #0
	bl	_grub_hfs_iterate_records
	cbnz	x0, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w20, [sp, #28]
	cmn	w20, #1
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_1
; %bb.4:
	ldr	w2, [sp, #24]
Lloh4:
	adrp	x8, _grub_hfs_iterate_dir_it_dir@GOTPAGE
Lloh5:
	ldr	x8, [x8, _grub_hfs_iterate_dir_it_dir@GOTPAGEOFF]
Lloh6:
	ldr	w4, [x8]
	add	x5, sp, #8
	mov	x0, x19
	mov	w1, #0
	mov	w3, #1
	bl	_grub_hfs_iterate_records
LBB0_5:
Lloh7:
	adrp	x8, _grub_errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_grub_hfs_iterate_dir_node_found,4,2 ; @grub_hfs_iterate_dir_node_found
	.comm	_grub_errno,4,2                 ; @grub_errno
	.comm	_grub_hfs_iterate_dir_it_dir,4,2 ; @grub_hfs_iterate_dir_it_dir
	.no_dead_strip	_grub_hfs_iterate_dir
.subsections_via_symbols
