	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_object_sync                 ## -- Begin function vm_object_sync
	.p2align	4, 0x90
_vm_object_sync:                        ## @vm_object_sync
	.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
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rdi, %rdi
	je	LBB0_31
## %bb.1:
	movl	%r8d, %ebx
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	callq	_VM_OBJECT_WLOCK
	movq	32(%r13), %rax
	testq	%rax, %rax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_2
LBB0_5:
	movq	16(%r13), %rax
	movq	_OBJT_VNODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.6:
	movq	%r13, %rdi
	callq	_vm_object_mightbedirty
	testq	%rax, %rax
	je	LBB0_19
## %bb.7:
	movq	24(%r13), %rbx
	movq	_VV_NOSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	movq	_OBJT_VNODE@GOTPCREL(%rip), %rcx
	jne	LBB0_20
## %bb.8:
	movq	%r13, %rdi
	callq	_VM_OBJECT_WUNLOCK
	movq	_V_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_vn_start_write
	movq	_LK_EXCLUSIVE@GOTPCREL(%rip), %rax
	movq	_LK_RETRY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_vn_lock
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.9:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_13
## %bb.10:
	testq	%r14, %r14
	jne	LBB0_13
## %bb.11:
	movq	%r15, %rdi
	callq	_atop
	cmpq	8(%r13), %rax
	jne	LBB0_13
## %bb.12:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r13), %rax
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rbx
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_VM_OBJECT_WLOCK
	addq	(%rbx), %r14
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WUNLOCK
	movq	8(%r13), %rbx
	leaq	(%r14,%r15), %rdi
	callq	_OFF_TO_IDX
	cmpq	%rax, %rbx
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rdi
	callq	_IDX_TO_OFF
	movq	%rax, %r15
	subq	%r14, %r15
	jmp	LBB0_4
LBB0_13:
	xorl	%eax, %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	orl	%edx, %r12d
	movq	_OBJPC_SYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	cmovnel	%r12d, %eax
	movq	_OBJPC_INVAL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r12d
	testl	%edx, %edx
	cmovel	%eax, %r12d
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_14:
	movq	%r13, %rdi
	callq	_VM_OBJECT_WLOCK
	leaq	(%r14,%r15), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r12d, %ecx
	callq	_vm_object_page_clean
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_VM_OBJECT_WUNLOCK
	testl	%ebx, %ebx
	je	LBB0_17
## %bb.15:
	movq	_MNT_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_curthread@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_VOP_FSYNC
	movl	%eax, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_VOP_UNLOCK
	movq	-64(%rbp), %rdi
	callq	_vn_finished_write
	testl	%r12d, %r12d
	je	LBB0_18
## %bb.16:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_18
LBB0_17:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_VOP_UNLOCK
	movq	-64(%rbp), %rdi
	callq	_vn_finished_write
LBB0_18:
	movq	%r13, %rdi
	callq	_VM_OBJECT_WLOCK
LBB0_19:
	movq	_OBJT_VNODE@GOTPCREL(%rip), %rcx
LBB0_20:
	movq	16(%r13), %rax
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.23:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_30
## %bb.24:
	movq	_OBJT_DEVICE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_25
## %bb.26:
	movq	_old_msync@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpq	$0, (%rax)
	jne	LBB0_29
## %bb.27:
	movq	_OBJPR_CLEANONLY@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_21:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_30
## %bb.22:
	movq	_OBJT_DEVICE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_30
LBB0_25:
	movq	_OBJPR_NOTMAPPED@GOTPCREL(%rip), %rax
LBB0_28:
	movl	(%rax), %r12d
LBB0_29:
	movq	%r14, %rdi
	callq	_OFF_TO_IDX
	movq	%rax, %rbx
	addq	%r14, %r15
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movq	%r15, %rdi
	callq	_OFF_TO_IDX
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	movl	%r12d, %ecx
	callq	_vm_object_page_remove
LBB0_30:
	movq	%r13, %rdi
	callq	_VM_OBJECT_WUNLOCK
	movl	-48(%rbp), %eax                 ## 4-byte Reload
