	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_free_pages_release
_vm_free_pages_release:                 ## @vm_free_pages_release
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	callq	_lockdep_assert_held
	movq	%r14, %rdi
	callq	_pagevec_count
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.1:
	movq	16(%rbx), %rdi
	movq	%r14, %rsi
	callq	_stash_push_pagevec
	movq	_PAGEVEC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	xorl	%ecx, %ecx
	testl	%r15d, %r15d
	cmovel	%eax, %ecx
	cmpl	%ecx, 4(%rbx)
	jle	LBB0_4
## %bb.2:
	leaq	-40(%rbp), %r12
	movq	4(%rbx), %r15
	movq	%r15, -40(%rbp)
	movq	%r14, %rdi
	callq	_pagevec_reinit
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	%r15, %rdi
	shrq	$32, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r15d, %esi
	callq	_set_pages_array_wb
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	%r12, %r14
LBB0_3:
	movq	%r14, %rdi
	callq	___pagevec_release
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGEVEC_SIZE,4,2               ## @PAGEVEC_SIZE
	.no_dead_strip	_vm_free_pages_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_free_pages_release
_vm_free_pages_release:                 ; @vm_free_pages_release
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x19, x0
	add	x20, x0, #4
	bl	_lockdep_assert_held
	mov	x0, x20
	bl	_pagevec_count
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x0, [x19, #16]
	mov	x1, x20
	bl	_stash_push_pagevec
Lloh0:
	adrp	x8, _PAGEVEC_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGEVEC_SIZE@GOTPAGEOFF]
	ldr	w9, [x19, #4]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #1
	cmp	w21, #0
	csel	w8, w8, wzr, eq
	cmp	w9, w8
	b.le	LBB0_4
; %bb.2:
	ldur	x21, [x19, #4]
	str	x21, [sp, #8]
	mov	x0, x20
	bl	_pagevec_reinit
	mov	x0, x19
	bl	_spin_unlock
	lsr	x0, x21, #32
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x21
	bl	_set_pages_array_wb
	mov	x0, x19
	bl	_spin_lock
	add	x20, sp, #8
LBB0_3:
	mov	x0, x20
	bl	___pagevec_release
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGEVEC_SIZE,4,2               ; @PAGEVEC_SIZE
	.no_dead_strip	_vm_free_pages_release
.subsections_via_symbols
