	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_powermac_mem_regions           ## -- Begin function powermac_mem_regions
	.p2align	4, 0x90
_powermac_mem_regions:                  ## @powermac_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PHYS_AVAIL_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	(%rbx,%rbx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	$1, -52(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_OF_finddevice
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_OF_finddevice
LBB0_2:
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_OF_parent
	leaq	L_.str.2(%rip), %rsi
	leaq	-52(%rbp), %rdx
	movl	%eax, %edi
	movl	$4, %ecx
	callq	_OF_getprop
	shll	$3, %ebx
	leaq	L_.str.3(%rip), %rsi
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	movq	%r13, %rdx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, %ecx
	callq	_OF_getprop
	xorl	%ecx, %ecx
	cmpl	$4, %eax
	jl	LBB0_10
## %bb.3:
	sarl	$2, %eax
	xorl	%ecx, %ecx
	movl	-52(%rbp), %edx
	xorl	%esi, %esi
	jmp	LBB0_4
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%rsi), %ebx
	movslq	%ebx, %rbx
	movl	(%r13,%rbx,4), %ebx
	movl	%ebx, (%r14,%rdi,8)
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	leal	(%rdx,%rsi), %ebx
	movslq	%ebx, %rbx
	movl	(%r13,%rbx,4), %ebx
	movl	%ebx, 4(%r14,%rdi,8)
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	%edx, %esi
	incl	%esi
	incl	%ecx
	cmpl	%eax, %esi
	jge	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%esi, %rdi
	movl	(%r13,%rdi,4), %ebx
	movslq	%ecx, %rdi
	movl	%ebx, (%r14,%rdi,8)
	cmpl	$2, %edx
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	decl	%ecx
	jmp	LBB0_9
LBB0_10:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%ecx, (%rbx)
	leaq	L_.str.4(%rip), %rsi
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_OF_getprop
	testl	%eax, %eax
	jle	LBB0_11
## %bb.14:
	xorl	%ecx, %ecx
	cmpl	$4, %eax
	jb	LBB0_27
## %bb.15:
	shrl	$2, %eax
	cmpl	$3, %eax
	movl	$2, %edx
	cmovael	%eax, %edx
	decl	%edx
	movl	%edx, %ecx
	shrl	%ecx
	incl	%ecx
	cmpl	$6, %edx
	jae	LBB0_17
## %bb.16:
	xorl	%esi, %esi
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_11:
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_27
## %bb.12:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rax,8), %ecx
	movl	%ecx, (%r15,%rax,8)
	movl	4(%r14,%rax,8), %ecx
	movl	%ecx, 4(%r15,%rax,8)
	incq	%rax
	movslq	(%rbx), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_13
	jmp	LBB0_27
LBB0_17:
	movl	%ecx, %eax
	andl	$2147483644, %eax               ## imm = 0x7FFFFFFC
	leaq	-4(%rax), %rsi
	movq	%rsi, %rbx
	shrq	$2, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.19:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movaps	(%r13,%rdi,8), %xmm0
	movaps	16(%r13,%rdi,8), %xmm1
	movups	%xmm0, (%r15,%rdi,8)
	movups	%xmm1, 16(%r15,%rdi,8)
	movaps	32(%r13,%rdi,8), %xmm0
	movaps	48(%r13,%rdi,8), %xmm1
	movups	%xmm0, 32(%r15,%rdi,8)
	movups	%xmm1, 48(%r15,%rdi,8)
	addq	$8, %rdi
	addq	$-2, %rsi
	jne	LBB0_20
## %bb.21:
	testb	$1, %bl
	je	LBB0_23
LBB0_22:
	movaps	(%r13,%rdi,8), %xmm0
	leaq	(,%rdi,8), %rsi
	orq	$16, %rsi
	movaps	(%r13,%rsi), %xmm1
	movups	%xmm0, (%r15,%rdi,8)
	movups	%xmm1, (%r15,%rsi)
LBB0_23:
	cmpq	%rcx, %rax
	je	LBB0_27
## %bb.24:
	leaq	(%rax,%rax), %rsi
LBB0_25:
	leaq	4(,%rsi,4), %rsi
	addq	%r13, %rsi
	leaq	(%r15,%rax,8), %rdi
	addq	$4, %rdi
	movl	%edx, %edx
	shrq	%rdx
	subq	%rax, %rdx
	incq	%rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%rsi,%rax,8), %ebx
	movl	%ebx, -4(%rdi,%rax,8)
	movl	(%rsi,%rax,8), %ebx
	movl	%ebx, (%rdi,%rax,8)
	incq	%rax
	cmpq	%rax, %rdx
	jne	LBB0_26
