	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swrun_OS_get_procs
_swrun_OS_get_procs:                    ## @swrun_OS_get_procs
	.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
	movq	_hr_kd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_KERN_PROC_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rcx
	xorl	%edx, %edx
	callq	_kvm_getprocs
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	cmpl	$0, -28(%rbp)
	js	LBB0_9
## %bb.2:
	je	LBB0_8
## %bb.3:
	movq	%rax, %rbx
	xorl	%r14d, %r14d
	movq	_HR_SWRUN_FOUND@GOTPCREL(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %ecx
	orl	%ecx, (%rax)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_kinfo_proc_to_swrun_entry
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%r14d
	addq	$8, %rbx
	cmpl	-28(%rbp), %r14d
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	incq	%rdi
	callq	_swrun_entry_find_by_index
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rdi
	incq	%rdi
	callq	_swrun_entry_create
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_7
LBB0_9:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_syslog
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hr_kd,4,2                      ## @hr_kd
	.comm	_KERN_PROC_ALL,4,2              ## @KERN_PROC_ALL
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kvm_getprocs() failed: %m"

	.comm	_HR_SWRUN_FOUND,4,2             ## @HR_SWRUN_FOUND
	.no_dead_strip	_swrun_OS_get_procs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swrun_OS_get_procs
_swrun_OS_get_procs:                    ; @swrun_OS_get_procs
	.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
Lloh0:
	adrp	x8, _hr_kd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hr_kd@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _KERN_PROC_ALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KERN_PROC_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	w2, #0
	bl	_kvm_getprocs
	cbz	x0, LBB0_8
; %bb.1:
	ldr	w8, [sp, #12]
	tbnz	w8, #31, LBB0_8
; %bb.2:
	cbz	w8, LBB0_9
; %bb.3:
	mov	x19, x0
	mov	w20, #0
Lloh6:
	adrp	x21, _HR_SWRUN_FOUND@GOTPAGE
Lloh7:
	ldr	x21, [x21, _HR_SWRUN_FOUND@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x1]
	orr	w8, w9, w8
	str	w8, [x1]
	mov	x0, x19
	bl	_kinfo_proc_to_swrun_entry
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w20, w20, #1
	add	x19, x19, #8
	ldr	w8, [sp, #12]
	cmp	w20, w8
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x0, x8, #1
	bl	_swrun_entry_find_by_index
	mov	x1, x0
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	add	x0, x8, #1
	bl	_swrun_entry_create
	mov	x1, x0
	cbnz	x0, LBB0_4
	b	LBB0_5
LBB0_8:
Lloh8:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syslog
LBB0_9:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_hr_kd,4,2                      ; @hr_kd
	.comm	_KERN_PROC_ALL,4,2              ; @KERN_PROC_ALL
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kvm_getprocs() failed: %m"

	.comm	_HR_SWRUN_FOUND,4,2             ; @HR_SWRUN_FOUND
	.no_dead_strip	_swrun_OS_get_procs
.subsections_via_symbols
