	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdt_cmd_mres
_fdt_cmd_mres:                          ## @fdt_cmd_mres
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_pager_open
	movq	_fdtp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fdt_num_mem_rsv
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	callq	_pager_output
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	decl	%r15d
	xorl	%ebx, %ebx
	leaq	-132(%rbp), %r12
	leaq	L_.str.1(%rip), %r13
	leaq	-128(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_fdtp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	leaq	-136(%rbp), %rdx
	movq	%r12, %rcx
	callq	_fdt_get_mem_rsv
	movl	-136(%rbp), %ecx
	movl	-132(%rbp), %r8d
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_sprintf
	movq	%r14, %rdi
	callq	_pager_output
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rbx), %eax
	cmpl	%ebx, %r15d
	movl	%eax, %ebx
	jne	LBB0_3
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	_pager_output
LBB0_6:
	xorl	%eax, %eax
	callq	_pager_close
	movq	_CMD_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_fdtp,4,2                       ## @fdtp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reserved memory regions:\n"

L_.str.1:                               ## @.str.1
	.asciz	"reg#%d: (start: 0x%jx, size: 0x%jx)\n"

L_.str.2:                               ## @.str.2
	.asciz	"No reserved memory regions\n"

	.comm	_CMD_OK,4,2                     ## @CMD_OK
	.no_dead_strip	_fdt_cmd_mres
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdt_cmd_mres
_fdt_cmd_mres:                          ; @fdt_cmd_mres
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_pager_open
Lloh3:
	adrp	x21, _fdtp@GOTPAGE
Lloh4:
	ldr	x21, [x21, _fdtp@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_fdt_num_mem_rsv
	subs	w22, w0, #1
	b.lt	LBB0_5
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pager_output
	cbnz	x0, LBB0_6
; %bb.2:
	mov	w19, #0
Lloh7:
	adrp	x20, l_.str.1@PAGE
Lloh8:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	add	x2, sp, #4
	mov	x3, sp
	mov	x1, x19
	bl	_fdt_get_mem_rsv
	ldp	w4, w3, [sp]
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x19
	bl	_sprintf
	add	x0, sp, #8
	bl	_pager_output
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w19, #1
	cmp	w22, w19
	mov	x19, x8
	b.ne	LBB0_3
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pager_output
LBB0_6:
	bl	_pager_close
Lloh11:
	adrp	x8, _CMD_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CMD_OK@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldur	x8, [x29, #-40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.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
	add	sp, sp, #144
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_fdtp,4,2                       ; @fdtp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reserved memory regions:\n"

l_.str.1:                               ; @.str.1
	.asciz	"reg#%d: (start: 0x%jx, size: 0x%jx)\n"

l_.str.2:                               ; @.str.2
	.asciz	"No reserved memory regions\n"

	.comm	_CMD_OK,4,2                     ; @CMD_OK
	.no_dead_strip	_fdt_cmd_mres
.subsections_via_symbols
