	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtrace_aggregate_snap          ## -- Begin function dtrace_aggregate_snap
	.p2align	4, 0x90
_dtrace_aggregate_snap:                 ## @dtrace_aggregate_snap
	.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	%rdi, %r14
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_gethrtime
	movq	8(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.1:
	movq	_DTRACEOPT_AGGRATE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%r14), %rsi
	movq	(%rsi,%rdx,8), %rdx
	subq	%rcx, %rax
	cmpq	%rdx, %rax
	jl	LBB0_11
## %bb.2:
	addq	%rdx, %rcx
	movq	%rcx, %rax
LBB0_3:
	movq	%rax, 8(%r14)
	cmpl	$0, 16(%r14)
	je	LBB0_12
## %bb.4:
	cmpq	$0, 40(%r14)
	je	LBB0_11
## %bb.5:
	cmpl	$0, 24(%r14)
	jle	LBB0_11
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_dt_aggregate_snap_cpu
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	24(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
## %bb.9:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dt_set_errno                   ## TAILCALL
LBB0_10:
	movl	%eax, %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DTRACEOPT_AGGRATE,8,3          ## @DTRACEOPT_AGGRATE
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtrace_aggregate_snap          ; -- Begin function dtrace_aggregate_snap
	.p2align	2
_dtrace_aggregate_snap:                 ; @dtrace_aggregate_snap
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_gethrtime
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _DTRACEOPT_AGGRATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DTRACEOPT_AGGRATE@GOTPAGEOFF]
	ldr	x10, [x19]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x10, x9, lsl #3]
	sub	x10, x0, x8
	cmp	x10, x9
	b.lt	LBB0_9
; %bb.2:
	add	x0, x8, x9
LBB0_3:
	str	x0, [x19, #8]
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_11
; %bb.4:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_9
; %bb.5:
	ldr	w8, [x19, #24]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x20, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	w1, [x8, x20, lsl #2]
	mov	x0, x19
	bl	_dt_aggregate_snap_cpu
	cbnz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19, #24]
	cmp	x20, x8
	b.lt	LBB0_7
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dt_set_errno
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DTRACEOPT_AGGRATE,8,3          ; @DTRACEOPT_AGGRATE
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
