	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vnode_pager_undirty_pages      ## -- Begin function vnode_pager_undirty_pages
	.p2align	4, 0x90
_vnode_pager_undirty_pages:             ## @vnode_pager_undirty_pages
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	testl	%edx, %edx
	jne	LBB0_2
## %bb.1:
	cmpl	%r8d, %r14d
	jl	LBB0_2
## %bb.17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movq	(%r12), %rax
	movl	8(%rax), %edi
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	callq	_VM_OBJECT_WLOCK
	testl	%r13d, %r13d
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_VM_PAGER_AGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rbx)
	movq	(%r12,%rbx,2), %rdi
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r13d, %edx
	xorl	%esi, %esi
	callq	_vm_page_clear_dirty
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	addq	$4, %rbx
	cmpl	%r13d, %r15d
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	callq	_trunc_page
	cmpl	%eax, %r15d
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_VM_PAGER_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rbx)
	movq	(%r12,%rbx,2), %rdi
	callq	_vm_page_undirty
	jmp	LBB0_7
LBB0_8:
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	cmpl	%r15d, %r14d
	jge	LBB0_16
## %bb.9:
	movl	%r14d, %edi
	callq	_trunc_page
	movl	%eax, %edi
	callq	_OFF_TO_IDX
	movslq	%eax, %rbx
	shlq	$2, %rbx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r13
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_VM_PAGER_BAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rbx)
	addl	(%r13), %r14d
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	$4, %rbx
	cmpl	%r15d, %r14d
	jge	LBB0_16
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_trunc_page
	cmpl	%eax, %r14d
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r14d, %edi
	movq	_DEV_BSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_roundup2
	movq	(%r12,%rbx,2), %rdi
	movl	(%r13), %edx
	subl	%eax, %edx
	movl	%eax, %esi
	callq	_vm_page_clear_dirty
	movq	(%r12,%rbx,2), %rax
	cmpq	$0, (%rax)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_VM_PAGER_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rbx)
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%r14d, %edi
	callq	_round_page
	movl	%eax, %r14d
	jmp	LBB0_15
LBB0_16:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VM_OBJECT_WUNLOCK              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_PAGER_OK,4,2                ## @VM_PAGER_OK
	.comm	_VM_PAGER_AGAIN,4,2             ## @VM_PAGER_AGAIN
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_DEV_BSIZE,4,2                  ## @DEV_BSIZE
	.comm	_VM_PAGER_BAD,4,2               ## @VM_PAGER_BAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vnode_pager_undirty_pages      ; -- Begin function vnode_pager_undirty_pages
	.p2align	2
_vnode_pager_undirty_pages:             ; @vnode_pager_undirty_pages
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x4
	mov	x20, x3
	mov	x24, x2
	cbnz	w2, LBB0_3
; %bb.1:
	cmp	w20, w19
	b.lt	LBB0_3
; %bb.2:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_3:
	stp	x0, x1, [sp, #16]               ; 16-byte Folded Spill
	ldr	x8, [x0]
	ldr	w0, [x8, #8]
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	bl	_VM_OBJECT_WLOCK
Lloh0:
	adrp	x25, _VM_PAGER_OK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _VM_PAGER_OK@GOTPAGEOFF]
Lloh2:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x27, _PAGE_MASK@GOTPAGE
Lloh5:
	ldr	x27, [x27, _PAGE_MASK@GOTPAGEOFF]
	cmp	w24, #1
	b.lt	LBB0_9
; %bb.4:
	mov	w28, #0
Lloh6:
	adrp	x21, _VM_PAGER_AGAIN@GOTPAGE
Lloh7:
	ldr	x21, [x21, _VM_PAGER_AGAIN@GOTPAGEOFF]
	ldp	x23, x22, [sp, #16]             ; 16-byte Folded Reload
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x21]
	str	w8, [x22]
	ldr	x0, [x23]
	ldr	w8, [x27]
	and	w2, w8, w24
	mov	w1, #0
	bl	_vm_page_clear_dirty
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x26]
	add	x23, x23, #8
	add	x22, x22, #4
	add	w28, w8, w28
	cmp	w28, w24
	b.ge	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_trunc_page
	cmp	w28, w0
	b.ge	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x25]
	str	w8, [x22]
	ldr	x0, [x23]
	bl	_vm_page_undirty
	b	LBB0_6
LBB0_9:
	cmp	w20, w19
	b.ge	LBB0_17
; %bb.10:
	mov	x0, x20
	bl	_trunc_page
	bl	_OFF_TO_IDX
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x23, x8, w0, sxtw #3
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x22, x8, w0, sxtw #2
Lloh8:
	adrp	x24, _VM_PAGER_BAD@GOTPAGE
Lloh9:
	ldr	x24, [x24, _VM_PAGER_BAD@GOTPAGEOFF]
Lloh10:
	adrp	x28, _DEV_BSIZE@GOTPAGE
Lloh11:
	ldr	x28, [x28, _DEV_BSIZE@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x24]
	str	w8, [x22]
	ldr	w8, [x26]
	add	w20, w8, w20
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x23, x23, #8
	add	x22, x22, #4
	cmp	w20, w19
	b.ge	LBB0_17
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_trunc_page
	cmp	w20, w0
	b.eq	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x27]
	and	w0, w8, w20
	ldr	w1, [x28]
	bl	_roundup2
	mov	x1, x0
	ldr	x0, [x23]
	ldr	w8, [x26]
	sub	w2, w8, w1
	bl	_vm_page_clear_dirty
	ldr	x8, [x23]
	ldr	x8, [x8]
	cbnz	x8, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x25]
	str	w8, [x22]
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x20
	bl	_round_page
	mov	x20, x0
	b	LBB0_12
LBB0_17:
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_VM_OBJECT_WUNLOCK
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_PAGER_OK,4,2                ; @VM_PAGER_OK
	.comm	_VM_PAGER_AGAIN,4,2             ; @VM_PAGER_AGAIN
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_DEV_BSIZE,4,2                  ; @DEV_BSIZE
	.comm	_VM_PAGER_BAD,4,2               ; @VM_PAGER_BAD
.subsections_via_symbols
