	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_ksubmap_init                ## -- Begin function vm_ksubmap_init
	.p2align	4, 0x90
_vm_ksubmap_init:                       ## @vm_ksubmap_init
	.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	%rdi, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_physmem@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_kernel_map@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_vm_map_max
	movq	%rax, %rbx
	movl	(%r14), %edi
	callq	_vm_map_min
	subq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_btoc
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_lmin
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_kern_vfs_bio_buffer_alloc
	movq	%rax, %rbx
	testq	%r12, %r12
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kmem_malloc
	movq	%rax, %r12
	movq	%rbx, %r15
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_panic
	movq	%rbx, %r15
	jmp	LBB0_1
LBB0_4:
	subq	%r12, %rbx
	cmpq	%r15, %rbx
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_panic
LBB0_6:
	movq	_nbuf@GOTPCREL(%rip), %r14
	movq	_BKVASIZE@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	imulq	(%r14), %rax
	movq	_bio_transient_maxcnt@GOTPCREL(%rip), %r12
	movq	_MAXPHYS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	imulq	(%r12), %rbx
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_kva_alloc
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, (%rsi)
	addq	%rax, %rbx
	movq	%rbx, 8(%rsi)
	movq	(%r15), %rdx
	movq	(%r14), %rcx
	imulq	%rdx, %rcx
	movq	%rax, 16(%rsi)
	leaq	(%rax,%rcx), %r15
	movq	%r15, 24(%rsi)
	movq	_buffer_arena@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	movq	_mp_ncpus@GOTPCREL(%rip), %r14
	shlq	$3, %rdx
	xorl	%r9d, %r9d
	cmpl	$5, (%r14)
	cmovgeq	%rdx, %r9
	movl	$0, (%rsp)
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdx
	callq	_vmem_init
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:
	movq	_MAXPHYS@GOTPCREL(%rip), %rax
	imulq	(%rax), %rbx
	movq	_transient_arena@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %r8d
	movl	$0, (%rsp)
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	xorl	%r9d, %r9d
	callq	_vmem_init
	addq	%rbx, %r15
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	8(%rax), %r15
	je	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rdi
	callq	_panic
LBB0_10:
	movl	(%r14), %eax
	shll	$3, %eax
	movq	_exec_map_entries@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movq	_ARG_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	(%rax), %rdi
	callq	_round_page
	movq	_exec_map_entry_size@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_kernel_map@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	imull	(%rbx), %eax
	movl	(%r13), %ecx
	shll	$6, %ecx
	addl	%eax, %ecx
	movq	_FALSE@GOTPCREL(%rip), %r14
	movl	(%r14), %r8d
	leaq	-64(%rbp), %rbx
	leaq	-56(%rbp), %r15
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_kmem_suballoc
	movq	_exec_map@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	(%r12), %edi
	movq	_maxpipekva@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r14), %r8d
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_kmem_suballoc
	movq	_pipe_map@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_physmem,4,2                    ## @physmem
	.comm	_kernel_map,4,2                 ## @kernel_map
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"startup: no room for tables"

L_.str.1:                               ## @.str.1
	.asciz	"startup: table size inconsistency"

	.comm	_nbuf,8,3                       ## @nbuf
	.comm	_BKVASIZE,8,3                   ## @BKVASIZE
	.comm	_bio_transient_maxcnt,8,3       ## @bio_transient_maxcnt
	.comm	_MAXPHYS,8,3                    ## @MAXPHYS
	.comm	_buffer_arena,4,2               ## @buffer_arena
L_.str.2:                               ## @.str.2
	.asciz	"buffer arena"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_mp_ncpus,4,2                   ## @mp_ncpus
	.comm	_transient_arena,4,2            ## @transient_arena
L_.str.3:                               ## @.str.3
	.asciz	"transient arena"

