	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_run_process               ## -- Begin function proc_run_process
	.p2align	4, 0x90
_proc_run_process:                      ## @proc_run_process
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	cmpq	$0, (%rdi)
	jne	LBB0_3
## %bb.1:
	movq	_FD_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_open_procinfo_files
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	_PRCFAULT@GOTPCREL(%rip), %rax
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	movq	_PRSTEP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_5:
	orl	(%rax), %ebx
	cmpl	$-1, %r15d
	je	LBB0_9
## %bb.6:
	testl	%r15d, %r15d
	jne	LBB0_8
## %bb.7:
	movq	_PRCSIG@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_9
LBB0_8:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_proc_set_current_signal
LBB0_9:
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	%ebx, -32(%rbp)
	movq	(%r14), %rdi
	movq	_PIOCRUN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_ioctl
	shrq	$63, %rax
	xorl	$1, %eax
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_FD_CTL,4,2                     ## @FD_CTL
	.comm	_PRCFAULT,4,2                   ## @PRCFAULT
	.comm	_PRSTEP,4,2                     ## @PRSTEP
	.comm	_PRCSIG,4,2                     ## @PRCSIG
	.comm	_PIOCRUN,4,2                    ## @PIOCRUN
	.comm	_PCRUN,4,2                      ## @PCRUN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_run_process               ; -- Begin function proc_run_process
	.p2align	2
_proc_run_process:                      ; @proc_run_process
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _FD_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FD_CTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_open_procinfo_files
	cbz	x0, LBB0_7
LBB0_2:
Lloh3:
	adrp	x8, _PRCFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PRCFAULT@GOTPAGEOFF]
Lloh5:
	adrp	x9, _PRSTEP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PRSTEP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	cmp	w21, #0
	csel	w9, wzr, w9, eq
	orr	w21, w9, w8
	cmn	w20, #1
	b.eq	LBB0_6
; %bb.3:
	cbnz	w20, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _PRCSIG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PRCSIG@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w21, w8, w21
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_proc_set_current_signal
LBB0_6:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	w21, [sp, #8]
	ldr	x0, [x19]
Lloh12:
	adrp	x8, _PIOCRUN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PIOCRUN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FD_CTL,4,2                     ; @FD_CTL
	.comm	_PRCFAULT,4,2                   ; @PRCFAULT
	.comm	_PRSTEP,4,2                     ; @PRSTEP
	.comm	_PRCSIG,4,2                     ; @PRCSIG
	.comm	_PIOCRUN,4,2                    ; @PIOCRUN
	.comm	_PCRUN,4,2                      ; @PCRUN
.subsections_via_symbols
