	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lkdtm_EXEC_USERSPACE           ## -- Begin function lkdtm_EXEC_USERSPACE
	.p2align	4, 0x90
_lkdtm_EXEC_USERSPACE:                  ## @lkdtm_EXEC_USERSPACE
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movq	_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_PROT_EXEC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_MAP_ANONYMOUS@GOTPCREL(%rip), %rax
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	orl	(%rax), %r8d
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	callq	_vm_mmap
	movq	%rax, %rbx
	movq	_TASK_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_execute_user_location
	movl	(%r14), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vm_munmap                      ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pr_warn                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_PROT_WRITE,4,2                 ## @PROT_WRITE
	.comm	_PROT_EXEC,4,2                  ## @PROT_EXEC
	.comm	_MAP_ANONYMOUS,4,2              ## @MAP_ANONYMOUS
	.comm	_MAP_PRIVATE,4,2                ## @MAP_PRIVATE
	.comm	_TASK_SIZE,8,3                  ## @TASK_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate user memory\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lkdtm_EXEC_USERSPACE           ; -- Begin function lkdtm_EXEC_USERSPACE
	.p2align	2
_lkdtm_EXEC_USERSPACE:                  ; @lkdtm_EXEC_USERSPACE
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh2:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _PROT_WRITE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PROT_WRITE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _PROT_EXEC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PROT_EXEC@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _MAP_ANONYMOUS@GOTPAGE
Lloh12:
	ldr	x10, [x10, _MAP_ANONYMOUS@GOTPAGEOFF]
	orr	w3, w8, w9
Lloh13:
	ldr	w8, [x10]
Lloh14:
	adrp	x9, _MAP_PRIVATE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MAP_PRIVATE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w4, w9, w8
	mov	x0, #0
	mov	w1, #0
	mov	w5, #0
	bl	_vm_mmap
Lloh17:
	adrp	x8, _TASK_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TASK_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.hs	LBB0_2
; %bb.1:
	mov	x19, x0
	bl	_execute_user_location
	ldr	w1, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vm_munmap
LBB0_2:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pr_warn
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_PROT_WRITE,4,2                 ; @PROT_WRITE
	.comm	_PROT_EXEC,4,2                  ; @PROT_EXEC
	.comm	_MAP_ANONYMOUS,4,2              ; @MAP_ANONYMOUS
	.comm	_MAP_PRIVATE,4,2                ; @MAP_PRIVATE
	.comm	_TASK_SIZE,8,3                  ; @TASK_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate user memory\n"

.subsections_via_symbols
