	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function inet_hist_value_sel
LCPI0_0:
	.quad	0x7ff8000000000000              ## double NaN
LCPI0_1:
	.quad	0x4000000000000000              ## double 2
LCPI0_2:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_inet_hist_value_sel:                   ## @inet_hist_value_sel
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorpd	%xmm0, %xmm0
	cmpl	$2, %esi
	jl	LBB0_19
## %bb.1:
	movl	%ecx, %r12d
	movl	%edx, %ecx
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leal	-2(%r14), %eax
	movq	_MAX_CONSIDERED_ELEMS@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	movl	%eax, %r15d
	incl	%r15d
	movl	%ecx, %edi
	callq	_DatumGetInetPP
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%rax, %r12
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_DatumGetInetPP
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_inet_inclusion_cmp
	cmpl	%r14d, %r15d
	jge	LBB0_17
## %bb.2:
	movl	%eax, %ebx
	movslq	%r15d, %rax
	movl	%r14d, %ecx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rax, %r14
	xorl	%r12d, %r12d
	xorpd	%xmm0, %xmm0
	movq	%rax, %r15
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	LCPI0_2(%rip), %xmm0
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r12d
	addq	%r14, %r15
	movl	%eax, %ebx
	cmpq	-104(%rbp), %r15                ## 8-byte Folded Reload
	jge	LBB0_18
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r15,4), %edi
	callq	_DatumGetInetPP
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_inet_inclusion_cmp
	movl	%ebx, %ecx
	orl	%eax, %ecx
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%ebx, %ebx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jg	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %eax
	jns	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	testl	%ebx, %ebx
	js	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %eax
	jg	LBB0_16
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_inet_hist_match_divider
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_inet_hist_match_divider
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	testl	%edi, %edi
	jns	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %eax
	jns	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	jmp	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %esi
	callq	_Max
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	movl	%eax, %edi
	callq	_pow
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	%xmm1, %xmm0
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_4
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	jmp	LBB0_4
LBB0_17:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	jmp	LBB0_19
LBB0_18:
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r12d, %xmm1
	divsd	%xmm1, %xmm0
LBB0_19:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CONSIDERED_ELEMS,4,2       ## @MAX_CONSIDERED_ELEMS
	.no_dead_strip	_inet_hist_value_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_value_sel
_inet_hist_value_sel:                   ; @inet_hist_value_sel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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 w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	movi	d0, #0000000000000000
	subs	w8, w1, #2
	b.lt	LBB0_15
; %bb.1:
	mov	x19, x3
	mov	x24, x1
	mov	x25, x0
Lloh0:
	adrp	x9, _MAX_CONSIDERED_ELEMS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_CONSIDERED_ELEMS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	add	w23, w8, #1
	mov	x0, x2
	bl	_DatumGetInetPP
	mov	x21, x0
	ldr	w0, [x25]
	bl	_DatumGetInetPP
	mov	x22, x0
	mov	x1, x21
	mov	x2, x19
	bl	_inet_inclusion_cmp
	cmp	w23, w24
	b.ge	LBB0_13
; %bb.2:
	mov	x20, x0
	str	x25, [sp, #8]                   ; 8-byte Folded Spill
	mov	w25, #0
	sxtw	x26, w23
	mov	w27, w24
	movi	d8, #0000000000000000
	fmov	d9, #1.00000000
	mov	x28, x26
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	fadd	d8, d8, d9
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w25, w25, #1
	add	x28, x28, x26
	cmp	x28, x27
	b.ge	LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x20
	mov	x24, x22
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w0, [x8, x28, lsl #2]
	bl	_DatumGetInetPP
	mov	x22, x0
	mov	x1, x21
	mov	x2, x19
	bl	_inet_inclusion_cmp
	mov	x20, x0
	orr	w8, w23, w0
	cbz	w8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w23, #0
	b.gt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	tbz	w20, #31, LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	tbnz	w23, #31, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w20, #0
	b.gt	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	mov	x1, x21
	mov	x2, x19
	bl	_inet_hist_match_divider
	mov	x24, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_inet_hist_match_divider
	mov	x1, x0
	tbz	w24, #31, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	tbnz	w1, #31, LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_Max
	fmov	d0, #2.00000000
	bl	_pow
	fdiv	d0, d9, d0
	fadd	d8, d8, d0
	b	LBB0_4
LBB0_13:
	mov	x8, #9221120237041090560
	fmov	d0, x8
	b	LBB0_15
LBB0_14:
	scvtf	d0, w25
	fdiv	d0, d8, d0
LBB0_15:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CONSIDERED_ELEMS,4,2       ; @MAX_CONSIDERED_ELEMS
	.no_dead_strip	_inet_hist_value_sel
.subsections_via_symbols
