	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SV_RankAsciiDecode
_SV_RankAsciiDecode:                    ## @SV_RankAsciiDecode
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %rax
	xorl	%edi, %edi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	cmpb	$0, _SV_RankAsciiDecode.s_init(%rip)
	jne	LBB0_4
## %bb.1:
	leaq	_SV_RankAsciiDecode.s_inverse_encoding(%rip), %rbx
	movq	%rbx, %rdi
	movl	$255, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	_s_ascii_encoding@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rcx,8), %rdx
	movb	%cl, (%rdx,%rbx)
	movq	8(%rax,%rcx,8), %rdx
	leal	1(%rcx), %esi
	movb	%sil, (%rdx,%rbx)
	movq	16(%rax,%rcx,8), %rdx
	leal	2(%rcx), %esi
	movb	%sil, (%rdx,%rbx)
	movq	24(%rax,%rcx,8), %rdx
	leal	3(%rcx), %esi
	movb	%sil, (%rdx,%rbx)
	addq	$4, %rcx
	cmpq	$64, %rcx
	jne	LBB0_2
## %bb.3:
	movb	$1, _SV_RankAsciiDecode.s_init(%rip)
LBB0_4:
	testl	%r14d, %r14d
	jle	LBB0_5
## %bb.6:
	movq	%r14, %r8
	movl	%r8d, %r11d
	leal	(%r14,%r14,2), %r14d
	xorl	%ecx, %ecx
	leaq	_SV_RankAsciiDecode.s_inverse_encoding(%rip), %r10
	xorl	%r12d, %r12d
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movslq	%r12d, %r12
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12), %rdi
	movl	%r13d, %edx
	leaq	-43(%rbp), %rsi
	movq	%r8, %rbx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r10, %r14
	movq	%r11, %r12
	callq	_memcpy
	movq	%r12, %r11
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r14, %r10
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movq	%rbx, %r8
	addl	%r13d, %r12d
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	addl	$-12, %r14d
	incq	%r15
	movq	%r15, %rcx
	movl	%r12d, %eax
	cmpl	%r8d, %r15d
	jge	LBB0_20
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	movl	$0, %edx
	cmpq	%r11, %rcx
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movsbq	(%r9,%rcx), %rdx
	movzbl	(%rdx,%r10), %edx
	cmpb	$-1, %dl
	je	LBB0_20
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	leaq	1(%rcx), %r15
	xorl	%eax, %eax
	movl	$0, %esi
	cmpq	%r11, %r15
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movsbq	1(%r9,%rcx), %rsi
	movzbl	(%rsi,%r10), %esi
	cmpb	$-1, %sil
	je	LBB0_20
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	xorl	%eax, %eax
	movl	$0, %edi
	cmpq	%r11, %r15
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movsbq	2(%r9,%rcx), %rdi
	movzbl	(%rdi,%r10), %edi
	cmpb	$-1, %dil
	je	LBB0_20
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	xorl	%eax, %eax
	movl	$0, %ebx
	cmpq	%r11, %r15
	jge	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movsbq	3(%r9,%rcx), %rcx
	movzbl	(%rcx,%r10), %ebx
	cmpb	$-1, %bl
	je	LBB0_20
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	shlb	$2, %dl
	movl	%esi, %eax
	shrb	$4, %al
	orb	%dl, %al
	shlb	$4, %sil
	movl	%edi, %ecx
	shrb	$2, %cl
	orb	%sil, %cl
	shlb	$6, %dil
	orb	%bl, %dil
	movb	%al, -43(%rbp)
	movb	%cl, -42(%rbp)
	movb	%dil, -41(%rbp)
	movl	$3, %r13d
	cmpq	%r11, %r15
	jl	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	leal	3(%r14), %r13d
	testl	%r14d, %r14d
	cmovnsl	%r14d, %r13d
	cmpl	$4, %r14d
	jl	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	sarl	$2, %r13d
	jmp	LBB0_18
LBB0_5:
	xorl	%eax, %eax
LBB0_20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_SV_RankAsciiDecode.s_inverse_encoding,256,4 ## @SV_RankAsciiDecode.s_inverse_encoding
.zerofill __DATA,__bss,_SV_RankAsciiDecode.s_init,1,0 ## @SV_RankAsciiDecode.s_init
	.comm	_s_ascii_encoding,8,3           ## @s_ascii_encoding
	.no_dead_strip	_SV_RankAsciiDecode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SV_RankAsciiDecode