LBB0_31:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_OBJT_VNODE,8,3                 ## @OBJT_VNODE
	.comm	_VV_NOSYNC,4,2                  ## @VV_NOSYNC
	.comm	_V_WAIT,4,2                     ## @V_WAIT
	.comm	_LK_EXCLUSIVE,4,2               ## @LK_EXCLUSIVE
	.comm	_LK_RETRY,4,2                   ## @LK_RETRY
	.comm	_OBJPC_SYNC,4,2                 ## @OBJPC_SYNC
	.comm	_OBJPC_INVAL,4,2                ## @OBJPC_INVAL
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_MNT_WAIT,4,2                   ## @MNT_WAIT
	.comm	_curthread,4,2                  ## @curthread
	.comm	_OBJT_DEVICE,8,3                ## @OBJT_DEVICE
	.comm	_OBJPR_NOTMAPPED,4,2            ## @OBJPR_NOTMAPPED
	.comm	_old_msync,8,3                  ## @old_msync
	.comm	_OBJPR_CLEANONLY,4,2            ## @OBJPR_CLEANONLY
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_object_sync                 ; -- Begin function vm_object_sync
	.p2align	2
_vm_object_sync:                        ; @vm_object_sync
	.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
Lloh0:
	adrp	x27, _TRUE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _TRUE@GOTPAGEOFF]
	ldr	w23, [x27]
	cbz	x0, LBB0_28
