	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_map_sync                    ## -- Begin function vm_map_sync
	.p2align	4, 0x90
_vm_map_sync:                           ## @vm_map_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_vm_map_lock_read
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_VM_MAP_RANGE_CHECK
	leaq	-88(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_vm_map_lookup_entry
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rbx
	movq	(%rbx), %rax
	cmpq	%r14, %r15
	jne	LBB0_5
## %bb.4:
	movq	8(%rbx), %r14
	movq	%rax, %r15
LBB0_5:
	movq	%r15, %r13
	cmpq	%r14, %rax
	jge	LBB0_14
## %bb.6:
	movq	_MAP_ENTRY_USER_WIRED@GOTPCREL(%rip), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_vm_map_entry_succ
	movq	%rax, %rbx
	cmpq	%r14, (%rax)
	jge	LBB0_14
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r15), %eax
	testl	%eax, 16(%rbx)
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rbx), %r12
	cmpq	%r12, %r14
	jle	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_vm_map_entry_succ
	cmpq	(%rax), %r12
	je	LBB0_13
## %bb.12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_2
LBB0_14:
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%r13, %r15
	je	LBB0_16
## %bb.15:
	movl	4(%rbx), %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_pmap_remove
LBB0_16:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	movq	%rax, -56(%rbp)
	movq	(%rax), %rcx
	cmpq	%r14, %rcx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	jge	LBB0_28
## %bb.17:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-56(%rbp), %rdi
	callq	_vm_map_entry_succ
	movq	%rax, -56(%rbp)
LBB0_27:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	(%rax), %rcx
	cmpq	%r14, %rcx
	jge	LBB0_28
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rbx
	subq	%rcx, %rbx
	addq	24(%rax), %rbx
	movq	%r15, %rcx
	movq	8(%rax), %r15
	cmpq	%r15, %r14
	cmovlq	%r14, %r15
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	subq	%rcx, %r15
	movq	_MAP_ENTRY_IS_SUB_MAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 16(%rax)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	40(%rax), %r13
	movq	%r13, %rdi
	callq	_vm_map_lock_read
	movq	%r13, %rdi
	movq	%rbx, %rsi
	leaq	-112(%rbp), %rdx
	callq	_vm_map_lookup_entry
	movq	-112(%rbp), %rax
	movq	8(%rax), %rcx
	subq	%rbx, %rcx
	cmpq	%r15, %rcx
	cmovlq	%rcx, %r15
	movl	32(%rax), %r12d
	addq	24(%rax), %rbx
	subq	(%rax), %rbx
	movq	%r13, %rdi
	callq	_vm_map_unlock_read
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	32(%rax), %r12d
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	%r12d, %edi
	callq	_vm_object_reference
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %r13d
	movq	%r14, %rdi
	callq	_vm_map_unlock_read
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_vm_object_sync
	testl	%eax, %eax
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addq	%r15, %rax
	movq	%rax, %r15
	movl	%r12d, %edi
	callq	_vm_object_deallocate
	movq	%r14, %rdi
	callq	_vm_map_lock_read
	cmpl	(%r14), %r13d
	movq	%r14, %rbx
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	leaq	-56(%rbp), %rdx
	callq	_vm_map_lookup_entry
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-56(%rbp), %rax
	jmp	LBB0_27
LBB0_28:
	movq	%rbx, %rdi
	callq	_vm_map_unlock_read
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_29
## %bb.30:
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_1:
	movq	%rbx, %rdi
LBB0_2:
	callq	_vm_map_unlock_read
	movq	_KERN_INVALID_ADDRESS@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_29:
	movq	_KERN_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vm_map_unlock_read
	movq	_KERN_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
LBB0_31:
	movl	(%rax), %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KERN_INVALID_ADDRESS,4,2       ## @KERN_INVALID_ADDRESS
	.comm	_MAP_ENTRY_USER_WIRED,4,2       ## @MAP_ENTRY_USER_WIRED
	.comm	_KERN_INVALID_ARGUMENT,4,2      ## @KERN_INVALID_ARGUMENT
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_MAP_ENTRY_IS_SUB_MAP,4,2       ## @MAP_ENTRY_IS_SUB_MAP
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_KERN_FAILURE,4,2               ## @KERN_FAILURE
	.comm	_KERN_SUCCESS,4,2               ## @KERN_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_map_sync                    ; -- Begin function vm_map_sync
	.p2align	2
_vm_map_sync:                           ; @vm_map_sync
	.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	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_vm_map_lock_read
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_VM_MAP_RANGE_CHECK
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x23
	bl	_vm_map_lookup_entry
	cbz	w0, LBB0_10
