	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flat_read_mem_reserve
_flat_read_mem_reserve:                 ## @flat_read_mem_reserve
	.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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-40(%rbp), %rsi
	movl	$16, %edx
	callq	_flat_read_chunk
	movq	-40(%rbp), %rdi
	callq	_fdt64_to_cpu
	movq	%rax, -40(%rbp)
	movq	-32(%rbp), %rdi
	callq	_fdt64_to_cpu
	movq	%rax, -32(%rbp)
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	-40(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-40(%rbp), %rdi
	movq	%rax, %rsi
	callq	_build_reserve_entry
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_add_reserve_entry
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$16, %edx
	callq	_flat_read_chunk
	movq	-40(%rbp), %rdi
	callq	_fdt64_to_cpu
	movq	%rax, -40(%rbp)
	movq	-32(%rbp), %rdi
	callq	_fdt64_to_cpu
	movq	%rax, -32(%rbp)
	testq	%rax, %rax
	jne	LBB0_2
LBB0_3:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_flat_read_mem_reserve
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flat_read_mem_reserve
_flat_read_mem_reserve:                 ; @flat_read_mem_reserve
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	mov	x1, sp
	mov	w2, #16
	bl	_flat_read_chunk
	ldr	x0, [sp]
	bl	_fdt64_to_cpu
	str	x0, [sp]
	ldr	x0, [sp, #8]
	bl	_fdt64_to_cpu
	str	x0, [sp, #8]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, x0
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp]
	bl	_build_reserve_entry
	mov	x1, x0
	mov	x0, x20
	bl	_add_reserve_entry
	mov	x20, x0
	mov	x1, sp
	mov	x0, x19
	mov	w2, #16
	bl	_flat_read_chunk
	ldr	x0, [sp]
	bl	_fdt64_to_cpu
	str	x0, [sp]
	ldr	x0, [sp, #8]
	bl	_fdt64_to_cpu
	mov	x1, x0
	str	x0, [sp, #8]
	cbnz	x0, LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x20, #0
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_flat_read_mem_reserve
.subsections_via_symbols