LBB0_27:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.28:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	xorl	%edi, %edi
	testb	$1, %bl
	jne	LBB0_22
	jmp	LBB0_23
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PHYS_AVAIL_SZ,4,2              ## @PHYS_AVAIL_SZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/memory"

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

L_.str.2:                               ## @.str.2
	.asciz	"#address-cells"

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

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

	.comm	_BUS_SPACE_MAXADDR_32BIT,4,2    ## @BUS_SPACE_MAXADDR_32BIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_powermac_mem_regions           ; -- Begin function powermac_mem_regions
	.p2align	2
_powermac_mem_regions:                  ; @powermac_mem_regions
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _PHYS_AVAIL_SZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHYS_AVAIL_SZ@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	lsl	w8, w25, #1
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	mov	w8, #1
	stur	w8, [x29, #-76]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_OF_finddevice
	mov	x24, x0
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_OF_finddevice
	mov	x24, x0
LBB0_2:
	mov	x0, x24
	bl	_OF_parent
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	sub	x2, x29, #76
	mov	w3, #4
	bl	_OF_getprop
	lsl	w25, w25, #3
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x24
	mov	x2, x21
	mov	x3, x25
	bl	_OF_getprop
	cmp	w0, #4
	b.lt	LBB0_10
; %bb.3:
	mov	w8, #0
	mov	w10, #0
	asr	w9, w0, #2
	ldur	w11, [x29, #-76]
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w13, w10, #1
	ldr	w13, [x21, w13, sxtw #2]
	str	w13, [x12]
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	sxtw	x12, w8
	add	w13, w11, w10
	ldr	w13, [x21, w13, sxtw #2]
	add	x12, x23, x12, lsl #3
	str	w13, [x12, #4]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w10, w10, w11
	add	w10, w10, #1
	add	w8, w8, #1
	cmp	w10, w9
	b.ge	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x21, w10, sxtw #2]
	add	x12, x23, w8, sxtw #3
	str	w13, [x12]
	cmp	w11, #2
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w13, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w8, w8, #1
	b	LBB0_6
LBB0_10:
	mov	w8, #0
LBB0_11:
	str	w8, [x22]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x24
	mov	x2, x21
	mov	x3, x25
	bl	_OF_getprop
	cmp	w0, #0
	b.le	LBB0_14
; %bb.12:
	cmp	w0, #4
	b.hs	LBB0_18
; %bb.13:
	mov	w8, #0
	b	LBB0_25
LBB0_14:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.15:
	mov	x8, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	lsl	x9, x8, #3
	ldr	d0, [x23, x9]
	str	d0, [x20, x9]
	add	x8, x8, #1
	ldrsw	x9, [x22]
	cmp	x8, x9
	b.lt	LBB0_16
; %bb.17:
	mov	x8, x9
	b	LBB0_25
LBB0_18:
	lsr	w8, w0, #2
	mov	w9, #2
	cmp	w8, #2
	csel	w8, w8, w9, hi
	sub	w9, w8, #1
	lsr	w8, w9, #1
	add	w8, w8, #1
	cmp	w9, #14
	b.hs	LBB0_20
; %bb.19:
	mov	x11, #0
	mov	x10, #0
	b	LBB0_23
LBB0_20:
	and	x10, x8, #0x7ffffff8
	lsl	x11, x10, #1
	add	x12, x21, #32
	add	x13, x20, #32
	mov	x14, x10
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	subs	x14, x14, #8
	b.ne	LBB0_21
; %bb.22:
	cmp	x10, x8
	b.eq	LBB0_25
LBB0_23:
	add	x11, x21, x11, lsl #2
	add	x11, x11, #4
	add	x12, x20, x10, lsl #3
	add	x12, x12, #4
	mov	x13, #-1
	eor	x9, x13, x9, lsr #1
	add	x9, x9, x10
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldur	w10, [x11, #-4]
	stur	w10, [x12, #-4]
	ldr	w10, [x11], #8
	str	w10, [x12], #8
	adds	x9, x9, #1
	b.lo	LBB0_24
LBB0_25:
	str	w8, [x19]
	ldur	x8, [x29, #-72]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.26:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PHYS_AVAIL_SZ,4,2              ; @PHYS_AVAIL_SZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/memory"

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

l_.str.2:                               ; @.str.2
	.asciz	"#address-cells"

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

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

	.comm	_BUS_SPACE_MAXADDR_32BIT,4,2    ; @BUS_SPACE_MAXADDR_32BIT
.subsections_via_symbols
