	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swap_pager_reserve             ## -- Begin function swap_pager_reserve
	.p2align	4, 0x90
_swap_pager_reserve:                    ## @swap_pager_reserve
	.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
	movl	%edx, %r14d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, %r13d
	leaq	-64(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	callq	_swp_pager_init_freerange
	movl	%r13d, %edi
	callq	_VM_OBJECT_WLOCK
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.1:
	xorl	%ebx, %ebx
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%eax, %ebx
	cmpl	%r14d, %ebx
	jge	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	%r14d, %eax
	subl	%ebx, %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdi
	movl	$1, %esi
	callq	_swp_pager_getswapspace
	movq	%rax, %r15
	movq	_SWAPBLK_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %r14
	addq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	xorl	%r12d, %r12d
	movq	_SWAPBLK_NONE@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%r12
	movslq	-44(%rbp), %rax
	cmpq	%rax, %r12
	jge	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(%r14,%r12), %rsi
	leaq	(%r15,%r12), %rdx
	movl	%r13d, %edi
	callq	_swp_pager_meta_build
	cmpq	(%rbx), %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	leaq	-64(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	movq	%rax, %rdx
	callq	_swp_pager_update_freerange
	jmp	LBB0_7
LBB0_10:
	movq	-64(%rbp), %rdi
	movq	-72(%rbp), %rsi
	callq	_swp_pager_freeswapspace
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_12:
	movl	%r13d, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_swp_pager_meta_free
	movl	$-1, %r14d
LBB0_11:
	movl	%r13d, %edi
	callq	_VM_OBJECT_WUNLOCK
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SWAPBLK_NONE,8,3               ## @SWAPBLK_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swap_pager_reserve             ; -- Begin function swap_pager_reserve
	.p2align	2
_swap_pager_reserve:                    ; @swap_pager_reserve
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #16
	add	x1, sp, #24
	bl	_swp_pager_init_freerange
	mov	x0, x19
	bl	_VM_OBJECT_WLOCK
	cmp	w21, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w22, #0
Lloh0:
	adrp	x24, _SWAPBLK_NONE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SWAPBLK_NONE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w8, w22
	cmp	w22, w21
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	sub	w8, w21, w22
	str	w8, [sp, #12]
	add	x0, sp, #12
	mov	w1, #1
	bl	_swp_pager_getswapspace
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	mov	x25, #0
	add	x26, x20, w22, sxtw
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x25, x25, #1
	ldrsw	x8, [sp, #12]
	cmp	x25, x8
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, x26, x25
	add	x2, x23, x25
	mov	x0, x19
	bl	_swp_pager_meta_build
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x2, x0
	add	x0, sp, #16
	add	x1, sp, #24
	bl	_swp_pager_update_freerange
	b	LBB0_6
LBB0_9:
	ldp	x0, x1, [sp, #16]
	bl	_swp_pager_freeswapspace
	mov	w20, #0
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_swp_pager_meta_free
	mov	w20, #-1
LBB0_11:
	mov	x0, x19
	bl	_VM_OBJECT_WUNLOCK
	mov	x0, x20
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SWAPBLK_NONE,8,3               ; @SWAPBLK_NONE
.subsections_via_symbols
