	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_average_num_loop_insns         ## -- Begin function average_num_loop_insns
	.p2align	4, 0x90
_average_num_loop_insns:                ## @average_num_loop_insns
	.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	%rdi, %rbx
	callq	_get_loop_body
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax), %eax
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	imull	%eax, %r15d
	addl	%r15d, %r12d
	incq	%r14
	movl	(%rbx), %eax
	cmpq	%rax, %r14
	jae	LBB0_12
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %r13
	movq	%r13, %rdi
	callq	_BB_HEAD
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_BB_END
	movl	$1, %r15d
	cmpq	%rax, %rbx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_INSN_P
	cmpq	$1, %rax
	sbbl	$-1, %r15d
	movq	%rbx, %rdi
	callq	_NEXT_INSN
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_BB_END
	cmpq	%rax, %rbx
	jne	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	movq	_BB_FREQ_MAX@GOTPCREL(%rip), %rax
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax), %eax
	imull	(%r13), %eax
	movq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edx, %edx
	idivq	%rcx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_11
LBB0_1:
	xorl	%r12d, %r12d
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	_BB_FREQ_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
	cmpl	%r12d, %ecx
	movl	$1, %ecx
	cmoval	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BB_FREQ_MAX,4,2                ## @BB_FREQ_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_average_num_loop_insns         ; -- Begin function average_num_loop_insns
	.p2align	2
_average_num_loop_insns:                ; @average_num_loop_insns
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	bl	_get_loop_body
	mov	x19, x0
	ldr	w8, [x20]
Lloh0:
	adrp	x23, _BB_FREQ_MAX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BB_FREQ_MAX@GOTPAGEOFF]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x25, #0
	mov	w24, #0
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x21]
	ldr	w10, [x23]
	mul	w9, w10, w9
	sdiv	x8, x9, x8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	madd	w24, w26, w8, w24
	add	x25, x25, #1
	ldr	w8, [x20]
	cmp	x25, x8
	b.hs	LBB0_9
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x21, [x19, x25, lsl #3]
	mov	x0, x21
	bl	_BB_HEAD
	mov	x22, x0
	mov	x0, x21
	bl	_BB_END
	mov	w26, #1
	cmp	x22, x0
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	bl	_INSN_P
	cmp	x0, #0
	cinc	w26, w26, ne
	mov	x0, x22
	bl	_NEXT_INSN
	mov	x22, x0
	mov	x0, x21
	bl	_BB_END
	cmp	x22, x0
	b.ne	LBB0_6
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x23]
	b	LBB0_4
LBB0_8:
	mov	w24, #0
LBB0_9:
	mov	x0, x19
	bl	_free
	ldr	w8, [x23]
	udiv	w9, w24, w8
	cmp	w8, w24
	csinc	w0, w9, wzr, ls
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BB_FREQ_MAX,4,2                ; @BB_FREQ_MAX
.subsections_via_symbols
