	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function regex_selectivity
_regex_selectivity:                     ## @regex_selectivity
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%ecx, %r14d
                                        ## kill: def $esi killed $esi def $rsi
	testl	%esi, %esi
	jle	LBB0_5
## %bb.1:
	leal	-1(%rsi), %eax
	cmpb	$36, (%rdi,%rax)
	jne	LBB0_5
## %bb.2:
	cmpl	$1, %esi
	je	LBB0_4
## %bb.3:
	leal	-2(%rsi), %ecx
	cmpb	$92, (%rdi,%rcx)
	jne	LBB0_4
LBB0_5:
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_regex_selectivity_sub
	movl	%eax, %ebx
	movq	_FULL_WILDCARD_SEL@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	testl	%r14d, %r14d
	jle	LBB0_8
LBB0_7:
	movq	_FIXED_CHAR_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_pow
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %ebx
LBB0_8:
	movl	%ebx, %edi
	callq	_CLAMP_PROBABILITY
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	%eax, %esi
	callq	_regex_selectivity_sub
	movl	%eax, %ebx
	testl	%r14d, %r14d
	jg	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_FULL_WILDCARD_SEL,4,2          ## @FULL_WILDCARD_SEL
	.comm	_FIXED_CHAR_SEL,4,2             ## @FIXED_CHAR_SEL
	.no_dead_strip	_regex_selectivity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function regex_selectivity
_regex_selectivity:                     ; @regex_selectivity
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x3
	subs	w8, w1, #1
	b.lt	LBB0_4
; %bb.1:
	ldrb	w9, [x0, w8, uxtw]
	cmp	w9, #36
	b.ne	LBB0_4
; %bb.2:
	cmp	w1, #1
	b.eq	LBB0_7
; %bb.3:
	sub	w9, w1, #2
	ldrb	w9, [x0, w9, uxtw]
	cmp	w9, #92
	b.ne	LBB0_7
LBB0_4:
	bl	_regex_selectivity_sub
Lloh0:
	adrp	x8, _FULL_WILDCARD_SEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FULL_WILDCARD_SEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mul	w20, w8, w0
	cmp	w19, #1
	b.lt	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _FIXED_CHAR_SEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FIXED_CHAR_SEL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_pow
	sdiv	w20, w20, w0
LBB0_6:
	mov	x0, x20
	bl	_CLAMP_PROBABILITY
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x1, x8
	bl	_regex_selectivity_sub
	mov	x20, x0
	cmp	w19, #1
	b.ge	LBB0_5
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FULL_WILDCARD_SEL,4,2          ; @FULL_WILDCARD_SEL
	.comm	_FIXED_CHAR_SEL,4,2             ; @FIXED_CHAR_SEL
	.no_dead_strip	_regex_selectivity
.subsections_via_symbols
