	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swp_pager_meta_build
_swp_pager_meta_build:                  ## @swp_pager_meta_build
	.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	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movq	(%r15), %rax
	movq	_OBJT_SWAP@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_2
## %bb.1:
	leaq	8(%r15), %rdi
	callq	_pctrie_init
	xorl	%eax, %eax
	callq	_atomic_thread_fence_rel
	movq	(%r14), %rax
	movq	%rax, (%r15)
	movq	$0, 16(%r15)
	xorl	%edi, %edi
	cmpq	$0, 24(%r15)
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
LBB0_2:
	movq	_SWAP_META_PAGES@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_rounddown
	movq	%rax, %r13
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	addq	$8, %r15
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_SWAP_PCTRIE_LOOKUP
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_5
LBB0_3:
	xorl	%edi, %edi
	cmpq	%r13, (%r14)
	sete	%dil
	callq	_MPASS
	movslq	(%r12), %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_16
## %bb.4:
	movq	%rbx, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_17
LBB0_5:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_SWAPBLK_NONE@GOTPCREL(%rip), %rax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, (%rax)
	je	LBB0_19
## %bb.6:
	movq	_swblk_zone@GOTPCREL(%rip), %rbx
	movq	_pageproc@GOTPCREL(%rip), %r12
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rbx), %edi
	callq	_uma_zwait
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	callq	_VM_OBJECT_WLOCK
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_SWAP_PCTRIE_LOOKUP
	testq	%rax, %rax
	jne	LBB0_23
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_curproc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, %esi
	cmpq	(%r12), %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_M_USE_RESERVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rbx), %edi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_uma_zalloc
	testq	%rax, %rax
	jne	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	callq	_VM_OBJECT_WUNLOCK
	movl	(%rbx), %edi
	callq	_uma_zone_exhausted
	testq	%rax, %rax
	je	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	_swp_pager_meta_build.swblk_zone_exhausted(%rip), %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_atomic_cmpset_int
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_VM_OOM_SWAPZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_vm_pageout_oom
	leaq	L_.str.3(%rip), %rdi
	movl	$10, %esi
	callq	_pause
	jmp	LBB0_8
LBB0_16:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_17:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	8(%r14), %rax
	movq	(%rax,%rdx,8), %rbx
	movq	%rcx, (%rax,%rdx,8)
	movq	_SWAPBLK_NONE@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_19
## %bb.18:
	movq	%r14, %rsi
	callq	_swp_pager_free_empty_swblk
LBB0_19:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	%rax, %r14
	movq	%r13, (%rax)
	movq	_SWAP_META_PAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	movq	_SWAPBLK_NONE@GOTPCREL(%rip), %rax
	jle	LBB0_38
## %bb.21:
	movq	8(%r14), %rcx
	cmpl	$4, %r8d
	jb	LBB0_22
## %bb.24:
	leaq	8(%rax), %rdx
	cmpq	%rdx, %rcx
	jae	LBB0_27
## %bb.25:
	leaq	(%rcx,%r8,8), %rdx
	cmpq	_SWAPBLK_NONE@GOTPCREL(%rip), %rdx
	jbe	LBB0_27
LBB0_22:
	xorl	%edx, %edx
LBB0_34:
	movq	%rdx, %rsi
	notq	%rsi
	addq	%r8, %rsi
	movq	%r8, %rdi
	andq	$3, %rdi
	je	LBB0_36
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rbx
	movq	%rbx, (%rcx,%rdx,8)
	incq	%rdx
	decq	%rdi
	jne	LBB0_35
