	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function inet_hist_inclusion_join_sel
_inet_hist_inclusion_join_sel:          ## @inet_hist_inclusion_join_sel
	.cfi_startproc
## %bb.0:
                                        ## kill: def $ecx killed $ecx def $rcx
	xorpd	%xmm0, %xmm0
	cmpl	$3, %ecx
	jl	LBB0_4
## %bb.1:
	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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rdx, %rbx
	movq	%rdi, %r14
	leal	-1(%rcx), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addl	$-3, %ecx
	movq	_MAX_CONSIDERED_ELEMS@GOTPCREL(%rip), %r9
	movl	%ecx, %eax
	cltd
	idivl	(%r9)
	incl	%eax
	cltq
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorpd	%xmm0, %xmm0
	xorl	%r15d, %r15d
	movl	$1, %r12d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	movl	(%rbx,%r12,4), %edx
	movq	%r14, %rdi
	movl	%r13d, %ecx
	callq	_inet_hist_value_sel
	movsd	-72(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rax, %xmm1
	addsd	%xmm1, %xmm0
	incl	%r15d
	addq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	cmpq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	jl	LBB0_2
## %bb.3:
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r15d, %xmm1
	divsd	%xmm1, %xmm0
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_4:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CONSIDERED_ELEMS,4,2       ## @MAX_CONSIDERED_ELEMS
	.no_dead_strip	_inet_hist_inclusion_join_sel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function inet_hist_inclusion_join_sel
_inet_hist_inclusion_join_sel:          ; @inet_hist_inclusion_join_sel
	.cfi_startproc
; %bb.0:
	movi	d0, #0000000000000000
	subs	w8, w3, #3
	b.lt	LBB0_4
; %bb.1:
	stp	d9, d8, [sp, #-96]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	mov	x19, x4
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w23, #0
	sub	w24, w3, #1
Lloh0:
	adrp	x9, _MAX_CONSIDERED_ELEMS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_CONSIDERED_ELEMS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	add	w8, w8, #1
	sxtw	x25, w8
	movi	d8, #0000000000000000
	mov	w26, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x20, x26, lsl #2]
	mov	x0, x22
	mov	x1, x21
	mov	x3, x19
	bl	_inet_hist_value_sel
	scvtf	d0, x0
	fadd	d8, d8, d0
	add	w23, w23, #1
	add	x26, x26, x25
	cmp	x26, x24
	b.lt	LBB0_2
; %bb.3:
	scvtf	d0, w23
	fdiv	d0, d8, d0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	.cfi_same_value w25
	.cfi_same_value w26
	.cfi_same_value b8
	.cfi_same_value b9
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CONSIDERED_ELEMS,4,2       ; @MAX_CONSIDERED_ELEMS
	.no_dead_strip	_inet_hist_inclusion_join_sel
.subsections_via_symbols