L_.str.4:                               ## @.str.4
	.asciz	"Clean map calculation incorrect"

	.comm	_exec_map_entries,4,2           ## @exec_map_entries
	.comm	_PATH_MAX,8,3                   ## @PATH_MAX
	.comm	_ARG_MAX,8,3                    ## @ARG_MAX
	.comm	_exec_map_entry_size,4,2        ## @exec_map_entry_size
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_exec_map,8,3                   ## @exec_map
	.comm	_maxpipekva,4,2                 ## @maxpipekva
	.comm	_pipe_map,8,3                   ## @pipe_map
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_VM_MEMATTR_DEFAULT,4,2         ## @VM_MEMATTR_DEFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_ksubmap_init                ; -- Begin function vm_ksubmap_init
	.p2align	2
_vm_ksubmap_init:                       ; @vm_ksubmap_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	mov	x28, #0
	mov	x21, #0
Lloh0:
	adrp	x25, _physmem@GOTPAGE
Lloh1:
	ldr	x25, [x25, _physmem@GOTPAGEOFF]
Lloh2:
	adrp	x24, _kernel_map@GOTPAGE
Lloh3:
	ldr	x24, [x24, _kernel_map@GOTPAGEOFF]
Lloh4:
	adrp	x26, _M_ZERO@GOTPAGE
Lloh5:
	ldr	x26, [x26, _M_ZERO@GOTPAGEOFF]
Lloh6:
	adrp	x27, _M_WAITOK@GOTPAGE
Lloh7:
	ldr	x27, [x27, _M_WAITOK@GOTPAGEOFF]
Lloh8:
	adrp	x20, l_.str@PAGE
Lloh9:
	add	x20, x20, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x25]
	ldr	w0, [x24]
	bl	_vm_map_max
	mov	x23, x0
	ldr	w0, [x24]
	bl	_vm_map_min
	sub	x0, x23, x0
	bl	_btoc
	mov	x1, x0
	mov	x0, x22
	bl	_lmin
	mov	x1, x0
	mov	x0, x21
	bl	_kern_vfs_bio_buffer_alloc
	mov	x22, x0
	cbnz	x21, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w1, w9, w8
	mov	x0, x22
	bl	_kmem_malloc
	mov	x21, x0
	mov	x28, x22
	cbnz	x0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_panic
	mov	x28, x22
	b	LBB0_1
LBB0_4:
	sub	x8, x22, x21
	cmp	x8, x28
	b.eq	LBB0_6
; %bb.5:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_panic
LBB0_6:
Lloh12:
	adrp	x22, _nbuf@GOTPAGE
