	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function mcelem_array_contain_overlap_selec
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mcelem_array_contain_overlap_selec:    ## @mcelem_array_contain_overlap_selec
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r12
	leal	3(%r14), %eax
	xorl	%esi, %esi
	cmpl	%ecx, %eax
	cmoveq	%rdx, %rsi
	testq	%rsi, %rsi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movslq	%r14d, %rax
	movl	(%rsi,%rax,4), %r15d
	jmp	LBB0_3
LBB0_2:
	movq	_DEFAULT_CONTAIN_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	addl	%r15d, %r15d
LBB0_3:
	movl	%r14d, %edi
	callq	_floor_log2
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_OID_ARRAY_CONTAINS_OP@GOTPCREL(%rip), %rcx
	movq	16(%rbp), %rax
	cmpq	%rax, (%rcx)
	je	LBB0_4
## %bb.5:
	xorpd	%xmm0, %xmm0
	jmp	LBB0_6
LBB0_4:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
LBB0_6:
	movl	$0, -44(%rbp)
	testl	%ebx, %ebx
	jle	LBB0_26
## %bb.7:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	imull	%ebx, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r15d, %eax
	shrl	$31, %eax
	addl	%r15d, %eax
	sarl	%eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	%ebx, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	addl	%r14d, %ebx
	xorl	%r15d, %r15d
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_8 Depth=1
	addsd	%xmm0, %xmm2
	subsd	%xmm1, %xmm2
	movsd	%xmm2, -56(%rbp)                ## 8-byte Spill
	movapd	%xmm2, %xmm1
LBB0_24:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movapd	%xmm1, %xmm0
	callq	_CLAMP_PROBABILITY
LBB0_25:                                ##   in Loop: Header=BB0_8 Depth=1
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	incq	%r15
	cmpq	-96(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_26
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	testq	%r15, %r15
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	leal	-1(%r15), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	leaq	(%rcx,%r15,4), %rsi
	movq	24(%rbp), %rdx
	callq	_element_compare
	testl	%eax, %eax
	je	LBB0_25
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%ebx, -48(%rbp)                 ## 4-byte Folded Reload
	jge	LBB0_11
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r15,4), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	leaq	-44(%rbp), %rcx
	movq	24(%rbp), %r8
	callq	_find_next_mcelem
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_20
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	testl	%eax, %eax
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=1
	movslq	-44(%rbp), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rcx,%rax,4), %xmm0
	incl	%eax
	movl	%eax, -44(%rbp)
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-44(%rbp), %eax
	cmpl	%r14d, %eax
	movq	24(%rbp), %rbx
	jge	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%r15,4), %r13
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cltq
	leaq	(%r12,%rax,4), %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_element_compare
	testl	%eax, %eax
	jns	LBB0_14
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	-44(%rbp), %eax
	incl	%eax
	movl	%eax, -44(%rbp)
	cmpl	%r14d, %eax
	jl	LBB0_13
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_DEFAULT_CONTAIN_SEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	callq	_Min
LBB0_21:                                ##   in Loop: Header=BB0_8 Depth=1
	movsd	-56(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movapd	%xmm2, %xmm1
	mulsd	%xmm0, %xmm1
	movq	16(%rbp), %rax
	movq	_OID_ARRAY_CONTAINS_OP@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_8 Depth=1
	movsd	%xmm1, -56(%rbp)                ## 8-byte Spill
	jmp	LBB0_24
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	sete	%al
	movzbl	%al, %eax
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_17
	jmp	LBB0_20
LBB0_26:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_CONTAIN_SEL,8,3        ## @DEFAULT_CONTAIN_SEL
	.comm	_OID_ARRAY_CONTAINS_OP,8,3      ## @OID_ARRAY_CONTAINS_OP
	.no_dead_strip	_mcelem_array_contain_overlap_selec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcelem_array_contain_overlap_selec
_mcelem_array_contain_overlap_selec:    ; @mcelem_array_contain_overlap_selec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x7
	str	x6, [sp, #16]                   ; 8-byte Folded Spill
	mov	x25, x5
	mov	x21, x4
	mov	x22, x1
	mov	x23, x0
	add	w8, w1, #3
	cmp	w8, w3
	csel	x26, x2, xzr, eq
Lloh0:
	adrp	x8, _DEFAULT_CONTAIN_SEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_CONTAIN_SEL@GOTPAGEOFF]
	cbz	x26, LBB0_2
; %bb.1:
	ldr	w20, [x26, w22, sxtw #2]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x8]
	lsl	w20, w8, #1
LBB0_3:
	mov	x0, x22
	bl	_floor_log2
Lloh2:
	adrp	x8, _OID_ARRAY_CONTAINS_OP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OID_ARRAY_CONTAINS_OP@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x8, x9
	movi	d0, #0000000000000000
	fmov	d1, #1.00000000
	fcsel	d8, d1, d0, eq
	str	wzr, [sp, #28]
	cmp	w25, #1
	b.lt	LBB0_19
; %bb.4:
	mov	x27, #0
	mul	w28, w0, w25
	add	w24, w25, w22
	cmp	w20, #0
	cinc	w8, w20, lt
	asr	w8, w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	w20, w25
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
Lloh5:
	adrp	x8, _DEFAULT_CONTAIN_SEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DEFAULT_CONTAIN_SEL@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_Min
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
Lloh8:
	adrp	x8, _OID_ARRAY_CONTAINS_OP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OID_ARRAY_CONTAINS_OP@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	fmul	d1, d8, d0
	fadd	d2, d8, d0
	fmsub	d0, d8, d0, d2
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x8, x9
	fcsel	d8, d1, d0, eq
	fmov	d0, d8
	bl	_CLAMP_PROBABILITY
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x27, x27, #1
	cmp	x27, x20
	b.eq	LBB0_19
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	cbz	x27, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	sub	w8, w27, #1
	add	x0, x21, w8, uxtw #2
	add	x1, x21, x27, lsl #2
	mov	x2, x19
	bl	_element_compare
	cbz	w0, LBB0_7
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w28, w24
	b.ge	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w2, [x21, x27, lsl #2]
	add	x3, sp, #28
	mov	x0, x23
	mov	x1, x22
	mov	x4, x19
	bl	_find_next_mcelem
	cbz	x26, LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w0, LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrsw	x8, [sp, #28]
	ldr	s0, [x26, x8, lsl #2]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	add	w8, w8, #1
	str	w8, [sp, #28]
	b	LBB0_6
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [sp, #28]
	cmp	w8, w22
	b.ge	LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x25, x21, x27, lsl #2
LBB0_16:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, x23, w8, sxtw #2
	mov	x1, x25
	mov	x2, x19
	bl	_element_compare
	tbz	w0, #31, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	w8, [sp, #28]
	add	w8, w8, #1
	str	w8, [sp, #28]
	cmp	w8, w22
	b.lt	LBB0_16
	b	LBB0_5
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w0, #0
	cset	w0, eq
	cbnz	x26, LBB0_12
	b	LBB0_5
LBB0_19:
	fmov	d0, d8
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_CONTAIN_SEL,8,3        ; @DEFAULT_CONTAIN_SEL
	.comm	_OID_ARRAY_CONTAINS_OP,8,3      ; @OID_ARRAY_CONTAINS_OP
	.no_dead_strip	_mcelem_array_contain_overlap_selec
.subsections_via_symbols
