	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_string_to_av_perm              ## -- Begin function string_to_av_perm
	.p2align	4, 0x90
_string_to_av_perm:                     ## @string_to_av_perm
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	testl	%esi, %esi
	je	LBB0_6
## %bb.1:
	cmpl	%esi, 8(%rdi)
	jl	LBB0_6
## %bb.2:
	movq	%rdx, %r14
	movq	(%rdi), %rax
	movslq	%esi, %rcx
	movq	-8(%rax,%rcx,8), %r15
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_hashtab_search
	testq	%rax, %rax
	jne	LBB0_5
LBB0_4:
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_hashtab_search
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movb	(%rax), %cl
	decb	%cl
	movl	$1, %ebx
	shll	%cl, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_string_to_av_perm              ; -- Begin function string_to_av_perm
	.p2align	2
_string_to_av_perm:                     ; @string_to_av_perm
	.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
	cbz	w1, LBB0_2
; %bb.1:
	ldr	w8, [x0, #8]
	cmp	w8, w1
	b.ge	LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_7
LBB0_3:
	mov	x19, x2
	ldr	x8, [x0]
	sub	w9, w1, #1
	ldr	x20, [x8, w9, sxtw #3]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_hashtab_search
	cbnz	x0, LBB0_6
LBB0_5:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_hashtab_search
	cbz	x0, LBB0_7
LBB0_6:
	ldr	w8, [x0]
	sub	w8, w8, #1
	mov	w9, #1
	lsl	w0, w9, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