; %bb.1:
	mov	x22, x4
	mov	x24, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_VM_OBJECT_WLOCK
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x19
	mov	x19, x8
	mov	x0, x8
	bl	_VM_OBJECT_WLOCK
	ldr	x8, [x25]
	add	x20, x8, x20
	mov	x0, x25
	bl	_VM_OBJECT_WUNLOCK
	ldr	x25, [x19, #8]
	add	x0, x20, x21
	bl	_OFF_TO_IDX
	cmp	x25, x0
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x19, #8]
	bl	_IDX_TO_OFF
	sub	x21, x0, x20
	b	LBB0_2
LBB0_5:
	ldr	x8, [x19, #16]
Lloh2:
	adrp	x26, _OBJT_VNODE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _OBJT_VNODE@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.6:
	mov	x0, x19
	bl	_vm_object_mightbedirty
	cbz	x0, LBB0_19
; %bb.7:
	ldr	x25, [x19, #24]
	ldr	w8, [x25]
Lloh4:
	adrp	x9, _VV_NOSYNC@GOTPAGE
Lloh5:
	ldr	x9, [x9, _VV_NOSYNC@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_19
; %bb.8:
	mov	x0, x19
	bl	_VM_OBJECT_WUNLOCK
Lloh7:
	adrp	x8, _V_WAIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V_WAIT@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x25
	bl	_vn_start_write
Lloh10:
	adrp	x8, _LK_EXCLUSIVE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LK_EXCLUSIVE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _LK_RETRY@GOTPAGE
Lloh14:
	ldr	x9, [x9, _LK_RETRY@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x25
	bl	_vn_lock
Lloh16:
	adrp	x28, _FALSE@GOTPAGE
Lloh17:
	ldr	x28, [x28, _FALSE@GOTPAGEOFF]
	cbz	w24, LBB0_13
; %bb.9:
	cbnz	w22, LBB0_13
; %bb.10:
	cbnz	x20, LBB0_13
; %bb.11:
	mov	x0, x21
	bl	_atop
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.12:
	mov	w23, #0
	ldr	w24, [x27]
	b	LBB0_14
LBB0_13:
	orr	w8, w22, w24
Lloh18:
	adrp	x9, _OBJPC_SYNC@GOTPAGE
Lloh19:
	ldr	x9, [x9, _OBJPC_SYNC@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _OBJPC_INVAL@GOTPAGE
Lloh22:
	ldr	x10, [x10, _OBJPC_INVAL@GOTPAGEOFF]
	cmp	w8, #0
	csel	w8, wzr, w9, eq
Lloh23:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	w22, #0
	csel	w23, w9, w8, ne
	ldr	w24, [x28]
LBB0_14:
	mov	x0, x19
	bl	_VM_OBJECT_WLOCK
	add	x2, x20, x21
	mov	x0, x19
	mov	x1, x20
	mov	x3, x23
	bl	_vm_object_page_clean
	mov	x23, x0
	mov	x0, x19
	bl	_VM_OBJECT_WUNLOCK
	cbz	w24, LBB0_17
; %bb.15:
Lloh24:
	adrp	x8, _MNT_WAIT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MNT_WAIT@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _curthread@GOTPAGE
Lloh28:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x25
	bl	_VOP_FSYNC
	mov	x24, x0
	mov	x0, x25
	mov	w1, #0
	bl	_VOP_UNLOCK
	ldr	x0, [sp, #8]
	bl	_vn_finished_write
	cbz	w24, LBB0_18
; %bb.16:
	ldr	w23, [x28]
	b	LBB0_18
LBB0_17:
	mov	x0, x25
	mov	w1, #0
	bl	_VOP_UNLOCK
	ldr	x0, [sp, #8]
	bl	_vn_finished_write
LBB0_18:
	mov	x0, x19
	bl	_VM_OBJECT_WLOCK
LBB0_19:
	ldr	x8, [x19, #16]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.20:
	cbz	w22, LBB0_27
; %bb.21:
Lloh30:
	adrp	x9, _OBJT_DEVICE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _OBJT_DEVICE@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_25
; %bb.22:
Lloh33:
	adrp	x8, _old_msync@GOTPAGE
Lloh34:
	ldr	x8, [x8, _old_msync@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
Lloh36:
	adrp	x9, _OBJPR_CLEANONLY@GOTPAGE
Lloh37:
	ldr	x9, [x9, _OBJPR_CLEANONLY@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w22, w9, wzr, eq
	b	LBB0_26
LBB0_23:
	cbz	w22, LBB0_27
; %bb.24:
Lloh39:
	adrp	x9, _OBJT_DEVICE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _OBJT_DEVICE@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_27
LBB0_25:
Lloh42:
	adrp	x8, _OBJPR_NOTMAPPED@GOTPAGE
Lloh43:
	ldr	x8, [x8, _OBJPR_NOTMAPPED@GOTPAGEOFF]
Lloh44:
	ldr	w22, [x8]
LBB0_26:
	mov	x0, x20
	bl	_OFF_TO_IDX
	mov	x24, x0
Lloh45:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh46:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	add	x9, x20, x21
	add	x0, x9, x8
	bl	_OFF_TO_IDX
	mov	x2, x0
	mov	x0, x19
	mov	x1, x24
	mov	x3, x22
	bl	_vm_object_page_remove
LBB0_27:
	mov	x0, x19
	bl	_VM_OBJECT_WUNLOCK
LBB0_28:
	mov	x0, x23
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_OBJT_VNODE,8,3                 ; @OBJT_VNODE
	.comm	_VV_NOSYNC,4,2                  ; @VV_NOSYNC
	.comm	_V_WAIT,4,2                     ; @V_WAIT
	.comm	_LK_EXCLUSIVE,4,2               ; @LK_EXCLUSIVE
	.comm	_LK_RETRY,4,2                   ; @LK_RETRY
	.comm	_OBJPC_SYNC,4,2                 ; @OBJPC_SYNC
	.comm	_OBJPC_INVAL,4,2                ; @OBJPC_INVAL
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_MNT_WAIT,4,2                   ; @MNT_WAIT
	.comm	_curthread,4,2                  ; @curthread
	.comm	_OBJT_DEVICE,8,3                ; @OBJT_DEVICE
	.comm	_OBJPR_NOTMAPPED,4,2            ; @OBJPR_NOTMAPPED
	.comm	_old_msync,8,3                  ; @old_msync
	.comm	_OBJPR_CLEANONLY,4,2            ; @OBJPR_CLEANONLY
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
.subsections_via_symbols
