	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function proc_init
_proc_init:                             ## @proc_init
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r14d
	movl	%edi, %r12d
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$32, %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	%r12d, 24(%rbx)
	movl	%r14d, (%rbx)
	movl	%r13d, 4(%rbx)
	xorl	%eax, %eax
	callq	_procstat_open_sysctl
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	_KERN_PROC_PID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-52(%rbp), %rcx
	movq	%rax, %rdi
	movl	%r12d, %edx
	callq	_procstat_getprocs
	testq	%rax, %rax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_15
## %bb.3:
	movq	%rax, %r14
	movq	16(%rbx), %rdi
	movl	12(%rbx), %edx
	movq	%rax, %rsi
	movl	$4, %ecx
	callq	_procstat_getpathname
	movl	%eax, %r15d
	movq	16(%rbx), %rdi
	movq	%r14, %rsi
	callq	_procstat_freeprocs
	testl	%r15d, %r15d
	jne	LBB0_15
## %bb.4:
	movl	12(%rbx), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_getelfclass
	cmpl	$130, %eax
	je	LBB0_11
## %bb.6:
	cmpl	$129, %eax
	jne	LBB0_13
## %bb.7:
	movq	_PR_MODEL_LP64@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_9:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_15:
	movq	%rbx, (%r12)
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_15
LBB0_11:
	movq	_PR_MODEL_ILP32@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_14:
	movl	%r14d, %edi
	callq	_close
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_KERN_PROC_PID,4,2              ## @KERN_PROC_PID
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_errno,4,2                      ## @errno
	.comm	_PR_MODEL_LP64,4,2              ## @PR_MODEL_LP64
	.comm	_PR_MODEL_ILP32,4,2             ## @PR_MODEL_ILP32
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_proc_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function proc_init
_proc_init:                             ; @proc_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x23, x2
	mov	x24, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	w0, #32
	bl	_malloc
	mov	x20, x0
	cbz	x0, LBB0_13
; %bb.1:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	str	w22, [x20, #24]
	stp	w24, w23, [x20]
	bl	_procstat_open_sysctl
	str	x0, [x20, #16]
	cbz	x0, LBB0_13
; %bb.2:
Lloh3:
	adrp	x8, _KERN_PROC_PID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KERN_PROC_PID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x2, x22
	bl	_procstat_getprocs
	cbz	x0, LBB0_13
; %bb.3:
	mov	x22, x0
	ldr	x0, [x20, #16]
	ldr	w2, [x20, #12]
	mov	x1, x22
	mov	w3, #4
	bl	_procstat_getpathname
	mov	x21, x0
	ldr	x0, [x20, #16]
	mov	x1, x22
	bl	_procstat_freeprocs
	cbnz	w21, LBB0_13
; %bb.4:
	ldr	w0, [x20, #12]
Lloh6:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_open
	tbnz	w0, #31, LBB0_8
; %bb.5:
	mov	x22, x0
	bl	_getelfclass
	cmp	w0, #130
	b.eq	LBB0_9
; %bb.6:
	cmp	w0, #129
	b.ne	LBB0_11
; %bb.7:
	mov	w21, #0
Lloh9:
	adrp	x8, _PR_MODEL_LP64@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PR_MODEL_LP64@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	b	LBB0_13
LBB0_9:
	mov	w21, #0
Lloh14:
	adrp	x8, _PR_MODEL_ILP32@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PR_MODEL_ILP32@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	b	LBB0_12
LBB0_11:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
LBB0_12:
	mov	x0, x22
	bl	_close
LBB0_13:
	str	x20, [x19]
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_KERN_PROC_PID,4,2              ; @KERN_PROC_PID
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_errno,4,2                      ; @errno
	.comm	_PR_MODEL_LP64,4,2              ; @PR_MODEL_LP64
	.comm	_PR_MODEL_ILP32,4,2             ; @PR_MODEL_ILP32
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_proc_init
.subsections_via_symbols