; %bb.1:
	ldr	x24, [sp, #16]
	ldr	x8, [x24]
	cmp	x23, x22
	b.ne	LBB0_3
; %bb.2:
	ldr	x22, [x24, #8]
	mov	x23, x8
LBB0_3:
	cmp	x8, x22
	b.ge	LBB0_11
; %bb.4:
Lloh0:
	adrp	x25, _MAP_ENTRY_USER_WIRED@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MAP_ENTRY_USER_WIRED@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	bl	_vm_map_entry_succ
	mov	x24, x0
	ldr	x8, [x0]
	cmp	x8, x22
	b.ge	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x20, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x24, #16]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_25
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x26, [x24, #8]
	cmp	x22, x26
	b.le	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	bl	_vm_map_entry_succ
	ldr	x8, [x0]
	cmp	x26, x8
	b.eq	LBB0_5
LBB0_10:
	mov	x0, x19
	bl	_vm_map_unlock_read
Lloh2:
	adrp	x8, _KERN_INVALID_ADDRESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KERN_INVALID_ADDRESS@GOTPAGEOFF]
	b	LBB0_24
LBB0_11:
	cbz	x20, LBB0_13
; %bb.12:
	ldr	w0, [x19, #4]
	mov	x1, x23
	mov	x2, x22
	bl	_pmap_remove
LBB0_13:
Lloh4:
	adrp	x8, _FALSE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh6:
	ldr	x28, [x8]
	ldr	x0, [sp, #16]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x0, [sp, #24]
	bl	_vm_map_entry_succ
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	str	x0, [sp, #24]
LBB0_16:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x0]
	cmp	x8, x22
	b.ge	LBB0_23
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	x9, [x0, #24]
	sub	x8, x23, x8
	add	x25, x9, x8
	ldr	x8, [x0, #8]
	cmp	x22, x8
	csel	x8, x22, x8, lt
	sub	x24, x8, x23
	ldr	w8, [x0, #16]
Lloh7:
	adrp	x9, _MAP_ENTRY_IS_SUB_MAP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MAP_ENTRY_IS_SUB_MAP@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	x27, [x0, #40]
	mov	x0, x27
	bl	_vm_map_lock_read
	add	x2, sp, #8
	mov	x0, x27
	mov	x1, x25
	bl	_vm_map_lookup_entry
	ldr	x8, [sp, #8]
	ldp	x10, x9, [x8]
	sub	x9, x9, x25
	cmp	x9, x24
	csel	x24, x9, x24, lt
	ldr	w26, [x8, #32]
	ldr	x8, [x8, #24]
	add	x8, x8, x25
	sub	x25, x8, x10
	mov	x0, x27
	bl	_vm_map_unlock_read
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=2
	ldr	w26, [x0, #32]
LBB0_20:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	x0, x26
	bl	_vm_object_reference
	ldr	w27, [x19]
	mov	x0, x19
	bl	_vm_map_unlock_read
	mov	x0, x26
	mov	x1, x25
	mov	x2, x24
	mov	x3, x21
	mov	x4, x20
	bl	_vm_object_sync
Lloh10:
	adrp	x8, _TRUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	w0, #0
	csel	x28, x8, x28, eq
	add	x23, x24, x23
	mov	x0, x26
	bl	_vm_object_deallocate
	mov	x0, x19
	bl	_vm_map_lock_read
	ldr	w8, [x19]
	cmp	w27, w8
	b.eq	LBB0_14
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=2
	add	x2, sp, #24
	mov	x0, x19
	mov	x1, x23
	bl	_vm_map_lookup_entry
	cbz	w0, LBB0_14
; %bb.22:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	x0, [sp, #24]
	b	LBB0_16
LBB0_23:
	mov	x0, x19
	bl	_vm_map_unlock_read
Lloh13:
	adrp	x8, _KERN_FAILURE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KERN_FAILURE@GOTPAGEOFF]
Lloh15:
	adrp	x9, _KERN_SUCCESS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _KERN_SUCCESS@GOTPAGEOFF]
	cmp	x28, #0
	csel	x8, x9, x8, eq
LBB0_24:
	ldr	w0, [x8]
	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_25:
	mov	x0, x19
	bl	_vm_map_unlock_read
Lloh17:
	adrp	x8, _KERN_INVALID_ARGUMENT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _KERN_INVALID_ARGUMENT@GOTPAGEOFF]
	b	LBB0_24
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_INVALID_ADDRESS,4,2       ; @KERN_INVALID_ADDRESS
	.comm	_MAP_ENTRY_USER_WIRED,4,2       ; @MAP_ENTRY_USER_WIRED
	.comm	_KERN_INVALID_ARGUMENT,4,2      ; @KERN_INVALID_ARGUMENT
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_MAP_ENTRY_IS_SUB_MAP,4,2       ; @MAP_ENTRY_IS_SUB_MAP
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_KERN_FAILURE,4,2               ; @KERN_FAILURE
	.comm	_KERN_SUCCESS,4,2               ; @KERN_SUCCESS
.subsections_via_symbols
