	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_map_submap                  ## -- Begin function vm_map_submap
	.p2align	4, 0x90
_vm_map_submap:                         ## @vm_map_submap
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_KERN_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rcx, %rdi
	callq	_vm_map_lock
	movq	_MAP_IS_SUB_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_vm_map_unlock
	movq	%rbx, %rdi
	callq	_vm_map_lock
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_VM_MAP_RANGE_CHECK
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_vm_map_lookup_entry
	movq	-48(%rbp), %rsi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_vm_map_clip_start
	movq	-48(%rbp), %rsi
	jmp	LBB0_3
LBB0_2:
	movq	%rsi, %rdi
	callq	_vm_map_entry_succ
	movq	%rax, %rsi
	movq	%rax, -48(%rbp)
LBB0_3:
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_vm_map_clip_end
	movq	-48(%rbp), %rax
	cmpq	%r13, (%rax)
	jne	LBB0_8
## %bb.4:
	cmpq	%r12, 8(%rax)
	jne	LBB0_8
## %bb.5:
	movl	16(%rax), %ecx
	movq	_MAP_ENTRY_COW@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_8
## %bb.6:
	cmpq	$0, 32(%rax)
	jne	LBB0_8
## %bb.7:
	movq	%r15, 24(%rax)
	movq	_MAP_ENTRY_IS_SUB_MAP@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 16(%rax)
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_8:
	movq	%rbx, %rdi
	callq	_vm_map_unlock
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_vm_map_lock
	movq	_MAP_IS_SUB_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_vm_map_unlock
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KERN_INVALID_ARGUMENT,4,2      ## @KERN_INVALID_ARGUMENT
	.comm	_MAP_IS_SUB_MAP,4,2             ## @MAP_IS_SUB_MAP
	.comm	_MAP_ENTRY_COW,4,2              ## @MAP_ENTRY_COW
	.comm	_MAP_ENTRY_IS_SUB_MAP,4,2       ## @MAP_ENTRY_IS_SUB_MAP
	.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_submap                  ; -- Begin function vm_map_submap
	.p2align	2
_vm_map_submap:                         ; @vm_map_submap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _KERN_INVALID_ARGUMENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KERN_INVALID_ARGUMENT@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x3
	bl	_vm_map_lock
Lloh3:
	adrp	x24, _MAP_IS_SUB_MAP@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MAP_IS_SUB_MAP@GOTPAGEOFF]
	ldr	w8, [x24]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	bl	_vm_map_unlock
	mov	x0, x21
	bl	_vm_map_lock
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_VM_MAP_RANGE_CHECK
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x23
	bl	_vm_map_lookup_entry
	ldr	x1, [sp, #8]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x2, x23
	bl	_vm_map_clip_start
	ldr	x1, [sp, #8]
	b	LBB0_3
LBB0_2:
	mov	x0, x1
	bl	_vm_map_entry_succ
	mov	x1, x0
	str	x0, [sp, #8]
LBB0_3:
	mov	x0, x21
	mov	x2, x22
	bl	_vm_map_clip_end
	ldr	x8, [sp, #8]
	ldr	x9, [x8]
Lloh5:
	adrp	x25, _KERN_SUCCESS@GOTPAGE
Lloh6:
	ldr	x25, [x25, _KERN_SUCCESS@GOTPAGEOFF]
	cmp	x9, x23
	b.ne	LBB0_8
; %bb.4:
	ldr	x9, [x8, #8]
	cmp	x9, x22
	b.ne	LBB0_8
; %bb.5:
	ldr	w9, [x8, #16]
Lloh7:
	adrp	x10, _MAP_ENTRY_COW@GOTPAGE
Lloh8:
	ldr	x10, [x10, _MAP_ENTRY_COW@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_8
; %bb.6:
	ldr	x10, [x8, #32]
	cbnz	x10, LBB0_8
; %bb.7:
	str	x19, [x8, #24]
Lloh10:
	adrp	x10, _MAP_ENTRY_IS_SUB_MAP@GOTPAGE
Lloh11:
	ldr	x10, [x10, _MAP_ENTRY_IS_SUB_MAP@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8, #16]
	ldr	w20, [x25]
LBB0_8:
	mov	x0, x21
	bl	_vm_map_unlock
	ldr	w8, [x25]
	cmp	w20, w8
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_vm_map_lock
	ldr	w8, [x24]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	bl	_vm_map_unlock
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_INVALID_ARGUMENT,4,2      ; @KERN_INVALID_ARGUMENT
	.comm	_MAP_IS_SUB_MAP,4,2             ; @MAP_IS_SUB_MAP
	.comm	_MAP_ENTRY_COW,4,2              ; @MAP_ENTRY_COW
	.comm	_MAP_ENTRY_IS_SUB_MAP,4,2       ; @MAP_ENTRY_IS_SUB_MAP
	.comm	_KERN_SUCCESS,4,2               ; @KERN_SUCCESS
.subsections_via_symbols
