	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ofw_memmap                     ## -- Begin function ofw_memmap
	.p2align	4, 0x90
_ofw_memmap:                            ## @ofw_memmap
	.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
	pushq	%rax
	movl	$16472, %eax                    ## imm = 0x4058
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_mmu@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OF_instance_to_package
	movl	%eax, %ebx
	leaq	-16432(%rbp), %r15
	movq	%r15, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	callq	_bzero
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%r15, %rdx
	movl	$16384, %ecx                    ## imm = 0x4000
	callq	_OF_getprop
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_pager_open
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	leaq	L_.str.5(%rip), %rcx
	leaq	L_.str.6(%rip), %r8
	xorl	%eax, %eax
	cmpl	$1, %r14d
	jne	LBB0_7
## %bb.3:
	callq	_printf
	cmpl	$16, %r12d
	jl	LBB0_11
## %bb.4:
	andl	$-16, %r12d
	addq	$-16, %r12
	xorl	%r13d, %r13d
	leaq	L_.str.7(%rip), %r14
	leaq	-16512(%rbp), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	-16432(%rbp,%r13), %edx
	movl	-16428(%rbp,%r13), %eax
	leal	(%rax,%rdx), %ecx
	movl	-16424(%rbp,%r13), %r8d
	leal	(%r8,%rax), %r9d
	leal	4095(%rax), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$12, %ebx
	movl	-16420(%rbp,%r13), %eax
	movq	%r15, %rdi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $r8d killed $r8d killed $r8
	pushq	%rax
	pushq	%rbx
	callq	_sprintf
	addq	$16, %rsp
	movq	%r15, %rdi
	callq	_pager_output
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	16(%r13), %rax
	cmpq	%r13, %r12
	movq	%rax, %r13
	jne	LBB0_5
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	movl	$-1, %esi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_12
LBB0_7:
	callq	_printf
	cmpl	$16, %r12d
	jl	LBB0_11
## %bb.8:
	andl	$-16, %r12d
	addq	$-16, %r12
	xorl	%r13d, %r13d
	leaq	L_.str.7(%rip), %r14
	leaq	-16512(%rbp), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	-16432(%rbp,%r13), %edx
	movl	-16428(%rbp,%r13), %eax
	leal	(%rax,%rdx), %ecx
	movl	-16424(%rbp,%r13), %r8d
	leal	(%r8,%rax), %r9d
	leal	4095(%rax), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$12, %ebx
	movl	-16420(%rbp,%r13), %eax
	movq	%r15, %rdi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $r8d killed $r8d killed $r8
	pushq	%rax
	pushq	%rbx
	callq	_sprintf
	addq	$16, %rsp
	movq	%r15, %rdi
	callq	_pager_output
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	16(%r13), %rax
	cmpq	%r13, %r12
	movq	%rax, %r13
	jne	LBB0_9
LBB0_11:
	xorl	%eax, %eax
	callq	_pager_close
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$16472, %rsp                    ## imm = 0x4058
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_mmu,4,2                        ## @mmu
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"translations"

L_.str.1:                               ## @.str.1
	.asciz	"Could not get memory map (%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"%17s\t%17s\t%8s\t%6s\n"

L_.str.3:                               ## @.str.3
	.asciz	"Virtual Range"

L_.str.4:                               ## @.str.4
	.asciz	"Physical Range"

L_.str.5:                               ## @.str.5
	.asciz	"#Pages"

L_.str.6:                               ## @.str.6
	.asciz	"Mode"

L_.str.7:                               ## @.str.7
	.asciz	"%08x-%08x\t%08x-%08x\t%8d\t%6x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ofw_memmap                     ; -- Begin function ofw_memmap
	.p2align	2
_ofw_memmap:                            ; @ofw_memmap
	.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	w9, #16512
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #4, lsl #12             ; =16384
	sub	sp, sp, #128
	mov	x20, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh5:
	adrp	x8, _mmu@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mmu@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_OF_instance_to_package
	mov	x19, x0
	add	x0, sp, #120
	mov	w1, #16384
	bl	_bzero
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #120
	mov	x0, x19
	mov	w3, #16384
	bl	_OF_getprop
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.1:
	mov	x19, x0
	bl	_pager_open
Lloh10:
	adrp	x8, l_.str.6@PAGE
Lloh11:
	add	x8, x8, l_.str.6@PAGEOFF
Lloh12:
	adrp	x9, l_.str.5@PAGE
Lloh13:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh14:
	adrp	x10, l_.str.4@PAGE
Lloh15:
	add	x10, x10, l_.str.4@PAGEOFF
Lloh16:
	adrp	x11, l_.str.3@PAGE
Lloh17:
	add	x11, x11, l_.str.3@PAGEOFF
	cmp	w20, #1
	b.ne	LBB0_7
; %bb.2:
	stp	x9, x8, [sp, #16]
	stp	x11, x10, [sp]
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	cmp	w19, #16
	b.lt	LBB0_11
; %bb.3:
	lsr	w8, w19, #4
	sub	x8, x8, #1
	add	x9, sp, #120
	add	x20, x9, #8
Lloh20:
	adrp	x19, l_.str.7@PAGE
Lloh21:
	add	x19, x19, l_.str.7@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x8
	ldp	w2, w8, [x20, #-8]
	add	w3, w8, w2
	ldp	w4, w7, [x20]
	add	w5, w4, w8
	add	w9, w8, #4095
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w6, w8, #12
	add	x0, sp, #40
	mov	x1, x19
	bl	_sprintf
	add	x0, sp, #40
	bl	_pager_output
	cbnz	x0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x21, #1
	add	x20, x20, #16
	cbnz	x21, LBB0_4
	b	LBB0_11
LBB0_6:
	mov	w8, #-1
	str	x8, [sp]
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	b	LBB0_12
LBB0_7:
	stp	x9, x8, [sp, #16]
	stp	x11, x10, [sp]
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	cmp	w19, #16
	b.lt	LBB0_11
; %bb.8:
	lsr	w8, w19, #4
	sub	x8, x8, #1
	add	x9, sp, #120
	add	x20, x9, #8
Lloh26:
	adrp	x19, l_.str.7@PAGE
Lloh27:
	add	x19, x19, l_.str.7@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x8
	ldp	w2, w8, [x20, #-8]
	add	w3, w8, w2
	ldp	w4, w7, [x20]
	add	w5, w4, w8
	add	w9, w8, #4095
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w6, w8, #12
	add	x0, sp, #40
	mov	x1, x19
	bl	_sprintf
	add	x0, sp, #40
	bl	_pager_output
	cbnz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	x8, x21, #1
	add	x20, x20, #16
	cbnz	x21, LBB0_9
LBB0_11:
	bl	_pager_close
LBB0_12:
	ldur	x8, [x29, #-40]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	add	sp, sp, #4, lsl #12             ; =16384
	add	sp, sp, #128
	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
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_mmu,4,2                        ; @mmu
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"translations"

l_.str.1:                               ; @.str.1
	.asciz	"Could not get memory map (%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"%17s\t%17s\t%8s\t%6s\n"

l_.str.3:                               ; @.str.3
	.asciz	"Virtual Range"

l_.str.4:                               ; @.str.4
	.asciz	"Physical Range"

l_.str.5:                               ; @.str.5
	.asciz	"#Pages"

l_.str.6:                               ; @.str.6
	.asciz	"Mode"

l_.str.7:                               ; @.str.7
	.asciz	"%08x-%08x\t%08x-%08x\t%8d\t%6x\n"

.subsections_via_symbols
