	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_procstat_rusage                ## -- Begin function procstat_rusage
	.p2align	4, 0x90
_procstat_rusage:                       ## @procstat_rusage
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_procstat_opts@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	_PS_OPT_NOHEADER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_xo_emit
	movq	_PS_OPT_PERTHREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_xo_emit
LBB0_3:
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	leaq	L_.str.6(%rip), %rdx
	leaq	L_.str.7(%rip), %rcx
	xorl	%eax, %eax
	callq	_xo_emit
	movl	(%r15), %eax
LBB0_4:
	movq	_PS_OPT_PERTHREAD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.5:
	movq	(%rbx), %rsi
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_xo_emit
	movq	8(%rbx), %rsi
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_xo_emit
	leaq	L_.str.10(%rip), %rdi
	callq	_xo_open_container
	movq	_KERN_PROC_PID@GOTPCREL(%rip), %rax
	movq	_KERN_PROC_INC_THREAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	(%rbx), %rdx
	leaq	-36(%rbp), %rcx
	movq	%r14, %rdi
	callq	_procstat_getprocs
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, %r15
	movl	-36(%rbp), %esi
	movq	%rax, %rdi
	callq	_kinfo_proc_sort
	cmpl	$0, -36(%rbp)
	je	LBB0_9
## %bb.7:
	xorl	%r12d, %r12d
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_print_rusage
	incq	%r12
	movl	-36(%rbp), %eax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jb	LBB0_8
LBB0_9:
	leaq	L_.str.10(%rip), %rdi
	callq	_xo_close_container
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_procstat_freeprocs
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_print_rusage                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_procstat_opts,4,2              ## @procstat_opts
	.comm	_PS_OPT_NOHEADER,4,2            ## @PS_OPT_NOHEADER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"{d:ta/%5s} "

L_.str.1:                               ## @.str.1
	.asciz	"PID"

	.comm	_PS_OPT_PERTHREAD,4,2           ## @PS_OPT_PERTHREAD
L_.str.2:                               ## @.str.2
	.asciz	"{d:tb/%6s} "

L_.str.3:                               ## @.str.3
	.asciz	"TID"

L_.str.4:                               ## @.str.4
	.asciz	"{d:tc/%-16s %-32s %14s}\n"

L_.str.5:                               ## @.str.5
	.asciz	"COMM"

L_.str.6:                               ## @.str.6
	.asciz	"RESOURCE"

L_.str.7:                               ## @.str.7
	.asciz	"VALUE        "

L_.str.8:                               ## @.str.8
	.asciz	"{e:process_id/%d}"

L_.str.9:                               ## @.str.9
	.asciz	"{e:command/%s}"

L_.str.10:                              ## @.str.10
	.asciz	"threads"

	.comm	_KERN_PROC_PID,4,2              ## @KERN_PROC_PID
	.comm	_KERN_PROC_INC_THREAD,4,2       ## @KERN_PROC_INC_THREAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_procstat_rusage                ; -- Begin function procstat_rusage
	.p2align	2
_procstat_rusage:                       ; @procstat_rusage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _procstat_opts@GOTPAGE
Lloh1:
	ldr	x21, [x21, _procstat_opts@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _PS_OPT_NOHEADER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PS_OPT_NOHEADER@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x22, _PS_OPT_PERTHREAD@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PS_OPT_PERTHREAD@GOTPAGEOFF]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.1:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_xo_emit
	ldr	w8, [x21]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_xo_emit
LBB0_3:
Lloh15:
	adrp	x8, l_.str.7@PAGE
Lloh16:
	add	x8, x8, l_.str.7@PAGEOFF
Lloh17:
	adrp	x9, l_.str.6@PAGE
Lloh18:
	add	x9, x9, l_.str.6@PAGEOFF
	stp	x9, x8, [sp]
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_xo_emit
	ldr	w8, [x21]
LBB0_4:
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.5:
	ldr	x1, [x20]
Lloh23:
	adrp	x0, l_.str.8@PAGE
Lloh24:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_xo_emit
	ldr	x1, [x20, #8]
Lloh25:
	adrp	x0, l_.str.9@PAGE
Lloh26:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_xo_emit
Lloh27:
	adrp	x0, l_.str.10@PAGE
Lloh28:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_xo_open_container
Lloh29:
	adrp	x8, _KERN_PROC_PID@GOTPAGE
Lloh30:
	ldr	x8, [x8, _KERN_PROC_PID@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _KERN_PROC_INC_THREAD@GOTPAGE
Lloh33:
	ldr	x9, [x9, _KERN_PROC_INC_THREAD@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldr	x2, [x20]
	add	x3, sp, #28
	mov	x0, x19
	bl	_procstat_getprocs
	cbz	x0, LBB0_10
; %bb.6:
	mov	x20, x0
	ldr	w1, [sp, #28]
	bl	_kinfo_proc_sort
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_9
; %bb.7:
	mov	x22, #0
	mov	x21, x20
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_print_rusage
	add	x22, x22, #1
	ldr	w8, [sp, #28]
	add	x21, x21, #16
	cmp	x22, x8
	b.lo	LBB0_8
LBB0_9:
Lloh35:
	adrp	x0, l_.str.10@PAGE
Lloh36:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_xo_close_container
	mov	x0, x19
	mov	x1, x20
	bl	_procstat_freeprocs
LBB0_10:
	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
	add	sp, sp, #80
	ret
LBB0_11:
	mov	x0, x20
	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
	add	sp, sp, #80
	b	_print_rusage
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_procstat_opts,4,2              ; @procstat_opts
	.comm	_PS_OPT_NOHEADER,4,2            ; @PS_OPT_NOHEADER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"{d:ta/%5s} "

l_.str.1:                               ; @.str.1
	.asciz	"PID"

	.comm	_PS_OPT_PERTHREAD,4,2           ; @PS_OPT_PERTHREAD
l_.str.2:                               ; @.str.2
	.asciz	"{d:tb/%6s} "

l_.str.3:                               ; @.str.3
	.asciz	"TID"

l_.str.4:                               ; @.str.4
	.asciz	"{d:tc/%-16s %-32s %14s}\n"

l_.str.5:                               ; @.str.5
	.asciz	"COMM"

l_.str.6:                               ; @.str.6
	.asciz	"RESOURCE"

l_.str.7:                               ; @.str.7
	.asciz	"VALUE        "

l_.str.8:                               ; @.str.8
	.asciz	"{e:process_id/%d}"

l_.str.9:                               ; @.str.9
	.asciz	"{e:command/%s}"

l_.str.10:                              ; @.str.10
	.asciz	"threads"

	.comm	_KERN_PROC_PID,4,2              ; @KERN_PROC_PID
	.comm	_KERN_PROC_INC_THREAD,4,2       ; @KERN_PROC_INC_THREAD
.subsections_via_symbols
