	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function regions_to_avail
_regions_to_avail:                      ## @regions_to_avail
	.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	%r8, %r15
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	_hwcnt@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_32
## %bb.1:
	movq	_hwregions@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	-120(%rbp), %r14                ## 8-byte Folded Reload
	incq	%r13
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	addq	$24, %rbx
	movq	_hwcnt@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r13
	jae	LBB0_33
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r15
	movq	8(%rbx), %rdi
	leaq	(%rdi,%r15), %r12
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_pm_btop
	movq	%rax, %rdx
	movq	_excnt@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	je	LBB0_21
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_exregions@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	addq	$16, %r14
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=2
	movq	%r15, %rbx
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=2
	incq	%r13
	addq	$24, %r14
	movq	%rbx, %r15
	cmpq	%rcx, %r13
	jae	LBB0_22
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%esi, (%r14)
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	-16(%r14), %rdi
	movq	-8(%r14), %rbx
	addq	%rdi, %rbx
	cmpq	%r15, %rbx
	jle	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpq	%r12, %rdi
	jge	LBB0_28
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	cmpq	%r15, %rdi
	jg	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	cmpq	%rbx, %r12
	jle	LBB0_29
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=2
	cmpq	%r15, %rdi
	jle	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=2
	cmpq	%rbx, %r12
	jle	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=2
	testq	%rax, %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=2
	cmpq	%r15, -8(%rcx,%rax,8)
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rax,8), %rcx
	addq	$-8, %rcx
	jmp	LBB0_20
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=2
	cmpq	%r15, %rdi
	cmovgq	%rdi, %r12
	cmovgq	%r15, %rbx
	jmp	LBB0_6
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	%r15, (%rcx,%rax,8)
	leaq	(%rcx,%rax,8), %rcx
	addq	$8, %rcx
	addq	$2, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	%rdi, (%rcx)
	subl	%r15d, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_pm_btop
	addq	%rax, -64(%rbp)                 ## 8-byte Folded Spill
	movq	_excnt@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rbx, %r12
	jle	LBB0_29
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%rax, %rax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rbx, -8(%rcx,%rax,8)
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r15
	leaq	(%rcx,%rax,8), %rcx
	addq	$-8, %rcx
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, (%rcx,%rax,8)
	leaq	(%rcx,%rax,8), %rcx
	addq	$8, %rcx
	addq	$2, %rax
	movq	%rax, %r15
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, (%rcx)
	subl	%ebx, %r12d
	movl	%r12d, %edi
	callq	_pm_btop
	addq	%rax, -64(%rbp)                 ## 8-byte Folded Spill
	movq	%r15, %rax
	jmp	LBB0_30
LBB0_28:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rbx
	cmpq	%rbx, %r12
	jg	LBB0_23
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_30:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	-112(%rbp), %rax                ## 8-byte Folded Reload
	movq	-104(%rbp), %r15                ## 8-byte Reload
	jb	LBB0_2
## %bb.31:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rbx
	callq	_panic
	movq	%rbx, %rax
	jmp	LBB0_2
LBB0_32:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
LBB0_33:
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_35
## %bb.34:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rcx)
LBB0_35:
	testq	%r15, %r15
	je	LBB0_37
## %bb.36:
	movq	%r14, (%r15)
LBB0_37:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hwregions,8,3                  ## @hwregions
	.comm	_hwcnt,8,3                      ## @hwcnt
	.comm	_exregions,8,3                  ## @exregions
	.comm	_excnt,8,3                      ## @excnt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not enough space in the dump/phys_avail arrays"

	.no_dead_strip	_regions_to_avail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function regions_to_avail
_regions_to_avail:                      ; @regions_to_avail
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	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
	.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, x4, [sp]                    ; 16-byte Folded Spill
	str	x2, [sp, #16]                   ; 8-byte Folded Spill
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _hwcnt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hwcnt@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_25
; %bb.1:
	mov	x23, x1
	mov	x27, #0
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
	mov	x21, #0
	mov	x20, #0
Lloh3:
	adrp	x8, _hwregions@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hwregions@GOTPAGEOFF]
Lloh5:
	ldr	x25, [x8]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x27, x19, x27
	add	x20, x20, #1
	add	x25, x25, #24
Lloh6:
	adrp	x8, _hwcnt@GOTPAGE
Lloh7:
	ldr	x8, [x8, _hwcnt@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x20, x8
	b.hs	LBB0_26
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldp	x28, x0, [x25]
	add	x22, x0, x28
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_pm_btop
Lloh9:
	adrp	x8, _excnt@GOTPAGE
Lloh10:
	ldr	x8, [x8, _excnt@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	cbz	x8, LBB0_17
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, #0
Lloh12:
	adrp	x9, _exregions@GOTPAGE
Lloh13:
	ldr	x9, [x9, _exregions@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x24, x9, #16
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	cmp	x9, x28
	csel	x22, x9, x22, gt
	csel	x28, x28, x19, gt
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x26, x26, #1
	add	x24, x24, #24
	cmp	x26, x8
	b.hs	LBB0_17
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x24]
	tst	w9, w23
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldp	x9, x10, [x24, #-16]
	add	x19, x10, x9
	cmp	x19, x28
	b.le	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	x9, x22
	b.ge	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	cmp	x9, x28
	ccmp	x22, x19, #0, le
	b.le	LBB0_22
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	cmp	x9, x28
	b.le	LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=2
	cmp	x22, x19
	b.le	LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=2
	cbz	x21, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x8, x8, x21, lsl #3
	ldr	x10, [x8, #-8]!
	cmp	x10, x28
	b.eq	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x8, x8, x21, lsl #3
	str	x28, [x8], #8
	add	x21, x21, #2
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=2
	str	x9, [x8]
	sub	w0, w9, w28
	bl	_pm_btop
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x8, x0, x8
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
Lloh15:
	adrp	x8, _excnt@GOTPAGE
Lloh16:
	ldr	x8, [x8, _excnt@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	mov	x28, x19
	b	LBB0_6
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x22, x28
	b.le	LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	cbz	x21, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x8, x8, x21, lsl #3
	ldr	x9, [x8, #-8]!
	cmp	x9, x28
	b.eq	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x8, x8, x21, lsl #3
	str	x28, [x8], #8
	add	x21, x21, #2
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x22, [x8]
	sub	w0, w22, w28
	bl	_pm_btop
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x8, x0, x8
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
LBB0_23:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x21, x8
	b.lo	LBB0_2
; %bb.24:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
	b	LBB0_2
LBB0_25:
	mov	x21, #0
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
	mov	x27, #0
LBB0_26:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cbz	x8, LBB0_28
; %bb.27:
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	str	x9, [x8]
LBB0_28:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x8, LBB0_30
; %bb.29:
	str	x27, [x8]
LBB0_30:
	mov	x0, x21
	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
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_hwregions,8,3                  ; @hwregions
	.comm	_hwcnt,8,3                      ; @hwcnt
	.comm	_exregions,8,3                  ; @exregions
	.comm	_excnt,8,3                      ; @excnt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not enough space in the dump/phys_avail arrays"

	.no_dead_strip	_regions_to_avail
.subsections_via_symbols
