	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_hfs_iterate_dir_node_found
_grub_hfs_iterate_dir_node_found:       ## @grub_hfs_iterate_dir_node_found
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rsi), %rbx
	movq	48(%rdx), %rsi
	movq	%rbx, %rdi
	callq	_grub_hfs_cmp_catkeys
	testq	%rax, %rax
	jle	LBB0_1
## %bb.2:
	cmpl	$255, (%r12)
	je	LBB0_3
	jmp	LBB0_6
LBB0_1:
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_grub_be_to_cpu32
	movq	%rax, 40(%r15)
	cmpl	$255, (%r12)
	jne	LBB0_6
LBB0_3:
	cmpq	$0, (%rbx)
	jle	LBB0_6
## %bb.4:
	movl	$1, (%r15)
	movl	4(%r12), %edi
	callq	_grub_be_to_cpu32
	movq	%rax, 32(%r15)
	movl	8(%rbx), %edi
	callq	_grub_be_to_cpu32
	cmpq	8(%r15), %rax
	jne	LBB0_6
## %bb.5:
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	24(%r15), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_grub_hfs_iterate_dir_node_found
.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_node_found
_grub_hfs_iterate_dir_node_found:       ; @grub_hfs_iterate_dir_node_found
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	mov	x22, x0
	ldr	x21, [x1, #8]
	ldr	x1, [x2, #48]
	mov	x0, x21
	bl	_grub_hfs_cmp_catkeys
	cmp	x0, #0
	b.gt	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_grub_be_to_cpu32
	str	x0, [x20, #40]
LBB0_2:
	ldr	w8, [x22]
	cmp	w8, #255
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x22, #4]
	bl	_grub_be_to_cpu32
	str	x0, [x20, #32]
	ldr	w0, [x21, #8]
	bl	_grub_be_to_cpu32
	ldr	x8, [x20, #8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
	ldr	x2, [x20, #16]
	cbz	x2, LBB0_7
; %bb.6:
	ldr	w1, [x20, #24]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x2
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_grub_hfs_iterate_dir_node_found
.subsections_via_symbols
