	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function chrp_mem_regions
LCPI0_0:
	.quad	2147483648                      ## 0x80000000
	.quad	2147483648                      ## 0x80000000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_chrp_mem_regions
	.p2align	4, 0x90
_chrp_mem_regions:                      ## @chrp_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	movq	%r8, %rcx
	callq	_ofw_mem_regions
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_parse_drconf_memory
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.5:
	cmpl	$4, %eax
	jae	LBB0_7
## %bb.6:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	LBB0_10
LBB0_1:
	xorl	%edx, %edx
	jmp	LBB0_2
LBB0_7:
	movl	%eax, %ecx
	andl	$-4, %ecx
	movq	%rax, %rdx
	shlq	$4, %rdx
	andq	$-64, %rdx
	pxor	%xmm3, %xmm3
	xorl	%esi, %esi
	movdqa	LCPI0_0(%rip), %xmm8            ## xmm8 = [2147483648,2147483648]
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rbx,%rsi), %xmm5
	movdqu	16(%rbx,%rsi), %xmm0
	movdqu	32(%rbx,%rsi), %xmm4
	movdqu	48(%rbx,%rsi), %xmm6
	movdqa	%xmm5, %xmm7
	punpcklqdq	%xmm0, %xmm7            ## xmm7 = xmm7[0],xmm0[0]
	movdqa	%xmm4, %xmm2
	punpcklqdq	%xmm6, %xmm2            ## xmm2 = xmm2[0],xmm6[0]
	punpckhqdq	%xmm0, %xmm5            ## xmm5 = xmm5[1],xmm0[1]
	paddq	%xmm7, %xmm5
	punpckhqdq	%xmm6, %xmm4            ## xmm4 = xmm4[1],xmm6[1]
	movdqa	%xmm5, %xmm6
	pxor	%xmm8, %xmm6
	movdqa	%xmm3, %xmm0
	pxor	%xmm8, %xmm0
	movdqa	%xmm6, %xmm7
	pcmpeqd	%xmm0, %xmm7
	pcmpgtd	%xmm0, %xmm6
	pshufd	$160, %xmm6, %xmm0              ## xmm0 = xmm6[0,0,2,2]
	pand	%xmm7, %xmm0
	por	%xmm6, %xmm0
	blendvpd	%xmm0, %xmm5, %xmm3
	paddq	%xmm2, %xmm4
	movdqa	%xmm4, %xmm2
	pxor	%xmm8, %xmm2
	movdqa	%xmm1, %xmm0
	pxor	%xmm8, %xmm0
	movdqa	%xmm2, %xmm5
	pcmpeqd	%xmm0, %xmm5
	pcmpgtd	%xmm0, %xmm2
	pshufd	$160, %xmm2, %xmm0              ## xmm0 = xmm2[0,0,2,2]
	pand	%xmm5, %xmm0
	por	%xmm2, %xmm0
	blendvpd	%xmm0, %xmm4, %xmm1
	addq	$64, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_8
## %bb.9:
	movdqa	%xmm1, %xmm0
	pxor	%xmm8, %xmm0
	movdqa	%xmm3, %xmm2
	pxor	%xmm8, %xmm2
	movdqa	%xmm2, %xmm4
	pcmpeqd	%xmm0, %xmm4
	pcmpgtd	%xmm0, %xmm2
	pshufd	$160, %xmm2, %xmm0              ## xmm0 = xmm2[0,0,2,2]
	pand	%xmm4, %xmm0
	por	%xmm2, %xmm0
	blendvpd	%xmm0, %xmm3, %xmm1
	pshufd	$238, %xmm1, %xmm2              ## xmm2 = xmm1[2,3,2,3]
	movdqa	%xmm1, %xmm3
	pxor	%xmm8, %xmm3
	pxor	%xmm2, %xmm8
	movdqa	%xmm3, %xmm4
	pcmpeqd	%xmm8, %xmm4
	pcmpgtd	%xmm8, %xmm3
	pshufd	$160, %xmm3, %xmm0              ## xmm0 = xmm3[0,0,2,2]
	pand	%xmm4, %xmm0
	por	%xmm3, %xmm0
	blendvpd	%xmm0, %xmm1, %xmm2
	movq	%xmm2, %rdx
	cmpq	%rax, %rcx
	je	LBB0_2