_SV_RankAsciiDecode:                    ; @SV_RankAsciiDecode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
	adrp	x23, _SV_RankAsciiDecode.s_init@PAGE
	ldrb	w8, [x23, _SV_RankAsciiDecode.s_init@PAGEOFF]
Lloh0:
	adrp	x22, _SV_RankAsciiDecode.s_inverse_encoding@PAGE
Lloh1:
	add	x22, x22, _SV_RankAsciiDecode.s_inverse_encoding@PAGEOFF
	tbnz	w8, #0, LBB0_4
; %bb.1:
	mov	x0, x22
	mov	w1, #255
	mov	w2, #256
	bl	_memset
	mov	x8, #0
Lloh2:
	adrp	x9, _s_ascii_encoding@GOTPAGE
Lloh3:
	ldr	x9, [x9, _s_ascii_encoding@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x8, lsl #3]
	strb	w8, [x22, x10]
	add	x8, x8, #1
	cmp	x8, #64
	b.ne	LBB0_2
; %bb.3:
	mov	w8, #1
	strb	w8, [x23, _SV_RankAsciiDecode.s_init@PAGEOFF]
LBB0_4:
	cmp	w19, #1
	b.lt	LBB0_24
; %bb.5:
	mov	x8, #0
	mov	w23, #0
	mov	w24, w19
	add	w25, w19, w19, lsl #1
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	w27, #3
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x0, x21, w23, sxtw
	mov	w2, w27
	add	x1, sp, #13
	bl	_memcpy
	add	w23, w23, w27
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	sub	w25, w25, #12
	add	x8, x26, #1
	cmp	w8, w19
	b.ge	LBB0_25
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x8, x24
	b.ge	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrsb	x9, [x20, x8]
	ldrb	w9, [x22, x9]
	cmp	w9, #255
	b.ne	LBB0_12
	b	LBB0_24
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w9, #0
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x11, x8, #1
	cmp	x11, x24
	b.ge	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x10, x20, x8
	ldrsb	x10, [x10, #1]
	ldrb	w10, [x22, x10]
	cmp	w10, #255
	b.ne	LBB0_15
	b	LBB0_24
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w10, #0
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x12, x11, #1
	cmp	x12, x24
	b.ge	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x11, x20, x8
	ldrsb	x11, [x11, #2]
	ldrb	w11, [x22, x11]
	cmp	w11, #255
	b.ne	LBB0_18
	b	LBB0_24
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w11, #0
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x26, x12, #1
	cmp	x26, x24
	b.ge	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x20, x8
	ldrsb	x8, [x8, #3]
	ldrb	w8, [x22, x8]
	cmp	w8, #255
	b.ne	LBB0_21
	b	LBB0_24
LBB0_20:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w8, #0
LBB0_21:                                ;   in Loop: Header=BB0_9 Depth=1
	lsr	w12, w10, #4
	orr	w9, w12, w9, lsl #2
	strb	w9, [sp, #13]
	lsr	w9, w11, #2
	orr	w9, w9, w10, lsl #4
	strb	w9, [sp, #14]
	orr	w8, w8, w11, lsl #6
	strb	w8, [sp, #15]
	cmp	x26, x24
	b.lt	LBB0_6
; %bb.22:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w8, w25, #3
	cmp	w25, #0
	csel	w8, w8, w25, lt
	cmp	w25, #4
	b.lt	LBB0_8
; %bb.23:                               ;   in Loop: Header=BB0_9 Depth=1
	asr	w27, w8, #2
	b	LBB0_7
LBB0_24:
	mov	w23, #0
LBB0_25:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_SV_RankAsciiDecode.s_inverse_encoding,256,0 ; @SV_RankAsciiDecode.s_inverse_encoding
.zerofill __DATA,__bss,_SV_RankAsciiDecode.s_init,1,0 ; @SV_RankAsciiDecode.s_init
	.comm	_s_ascii_encoding,8,3           ; @s_ascii_encoding
	.no_dead_strip	_SV_RankAsciiDecode
.subsections_via_symbols
