	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ofw_mem_regions                ## -- Begin function ofw_mem_regions
	.p2align	4, 0x90
_ofw_mem_regions:                       ## @ofw_mem_regions
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	callq	_OF_peer
	movq	%rax, %rdi
	callq	_OF_child
	movl	$0, -84(%rbp)                   ## 4-byte Folded Spill
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	movl	$0, -84(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str(%rip), %r13
	leaq	-80(%rbp), %r14
	leaq	L_.str.4(%rip), %r15
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %r14
	movq	%r13, %r15
	movslq	-84(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdx
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_parse_ofw_memory
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_OF_getproplen
	testq	%rax, %rax
	js	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r12d, %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_parse_ofw_memory
	addl	%r13d, -84(%rbp)                ## 4-byte Folded Spill
	addl	%eax, %r12d
	movq	%r15, %r13
	leaq	-80(%rbp), %r14
	leaq	L_.str.4(%rip), %r15
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_OF_peer
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	$31, %ecx
	callq	_OF_getprop
	testq	%rax, %rax
	jle	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$31, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	movq	%r13, %r12
	movq	%r15, %r13
	leaq	L_.str.2(%rip), %r15
	movq	%r15, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %r15
	movq	%r12, %r13
	movq	-128(%rbp), %r12                ## 8-byte Reload
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_5
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.5(%rip), %r14
	movq	%r14, %rsi
	callq	_OF_getproplen
	movslq	%r12d, %rcx
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rdx
	testq	%rax, %rax
	jns	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_10
LBB0_12:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	%r12d, (%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"name"

L_.str.1:                               ## @.str.1
	.asciz	"memory"

L_.str.2:                               ## @.str.2
	.asciz	"memory@"

L_.str.3:                               ## @.str.3
	.asciz	"reg"

L_.str.4:                               ## @.str.4
	.asciz	"linux,usable-memory"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ofw_mem_regions                ; -- Begin function ofw_mem_regions
	.p2align	2
_ofw_mem_regions:                       ; @ofw_mem_regions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	x3, x2, [sp, #8]                ; 16-byte Folded Spill
	str	x1, [sp]                        ; 8-byte Folded Spill
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	mov	x0, #0
	bl	_OF_peer
	bl	_OF_child
	cbz	x0, LBB0_13
; %bb.1:
	mov	x23, x0
	mov	w26, #0
	mov	w28, #0
Lloh3:
	adrp	x24, l_.str@PAGE
Lloh4:
	add	x24, x24, l_.str@PAGEOFF
Lloh5:
	adrp	x25, l_.str.1@PAGE
Lloh6:
	add	x25, x25, l_.str.1@PAGEOFF
Lloh7:
	adrp	x21, l_.str.4@PAGE
Lloh8:
	add	x21, x21, l_.str.4@PAGEOFF
Lloh9:
	adrp	x27, l_.str.5@PAGE
Lloh10:
	add	x27, x27, l_.str.5@PAGEOFF
Lloh11:
	adrp	x19, l_.str.2@PAGE
Lloh12:
	add	x19, x19, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x2, x22, w26, sxtw #2
	mov	x0, x23
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_parse_ofw_memory
	mov	x20, x0
	mov	x0, x23
	mov	x1, x21
	bl	_OF_getproplen
	tbnz	x0, #63, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x2, x8, w28, sxtw #2
	mov	x0, x23
	mov	x1, x21
	bl	_parse_ofw_memory
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w26, w20, w26
	add	w28, w0, w28
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_OF_peer
	mov	x23, x0
	cbz	x0, LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #25
	mov	x0, x23
	mov	x1, x24
	mov	w3, #31
	bl	_OF_getprop
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #25
	mov	x1, x25
	mov	w2, #31
	bl	_strncmp
	cbz	x0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_strlen
	mov	x2, x0
	add	x0, sp, #25
	mov	x1, x19
	bl	_strncmp
	cbnz	x0, LBB0_5
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x19, x22
	mov	x22, x21
	mov	x21, x25
	mov	x0, x23
	mov	x25, x27
	mov	x1, x27
	bl	_OF_getproplen
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x2, x8, w28, sxtw #2
	tbnz	x0, #63, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	mov	x1, x25
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_parse_ofw_memory
	mov	x25, x21
	mov	x21, x22
	mov	x22, x19
Lloh17:
	adrp	x19, l_.str.2@PAGE
Lloh18:
	add	x19, x19, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_13:
	mov	w28, #0
	mov	w26, #0
LBB0_14:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	str	w26, [x8]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	w28, [x8]
	ldr	x8, [sp, #56]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"name"

l_.str.1:                               ; @.str.1
	.asciz	"memory"

l_.str.2:                               ; @.str.2
	.asciz	"memory@"

l_.str.3:                               ; @.str.3
	.asciz	"reg"

l_.str.4:                               ; @.str.4
	.asciz	"linux,usable-memory"

l_.str.5:                               ; @.str.5
	.asciz	"available"

.subsections_via_symbols