LBB0_10:
	subq	%rcx, %rax
	shlq	$4, %rcx
	addq	%rbx, %rcx
	addq	$8, %rcx
	movq	%rdx, %rsi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rdx
	addq	-8(%rcx), %rdx
	cmpq	%rsi, %rdx
	cmovleq	%rsi, %rdx
	addq	$16, %rcx
	movq	%rdx, %rsi
	decq	%rax
	jne	LBB0_11
LBB0_2:
	movl	(%r15), %r8d
	testl	%r8d, %r8d
	jle	LBB0_21
## %bb.3:
	cmpl	$1, %r8d
	jne	LBB0_12
## %bb.4:
	xorl	%ecx, %ecx
LBB0_18:
	testb	$1, %r8b
	je	LBB0_21
## %bb.19:
	shlq	$4, %rcx
	movq	(%r14,%rcx), %rax
	movq	8(%r14,%rcx), %rsi
	addq	%rax, %rsi
	cmpq	%rdx, %rsi
	jle	LBB0_21
## %bb.20:
	addq	%r14, %rcx
	addq	$8, %rcx
	subq	%rax, %rdx
	movq	%rdx, (%rcx)
LBB0_21:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%r8d, %esi
	andl	$-2, %esi
	leaq	24(%r14), %rdi
	xorl	%ecx, %ecx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	addq	$2, %rcx
	addq	$32, %rdi
	cmpq	%rcx, %rsi
	je	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	-24(%rdi), %rbx
	movq	-16(%rdi), %rax
	addq	%rbx, %rax
	cmpq	%rdx, %rax
	jle	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rdx, %rax
	subq	%rbx, %rax
	movq	%rax, -16(%rdi)
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-8(%rdi), %rbx
	movq	(%rdi), %rax
	addq	%rbx, %rax
	cmpq	%rdx, %rax
	jle	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rdx, %rax
	subq	%rbx, %rax
	movq	%rax, (%rdi)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chrp_mem_regions               ; -- Begin function chrp_mem_regions
	.p2align	2
_chrp_mem_regions:                      ; @chrp_mem_regions
	.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	x20, x4
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	mov	x3, x4
	bl	_ofw_mem_regions
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	mov	x3, x20
	bl	_parse_drconf_memory
	ldr	w9, [x22]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	cmp	w9, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x10, #0
	mov	x8, #0
	b	LBB0_7
LBB0_3:
	mov	x8, #0
	b	LBB0_9
LBB0_4:
	and	x10, x9, #0xfffffff8
	add	x8, x21, #64
	movi.2d	v0, #0000000000000000
	mov	x11, x10
	movi.2d	v3, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v1, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x12, x8, #64
	ld2.2d	{ v4, v5 }, [x12]
	sub	x12, x8, #32
	ld2.2d	{ v6, v7 }, [x12]
	mov	x12, x8
	ld2.2d	{ v16, v17 }, [x12], #32
	ld2.2d	{ v18, v19 }, [x12]
	add.2d	v4, v5, v4
	add.2d	v5, v7, v6
	add.2d	v6, v17, v16
	add.2d	v7, v19, v18
	cmgt.2d	v16, v4, v0
	bit.16b	v0, v4, v16
	cmgt.2d	v4, v5, v3
	bit.16b	v3, v5, v4
	cmgt.2d	v4, v6, v2
	bit.16b	v2, v6, v4
	cmgt.2d	v4, v7, v1
	bit.16b	v1, v7, v4
	add	x8, x8, #128
	subs	x11, x11, #8
	b.ne	LBB0_5
; %bb.6:
	cmgt.2d	v4, v0, v3
	bif.16b	v0, v3, v4
	cmgt.2d	v3, v0, v2
	bif.16b	v0, v2, v3
	cmgt.2d	v2, v0, v1
	bif.16b	v0, v1, v2
	ext.16b	v1, v0, v0, #8
	cmgt	d2, d0, d1
	bif.8b	v0, v1, v2
	fmov	x8, d0
	cmp	x10, x9
	b.eq	LBB0_9
