	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function get_avg_exec_time
LCPI0_0:
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_get_avg_exec_time
	.p2align	4, 0x90
_get_avg_exec_time:                     ## @get_avg_exec_time
	.cfi_startproc
## %bb.0:
                                        ## kill: def $esi killed $esi def $rsi
	testl	%esi, %esi
	jle	LBB0_6
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	8(%rdi), %eax
	movl	%eax, %ecx
	subl	%esi, %ecx
	movq	_EXEC_CACHE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	sarl	$31, %ecx
	andl	%r8d, %ecx
	movq	(%rdi), %r9
	negl	%esi
	addl	%eax, %ecx
	xorpd	%xmm1, %xmm1
	xorl	%edi, %edi
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	xorpd	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rcx,%rsi), %eax
	cltd
	idivl	%r8d
	movslq	%edx, %rax
	movsd	(%r9,%rax,8), %xmm3             ## xmm3 = mem[0],zero
	xorl	%eax, %eax
	ucomisd	%xmm1, %xmm3
	seta	%al
	maxsd	%xmm2, %xmm3
	addsd	%xmm3, %xmm0
	addl	%eax, %edi
	incl	%esi
	jne	LBB0_2
## %bb.3:
	testl	%edi, %edi
	popq	%rbp
	je	LBB0_6
## %bb.4:
	xorps	%xmm1, %xmm1
	cvtsi2sd	%edi, %xmm1
	divsd	%xmm1, %xmm0
	retq
LBB0_6:
	xorpd	%xmm0, %xmm0
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXEC_CACHE,4,2                 ## @EXEC_CACHE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_avg_exec_time              ; -- Begin function get_avg_exec_time
	.p2align	2
_get_avg_exec_time:                     ; @get_avg_exec_time
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_10
; %bb.1:
	ldr	w10, [x0, #8]
	sub	w12, w10, w1
Lloh0:
	adrp	x8, _EXEC_CACHE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXEC_CACHE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w11, w8, w12, asr #31
	ldr	x9, [x0]
	cmp	w1, #4
	b.hs	LBB0_3
; %bb.2:
	mov	w12, #0
	mov	w13, #0
	movi	d0, #0000000000000000
	b	LBB0_6
LBB0_3:
	mov	w17, #0
	mov	w15, #0
	mov	w16, #0
	mov	w14, #0
	mov	w13, #0
	add	w0, w11, w12
	and	w12, w1, #0xfffffffc
	movi	d0, #0000000000000000
	mov	x2, #-9223372036854775808
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w3, w0, w17
	add	w4, w3, #1
	add	w5, w3, #2
	add	w6, w3, #3
	sdiv	w7, w3, w8
	msub	w3, w7, w8, w3
	sdiv	w7, w4, w8
	msub	w4, w7, w8, w4
	sdiv	w7, w5, w8
	msub	w5, w7, w8, w5
	ldr	d1, [x9, w3, sxtw #3]
	ldr	d2, [x9, w4, sxtw #3]
	sdiv	w3, w6, w8
	msub	w3, w3, w8, w6
	ldr	d3, [x9, w5, sxtw #3]
	ldr	d4, [x9, w3, sxtw #3]
	fcmp	d1, #0.0
	cinc	w15, w15, gt
	fcmp	d2, #0.0
	cinc	w16, w16, gt
	fcmp	d3, #0.0
	cinc	w14, w14, gt
	fcmp	d4, #0.0
	fmov	d5, x2
	fmaxnm	d1, d1, d5
	fmaxnm	d2, d2, d5
	fmaxnm	d3, d3, d5
	fmaxnm	d4, d4, d5
	fadd	d0, d0, d1
	fadd	d0, d0, d2
	fadd	d0, d0, d3
	fadd	d0, d0, d4
	cinc	w13, w13, gt
	add	w17, w17, #4
	cmp	w12, w17
	b.ne	LBB0_4
; %bb.5:
	add	w15, w16, w15
	add	w14, w14, w15
	add	w13, w13, w14
	cmp	w12, w1
	b.eq	LBB0_8
LBB0_6:
	sub	w12, w12, w1
	add	w10, w11, w10
	mov	x11, #-9223372036854775808
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	w14, w10, w12
	sdiv	w15, w14, w8
	msub	w14, w15, w8, w14
	ldr	d1, [x9, w14, sxtw #3]
	fcmp	d1, #0.0
	fmov	d2, x11
	fmaxnm	d1, d1, d2
	fadd	d0, d0, d1
	cinc	w13, w13, gt
	adds	w12, w12, #1
	b.lo	LBB0_7
LBB0_8:
	cbz	w13, LBB0_10
; %bb.9:
	scvtf	d1, w13
	fdiv	d0, d0, d1
	ret
LBB0_10:
	movi	d0, #0000000000000000
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EXEC_CACHE,4,2                 ; @EXEC_CACHE
.subsections_via_symbols
