	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_map_entry_set_vnode_text    ## -- Begin function vm_map_entry_set_vnode_text
	.p2align	4, 0x90
_vm_map_entry_set_vnode_text:           ## @vm_map_entry_set_vnode_text
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	movq	_MAP_ENTRY_VN_EXEC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_MAP_ENTRY_IS_SUB_MAP@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	8(%r15), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	movq	%r15, %rsi
	callq	_KASSERT
	movq	%rbx, %rdi
	callq	_VM_OBJECT_RLOCK
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_VM_OBJECT_RLOCK
	movq	%rbx, %rdi
	callq	_VM_OBJECT_RUNLOCK
	movq	32(%r12), %rax
	movq	%r12, %rbx
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_4
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %r12
LBB0_4:
	movq	(%r12), %rax
	movq	_OBJT_DEAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.5:
	movq	_OBJT_VNODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	leaq	24(%r12), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_OBJT_SWAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.8:
	movq	_OBJ_TMPFS_NODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	8(%r12), %eax
	setne	%dil
	movslq	%r14d, %rsi
	callq	_KASSERT
	movq	_OBJ_TMPFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12)
	je	LBB0_15
## %bb.9:
	leaq	16(%r12), %rax
LBB0_10:
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_15
## %bb.11:
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_VOP_SET_TEXT_CHECKED
	jmp	LBB0_15
LBB0_14:
	movslq	%r14d, %rsi
	xorl	%edi, %edi
	callq	_KASSERT
LBB0_15:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VM_OBJECT_RUNLOCK              ## TAILCALL
LBB0_13:
	movq	%r15, %rdi
	callq	_vhold
	movq	%r12, %rdi
	callq	_VM_OBJECT_RUNLOCK
	movq	_LK_SHARED@GOTPCREL(%rip), %rax
	movq	_LK_RETRY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	_vn_lock
	movq	%r15, %rdi
	callq	_VOP_UNSET_TEXT_CHECKED
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_VOP_UNLOCK
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vdrop                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAP_ENTRY_VN_EXEC,4,2          ## @MAP_ENTRY_VN_EXEC
	.comm	_MAP_ENTRY_IS_SUB_MAP,4,2       ## @MAP_ENTRY_IS_SUB_MAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Submap with execs"

	.comm	_OBJT_DEAD,8,3                  ## @OBJT_DEAD
	.comm	_OBJT_VNODE,8,3                 ## @OBJT_VNODE
	.comm	_OBJT_SWAP,8,3                  ## @OBJT_SWAP
	.comm	_OBJ_TMPFS_NODE,4,2             ## @OBJ_TMPFS_NODE
	.comm	_OBJ_TMPFS,4,2                  ## @OBJ_TMPFS
	.comm	_LK_SHARED,4,2                  ## @LK_SHARED
	.comm	_LK_RETRY,4,2                   ## @LK_RETRY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_map_entry_set_vnode_text    ; -- Begin function vm_map_entry_set_vnode_text
	.p2align	2
_vm_map_entry_set_vnode_text:           ; @vm_map_entry_set_vnode_text
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MAP_ENTRY_VN_EXEC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAP_ENTRY_VN_EXEC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh3:
	adrp	x9, _MAP_ENTRY_IS_SUB_MAP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAP_ENTRY_IS_SUB_MAP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	x21, [x20, #8]
	cmp	x21, #0
	cset	w0, ne
	mov	x1, x20
	bl	_KASSERT
	mov	x0, x21
	bl	_VM_OBJECT_RLOCK
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x8
	mov	x0, x8
	bl	_VM_OBJECT_RLOCK
	mov	x0, x21
	bl	_VM_OBJECT_RUNLOCK
	ldr	x8, [x20, #32]
	mov	x21, x20
	cbnz	x8, LBB0_2
	b	LBB0_5
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x20, x21
LBB0_5:
	ldr	x8, [x20]
Lloh8:
	adrp	x9, _OBJT_DEAD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _OBJT_DEAD@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.6:
Lloh11:
	adrp	x9, _OBJT_VNODE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _OBJT_VNODE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	add	x8, x20, #24
	ldr	x21, [x8]
	cbnz	x21, LBB0_11
	b	LBB0_14
LBB0_8:
Lloh14:
	adrp	x9, _OBJT_SWAP@GOTPAGE
Lloh15:
	ldr	x9, [x9, _OBJT_SWAP@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.9:
	ldr	w8, [x20, #8]
Lloh17:
	adrp	x9, _OBJ_TMPFS_NODE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _OBJ_TMPFS_NODE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
	sxtw	x1, w19
	bl	_KASSERT
	ldr	w8, [x20, #8]
Lloh20:
	adrp	x9, _OBJ_TMPFS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _OBJ_TMPFS@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.10:
	add	x8, x20, #16
	ldr	x21, [x8]
	cbz	x21, LBB0_14
LBB0_11:
	cbz	w19, LBB0_15
; %bb.12:
	mov	x0, x21
	bl	_VOP_SET_TEXT_CHECKED
	b	LBB0_14
LBB0_13:
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	sxtw	x1, w19
	mov	w0, #0
	bl	_KASSERT
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_VM_OBJECT_RUNLOCK
LBB0_15:
	mov	x0, x21
	bl	_vhold
	mov	x0, x20
	bl	_VM_OBJECT_RUNLOCK
Lloh23:
	adrp	x8, _LK_SHARED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LK_SHARED@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _LK_RETRY@GOTPAGE
Lloh27:
	ldr	x9, [x9, _LK_RETRY@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x21
	bl	_vn_lock
	mov	x0, x21
	bl	_VOP_UNSET_TEXT_CHECKED
	mov	x0, x21
	mov	w1, #0
	bl	_VOP_UNLOCK
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_vdrop
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MAP_ENTRY_VN_EXEC,4,2          ; @MAP_ENTRY_VN_EXEC
	.comm	_MAP_ENTRY_IS_SUB_MAP,4,2       ; @MAP_ENTRY_IS_SUB_MAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Submap with execs"

	.comm	_OBJT_DEAD,8,3                  ; @OBJT_DEAD
	.comm	_OBJT_VNODE,8,3                 ; @OBJT_VNODE
	.comm	_OBJT_SWAP,8,3                  ; @OBJT_SWAP
	.comm	_OBJ_TMPFS_NODE,4,2             ; @OBJ_TMPFS_NODE
	.comm	_OBJ_TMPFS,4,2                  ; @OBJ_TMPFS
	.comm	_LK_SHARED,4,2                  ; @LK_SHARED
	.comm	_LK_RETRY,4,2                   ; @LK_RETRY
.subsections_via_symbols