LBB0_36:
	cmpq	$3, %rsi
	jb	LBB0_38
	.p2align	4, 0x90
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rsi
	movq	%rsi, (%rcx,%rdx,8)
	movq	(%rax), %rsi
	movq	%rsi, 8(%rcx,%rdx,8)
	movq	(%rax), %rsi
	movq	%rsi, 16(%rcx,%rdx,8)
	movq	(%rax), %rsi
	movq	%rsi, 24(%rcx,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_37
	jmp	LBB0_38
LBB0_23:
	movq	%rax, %r14
	jmp	LBB0_51
LBB0_27:
	movl	%r8d, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$2, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_30
## %bb.28:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	movq	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rcx,%rdi,8)
	movdqu	%xmm0, 16(%rcx,%rdi,8)
	movdqu	%xmm0, 32(%rcx,%rdi,8)
	movdqu	%xmm0, 48(%rcx,%rdi,8)
	addq	$8, %rdi
	addq	$-2, %rsi
	jne	LBB0_29
	jmp	LBB0_31
LBB0_30:
	xorl	%edi, %edi
LBB0_31:
	testb	$1, %bl
	je	LBB0_33
## %bb.32:
	movq	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	movdqu	%xmm0, (%rcx,%rdi,8)
	movdqu	%xmm0, 16(%rcx,%rdi,8)
LBB0_33:
	cmpq	%r8, %rdx
	jne	LBB0_34
LBB0_38:
	leaq	_swp_pager_meta_build.swblk_zone_exhausted(%rip), %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_atomic_cmpset_int
	testq	%rax, %rax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_42
## %bb.39:
	leaq	L_str.9(%rip), %rdi
	callq	_puts
	jmp	LBB0_42
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_42 Depth=1
	movl	(%rbx), %edi
	callq	_uma_zwait
LBB0_41:                                ##   in Loop: Header=BB0_42 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_VM_OBJECT_WLOCK
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_SWAP_PCTRIE_LOOKUP
	testq	%rax, %rax
	jne	LBB0_50
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_SWAP_PCTRIE_INSERT
	testl	%eax, %eax
	je	LBB0_47
## %bb.43:                              ##   in Loop: Header=BB0_42 Depth=1
	movq	%r15, %rdi
	callq	_VM_OBJECT_WUNLOCK
	movq	_swpctrie_zone@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_uma_zone_exhausted
	testq	%rax, %rax
	je	LBB0_40
## %bb.44:                              ##   in Loop: Header=BB0_42 Depth=1
	leaq	_swp_pager_meta_build.swpctrie_zone_exhausted(%rip), %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_atomic_cmpset_int
	testq	%rax, %rax
	je	LBB0_46
## %bb.45:                              ##   in Loop: Header=BB0_42 Depth=1
	leaq	L_str.7(%rip), %rdi
	callq	_puts
LBB0_46:                                ##   in Loop: Header=BB0_42 Depth=1
	movq	_VM_OOM_SWAPZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_vm_pageout_oom
	leaq	L_.str.6(%rip), %rdi
	movl	$10, %esi
	callq	_pause
	jmp	LBB0_41
LBB0_47:
	leaq	_swp_pager_meta_build.swpctrie_zone_exhausted(%rip), %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_atomic_cmpset_int
	testq	%rax, %rax
	je	LBB0_49
## %bb.48:
	leaq	L_str.8(%rip), %rdi
	callq	_puts
LBB0_49:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_SWAP_META_PAGES@GOTPCREL(%rip), %r12
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_50:
	movq	%rax, %rbx
	movq	_swblk_zone@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_uma_zfree
	movq	%rbx, %r14
LBB0_51:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_SWAP_META_PAGES@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_swp_pager_meta_build.swblk_zone_exhausted,4,2 ## @swp_pager_meta_build.swblk_zone_exhausted
.zerofill __DATA,__bss,_swp_pager_meta_build.swpctrie_zone_exhausted,4,2 ## @swp_pager_meta_build.swpctrie_zone_exhausted
	.comm	_OBJT_SWAP,8,3                  ## @OBJT_SWAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"default pager with handle"

	.comm	_SWAP_META_PAGES,4,2            ## @SWAP_META_PAGES
	.comm	_SWAPBLK_NONE,8,3               ## @SWAPBLK_NONE
	.comm	_swblk_zone,4,2                 ## @swblk_zone
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_curproc,8,3                    ## @curproc
	.comm	_pageproc,8,3                   ## @pageproc
	.comm	_M_USE_RESERVE,4,2              ## @M_USE_RESERVE
	.comm	_VM_OOM_SWAPZ,4,2               ## @VM_OOM_SWAPZ
L_.str.3:                               ## @.str.3
	.asciz	"swzonxb"

	.comm	_swpctrie_zone,4,2              ## @swpctrie_zone
L_.str.6:                               ## @.str.6
	.asciz	"swzonxp"

L_str:                                  ## @str
	.asciz	"swap blk zone exhausted, increase kern.maxswzone"

L_str.7:                                ## @str.7
	.asciz	"swap pctrie zone exhausted, increase kern.maxswzone"

L_str.8:                                ## @str.8
	.asciz	"swpctrie zone ok"

L_str.9:                                ## @str.9
	.asciz	"swblk zone ok"

	.no_dead_strip	_swp_pager_meta_build
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swp_pager_meta_build
_swp_pager_meta_build:                  ; @swp_pager_meta_build
	.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	x25, x2
	mov	x21, x1
	mov	x19, x0
	bl	_VM_OBJECT_ASSERT_WLOCKED
	ldr	x8, [x19]
Lloh0:
	adrp	x20, _OBJT_SWAP@GOTPAGE
Lloh1:
	ldr	x20, [x20, _OBJT_SWAP@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	add	x0, x19, #8
	bl	_pctrie_init
	bl	_atomic_thread_fence_rel
	ldr	x8, [x20]
	str	x8, [x19]
	str	xzr, [x19, #16]
	ldr	x8, [x19, #24]
	cmp	x8, #0
	cset	w0, eq
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
LBB0_2:
Lloh4:
	adrp	x26, _SWAP_META_PAGES@GOTPAGE
Lloh5:
	ldr	x26, [x26, _SWAP_META_PAGES@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x21
	bl	_rounddown
	mov	x22, x0
	add	x23, x19, #8
	mov	x0, x23
	mov	x1, x22
	bl	_SWAP_PCTRIE_LOOKUP
	mov	x24, x0
Lloh6:
	adrp	x27, _SWAPBLK_NONE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _SWAPBLK_NONE@GOTPAGEOFF]
	cbz	x0, LBB0_5
LBB0_3:
	ldr	x8, [x24]
	cmp	x8, x22
	cset	w0, eq
	bl	_MPASS
	ldrsw	x8, [x26]
	sdiv	x9, x21, x8
	msub	x8, x9, x8, x21
	ldr	x9, [x24, #8]
	lsl	x8, x8, #3
	ldr	x21, [x9, x8]
	str	x25, [x9, x8]
	ldr	x8, [x27]
	cmp	x8, x25
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x19
	mov	x1, x24
	bl	_swp_pager_free_empty_swblk
	b	LBB0_7
LBB0_5:
	ldr	x8, [x27]
	cmp	x8, x25
	b.ne	LBB0_8
; %bb.6:
	mov	x21, x25
LBB0_7:
	mov	x0, x21
	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
LBB0_8:
	stp	x21, x25, [sp]                  ; 16-byte Folded Spill
Lloh8:
	adrp	x28, _swblk_zone@GOTPAGE
Lloh9:
	ldr	x28, [x28, _swblk_zone@GOTPAGEOFF]
Lloh10:
	adrp	x27, _M_NOWAIT@GOTPAGE
Lloh11:
	ldr	x27, [x27, _M_NOWAIT@GOTPAGEOFF]
Lloh12:
	adrp	x20, _curproc@GOTPAGE
Lloh13:
	ldr	x20, [x20, _curproc@GOTPAGEOFF]
Lloh14:
	adrp	x21, _pageproc@GOTPAGE
Lloh15:
	ldr	x21, [x21, _pageproc@GOTPAGEOFF]
Lloh16:
	adrp	x26, l_.str.3@PAGE
Lloh17:
	add	x26, x26, l_.str.3@PAGEOFF
Lloh18:
	adrp	x25, _M_USE_RESERVE@GOTPAGE
Lloh19:
	ldr	x25, [x25, _M_USE_RESERVE@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x28]
	bl	_uma_zwait
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_VM_OBJECT_WLOCK
	mov	x0, x23
	mov	x1, x22
	bl	_SWAP_PCTRIE_LOOKUP
	cbnz	x0, LBB0_22
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x28]
	ldr	w8, [x27]
	ldr	x9, [x20]
	ldr	x10, [x21]
	ldr	w11, [x25]
	cmp	x9, x10
	csel	w9, w11, wzr, eq
	orr	w1, w9, w8
	bl	_uma_zalloc
	cbnz	x0, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_VM_OBJECT_WUNLOCK
	ldr	w0, [x28]
	bl	_uma_zone_exhausted
	cbz	x0, LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh20:
	adrp	x0, _swp_pager_meta_build.swblk_zone_exhausted@PAGE
Lloh21:
	add	x0, x0, _swp_pager_meta_build.swblk_zone_exhausted@PAGEOFF
	mov	w1, #0
	mov	w2, #1
	bl	_atomic_cmpset_int
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh22:
	adrp	x0, l_str@PAGE
Lloh23:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
Lloh24:
	adrp	x8, _VM_OOM_SWAPZ@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VM_OOM_SWAPZ@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_vm_pageout_oom
	mov	x0, x26
	mov	w1, #10
	bl	_pause
	b	LBB0_10
LBB0_16:
	mov	x24, x0
	str	x22, [x0]
Lloh27:
	adrp	x26, _SWAP_META_PAGES@GOTPAGE
Lloh28:
	ldr	x26, [x26, _SWAP_META_PAGES@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
Lloh29:
	adrp	x27, _SWAPBLK_NONE@GOTPAGE
Lloh30:
	ldr	x27, [x27, _SWAPBLK_NONE@GOTPAGEOFF]
	b.lt	LBB0_26
; %bb.17:
	ldr	x9, [x24, #8]
	cmp	w8, #8
	b.lo	LBB0_23
; %bb.18:
	add	x10, x9, x8, lsl #3
	add	x11, x27, #8
	cmp	x9, x11
	ccmp	x10, x27, #0, lo
	b.hi	LBB0_23
; %bb.19:
	and	x10, x8, #0xfffffff8
	ld1r.2d	{ v0 }, [x27]
	add	x11, x9, #32
	mov	x12, x10
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	d1, [x27]
	dup.2d	v1, v1[0]
	stp	q0, q0, [x11, #-32]
	stp	q0, q1, [x11], #64
	subs	x12, x12, #8
	b.ne	LBB0_20
; %bb.21:
	cmp	x10, x8
	b.ne	LBB0_24
	b	LBB0_26
LBB0_22:
	mov	x24, x0
	ldp	x21, x25, [sp]                  ; 16-byte Folded Reload
Lloh31:
	adrp	x26, _SWAP_META_PAGES@GOTPAGE
Lloh32:
	ldr	x26, [x26, _SWAP_META_PAGES@GOTPAGEOFF]
Lloh33:
	adrp	x27, _SWAPBLK_NONE@GOTPAGE
Lloh34:
	ldr	x27, [x27, _SWAPBLK_NONE@GOTPAGEOFF]
	b	LBB0_3
LBB0_23:
	mov	x10, #0
LBB0_24:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x27]
	str	x10, [x9], #8
	subs	x8, x8, #1
	b.ne	LBB0_25
LBB0_26:
Lloh35:
	adrp	x0, _swp_pager_meta_build.swblk_zone_exhausted@PAGE
Lloh36:
	add	x0, x0, _swp_pager_meta_build.swblk_zone_exhausted@PAGEOFF
	mov	w1, #1
	mov	w2, #0
	bl	_atomic_cmpset_int
	cbz	x0, LBB0_30
; %bb.27:
Lloh37:
	adrp	x0, l_str.9@PAGE
Lloh38:
	add	x0, x0, l_str.9@PAGEOFF
	bl	_puts
	b	LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_30 Depth=1
	ldr	w0, [x20]
	bl	_uma_zwait
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=1
	mov	x0, x19
	bl	_VM_OBJECT_WLOCK
	mov	x0, x23
	mov	x1, x22
	bl	_SWAP_PCTRIE_LOOKUP
	cbnz	x0, LBB0_37
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_SWAP_PCTRIE_INSERT
	cbz	w0, LBB0_35
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	mov	x0, x19
	bl	_VM_OBJECT_WUNLOCK
Lloh39:
	adrp	x20, _swpctrie_zone@GOTPAGE
Lloh40:
	ldr	x20, [x20, _swpctrie_zone@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_uma_zone_exhausted
	cbz	x0, LBB0_28
; %bb.32:                               ;   in Loop: Header=BB0_30 Depth=1
Lloh41:
	adrp	x0, _swp_pager_meta_build.swpctrie_zone_exhausted@PAGE
Lloh42:
	add	x0, x0, _swp_pager_meta_build.swpctrie_zone_exhausted@PAGEOFF
	mov	w1, #0
	mov	w2, #1
	bl	_atomic_cmpset_int
	cbz	x0, LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_30 Depth=1
Lloh43:
	adrp	x0, l_str.7@PAGE
Lloh44:
	add	x0, x0, l_str.7@PAGEOFF
	bl	_puts
LBB0_34:                                ;   in Loop: Header=BB0_30 Depth=1
Lloh45:
	adrp	x8, _VM_OOM_SWAPZ@GOTPAGE
Lloh46:
	ldr	x8, [x8, _VM_OOM_SWAPZ@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	bl	_vm_pageout_oom
Lloh48:
	adrp	x0, l_.str.6@PAGE
Lloh49:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	w1, #10
	bl	_pause
	b	LBB0_29
LBB0_35:
Lloh50:
	adrp	x0, _swp_pager_meta_build.swpctrie_zone_exhausted@PAGE
Lloh51:
	add	x0, x0, _swp_pager_meta_build.swpctrie_zone_exhausted@PAGEOFF
	mov	w1, #1
	mov	w2, #0
	bl	_atomic_cmpset_int
	cbz	x0, LBB0_38
; %bb.36:
Lloh52:
	adrp	x0, l_str.8@PAGE
Lloh53:
	add	x0, x0, l_str.8@PAGEOFF
	bl	_puts
	b	LBB0_38
LBB0_37:
	mov	x25, x0
	ldr	w0, [x28]
	mov	x1, x24
	bl	_uma_zfree
	mov	x24, x25
LBB0_38:
	ldp	x21, x25, [sp]                  ; 16-byte Folded Reload
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_swp_pager_meta_build.swblk_zone_exhausted,4,2 ; @swp_pager_meta_build.swblk_zone_exhausted
.zerofill __DATA,__bss,_swp_pager_meta_build.swpctrie_zone_exhausted,4,2 ; @swp_pager_meta_build.swpctrie_zone_exhausted
	.comm	_OBJT_SWAP,8,3                  ; @OBJT_SWAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"default pager with handle"

	.comm	_SWAP_META_PAGES,4,2            ; @SWAP_META_PAGES
	.comm	_SWAPBLK_NONE,8,3               ; @SWAPBLK_NONE
	.comm	_swblk_zone,4,2                 ; @swblk_zone
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_curproc,8,3                    ; @curproc
	.comm	_pageproc,8,3                   ; @pageproc
	.comm	_M_USE_RESERVE,4,2              ; @M_USE_RESERVE
	.comm	_VM_OOM_SWAPZ,4,2               ; @VM_OOM_SWAPZ
l_.str.3:                               ; @.str.3
	.asciz	"swzonxb"

	.comm	_swpctrie_zone,4,2              ; @swpctrie_zone
l_.str.6:                               ; @.str.6
	.asciz	"swzonxp"

l_str:                                  ; @str
	.asciz	"swap blk zone exhausted, increase kern.maxswzone"

l_str.7:                                ; @str.7
	.asciz	"swap pctrie zone exhausted, increase kern.maxswzone"

l_str.8:                                ; @str.8
	.asciz	"swpctrie zone ok"

l_str.9:                                ; @str.9
	.asciz	"swblk zone ok"

	.no_dead_strip	_swp_pager_meta_build
.subsections_via_symbols
