	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_procctl                    ## -- Begin function cpu_procctl
	.p2align	4, 0x90
_cpu_procctl:                           ## @cpu_procctl
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.1:
	movq	_P_PID@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_10
## %bb.2:
	movq	%r8, %r14
	movl	%ecx, %ebx
	movl	%edx, %r15d
	cmpl	$129, %ecx
	jne	LBB0_7
## %bb.3:
	movq	_PRIV_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_priv_check
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_copyin
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movl	-28(%rbp), %eax
	movq	_PROC_KPTI_CTL_ENABLE_ON_EXEC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.6:
	movq	_PROC_KPTI_CTL_DISABLE_ON_EXEC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_PGET_CANSEE@GOTPCREL(%rip), %rax
	movq	_PGET_NOTWEXIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_PGET_NOTID@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movl	%r15d, %edi
	callq	_pget
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movq	-40(%rbp), %rdi
	leaq	-28(%rbp), %rdx
	movl	%ebx, %esi
	callq	_cpu_procctl_kpti
	movq	-40(%rbp), %rdi
	callq	_PROC_UNLOCK
	xorl	%eax, %eax
	cmpl	$128, %ebx
	jne	LBB0_11
## %bb.9:
	leaq	-28(%rbp), %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_copyout
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_P_PID,4,2                      ## @P_PID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PRIV_IO,4,2                    ## @PRIV_IO
	.comm	_PROC_KPTI_CTL_ENABLE_ON_EXEC,4,2 ## @PROC_KPTI_CTL_ENABLE_ON_EXEC
	.comm	_PROC_KPTI_CTL_DISABLE_ON_EXEC,4,2 ## @PROC_KPTI_CTL_DISABLE_ON_EXEC
	.comm	_PGET_CANSEE,4,2                ## @PGET_CANSEE
	.comm	_PGET_NOTWEXIT,4,2              ## @PGET_NOTWEXIT
	.comm	_PGET_NOTID,4,2                 ## @PGET_NOTID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_procctl                    ; -- Begin function cpu_procctl
	.p2align	2
_cpu_procctl:                           ; @cpu_procctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	and	w8, w3, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _P_PID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P_PID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_9
; %bb.2:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	cmp	w3, #129
	b.ne	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _PRIV_IO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PRIV_IO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_priv_check
	cbnz	w0, LBB0_10
; %bb.4:
	add	x1, sp, #4
	mov	x0, x19
	mov	w2, #4
	bl	_copyin
	cbnz	w0, LBB0_10
; %bb.5:
	ldr	w8, [sp, #4]
Lloh6:
	adrp	x9, _PROC_KPTI_CTL_ENABLE_ON_EXEC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PROC_KPTI_CTL_ENABLE_ON_EXEC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _PROC_KPTI_CTL_DISABLE_ON_EXEC@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PROC_KPTI_CTL_DISABLE_ON_EXEC@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_9
LBB0_6:
Lloh12:
	adrp	x8, _PGET_CANSEE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PGET_CANSEE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _PGET_NOTWEXIT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PGET_NOTWEXIT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _PGET_NOTID@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PGET_NOTID@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w1, w8, w9
	add	x2, sp, #8
	mov	x0, x21
	bl	_pget
	cbnz	w0, LBB0_10
; %bb.7:
	ldr	x0, [sp, #8]
	add	x2, sp, #4
	mov	x1, x20
	bl	_cpu_procctl_kpti
	ldr	x0, [sp, #8]
	bl	_PROC_UNLOCK
	cmp	w20, #128
	b.ne	LBB0_11
; %bb.8:
	add	x0, sp, #4
	mov	x1, x19
	mov	w2, #4
	bl	_copyout
	b	LBB0_10
LBB0_9:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_P_PID,4,2                      ; @P_PID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PRIV_IO,4,2                    ; @PRIV_IO
	.comm	_PROC_KPTI_CTL_ENABLE_ON_EXEC,4,2 ; @PROC_KPTI_CTL_ENABLE_ON_EXEC
	.comm	_PROC_KPTI_CTL_DISABLE_ON_EXEC,4,2 ; @PROC_KPTI_CTL_DISABLE_ON_EXEC
	.comm	_PGET_CANSEE,4,2                ; @PGET_CANSEE
	.comm	_PGET_NOTWEXIT,4,2              ; @PGET_NOTWEXIT
	.comm	_PGET_NOTID,4,2                 ; @PGET_NOTID
.subsections_via_symbols
