	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_hfsplus_btree_iterate_node
_grub_hfsplus_btree_iterate_node:       ## @grub_hfsplus_btree_iterate_node
	.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
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.2:
	movq	%r8, %r15
	movq	%rcx, %r12
	movl	%edx, %r14d
	movq	%rdi, %r13
	leaq	4(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %edi
	callq	_grub_be_to_cpu16
	cmpl	%eax, %r14d
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_grub_hfsplus_btree_recptr
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	*%r12
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%r14d
	jmp	LBB0_4
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_grub_be_to_cpu32
	movl	(%r13), %r9d
	imull	%r9d, %eax
	movq	%rbx, (%rsp)
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	_grub_hfsplus_read_file
	testq	%rax, %rax
	jg	LBB0_4
LBB0_9:
	movl	$1, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_grub_hfsplus_btree_iterate_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_hfsplus_btree_iterate_node
_grub_hfsplus_btree_iterate_node:       ; @grub_hfsplus_btree_iterate_node
	.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
	cbz	x3, LBB0_9
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_9
; %bb.2:
	mov	x19, x4
	mov	x20, x3
	mov	x24, x2
	mov	x22, x0
	add	x23, x0, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #4]
	bl	_grub_be_to_cpu16
	cmp	w24, w0
	b.ge	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	bl	_grub_hfsplus_btree_recptr
	mov	x1, x19
	blr	x20
	cbnz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	b	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21]
	cbz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_grub_be_to_cpu32
	ldr	w5, [x22]
	mul	w4, w5, w0
	mov	x0, x23
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	x6, x21
	bl	_grub_hfsplus_read_file
	mov	w24, #0
	cmp	x0, #0
	b.gt	LBB0_3
LBB0_8:
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_grub_hfsplus_btree_iterate_node
.subsections_via_symbols