LBB0_7:
	add	x11, x21, x10, lsl #4
	add	x11, x11, #8
	sub	x9, x9, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x10, x12, [x11, #-8]
	add	x10, x12, x10
	cmp	x10, x8
	csel	x8, x10, x8, gt
	add	x11, x11, #16
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_9:
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_31
; %bb.10:
	cmp	w9, #8
	b.hs	LBB0_12
; %bb.11:
	mov	x10, #0
	b	LBB0_32
LBB0_12:
	and	x10, x9, #0xfffffff8
	dup.2d	v0, x8
	add	x11, x19, #64
	mov	x12, x10
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x11, x11, #128
	subs	x12, x12, #8
	b.eq	LBB0_30
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	sub	x13, x11, #64
	ld2.2d	{ v16, v17 }, [x13]
	sub	x13, x11, #32
	ld2.2d	{ v5, v6 }, [x13]
	mov	x13, x11
	ld2.2d	{ v3, v4 }, [x13], #32
	add.2d	v1, v17, v16
	cmgt.2d	v1, v1, v0
	xtn.2s	v1, v1
	fmov	w14, s1
	tbz	w14, #0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	fmov	x14, d16
	sub	x14, x8, x14
	stur	x14, [x11, #-56]
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=1
	mov.s	w14, v1[1]
	ld2.2d	{ v1, v2 }, [x13]
	tbz	w14, #0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	mov.d	x13, v16[1]
	sub	x13, x8, x13
	stur	x13, [x11, #-40]
LBB0_18:                                ;   in Loop: Header=BB0_14 Depth=1
	add.2d	v7, v6, v5
	cmgt.2d	v7, v7, v0
	xtn.2s	v7, v7
	fmov	w13, s7
	tbz	w13, #0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	fmov	x13, d5
	sub	x13, x8, x13
	stur	x13, [x11, #-24]
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=1
	mov.s	w13, v7[1]
	tbz	w13, #0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=1
	mov.d	x13, v5[1]
	sub	x13, x8, x13
	stur	x13, [x11, #-8]
LBB0_22:                                ;   in Loop: Header=BB0_14 Depth=1
	add.2d	v5, v4, v3
	cmgt.2d	v5, v5, v0
	xtn.2s	v5, v5
	fmov	w13, s5
	tbz	w13, #0, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_14 Depth=1
	fmov	x13, d3
	sub	x13, x8, x13
	str	x13, [x11, #8]
LBB0_24:                                ;   in Loop: Header=BB0_14 Depth=1
	mov.s	w13, v5[1]
	tbz	w13, #0, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_14 Depth=1
	mov.d	x13, v3[1]
	sub	x13, x8, x13
	str	x13, [x11, #24]
LBB0_26:                                ;   in Loop: Header=BB0_14 Depth=1
	add.2d	v3, v2, v1
	cmgt.2d	v3, v3, v0
	xtn.2s	v3, v3
	fmov	w13, s3
	tbz	w13, #0, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_14 Depth=1
	fmov	x13, d1
	sub	x13, x8, x13
	str	x13, [x11, #40]
LBB0_28:                                ;   in Loop: Header=BB0_14 Depth=1
	mov.s	w13, v3[1]
	tbz	w13, #0, LBB0_13
; %bb.29:                               ;   in Loop: Header=BB0_14 Depth=1
	mov.d	x13, v1[1]
	sub	x13, x8, x13
	str	x13, [x11, #56]
	b	LBB0_13
LBB0_30:
	cmp	x10, x9
	b.ne	LBB0_32
LBB0_31:
	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_32:
	add	x11, x19, x10, lsl #4
	add	x11, x11, #8
	sub	x9, x9, x10
	b	LBB0_34
LBB0_33:                                ;   in Loop: Header=BB0_34 Depth=1
	add	x11, x11, #16
	subs	x9, x9, #1
	b.eq	LBB0_31
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	ldp	x10, x12, [x11, #-8]
	add	x12, x12, x10
	cmp	x12, x8
	b.le	LBB0_33
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=1
	sub	x10, x8, x10
	str	x10, [x11]
	b	LBB0_33
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
