	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_map_lookup_locked           ## -- Begin function vm_map_lookup_locked
	.p2align	4, 0x90
_vm_map_lookup_locked:                  ## @vm_map_lookup_locked
	.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	%r9, %r15
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	(%rdi), %r12
	movq	%r12, %rdi
	movq	%rcx, %rdx
	callq	_vm_map_lookup_entry
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%r14), %r14
	movq	_MAP_ENTRY_IS_SUB_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_KERN_FAILURE@GOTPCREL(%rip), %rax
	testl	%ecx, (%r14)
	jne	LBB0_13
## %bb.3:
	movq	_VM_PROT_READ@GOTPCREL(%rip), %rsi
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %r8
	movl	(%r8), %edx
	orl	(%rsi), %edx
	movq	_VM_PROT_EXECUTE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movl	4(%r14), %ecx
	andl	%ebx, %edx
	movl	%ecx, %esi
	notl	%esi
	testl	%esi, %edx
	jne	LBB0_4
## %bb.5:
	movq	24(%rbp), %rsi
	xorl	%edi, %edi
	cmpq	$0, 8(%r14)
	setne	%dil
	movl	%edi, (%rsi)
	je	LBB0_7
## %bb.6:
	movl	4(%r14), %edx
LBB0_7:
	movq	_MAP_ENTRY_NEEDS_COPY@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%r14)
	je	LBB0_10
## %bb.8:
	movl	(%r8), %esi
	testl	%edx, %esi
	jne	LBB0_13
## %bb.9:
	notl	%esi
	andl	%esi, %ecx
LBB0_10:
	cmpq	$0, 16(%r14)
	jne	LBB0_12
## %bb.11:
	cmpl	$0, (%r12)
	je	LBB0_13
LBB0_12:
	movq	16(%rbp), %r12
	subq	32(%r14), %r13
	addq	24(%r14), %r13
	movq	%r13, %rdi
	movl	%ecx, %ebx
	callq	_OFF_TO_IDX
	movl	%eax, (%r15)
	movq	16(%r14), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	%ebx, (%r12)
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_1:
	movq	_KERN_INVALID_ADDRESS@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_4:
	movq	_KERN_PROTECTION_FAILURE@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	addq	$8, %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_IS_SUB_MAP,4,2       ## @MAP_ENTRY_IS_SUB_MAP
	.comm	_KERN_FAILURE,4,2               ## @KERN_FAILURE
	.comm	_VM_PROT_READ,4,2               ## @VM_PROT_READ
	.comm	_VM_PROT_WRITE,4,2              ## @VM_PROT_WRITE
	.comm	_VM_PROT_EXECUTE,4,2            ## @VM_PROT_EXECUTE
	.comm	_KERN_PROTECTION_FAILURE,4,2    ## @KERN_PROTECTION_FAILURE
	.comm	_MAP_ENTRY_NEEDS_COPY,4,2       ## @MAP_ENTRY_NEEDS_COPY
	.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_lookup_locked           ; -- Begin function vm_map_lookup_locked
	.p2align	2
_vm_map_lookup_locked:                  ; @vm_map_lookup_locked
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x7
	mov	x19, x6
	mov	x21, x5
	mov	x20, x4
	mov	x26, x3
	mov	x25, x2
	mov	x22, x1
	ldr	x23, [x0]
	mov	x0, x23
	mov	x2, x3
	bl	_vm_map_lookup_entry
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x26, [x26]
	ldr	w8, [x26]
Lloh0:
	adrp	x9, _MAP_ENTRY_IS_SUB_MAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAP_ENTRY_IS_SUB_MAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _KERN_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KERN_FAILURE@GOTPAGEOFF]
	b	LBB0_14
LBB0_3:
Lloh5:
	adrp	x8, _KERN_INVALID_ADDRESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KERN_INVALID_ADDRESS@GOTPAGEOFF]
	b	LBB0_14
LBB0_4:
Lloh7:
	adrp	x8, _VM_PROT_READ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VM_PROT_READ@GOTPAGEOFF]
	ldr	w27, [x26, #4]
Lloh9:
	ldr	w9, [x8]
Lloh10:
	adrp	x8, _VM_PROT_WRITE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VM_PROT_WRITE@GOTPAGEOFF]
	ldr	w10, [x8]
	orr	w9, w10, w9
Lloh12:
	adrp	x10, _VM_PROT_EXECUTE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _VM_PROT_EXECUTE@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w9, w10
	and	w9, w9, w25
	bics	wzr, w9, w27
	b.ne	LBB0_13
; %bb.5:
	ldr	x10, [x26, #8]
	cmp	x10, #0
	cset	w11, ne
	str	w11, [x24]
	cbz	x10, LBB0_7
; %bb.6:
	ldr	w9, [x26, #4]
LBB0_7:
	ldr	w10, [x26]
Lloh15:
	adrp	x11, _MAP_ENTRY_NEEDS_COPY@GOTPAGE
Lloh16:
	ldr	x11, [x11, _MAP_ENTRY_NEEDS_COPY@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_10
; %bb.8:
	ldr	w8, [x8]
	tst	w8, w9
	b.ne	LBB0_2
; %bb.9:
	bic	w27, w27, w8
LBB0_10:
	ldr	x8, [x26, #16]
	cbnz	x8, LBB0_12
; %bb.11:
	ldr	w8, [x23]
	cbz	w8, LBB0_2
LBB0_12:
	ldp	x9, x8, [x26, #24]
	sub	x8, x22, x8
	add	x0, x8, x9
	bl	_OFF_TO_IDX
	str	w0, [x21]
	ldr	x8, [x26, #16]
	str	x8, [x20]
	str	w27, [x19]
Lloh18:
	adrp	x8, _KERN_SUCCESS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _KERN_SUCCESS@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh20:
	adrp	x8, _KERN_PROTECTION_FAILURE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _KERN_PROTECTION_FAILURE@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_INVALID_ADDRESS,4,2       ; @KERN_INVALID_ADDRESS
	.comm	_MAP_ENTRY_IS_SUB_MAP,4,2       ; @MAP_ENTRY_IS_SUB_MAP
	.comm	_KERN_FAILURE,4,2               ; @KERN_FAILURE
	.comm	_VM_PROT_READ,4,2               ; @VM_PROT_READ
	.comm	_VM_PROT_WRITE,4,2              ; @VM_PROT_WRITE
	.comm	_VM_PROT_EXECUTE,4,2            ; @VM_PROT_EXECUTE
	.comm	_KERN_PROTECTION_FAILURE,4,2    ; @KERN_PROTECTION_FAILURE
	.comm	_MAP_ENTRY_NEEDS_COPY,4,2       ; @MAP_ENTRY_NEEDS_COPY
	.comm	_KERN_SUCCESS,4,2               ; @KERN_SUCCESS
.subsections_via_symbols