Lloh13:
	ldr	x22, [x22, _nbuf@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh14:
	adrp	x23, _BKVASIZE@GOTPAGE
Lloh15:
	ldr	x23, [x23, _BKVASIZE@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh16:
	adrp	x25, _bio_transient_maxcnt@GOTPAGE
Lloh17:
	ldr	x25, [x25, _bio_transient_maxcnt@GOTPAGEOFF]
	mul	x8, x9, x8
	ldr	x9, [x25]
Lloh18:
	adrp	x21, _MAXPHYS@GOTPAGE
Lloh19:
	ldr	x21, [x21, _MAXPHYS@GOTPAGEOFF]
	ldr	x10, [x21]
	madd	x20, x10, x9, x8
	mov	x0, x20
	bl	_kva_alloc
	mov	x2, x0
	add	x8, x0, x20
	stp	x0, x8, [x19]
	ldr	x8, [x22]
	ldr	x9, [x23]
	mul	x3, x9, x8
	add	x20, x0, x3
	stp	x0, x20, [x19, #16]
Lloh20:
	adrp	x8, _buffer_arena@GOTPAGE
Lloh21:
	ldr	x8, [x8, _buffer_arena@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x22, _PAGE_SIZE@GOTPAGE
Lloh24:
	ldr	x22, [x22, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w4, [x22]
Lloh25:
	adrp	x23, _mp_ncpus@GOTPAGE
Lloh26:
	ldr	x23, [x23, _mp_ncpus@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	x9, x9, #3
	cmp	w8, #4
	csel	x5, x9, xzr, gt
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w6, #0
	bl	_vmem_init
	ldr	x8, [x25]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x9, [x21]
	mul	x21, x9, x8
Lloh29:
	adrp	x8, _transient_arena@GOTPAGE
Lloh30:
	ldr	x8, [x8, _transient_arena@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldr	w4, [x22]
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	mov	x5, #0
	mov	w6, #0
	bl	_vmem_init
	add	x20, x20, x21
LBB0_8:
	ldr	x8, [x19, #8]
	cmp	x20, x8
	b.eq	LBB0_10
; %bb.9:
Lloh34:
	adrp	x0, l_.str.4@PAGE
Lloh35:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_panic
LBB0_10:
	ldr	w8, [x23]
	lsl	w8, w8, #3
Lloh36:
	adrp	x19, _exec_map_entries@GOTPAGE
Lloh37:
	ldr	x19, [x19, _exec_map_entries@GOTPAGEOFF]
Lloh38:
	adrp	x9, _PATH_MAX@GOTPAGE
Lloh39:
	ldr	x9, [x9, _PATH_MAX@GOTPAGEOFF]
	str	w8, [x19]
Lloh40:
	ldr	x8, [x9]
Lloh41:
	adrp	x9, _ARG_MAX@GOTPAGE
Lloh42:
	ldr	x9, [x9, _ARG_MAX@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_round_page
Lloh44:
	adrp	x8, _exec_map_entry_size@GOTPAGE
Lloh45:
	ldr	x8, [x8, _exec_map_entry_size@GOTPAGEOFF]
Lloh46:
	str	w0, [x8]
	ldr	w8, [x24]
	ldr	w9, [x19]
	mul	w9, w9, w0
	ldr	w10, [x22]
	add	w3, w9, w10, lsl #6
Lloh47:
	adrp	x19, _FALSE@GOTPAGE
Lloh48:
	ldr	x19, [x19, _FALSE@GOTPAGEOFF]
	ldr	w4, [x19]
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x8
	bl	_kmem_suballoc
Lloh49:
	adrp	x8, _exec_map@GOTPAGE
Lloh50:
	ldr	x8, [x8, _exec_map@GOTPAGEOFF]
Lloh51:
	str	x0, [x8]
	ldr	w0, [x24]
Lloh52:
	adrp	x8, _maxpipekva@GOTPAGE
Lloh53:
	ldr	x8, [x8, _maxpipekva@GOTPAGEOFF]
Lloh54:
	ldr	w3, [x8]
	ldr	w4, [x19]
	add	x1, sp, #8
	mov	x2, sp
	bl	_kmem_suballoc
Lloh55:
	adrp	x8, _pipe_map@GOTPAGE
Lloh56:
	ldr	x8, [x8, _pipe_map@GOTPAGEOFF]
Lloh57:
	str	x0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotStr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotStr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_physmem,4,2                    ; @physmem
	.comm	_kernel_map,4,2                 ; @kernel_map
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"startup: no room for tables"

l_.str.1:                               ; @.str.1
	.asciz	"startup: table size inconsistency"

	.comm	_nbuf,8,3                       ; @nbuf
	.comm	_BKVASIZE,8,3                   ; @BKVASIZE
	.comm	_bio_transient_maxcnt,8,3       ; @bio_transient_maxcnt
	.comm	_MAXPHYS,8,3                    ; @MAXPHYS
	.comm	_buffer_arena,4,2               ; @buffer_arena
l_.str.2:                               ; @.str.2
	.asciz	"buffer arena"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_mp_ncpus,4,2                   ; @mp_ncpus
	.comm	_transient_arena,4,2            ; @transient_arena
l_.str.3:                               ; @.str.3
	.asciz	"transient arena"

l_.str.4:                               ; @.str.4
	.asciz	"Clean map calculation incorrect"

	.comm	_exec_map_entries,4,2           ; @exec_map_entries
	.comm	_PATH_MAX,8,3                   ; @PATH_MAX
	.comm	_ARG_MAX,8,3                    ; @ARG_MAX
	.comm	_exec_map_entry_size,4,2        ; @exec_map_entry_size
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_exec_map,8,3                   ; @exec_map
	.comm	_maxpipekva,4,2                 ; @maxpipekva
	.comm	_pipe_map,8,3                   ; @pipe_map
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_VM_MEMATTR_DEFAULT,4,2         ; @VM_MEMATTR_DEFAULT
.subsections_via_symbols
