repo stringlengths 6 47 | file_url stringlengths 77 269 | file_path stringlengths 5 186 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-07 08:35:43 2026-01-07 08:55:24 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/quote.go | vendor/github.com/bytedance/sonic/internal/native/avx2/quote.go | // Code generated by Makefile, DO NOT EDIT.
/*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package avx2
import (
`unsafe`
`github.com/bytedance/sonic/internal/rt`
)
var F_quote func(sp unsafe.Pointer, nb int, dp unsafe.Pointer, dn unsafe.Pointer, flags uint64) (ret int)
var S_quote uintptr
//go:nosplit
func quote(sp unsafe.Pointer, nb int, dp unsafe.Pointer, dn *int, flags uint64) (ret int) {
return F_quote(rt.NoEscape(sp), nb, rt.NoEscape(dp), rt.NoEscape(unsafe.Pointer(dn)), flags)
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/vnumber_subr.go | vendor/github.com/bytedance/sonic/internal/native/avx2/vnumber_subr.go | // +build !noasm !appengine
// Code generated by asm2asm, DO NOT EDIT.
package avx2
import (
`github.com/bytedance/sonic/loader`
)
const (
_entry__vnumber = 128
)
const (
_stack__vnumber = 136
)
const (
_size__vnumber = 8496
)
var (
_pcsp__vnumber = [][2]uint32{
{0x1, 0},
{0x6, 8},
{0x8, 16},
{0xa, 24},
{0xc, 32},
{0xd, 40},
{0x11, 48},
{0x211f, 136},
{0x2120, 48},
{0x2122, 40},
{0x2124, 32},
{0x2126, 24},
{0x2128, 16},
{0x2129, 8},
{0x2130, 0},
}
)
var _cfunc_vnumber = []loader.CFunc{
{"_vnumber_entry", 0, _entry__vnumber, 0, nil},
{"_vnumber", _entry__vnumber, _size__vnumber, _stack__vnumber, _pcsp__vnumber},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/lspace_text_amd64.go | vendor/github.com/bytedance/sonic/internal/native/avx2/lspace_text_amd64.go | // +build amd64
// Code generated by asm2asm, DO NOT EDIT.
package avx2
var _text_lspace = []byte{
// .p2align 5, 0x00
// LCPI0_0
0x20, // .byte 32
0x00, //0x00000001 .byte 0
0x00, //0x00000002 .byte 0
0x00, //0x00000003 .byte 0
0x00, //0x00000004 .byte 0
0x00, //0x00000005 .byte 0
0x00, //0x00000006 .byte 0
0x00, //0x00000007 .byte 0
0x00, //0x00000008 .byte 0
0x09, //0x00000009 .byte 9
0x0a, //0x0000000a .byte 10
0x00, //0x0000000b .byte 0
0x00, //0x0000000c .byte 0
0x0d, //0x0000000d .byte 13
0x00, //0x0000000e .byte 0
0x00, //0x0000000f .byte 0
0x20, //0x00000010 .byte 32
0x00, //0x00000011 .byte 0
0x00, //0x00000012 .byte 0
0x00, //0x00000013 .byte 0
0x00, //0x00000014 .byte 0
0x00, //0x00000015 .byte 0
0x00, //0x00000016 .byte 0
0x00, //0x00000017 .byte 0
0x00, //0x00000018 .byte 0
0x09, //0x00000019 .byte 9
0x0a, //0x0000001a .byte 10
0x00, //0x0000001b .byte 0
0x00, //0x0000001c .byte 0
0x0d, //0x0000001d .byte 13
0x00, //0x0000001e .byte 0
0x00, //0x0000001f .byte 0
//0x00000020 .p2align 4, 0x90
//0x00000020 _lspace
0x55, //0x00000020 pushq %rbp
0x48, 0x89, 0xe5, //0x00000021 movq %rsp, %rbp
0x48, 0x89, 0xd0, //0x00000024 movq %rdx, %rax
0x48, 0x89, 0xf1, //0x00000027 movq %rsi, %rcx
0x48, 0x29, 0xd1, //0x0000002a subq %rdx, %rcx
0x48, 0x83, 0xf9, 0x20, //0x0000002d cmpq $32, %rcx
0x0f, 0x82, 0xc0, 0x00, 0x00, 0x00, //0x00000031 jb LBB0_1
0x48, 0x89, 0xc1, //0x00000037 movq %rax, %rcx
0x48, 0xf7, 0xd9, //0x0000003a negq %rcx
0xc5, 0xfe, 0x6f, 0x05, 0xbb, 0xff, 0xff, 0xff, //0x0000003d vmovdqu $-69(%rip), %ymm0 /* LCPI0_0+0(%rip) */
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000045 .p2align 4, 0x90
//0x00000050 LBB0_10
0xc5, 0xfe, 0x6f, 0x0c, 0x07, //0x00000050 vmovdqu (%rdi,%rax), %ymm1
0xc4, 0xe2, 0x7d, 0x00, 0xd1, //0x00000055 vpshufb %ymm1, %ymm0, %ymm2
0xc5, 0xf5, 0x74, 0xca, //0x0000005a vpcmpeqb %ymm2, %ymm1, %ymm1
0xc5, 0xfd, 0xd7, 0xd1, //0x0000005e vpmovmskb %ymm1, %edx
0x83, 0xfa, 0xff, //0x00000062 cmpl $-1, %edx
0x0f, 0x85, 0x74, 0x00, 0x00, 0x00, //0x00000065 jne LBB0_11
0x48, 0x83, 0xc0, 0x20, //0x0000006b addq $32, %rax
0x48, 0x8d, 0x14, 0x0e, //0x0000006f leaq (%rsi,%rcx), %rdx
0x48, 0x83, 0xc2, 0xe0, //0x00000073 addq $-32, %rdx
0x48, 0x83, 0xc1, 0xe0, //0x00000077 addq $-32, %rcx
0x48, 0x83, 0xfa, 0x1f, //0x0000007b cmpq $31, %rdx
0x0f, 0x87, 0xcb, 0xff, 0xff, 0xff, //0x0000007f ja LBB0_10
0x48, 0x89, 0xf8, //0x00000085 movq %rdi, %rax
0x48, 0x29, 0xc8, //0x00000088 subq %rcx, %rax
0x48, 0x01, 0xce, //0x0000008b addq %rcx, %rsi
0x48, 0x89, 0xf1, //0x0000008e movq %rsi, %rcx
0x48, 0x85, 0xc9, //0x00000091 testq %rcx, %rcx
0x0f, 0x84, 0x3d, 0x00, 0x00, 0x00, //0x00000094 je LBB0_14
//0x0000009a LBB0_5
0x4c, 0x8d, 0x04, 0x08, //0x0000009a leaq (%rax,%rcx), %r8
0x31, 0xd2, //0x0000009e xorl %edx, %edx
0x49, 0xb9, 0x00, 0x26, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, //0x000000a0 movabsq $4294977024, %r9
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x000000aa .p2align 4, 0x90
//0x000000b0 LBB0_6
0x0f, 0xbe, 0x34, 0x10, //0x000000b0 movsbl (%rax,%rdx), %esi
0x83, 0xfe, 0x20, //0x000000b4 cmpl $32, %esi
0x0f, 0x87, 0x2f, 0x00, 0x00, 0x00, //0x000000b7 ja LBB0_8
0x49, 0x0f, 0xa3, 0xf1, //0x000000bd btq %rsi, %r9
0x0f, 0x83, 0x25, 0x00, 0x00, 0x00, //0x000000c1 jae LBB0_8
0x48, 0x83, 0xc2, 0x01, //0x000000c7 addq $1, %rdx
0x48, 0x39, 0xd1, //0x000000cb cmpq %rdx, %rcx
0x0f, 0x85, 0xdc, 0xff, 0xff, 0xff, //0x000000ce jne LBB0_6
0x4c, 0x89, 0xc0, //0x000000d4 movq %r8, %rax
//0x000000d7 LBB0_14
0x48, 0x29, 0xf8, //0x000000d7 subq %rdi, %rax
0x5d, //0x000000da popq %rbp
0xc5, 0xf8, 0x77, //0x000000db vzeroupper
0xc3, //0x000000de retq
//0x000000df LBB0_11
0xf7, 0xd2, //0x000000df notl %edx
0x0f, 0xbc, 0xc2, //0x000000e1 bsfl %edx, %eax
0x48, 0x29, 0xc8, //0x000000e4 subq %rcx, %rax
0x5d, //0x000000e7 popq %rbp
0xc5, 0xf8, 0x77, //0x000000e8 vzeroupper
0xc3, //0x000000eb retq
//0x000000ec LBB0_8
0x48, 0x29, 0xf8, //0x000000ec subq %rdi, %rax
0x48, 0x01, 0xd0, //0x000000ef addq %rdx, %rax
0x5d, //0x000000f2 popq %rbp
0xc5, 0xf8, 0x77, //0x000000f3 vzeroupper
0xc3, //0x000000f6 retq
//0x000000f7 LBB0_1
0x48, 0x01, 0xf8, //0x000000f7 addq %rdi, %rax
0x48, 0x85, 0xc9, //0x000000fa testq %rcx, %rcx
0x0f, 0x85, 0x97, 0xff, 0xff, 0xff, //0x000000fd jne LBB0_5
0xe9, 0xcf, 0xff, 0xff, 0xff, //0x00000103 jmp LBB0_14
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/validate_utf8_text_amd64.go | vendor/github.com/bytedance/sonic/internal/native/avx2/validate_utf8_text_amd64.go | // +build amd64
// Code generated by asm2asm, DO NOT EDIT.
package avx2
var _text_validate_utf8 = []byte{
// .p2align 4, 0x90
// _validate_utf8
0x55, // pushq %rbp
0x48, 0x89, 0xe5, //0x00000001 movq %rsp, %rbp
0x41, 0x57, //0x00000004 pushq %r15
0x41, 0x56, //0x00000006 pushq %r14
0x41, 0x54, //0x00000008 pushq %r12
0x53, //0x0000000a pushq %rbx
0x50, //0x0000000b pushq %rax
0x4c, 0x8b, 0x17, //0x0000000c movq (%rdi), %r10
0x4c, 0x8b, 0x5f, 0x08, //0x0000000f movq $8(%rdi), %r11
0x48, 0x8b, 0x0e, //0x00000013 movq (%rsi), %rcx
0x4c, 0x01, 0xd1, //0x00000016 addq %r10, %rcx
0x4f, 0x8d, 0x04, 0x1a, //0x00000019 leaq (%r10,%r11), %r8
0x49, 0x83, 0xc0, 0xfd, //0x0000001d addq $-3, %r8
0xe9, 0x0d, 0x00, 0x00, 0x00, //0x00000021 jmp LBB0_1
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000026 .p2align 4, 0x90
//0x00000030 LBB0_19
0x48, 0x01, 0xd9, //0x00000030 addq %rbx, %rcx
//0x00000033 LBB0_1
0x4c, 0x39, 0xc1, //0x00000033 cmpq %r8, %rcx
0x0f, 0x83, 0xe1, 0x00, 0x00, 0x00, //0x00000036 jae LBB0_2
0xbb, 0x01, 0x00, 0x00, 0x00, //0x0000003c movl $1, %ebx
0x80, 0x39, 0x00, //0x00000041 cmpb $0, (%rcx)
0x0f, 0x89, 0xe6, 0xff, 0xff, 0xff, //0x00000044 jns LBB0_19
0x8b, 0x01, //0x0000004a movl (%rcx), %eax
0x89, 0xc7, //0x0000004c movl %eax, %edi
0x81, 0xe7, 0xf0, 0xc0, 0xc0, 0x00, //0x0000004e andl $12632304, %edi
0x81, 0xff, 0xe0, 0x80, 0x80, 0x00, //0x00000054 cmpl $8421600, %edi
0x0f, 0x85, 0x30, 0x00, 0x00, 0x00, //0x0000005a jne LBB0_10
0x89, 0xc7, //0x00000060 movl %eax, %edi
0x81, 0xe7, 0x0f, 0x20, 0x00, 0x00, //0x00000062 andl $8207, %edi
0x81, 0xff, 0x0d, 0x20, 0x00, 0x00, //0x00000068 cmpl $8205, %edi
0x0f, 0x84, 0x1c, 0x00, 0x00, 0x00, //0x0000006e je LBB0_10
0xbb, 0x03, 0x00, 0x00, 0x00, //0x00000074 movl $3, %ebx
0x85, 0xff, //0x00000079 testl %edi, %edi
0x0f, 0x85, 0xaf, 0xff, 0xff, 0xff, //0x0000007b jne LBB0_19
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000081 .p2align 4, 0x90
//0x00000090 LBB0_10
0x89, 0xc7, //0x00000090 movl %eax, %edi
0x81, 0xe7, 0xe0, 0xc0, 0x00, 0x00, //0x00000092 andl $49376, %edi
0x81, 0xff, 0xc0, 0x80, 0x00, 0x00, //0x00000098 cmpl $32960, %edi
0x0f, 0x85, 0x10, 0x00, 0x00, 0x00, //0x0000009e jne LBB0_12
0x89, 0xc7, //0x000000a4 movl %eax, %edi
0xbb, 0x02, 0x00, 0x00, 0x00, //0x000000a6 movl $2, %ebx
0x83, 0xe7, 0x1e, //0x000000ab andl $30, %edi
0x0f, 0x85, 0x7c, 0xff, 0xff, 0xff, //0x000000ae jne LBB0_19
//0x000000b4 LBB0_12
0x89, 0xc7, //0x000000b4 movl %eax, %edi
0x81, 0xe7, 0xf8, 0xc0, 0xc0, 0xc0, //0x000000b6 andl $-1061109512, %edi
0x81, 0xff, 0xf0, 0x80, 0x80, 0x80, //0x000000bc cmpl $-2139062032, %edi
0x0f, 0x85, 0x26, 0x00, 0x00, 0x00, //0x000000c2 jne LBB0_16
0x89, 0xc7, //0x000000c8 movl %eax, %edi
0x81, 0xe7, 0x07, 0x30, 0x00, 0x00, //0x000000ca andl $12295, %edi
0x0f, 0x84, 0x18, 0x00, 0x00, 0x00, //0x000000d0 je LBB0_16
0xbb, 0x04, 0x00, 0x00, 0x00, //0x000000d6 movl $4, %ebx
0xa8, 0x04, //0x000000db testb $4, %al
0x0f, 0x84, 0x4d, 0xff, 0xff, 0xff, //0x000000dd je LBB0_19
0x25, 0x03, 0x30, 0x00, 0x00, //0x000000e3 andl $12291, %eax
0x0f, 0x84, 0x42, 0xff, 0xff, 0xff, //0x000000e8 je LBB0_19
//0x000000ee LBB0_16
0x48, 0x89, 0xcf, //0x000000ee movq %rcx, %rdi
0x4c, 0x29, 0xd7, //0x000000f1 subq %r10, %rdi
0x48, 0x8b, 0x1a, //0x000000f4 movq (%rdx), %rbx
0x48, 0x81, 0xfb, 0x00, 0x10, 0x00, 0x00, //0x000000f7 cmpq $4096, %rbx
0x0f, 0x83, 0x97, 0x01, 0x00, 0x00, //0x000000fe jae LBB0_17
0x48, 0x63, 0xc7, //0x00000104 movslq %edi, %rax
0x48, 0x8d, 0x7b, 0x01, //0x00000107 leaq $1(%rbx), %rdi
0x48, 0x89, 0x3a, //0x0000010b movq %rdi, (%rdx)
0x48, 0x89, 0x44, 0xda, 0x08, //0x0000010e movq %rax, $8(%rdx,%rbx,8)
0xbb, 0x01, 0x00, 0x00, 0x00, //0x00000113 movl $1, %ebx
0xe9, 0x13, 0xff, 0xff, 0xff, //0x00000118 jmp LBB0_19
//0x0000011d LBB0_2
0x4d, 0x01, 0xd3, //0x0000011d addq %r10, %r11
0x4c, 0x39, 0xd9, //0x00000120 cmpq %r11, %rcx
0x0f, 0x83, 0x4e, 0x01, 0x00, 0x00, //0x00000123 jae LBB0_36
0x4c, 0x8d, 0x45, 0xdc, //0x00000129 leaq $-36(%rbp), %r8
0x4c, 0x8d, 0x4d, 0xda, //0x0000012d leaq $-38(%rbp), %r9
0xe9, 0x17, 0x00, 0x00, 0x00, //0x00000131 jmp LBB0_4
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000136 .p2align 4, 0x90
//0x00000140 LBB0_5
0x48, 0x83, 0xc1, 0x01, //0x00000140 addq $1, %rcx
0x4c, 0x39, 0xd9, //0x00000144 cmpq %r11, %rcx
0x0f, 0x83, 0x2a, 0x01, 0x00, 0x00, //0x00000147 jae LBB0_36
//0x0000014d LBB0_4
0x80, 0x39, 0x00, //0x0000014d cmpb $0, (%rcx)
0x0f, 0x89, 0xea, 0xff, 0xff, 0xff, //0x00000150 jns LBB0_5
0xc6, 0x45, 0xdc, 0x00, //0x00000156 movb $0, $-36(%rbp)
0xc6, 0x45, 0xda, 0x00, //0x0000015a movb $0, $-38(%rbp)
0x4c, 0x89, 0xdb, //0x0000015e movq %r11, %rbx
0x48, 0x29, 0xcb, //0x00000161 subq %rcx, %rbx
0x48, 0x83, 0xfb, 0x02, //0x00000164 cmpq $2, %rbx
0x0f, 0x82, 0x35, 0x00, 0x00, 0x00, //0x00000168 jb LBB0_21
0x44, 0x0f, 0xb6, 0x21, //0x0000016e movzbl (%rcx), %r12d
0x44, 0x0f, 0xb6, 0x71, 0x01, //0x00000172 movzbl $1(%rcx), %r14d
0x44, 0x88, 0x65, 0xdc, //0x00000177 movb %r12b, $-36(%rbp)
0x4c, 0x8d, 0x79, 0x02, //0x0000017b leaq $2(%rcx), %r15
0x48, 0x83, 0xc3, 0xfe, //0x0000017f addq $-2, %rbx
0x4c, 0x89, 0xcf, //0x00000183 movq %r9, %rdi
0x48, 0x85, 0xdb, //0x00000186 testq %rbx, %rbx
0x0f, 0x84, 0x29, 0x00, 0x00, 0x00, //0x00000189 je LBB0_24
//0x0000018f LBB0_25
0x41, 0x0f, 0xb6, 0x07, //0x0000018f movzbl (%r15), %eax
0x88, 0x07, //0x00000193 movb %al, (%rdi)
0x44, 0x0f, 0xb6, 0x65, 0xdc, //0x00000195 movzbl $-36(%rbp), %r12d
0x0f, 0xb6, 0x7d, 0xda, //0x0000019a movzbl $-38(%rbp), %edi
0xe9, 0x17, 0x00, 0x00, 0x00, //0x0000019e jmp LBB0_26
//0x000001a3 LBB0_21
0x45, 0x31, 0xe4, //0x000001a3 xorl %r12d, %r12d
0x45, 0x31, 0xf6, //0x000001a6 xorl %r14d, %r14d
0x4c, 0x89, 0xc7, //0x000001a9 movq %r8, %rdi
0x49, 0x89, 0xcf, //0x000001ac movq %rcx, %r15
0x48, 0x85, 0xdb, //0x000001af testq %rbx, %rbx
0x0f, 0x85, 0xd7, 0xff, 0xff, 0xff, //0x000001b2 jne LBB0_25
//0x000001b8 LBB0_24
0x31, 0xff, //0x000001b8 xorl %edi, %edi
//0x000001ba LBB0_26
0x40, 0x0f, 0xb6, 0xc7, //0x000001ba movzbl %dil, %eax
0xc1, 0xe0, 0x10, //0x000001be shll $16, %eax
0x41, 0x0f, 0xb6, 0xde, //0x000001c1 movzbl %r14b, %ebx
0xc1, 0xe3, 0x08, //0x000001c5 shll $8, %ebx
0x09, 0xc3, //0x000001c8 orl %eax, %ebx
0x41, 0x0f, 0xb6, 0xfc, //0x000001ca movzbl %r12b, %edi
0x09, 0xdf, //0x000001ce orl %ebx, %edi
0x89, 0xf8, //0x000001d0 movl %edi, %eax
0x25, 0xf0, 0xc0, 0xc0, 0x00, //0x000001d2 andl $12632304, %eax
0x3d, 0xe0, 0x80, 0x80, 0x00, //0x000001d7 cmpl $8421600, %eax
0x0f, 0x85, 0x2e, 0x00, 0x00, 0x00, //0x000001dc jne LBB0_29
0x89, 0xf8, //0x000001e2 movl %edi, %eax
0x25, 0x0f, 0x20, 0x00, 0x00, //0x000001e4 andl $8207, %eax
0x3d, 0x0d, 0x20, 0x00, 0x00, //0x000001e9 cmpl $8205, %eax
0x0f, 0x84, 0x1c, 0x00, 0x00, 0x00, //0x000001ee je LBB0_29
0xbb, 0x03, 0x00, 0x00, 0x00, //0x000001f4 movl $3, %ebx
0x85, 0xc0, //0x000001f9 testl %eax, %eax
0x0f, 0x85, 0x30, 0x00, 0x00, 0x00, //0x000001fb jne LBB0_34
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000201 .p2align 4, 0x90
//0x00000210 LBB0_29
0x41, 0xf6, 0xc4, 0x1e, //0x00000210 testb $30, %r12b
0x0f, 0x84, 0x28, 0x00, 0x00, 0x00, //0x00000214 je LBB0_31
0x81, 0xe7, 0xe0, 0xc0, 0x00, 0x00, //0x0000021a andl $49376, %edi
0xbb, 0x02, 0x00, 0x00, 0x00, //0x00000220 movl $2, %ebx
0x81, 0xff, 0xc0, 0x80, 0x00, 0x00, //0x00000225 cmpl $32960, %edi
0x0f, 0x85, 0x11, 0x00, 0x00, 0x00, //0x0000022b jne LBB0_31
//0x00000231 LBB0_34
0x48, 0x01, 0xd9, //0x00000231 addq %rbx, %rcx
0x4c, 0x39, 0xd9, //0x00000234 cmpq %r11, %rcx
0x0f, 0x82, 0x10, 0xff, 0xff, 0xff, //0x00000237 jb LBB0_4
0xe9, 0x35, 0x00, 0x00, 0x00, //0x0000023d jmp LBB0_36
//0x00000242 LBB0_31
0x48, 0x89, 0xc8, //0x00000242 movq %rcx, %rax
0x4c, 0x29, 0xd0, //0x00000245 subq %r10, %rax
0x48, 0x8b, 0x3a, //0x00000248 movq (%rdx), %rdi
0x48, 0x81, 0xff, 0x00, 0x10, 0x00, 0x00, //0x0000024b cmpq $4096, %rdi
0x0f, 0x83, 0x34, 0x00, 0x00, 0x00, //0x00000252 jae LBB0_32
0x48, 0x98, //0x00000258 cltq
0x48, 0x8d, 0x5f, 0x01, //0x0000025a leaq $1(%rdi), %rbx
0x48, 0x89, 0x1a, //0x0000025e movq %rbx, (%rdx)
0x48, 0x89, 0x44, 0xfa, 0x08, //0x00000261 movq %rax, $8(%rdx,%rdi,8)
0xbb, 0x01, 0x00, 0x00, 0x00, //0x00000266 movl $1, %ebx
0x48, 0x01, 0xd9, //0x0000026b addq %rbx, %rcx
0x4c, 0x39, 0xd9, //0x0000026e cmpq %r11, %rcx
0x0f, 0x82, 0xd6, 0xfe, 0xff, 0xff, //0x00000271 jb LBB0_4
//0x00000277 LBB0_36
0x4c, 0x29, 0xd1, //0x00000277 subq %r10, %rcx
0x48, 0x89, 0x0e, //0x0000027a movq %rcx, (%rsi)
0x31, 0xc0, //0x0000027d xorl %eax, %eax
//0x0000027f LBB0_37
0x48, 0x83, 0xc4, 0x08, //0x0000027f addq $8, %rsp
0x5b, //0x00000283 popq %rbx
0x41, 0x5c, //0x00000284 popq %r12
0x41, 0x5e, //0x00000286 popq %r14
0x41, 0x5f, //0x00000288 popq %r15
0x5d, //0x0000028a popq %rbp
0xc3, //0x0000028b retq
//0x0000028c LBB0_32
0x48, 0x89, 0x06, //0x0000028c movq %rax, (%rsi)
0x48, 0xc7, 0xc0, 0xff, 0xff, 0xff, 0xff, //0x0000028f movq $-1, %rax
0xe9, 0xe4, 0xff, 0xff, 0xff, //0x00000296 jmp LBB0_37
//0x0000029b LBB0_17
0x48, 0x89, 0x3e, //0x0000029b movq %rdi, (%rsi)
0x48, 0xc7, 0xc0, 0xff, 0xff, 0xff, 0xff, //0x0000029e movq $-1, %rax
0xe9, 0xd5, 0xff, 0xff, 0xff, //0x000002a5 jmp LBB0_37
0x00, 0x00, //0x000002aa .p2align 2, 0x00
//0x000002ac _MASK_USE_NUMBER
0x02, 0x00, 0x00, 0x00, //0x000002ac .long 2
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/validate_one_subr.go | vendor/github.com/bytedance/sonic/internal/native/avx2/validate_one_subr.go | // +build !noasm !appengine
// Code generated by asm2asm, DO NOT EDIT.
package avx2
import (
`github.com/bytedance/sonic/loader`
)
const (
_entry__validate_one = 704
)
const (
_stack__validate_one = 208
)
const (
_size__validate_one = 15136
)
var (
_pcsp__validate_one = [][2]uint32{
{0x1, 0},
{0x6, 8},
{0x8, 16},
{0xa, 24},
{0xc, 32},
{0xd, 40},
{0x14, 48},
{0x38dd, 208},
{0x38de, 48},
{0x38e0, 40},
{0x38e2, 32},
{0x38e4, 24},
{0x38e6, 16},
{0x38e7, 8},
{0x38eb, 0},
{0x3b20, 208},
}
)
var _cfunc_validate_one = []loader.CFunc{
{"_validate_one_entry", 0, _entry__validate_one, 0, nil},
{"_validate_one", _entry__validate_one, _size__validate_one, _stack__validate_one, _pcsp__validate_one},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/skip_number_subr.go | vendor/github.com/bytedance/sonic/internal/native/avx2/skip_number_subr.go | // +build !noasm !appengine
// Code generated by asm2asm, DO NOT EDIT.
package avx2
import (
`github.com/bytedance/sonic/loader`
)
const (
_entry__skip_number = 336
)
const (
_stack__skip_number = 88
)
const (
_size__skip_number = 1528
)
var (
_pcsp__skip_number = [][2]uint32{
{0x1, 0},
{0x6, 8},
{0x8, 16},
{0xa, 24},
{0xc, 32},
{0xd, 40},
{0x11, 48},
{0x5bb, 88},
{0x5bc, 48},
{0x5be, 40},
{0x5c0, 32},
{0x5c2, 24},
{0x5c4, 16},
{0x5c5, 8},
{0x5c9, 0},
{0x5f8, 88},
}
)
var _cfunc_skip_number = []loader.CFunc{
{"_skip_number_entry", 0, _entry__skip_number, 0, nil},
{"_skip_number", _entry__skip_number, _size__skip_number, _stack__skip_number, _pcsp__skip_number},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/skip_one_subr.go | vendor/github.com/bytedance/sonic/internal/native/avx2/skip_one_subr.go | // +build !noasm !appengine
// Code generated by asm2asm, DO NOT EDIT.
package avx2
import (
`github.com/bytedance/sonic/loader`
)
const (
_entry__skip_one = 672
)
const (
_stack__skip_one = 208
)
const (
_size__skip_one = 13564
)
var (
_pcsp__skip_one = [][2]uint32{
{0x1, 0},
{0x6, 8},
{0x8, 16},
{0xa, 24},
{0xc, 32},
{0xd, 40},
{0x14, 48},
{0x323f, 208},
{0x3240, 48},
{0x3242, 40},
{0x3244, 32},
{0x3246, 24},
{0x3248, 16},
{0x3249, 8},
{0x324d, 0},
{0x34fc, 208},
}
)
var _cfunc_skip_one = []loader.CFunc{
{"_skip_one_entry", 0, _entry__skip_one, 0, nil},
{"_skip_one", _entry__skip_one, _size__skip_one, _stack__skip_one, _pcsp__skip_one},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/skip_one.go | vendor/github.com/bytedance/sonic/internal/native/avx2/skip_one.go | // Code generated by Makefile, DO NOT EDIT.
/*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package avx2
import (
`unsafe`
`github.com/bytedance/sonic/internal/native/types`
`github.com/bytedance/sonic/internal/rt`
)
var F_skip_one func(s unsafe.Pointer, p unsafe.Pointer, m unsafe.Pointer, flags uint64) (ret int)
var S_skip_one uintptr
//go:nosplit
func skip_one(s *string, p *int, m *types.StateMachine, flags uint64) (ret int) {
return F_skip_one(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(m)), flags)
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/vsigned_subr.go | vendor/github.com/bytedance/sonic/internal/native/avx2/vsigned_subr.go | // +build !noasm !appengine
// Code generated by asm2asm, DO NOT EDIT.
package avx2
import (
`github.com/bytedance/sonic/loader`
)
const (
_entry__vsigned = 0
)
const (
_stack__vsigned = 16
)
const (
_size__vsigned = 356
)
var (
_pcsp__vsigned = [][2]uint32{
{0x1, 0},
{0x5, 8},
{0x72, 16},
{0x73, 8},
{0x74, 0},
{0x7f, 16},
{0x80, 8},
{0x81, 0},
{0x117, 16},
{0x118, 8},
{0x119, 0},
{0x11d, 16},
{0x11e, 8},
{0x11f, 0},
{0x155, 16},
{0x156, 8},
{0x157, 0},
{0x162, 16},
{0x163, 8},
{0x164, 0},
}
)
var _cfunc_vsigned = []loader.CFunc{
{"_vsigned_entry", 0, _entry__vsigned, 0, nil},
{"_vsigned", _entry__vsigned, _size__vsigned, _stack__vsigned, _pcsp__vsigned},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/vunsigned_text_amd64.go | vendor/github.com/bytedance/sonic/internal/native/avx2/vunsigned_text_amd64.go | // +build amd64
// Code generated by asm2asm, DO NOT EDIT.
package avx2
var _text_vunsigned = []byte{
// .p2align 4, 0x90
// _vunsigned
0x55, // pushq %rbp
0x48, 0x89, 0xe5, //0x00000001 movq %rsp, %rbp
0x41, 0x56, //0x00000004 pushq %r14
0x53, //0x00000006 pushq %rbx
0x49, 0x89, 0xd0, //0x00000007 movq %rdx, %r8
0x48, 0x8b, 0x0e, //0x0000000a movq (%rsi), %rcx
0x4c, 0x8b, 0x0f, //0x0000000d movq (%rdi), %r9
0x4c, 0x8b, 0x77, 0x08, //0x00000010 movq $8(%rdi), %r14
0x48, 0xc7, 0x02, 0x09, 0x00, 0x00, 0x00, //0x00000014 movq $9, (%rdx)
0xc5, 0xf8, 0x57, 0xc0, //0x0000001b vxorps %xmm0, %xmm0, %xmm0
0xc5, 0xf8, 0x11, 0x42, 0x08, //0x0000001f vmovups %xmm0, $8(%rdx)
0x48, 0x8b, 0x06, //0x00000024 movq (%rsi), %rax
0x48, 0x89, 0x42, 0x18, //0x00000027 movq %rax, $24(%rdx)
0x4c, 0x39, 0xf1, //0x0000002b cmpq %r14, %rcx
0x0f, 0x83, 0x1b, 0x00, 0x00, 0x00, //0x0000002e jae LBB0_1
0x41, 0x8a, 0x04, 0x09, //0x00000034 movb (%r9,%rcx), %al
0x3c, 0x2d, //0x00000038 cmpb $45, %al
0x0f, 0x85, 0x1e, 0x00, 0x00, 0x00, //0x0000003a jne LBB0_4
//0x00000040 LBB0_3
0x48, 0x89, 0x0e, //0x00000040 movq %rcx, (%rsi)
0x49, 0xc7, 0x00, 0xfa, 0xff, 0xff, 0xff, //0x00000043 movq $-6, (%r8)
0x5b, //0x0000004a popq %rbx
0x41, 0x5e, //0x0000004b popq %r14
0x5d, //0x0000004d popq %rbp
0xc3, //0x0000004e retq
//0x0000004f LBB0_1
0x4c, 0x89, 0x36, //0x0000004f movq %r14, (%rsi)
0x49, 0xc7, 0x00, 0xff, 0xff, 0xff, 0xff, //0x00000052 movq $-1, (%r8)
0x5b, //0x00000059 popq %rbx
0x41, 0x5e, //0x0000005a popq %r14
0x5d, //0x0000005c popq %rbp
0xc3, //0x0000005d retq
//0x0000005e LBB0_4
0x8d, 0x50, 0xd0, //0x0000005e leal $-48(%rax), %edx
0x80, 0xfa, 0x0a, //0x00000061 cmpb $10, %dl
0x0f, 0x82, 0x0f, 0x00, 0x00, 0x00, //0x00000064 jb LBB0_6
0x48, 0x89, 0x0e, //0x0000006a movq %rcx, (%rsi)
0x49, 0xc7, 0x00, 0xfe, 0xff, 0xff, 0xff, //0x0000006d movq $-2, (%r8)
0x5b, //0x00000074 popq %rbx
0x41, 0x5e, //0x00000075 popq %r14
0x5d, //0x00000077 popq %rbp
0xc3, //0x00000078 retq
//0x00000079 LBB0_6
0x3c, 0x30, //0x00000079 cmpb $48, %al
0x0f, 0x85, 0x26, 0x00, 0x00, 0x00, //0x0000007b jne LBB0_10
0x41, 0x8a, 0x44, 0x09, 0x01, //0x00000081 movb $1(%r9,%rcx), %al
0x04, 0xd2, //0x00000086 addb $-46, %al
0x3c, 0x37, //0x00000088 cmpb $55, %al
0x0f, 0x87, 0xc5, 0x00, 0x00, 0x00, //0x0000008a ja LBB0_9
0x0f, 0xb6, 0xc0, //0x00000090 movzbl %al, %eax
0x48, 0xba, 0x01, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, //0x00000093 movabsq $36028797027352577, %rdx
0x48, 0x0f, 0xa3, 0xc2, //0x0000009d btq %rax, %rdx
0x0f, 0x83, 0xae, 0x00, 0x00, 0x00, //0x000000a1 jae LBB0_9
//0x000000a7 LBB0_10
0x49, 0x39, 0xce, //0x000000a7 cmpq %rcx, %r14
0x49, 0x89, 0xca, //0x000000aa movq %rcx, %r10
0x4d, 0x0f, 0x47, 0xd6, //0x000000ad cmovaq %r14, %r10
0x31, 0xc0, //0x000000b1 xorl %eax, %eax
0x41, 0xbb, 0x0a, 0x00, 0x00, 0x00, //0x000000b3 movl $10, %r11d
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x000000b9 .p2align 4, 0x90
//0x000000c0 LBB0_11
0x49, 0x39, 0xca, //0x000000c0 cmpq %rcx, %r10
0x0f, 0x84, 0x80, 0x00, 0x00, 0x00, //0x000000c3 je LBB0_22
0x41, 0x0f, 0xbe, 0x1c, 0x09, //0x000000c9 movsbl (%r9,%rcx), %ebx
0x8d, 0x53, 0xd0, //0x000000ce leal $-48(%rbx), %edx
0x80, 0xfa, 0x09, //0x000000d1 cmpb $9, %dl
0x0f, 0x87, 0x44, 0x00, 0x00, 0x00, //0x000000d4 ja LBB0_17
0x49, 0xf7, 0xe3, //0x000000da mulq %r11
0x0f, 0x80, 0x28, 0x00, 0x00, 0x00, //0x000000dd jo LBB0_16
0x48, 0x83, 0xc1, 0x01, //0x000000e3 addq $1, %rcx
0x83, 0xc3, 0xd0, //0x000000e7 addl $-48, %ebx
0x31, 0xff, //0x000000ea xorl %edi, %edi
0x48, 0x01, 0xd8, //0x000000ec addq %rbx, %rax
0x40, 0x0f, 0x92, 0xc7, //0x000000ef setb %dil
0x48, 0x89, 0xfa, //0x000000f3 movq %rdi, %rdx
0x48, 0xf7, 0xda, //0x000000f6 negq %rdx
0x48, 0x31, 0xd7, //0x000000f9 xorq %rdx, %rdi
0x0f, 0x85, 0x09, 0x00, 0x00, 0x00, //0x000000fc jne LBB0_16
0x48, 0x85, 0xd2, //0x00000102 testq %rdx, %rdx
0x0f, 0x89, 0xb5, 0xff, 0xff, 0xff, //0x00000105 jns LBB0_11
//0x0000010b LBB0_16
0x48, 0x83, 0xc1, 0xff, //0x0000010b addq $-1, %rcx
0x48, 0x89, 0x0e, //0x0000010f movq %rcx, (%rsi)
0x49, 0xc7, 0x00, 0xfb, 0xff, 0xff, 0xff, //0x00000112 movq $-5, (%r8)
0x5b, //0x00000119 popq %rbx
0x41, 0x5e, //0x0000011a popq %r14
0x5d, //0x0000011c popq %rbp
0xc3, //0x0000011d retq
//0x0000011e LBB0_17
0x4c, 0x39, 0xf1, //0x0000011e cmpq %r14, %rcx
0x0f, 0x83, 0x1f, 0x00, 0x00, 0x00, //0x00000121 jae LBB0_21
0x41, 0x8a, 0x14, 0x09, //0x00000127 movb (%r9,%rcx), %dl
0x80, 0xfa, 0x2e, //0x0000012b cmpb $46, %dl
0x0f, 0x84, 0x0c, 0xff, 0xff, 0xff, //0x0000012e je LBB0_3
0x80, 0xfa, 0x45, //0x00000134 cmpb $69, %dl
0x0f, 0x84, 0x03, 0xff, 0xff, 0xff, //0x00000137 je LBB0_3
0x80, 0xfa, 0x65, //0x0000013d cmpb $101, %dl
0x0f, 0x84, 0xfa, 0xfe, 0xff, 0xff, //0x00000140 je LBB0_3
//0x00000146 LBB0_21
0x49, 0x89, 0xca, //0x00000146 movq %rcx, %r10
//0x00000149 LBB0_22
0x4c, 0x89, 0x16, //0x00000149 movq %r10, (%rsi)
0x49, 0x89, 0x40, 0x10, //0x0000014c movq %rax, $16(%r8)
0x5b, //0x00000150 popq %rbx
0x41, 0x5e, //0x00000151 popq %r14
0x5d, //0x00000153 popq %rbp
0xc3, //0x00000154 retq
//0x00000155 LBB0_9
0x48, 0x83, 0xc1, 0x01, //0x00000155 addq $1, %rcx
0x48, 0x89, 0x0e, //0x00000159 movq %rcx, (%rsi)
0x5b, //0x0000015c popq %rbx
0x41, 0x5e, //0x0000015d popq %r14
0x5d, //0x0000015f popq %rbp
0xc3, //0x00000160 retq
0x00, 0x00, 0x00, //0x00000161 .p2align 2, 0x00
//0x00000164 _MASK_USE_NUMBER
0x02, 0x00, 0x00, 0x00, //0x00000164 .long 2
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/lookup_small_key_text_amd64.go | vendor/github.com/bytedance/sonic/internal/native/avx2/lookup_small_key_text_amd64.go | // +build amd64
// Code generated by asm2asm, DO NOT EDIT.
package avx2
var _text_lookup_small_key = []byte{
// .p2align 5, 0x00
// LCPI0_0
0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, // QUAD $0x4040404040404040; QUAD $0x4040404040404040 // .space 16, '@@@@@@@@@@@@@@@@'
0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, //0x00000010 QUAD $0x4040404040404040; QUAD $0x4040404040404040 // .space 16, '@@@@@@@@@@@@@@@@'
//0x00000020 LCPI0_1
0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, //0x00000020 QUAD $0x5a5a5a5a5a5a5a5a; QUAD $0x5a5a5a5a5a5a5a5a // .space 16, 'ZZZZZZZZZZZZZZZZ'
0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, //0x00000030 QUAD $0x5a5a5a5a5a5a5a5a; QUAD $0x5a5a5a5a5a5a5a5a // .space 16, 'ZZZZZZZZZZZZZZZZ'
//0x00000040 LCPI0_2
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, //0x00000040 QUAD $0x0101010101010101; QUAD $0x0101010101010101 // .space 16, '\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01'
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, //0x00000050 QUAD $0x0101010101010101; QUAD $0x0101010101010101 // .space 16, '\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01'
//0x00000060 .p2align 4, 0x90
//0x00000060 _lookup_small_key
0x55, //0x00000060 pushq %rbp
0x48, 0x89, 0xe5, //0x00000061 movq %rsp, %rbp
0x41, 0x57, //0x00000064 pushq %r15
0x41, 0x56, //0x00000066 pushq %r14
0x41, 0x55, //0x00000068 pushq %r13
0x41, 0x54, //0x0000006a pushq %r12
0x53, //0x0000006c pushq %rbx
0x50, //0x0000006d pushq %rax
0x4c, 0x8b, 0x57, 0x08, //0x0000006e movq $8(%rdi), %r10
0x4c, 0x8b, 0x2e, //0x00000072 movq (%rsi), %r13
0x45, 0x0f, 0xb6, 0xc2, //0x00000075 movzbl %r10b, %r8d
0x4b, 0x8d, 0x0c, 0x80, //0x00000079 leaq (%r8,%r8,4), %rcx
0x45, 0x0f, 0xb6, 0x4c, 0x0d, 0x00, //0x0000007d movzbl (%r13,%rcx), %r9d
0x48, 0xc7, 0xc0, 0xff, 0xff, 0xff, 0xff, //0x00000083 movq $-1, %rax
0x45, 0x85, 0xc9, //0x0000008a testl %r9d, %r9d
0x0f, 0x84, 0xc5, 0x02, 0x00, 0x00, //0x0000008d je LBB0_40
0x4c, 0x8b, 0x1f, //0x00000093 movq (%rdi), %r11
0x41, 0x8b, 0x44, 0x0d, 0x01, //0x00000096 movl $1(%r13,%rcx), %eax
0x8d, 0xb8, 0xa5, 0x00, 0x00, 0x00, //0x0000009b leal $165(%rax), %edi
0x4c, 0x01, 0xef, //0x000000a1 addq %r13, %rdi
0x41, 0x0f, 0xb6, 0xca, //0x000000a4 movzbl %r10b, %ecx
0x41, 0x83, 0xf8, 0x09, //0x000000a8 cmpl $9, %r8d
0x48, 0x89, 0x45, 0xd0, //0x000000ac movq %rax, $-48(%rbp)
0x0f, 0x83, 0xc6, 0x00, 0x00, 0x00, //0x000000b0 jae LBB0_2
0x45, 0x8a, 0x3b, //0x000000b6 movb (%r11), %r15b
0x45, 0x8d, 0x60, 0x01, //0x000000b9 leal $1(%r8), %r12d
0x44, 0x89, 0xcb, //0x000000bd movl %r9d, %ebx
//0x000000c0 .p2align 4, 0x90
//0x000000c0 LBB0_7
0x44, 0x38, 0x3f, //0x000000c0 cmpb %r15b, (%rdi)
0x0f, 0x85, 0x97, 0x00, 0x00, 0x00, //0x000000c3 jne LBB0_8
0x44, 0x0f, 0xb6, 0x77, 0x01, //0x000000c9 movzbl $1(%rdi), %r14d
0xbe, 0x01, 0x00, 0x00, 0x00, //0x000000ce movl $1, %esi
0x45, 0x3a, 0x73, 0x01, //0x000000d3 cmpb $1(%r11), %r14b
0x0f, 0x85, 0x85, 0x00, 0x00, 0x00, //0x000000d7 jne LBB0_16
0x0f, 0xb6, 0x47, 0x02, //0x000000dd movzbl $2(%rdi), %eax
0xbe, 0x02, 0x00, 0x00, 0x00, //0x000000e1 movl $2, %esi
0x41, 0x3a, 0x43, 0x02, //0x000000e6 cmpb $2(%r11), %al
0x0f, 0x85, 0x72, 0x00, 0x00, 0x00, //0x000000ea jne LBB0_16
0x0f, 0xb6, 0x47, 0x03, //0x000000f0 movzbl $3(%rdi), %eax
0xbe, 0x03, 0x00, 0x00, 0x00, //0x000000f4 movl $3, %esi
0x41, 0x3a, 0x43, 0x03, //0x000000f9 cmpb $3(%r11), %al
0x0f, 0x85, 0x5f, 0x00, 0x00, 0x00, //0x000000fd jne LBB0_16
0x0f, 0xb6, 0x47, 0x04, //0x00000103 movzbl $4(%rdi), %eax
0xbe, 0x04, 0x00, 0x00, 0x00, //0x00000107 movl $4, %esi
0x41, 0x3a, 0x43, 0x04, //0x0000010c cmpb $4(%r11), %al
0x0f, 0x85, 0x4c, 0x00, 0x00, 0x00, //0x00000110 jne LBB0_16
0x0f, 0xb6, 0x47, 0x05, //0x00000116 movzbl $5(%rdi), %eax
0xbe, 0x05, 0x00, 0x00, 0x00, //0x0000011a movl $5, %esi
0x41, 0x3a, 0x43, 0x05, //0x0000011f cmpb $5(%r11), %al
0x0f, 0x85, 0x39, 0x00, 0x00, 0x00, //0x00000123 jne LBB0_16
0x0f, 0xb6, 0x47, 0x06, //0x00000129 movzbl $6(%rdi), %eax
0xbe, 0x06, 0x00, 0x00, 0x00, //0x0000012d movl $6, %esi
0x41, 0x3a, 0x43, 0x06, //0x00000132 cmpb $6(%r11), %al
0x0f, 0x85, 0x26, 0x00, 0x00, 0x00, //0x00000136 jne LBB0_16
0x0f, 0xb6, 0x47, 0x07, //0x0000013c movzbl $7(%rdi), %eax
0x31, 0xf6, //0x00000140 xorl %esi, %esi
0x41, 0x3a, 0x43, 0x07, //0x00000142 cmpb $7(%r11), %al
0x40, 0x0f, 0x94, 0xc6, //0x00000146 sete %sil
0x48, 0x83, 0xc6, 0x07, //0x0000014a addq $7, %rsi
0xe9, 0x0f, 0x00, 0x00, 0x00, //0x0000014e jmp LBB0_16
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000153 .p2align 4, 0x90
//0x00000160 LBB0_8
0x31, 0xf6, //0x00000160 xorl %esi, %esi
//0x00000162 LBB0_16
0x48, 0x39, 0xce, //0x00000162 cmpq %rcx, %rsi
0x0f, 0x83, 0x81, 0x01, 0x00, 0x00, //0x00000165 jae LBB0_17
0x4c, 0x01, 0xe7, //0x0000016b addq %r12, %rdi
0x83, 0xc3, 0xff, //0x0000016e addl $-1, %ebx
0x0f, 0x85, 0x49, 0xff, 0xff, 0xff, //0x00000171 jne LBB0_7
0xe9, 0x43, 0x00, 0x00, 0x00, //0x00000177 jmp LBB0_20
//0x0000017c LBB0_2
0xc4, 0xc1, 0x7e, 0x6f, 0x03, //0x0000017c vmovdqu (%r11), %ymm0
0x48, 0xc7, 0xc6, 0xff, 0xff, 0xff, 0xff, //0x00000181 movq $-1, %rsi
0x48, 0xd3, 0xe6, //0x00000188 shlq %cl, %rsi
0x45, 0x8d, 0x78, 0x01, //0x0000018b leal $1(%r8), %r15d
0x44, 0x89, 0xcb, //0x0000018f movl %r9d, %ebx
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000192 .p2align 4, 0x90
//0x000001a0 LBB0_3
0xc5, 0xfd, 0x74, 0x0f, //0x000001a0 vpcmpeqb (%rdi), %ymm0, %ymm1
0xc5, 0xfd, 0xd7, 0xc1, //0x000001a4 vpmovmskb %ymm1, %eax
0x09, 0xf0, //0x000001a8 orl %esi, %eax
0x83, 0xf8, 0xff, //0x000001aa cmpl $-1, %eax
0x0f, 0x84, 0x48, 0x01, 0x00, 0x00, //0x000001ad je LBB0_4
0x4c, 0x01, 0xff, //0x000001b3 addq %r15, %rdi
0x83, 0xc3, 0xff, //0x000001b6 addl $-1, %ebx
0x0f, 0x85, 0xe1, 0xff, 0xff, 0xff, //0x000001b9 jne LBB0_3
//0x000001bf LBB0_20
0x48, 0x83, 0xfa, 0xff, //0x000001bf cmpq $-1, %rdx
0x0f, 0x84, 0x88, 0x01, 0x00, 0x00, //0x000001c3 je LBB0_39
0x48, 0x8b, 0x45, 0xd0, //0x000001c9 movq $-48(%rbp), %rax
0x48, 0x01, 0xd0, //0x000001cd addq %rdx, %rax
0x49, 0x01, 0xc5, //0x000001d0 addq %rax, %r13
0xc4, 0xc1, 0x7e, 0x6f, 0x03, //0x000001d3 vmovdqu (%r11), %ymm0
0xc5, 0xfd, 0x64, 0x0d, 0x20, 0xfe, 0xff, 0xff, //0x000001d8 vpcmpgtb $-480(%rip), %ymm0, %ymm1 /* LCPI0_0+0(%rip) */
0xc5, 0xfe, 0x6f, 0x15, 0x38, 0xfe, 0xff, 0xff, //0x000001e0 vmovdqu $-456(%rip), %ymm2 /* LCPI0_1+0(%rip) */
0xc5, 0xed, 0x64, 0xd0, //0x000001e8 vpcmpgtb %ymm0, %ymm2, %ymm2
0xc5, 0xed, 0xdb, 0xc9, //0x000001ec vpand %ymm1, %ymm2, %ymm1
0xc5, 0xf5, 0xdb, 0x0d, 0x48, 0xfe, 0xff, 0xff, //0x000001f0 vpand $-440(%rip), %ymm1, %ymm1 /* LCPI0_2+0(%rip) */
0xc5, 0xf5, 0x71, 0xf1, 0x05, //0x000001f8 vpsllw $5, %ymm1, %ymm1
0xc5, 0xf5, 0xfc, 0xc0, //0x000001fd vpaddb %ymm0, %ymm1, %ymm0
0x41, 0x0f, 0xb6, 0xca, //0x00000201 movzbl %r10b, %ecx
0x41, 0x83, 0xf8, 0x09, //0x00000205 cmpl $9, %r8d
0x0f, 0x83, 0xf7, 0x00, 0x00, 0x00, //0x00000209 jae LBB0_22
0xc4, 0xe3, 0x79, 0x14, 0xc2, 0x01, //0x0000020f vpextrb $1, %xmm0, %edx
0xc4, 0xc3, 0x79, 0x14, 0xc4, 0x02, //0x00000215 vpextrb $2, %xmm0, %r12d
0xc4, 0xc3, 0x79, 0x14, 0xc7, 0x03, //0x0000021b vpextrb $3, %xmm0, %r15d
0xc4, 0xc3, 0x79, 0x14, 0xc2, 0x04, //0x00000221 vpextrb $4, %xmm0, %r10d
0xc4, 0xc3, 0x79, 0x14, 0xc3, 0x05, //0x00000227 vpextrb $5, %xmm0, %r11d
0xc4, 0xc3, 0x79, 0x14, 0xc6, 0x06, //0x0000022d vpextrb $6, %xmm0, %r14d
0xc5, 0xf9, 0x7e, 0xc3, //0x00000233 vmovd %xmm0, %ebx
0xc4, 0xe3, 0x79, 0x14, 0xc0, 0x07, //0x00000237 vpextrb $7, %xmm0, %eax
0x41, 0x83, 0xc0, 0x01, //0x0000023d addl $1, %r8d
0x41, 0x83, 0xf9, 0x02, //0x00000241 cmpl $2, %r9d
0xbf, 0x01, 0x00, 0x00, 0x00, //0x00000245 movl $1, %edi
0x41, 0x0f, 0x43, 0xf9, //0x0000024a cmovael %r9d, %edi
0x90, 0x90, //0x0000024e .p2align 4, 0x90
//0x00000250 LBB0_26
0x41, 0x38, 0x5d, 0x00, //0x00000250 cmpb %bl, (%r13)
0x0f, 0x85, 0x76, 0x00, 0x00, 0x00, //0x00000254 jne LBB0_27
0xbe, 0x01, 0x00, 0x00, 0x00, //0x0000025a movl $1, %esi
0x41, 0x38, 0x55, 0x01, //0x0000025f cmpb %dl, $1(%r13)
0x0f, 0x85, 0x69, 0x00, 0x00, 0x00, //0x00000263 jne LBB0_35
0xbe, 0x02, 0x00, 0x00, 0x00, //0x00000269 movl $2, %esi
0x45, 0x38, 0x65, 0x02, //0x0000026e cmpb %r12b, $2(%r13)
0x0f, 0x85, 0x5a, 0x00, 0x00, 0x00, //0x00000272 jne LBB0_35
0xbe, 0x03, 0x00, 0x00, 0x00, //0x00000278 movl $3, %esi
0x45, 0x38, 0x7d, 0x03, //0x0000027d cmpb %r15b, $3(%r13)
0x0f, 0x85, 0x4b, 0x00, 0x00, 0x00, //0x00000281 jne LBB0_35
0xbe, 0x04, 0x00, 0x00, 0x00, //0x00000287 movl $4, %esi
0x45, 0x38, 0x55, 0x04, //0x0000028c cmpb %r10b, $4(%r13)
0x0f, 0x85, 0x3c, 0x00, 0x00, 0x00, //0x00000290 jne LBB0_35
0xbe, 0x05, 0x00, 0x00, 0x00, //0x00000296 movl $5, %esi
0x45, 0x38, 0x5d, 0x05, //0x0000029b cmpb %r11b, $5(%r13)
0x0f, 0x85, 0x2d, 0x00, 0x00, 0x00, //0x0000029f jne LBB0_35
0xbe, 0x06, 0x00, 0x00, 0x00, //0x000002a5 movl $6, %esi
0x45, 0x38, 0x75, 0x06, //0x000002aa cmpb %r14b, $6(%r13)
0x0f, 0x85, 0x1e, 0x00, 0x00, 0x00, //0x000002ae jne LBB0_35
0x31, 0xf6, //0x000002b4 xorl %esi, %esi
0x41, 0x38, 0x45, 0x07, //0x000002b6 cmpb %al, $7(%r13)
0x40, 0x0f, 0x94, 0xc6, //0x000002ba sete %sil
0x48, 0x83, 0xc6, 0x07, //0x000002be addq $7, %rsi
0xe9, 0x0b, 0x00, 0x00, 0x00, //0x000002c2 jmp LBB0_35
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x000002c7 .p2align 4, 0x90
//0x000002d0 LBB0_27
0x31, 0xf6, //0x000002d0 xorl %esi, %esi
//0x000002d2 LBB0_35
0x48, 0x39, 0xce, //0x000002d2 cmpq %rcx, %rsi
0x0f, 0x83, 0x8f, 0x00, 0x00, 0x00, //0x000002d5 jae LBB0_36
0x4d, 0x01, 0xc5, //0x000002db addq %r8, %r13
0x83, 0xc7, 0xff, //0x000002de addl $-1, %edi
0x0f, 0x85, 0x69, 0xff, 0xff, 0xff, //0x000002e1 jne LBB0_26
0xe9, 0x65, 0x00, 0x00, 0x00, //0x000002e7 jmp LBB0_39
//0x000002ec LBB0_17
0x4c, 0x01, 0xe7, //0x000002ec addq %r12, %rdi
0x48, 0x83, 0xc7, 0xff, //0x000002ef addq $-1, %rdi
0x0f, 0xb6, 0x07, //0x000002f3 movzbl (%rdi), %eax
0xe9, 0x5d, 0x00, 0x00, 0x00, //0x000002f6 jmp LBB0_40
//0x000002fb LBB0_4
0x48, 0x01, 0xcf, //0x000002fb addq %rcx, %rdi
0x0f, 0xb6, 0x07, //0x000002fe movzbl (%rdi), %eax
0xe9, 0x52, 0x00, 0x00, 0x00, //0x00000301 jmp LBB0_40
//0x00000306 LBB0_22
0x48, 0xc7, 0xc0, 0xff, 0xff, 0xff, 0xff, //0x00000306 movq $-1, %rax
0x48, 0xd3, 0xe0, //0x0000030d shlq %cl, %rax
0x41, 0x83, 0xc0, 0x01, //0x00000310 addl $1, %r8d
0x41, 0x83, 0xf9, 0x02, //0x00000314 cmpl $2, %r9d
0xba, 0x01, 0x00, 0x00, 0x00, //0x00000318 movl $1, %edx
0x41, 0x0f, 0x43, 0xd1, //0x0000031d cmovael %r9d, %edx
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000321 .p2align 4, 0x90
//0x00000330 LBB0_23
0xc4, 0xc1, 0x7d, 0x74, 0x4d, 0x00, //0x00000330 vpcmpeqb (%r13), %ymm0, %ymm1
0xc5, 0xfd, 0xd7, 0xf1, //0x00000336 vpmovmskb %ymm1, %esi
0x09, 0xc6, //0x0000033a orl %eax, %esi
0x83, 0xfe, 0xff, //0x0000033c cmpl $-1, %esi
0x0f, 0x84, 0x35, 0x00, 0x00, 0x00, //0x0000033f je LBB0_24
0x4d, 0x01, 0xc5, //0x00000345 addq %r8, %r13
0x83, 0xc2, 0xff, //0x00000348 addl $-1, %edx
0x0f, 0x85, 0xdf, 0xff, 0xff, 0xff, //0x0000034b jne LBB0_23
//0x00000351 LBB0_39
0x48, 0xc7, 0xc0, 0xff, 0xff, 0xff, 0xff, //0x00000351 movq $-1, %rax
//0x00000358 LBB0_40
0x48, 0x83, 0xc4, 0x08, //0x00000358 addq $8, %rsp
0x5b, //0x0000035c popq %rbx
0x41, 0x5c, //0x0000035d popq %r12
0x41, 0x5d, //0x0000035f popq %r13
0x41, 0x5e, //0x00000361 popq %r14
0x41, 0x5f, //0x00000363 popq %r15
0x5d, //0x00000365 popq %rbp
0xc5, 0xf8, 0x77, //0x00000366 vzeroupper
0xc3, //0x00000369 retq
//0x0000036a LBB0_36
0x4b, 0x8d, 0x3c, 0x28, //0x0000036a leaq (%r8,%r13), %rdi
0x48, 0x83, 0xc7, 0xff, //0x0000036e addq $-1, %rdi
0x0f, 0xb6, 0x07, //0x00000372 movzbl (%rdi), %eax
0xe9, 0xde, 0xff, 0xff, 0xff, //0x00000375 jmp LBB0_40
//0x0000037a LBB0_24
0x49, 0x01, 0xcd, //0x0000037a addq %rcx, %r13
0x4c, 0x89, 0xef, //0x0000037d movq %r13, %rdi
0x41, 0x0f, 0xb6, 0x45, 0x00, //0x00000380 movzbl (%r13), %eax
0xe9, 0xce, 0xff, 0xff, 0xff, //0x00000385 jmp LBB0_40
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/vunsigned.go | vendor/github.com/bytedance/sonic/internal/native/avx2/vunsigned.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package avx2
import (
`unsafe`
`github.com/bytedance/sonic/internal/native/types`
`github.com/bytedance/sonic/internal/rt`
)
var F_vunsigned func(s unsafe.Pointer, p unsafe.Pointer, v unsafe.Pointer)
var S_vunsigned uintptr
//go:nosplit
func vunsigned(s *string, p *int, v *types.JsonState) {
F_vunsigned(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(v)))
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/skip_object_subr.go | vendor/github.com/bytedance/sonic/internal/native/avx2/skip_object_subr.go | // +build !noasm !appengine
// Code generated by asm2asm, DO NOT EDIT.
package avx2
import (
`github.com/bytedance/sonic/loader`
)
const (
_entry__skip_object = 704
)
const (
_stack__skip_object = 208
)
const (
_size__skip_object = 15136
)
var (
_pcsp__skip_object = [][2]uint32{
{0x1, 0},
{0x6, 8},
{0x8, 16},
{0xa, 24},
{0xc, 32},
{0xd, 40},
{0x14, 48},
{0x38dd, 208},
{0x38de, 48},
{0x38e0, 40},
{0x38e2, 32},
{0x38e4, 24},
{0x38e6, 16},
{0x38e7, 8},
{0x38eb, 0},
{0x3b20, 208},
}
)
var _cfunc_skip_object = []loader.CFunc{
{"_skip_object_entry", 0, _entry__skip_object, 0, nil},
{"_skip_object", _entry__skip_object, _size__skip_object, _stack__skip_object, _pcsp__skip_object},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/get_by_path.go | vendor/github.com/bytedance/sonic/internal/native/avx2/get_by_path.go | // Code generated by Makefile, DO NOT EDIT.
/*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package avx2
import (
`unsafe`
`github.com/bytedance/sonic/internal/native/types`
`github.com/bytedance/sonic/internal/rt`
)
var F_get_by_path func(s unsafe.Pointer, p unsafe.Pointer, path unsafe.Pointer, m unsafe.Pointer) (ret int)
var S_get_by_path uintptr
//go:nosplit
func get_by_path(s *string, p *int, path *[]interface{}, m *types.StateMachine) (ret int) {
return F_get_by_path(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(path)), rt.NoEscape(unsafe.Pointer(m)))
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/vstring_subr.go | vendor/github.com/bytedance/sonic/internal/native/avx2/vstring_subr.go | // +build !noasm !appengine
// Code generated by asm2asm, DO NOT EDIT.
package avx2
import (
`github.com/bytedance/sonic/loader`
)
const (
_entry__vstring = 96
)
const (
_stack__vstring = 72
)
const (
_size__vstring = 1832
)
var (
_pcsp__vstring = [][2]uint32{
{0x1, 0},
{0x6, 8},
{0x8, 16},
{0xa, 24},
{0xc, 32},
{0xd, 40},
{0x11, 48},
{0x679, 72},
{0x67a, 48},
{0x67c, 40},
{0x67e, 32},
{0x680, 24},
{0x682, 16},
{0x683, 8},
{0x687, 0},
{0x728, 72},
}
)
var _cfunc_vstring = []loader.CFunc{
{"_vstring_entry", 0, _entry__vstring, 0, nil},
{"_vstring", _entry__vstring, _size__vstring, _stack__vstring, _pcsp__vstring},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/skip_number_text_amd64.go | vendor/github.com/bytedance/sonic/internal/native/avx2/skip_number_text_amd64.go | // +build amd64
// Code generated by asm2asm, DO NOT EDIT.
package avx2
var _text_skip_number = []byte{
// .p2align 5, 0x00
// LCPI0_0
0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, // QUAD $0x2f2f2f2f2f2f2f2f; QUAD $0x2f2f2f2f2f2f2f2f // .space 16, '////////////////'
0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, //0x00000010 QUAD $0x2f2f2f2f2f2f2f2f; QUAD $0x2f2f2f2f2f2f2f2f // .space 16, '////////////////'
//0x00000020 LCPI0_1
0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, //0x00000020 QUAD $0x3a3a3a3a3a3a3a3a; QUAD $0x3a3a3a3a3a3a3a3a // .space 16, '::::::::::::::::'
0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, //0x00000030 QUAD $0x3a3a3a3a3a3a3a3a; QUAD $0x3a3a3a3a3a3a3a3a // .space 16, '::::::::::::::::'
//0x00000040 LCPI0_2
0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, //0x00000040 QUAD $0x2b2b2b2b2b2b2b2b; QUAD $0x2b2b2b2b2b2b2b2b // .space 16, '++++++++++++++++'
0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, //0x00000050 QUAD $0x2b2b2b2b2b2b2b2b; QUAD $0x2b2b2b2b2b2b2b2b // .space 16, '++++++++++++++++'
//0x00000060 LCPI0_3
0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, //0x00000060 QUAD $0x2d2d2d2d2d2d2d2d; QUAD $0x2d2d2d2d2d2d2d2d // .space 16, '----------------'
0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, //0x00000070 QUAD $0x2d2d2d2d2d2d2d2d; QUAD $0x2d2d2d2d2d2d2d2d // .space 16, '----------------'
//0x00000080 LCPI0_4
0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, //0x00000080 QUAD $0xdfdfdfdfdfdfdfdf; QUAD $0xdfdfdfdfdfdfdfdf // .space 16, '\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf'
0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, //0x00000090 QUAD $0xdfdfdfdfdfdfdfdf; QUAD $0xdfdfdfdfdfdfdfdf // .space 16, '\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf'
//0x000000a0 LCPI0_5
0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, //0x000000a0 QUAD $0x2e2e2e2e2e2e2e2e; QUAD $0x2e2e2e2e2e2e2e2e // .space 16, '................'
0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, //0x000000b0 QUAD $0x2e2e2e2e2e2e2e2e; QUAD $0x2e2e2e2e2e2e2e2e // .space 16, '................'
//0x000000c0 LCPI0_6
0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, //0x000000c0 QUAD $0x4545454545454545; QUAD $0x4545454545454545 // .space 16, 'EEEEEEEEEEEEEEEE'
0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, //0x000000d0 QUAD $0x4545454545454545; QUAD $0x4545454545454545 // .space 16, 'EEEEEEEEEEEEEEEE'
//0x000000e0 .p2align 4, 0x00
//0x000000e0 LCPI0_7
0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, //0x000000e0 QUAD $0x2f2f2f2f2f2f2f2f; QUAD $0x2f2f2f2f2f2f2f2f // .space 16, '////////////////'
//0x000000f0 LCPI0_8
0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, //0x000000f0 QUAD $0x3a3a3a3a3a3a3a3a; QUAD $0x3a3a3a3a3a3a3a3a // .space 16, '::::::::::::::::'
//0x00000100 LCPI0_9
0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, //0x00000100 QUAD $0x2b2b2b2b2b2b2b2b; QUAD $0x2b2b2b2b2b2b2b2b // .space 16, '++++++++++++++++'
//0x00000110 LCPI0_10
0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, //0x00000110 QUAD $0x2d2d2d2d2d2d2d2d; QUAD $0x2d2d2d2d2d2d2d2d // .space 16, '----------------'
//0x00000120 LCPI0_11
0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, //0x00000120 QUAD $0xdfdfdfdfdfdfdfdf; QUAD $0xdfdfdfdfdfdfdfdf // .space 16, '\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf'
//0x00000130 LCPI0_12
0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, //0x00000130 QUAD $0x2e2e2e2e2e2e2e2e; QUAD $0x2e2e2e2e2e2e2e2e // .space 16, '................'
//0x00000140 LCPI0_13
0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, //0x00000140 QUAD $0x4545454545454545; QUAD $0x4545454545454545 // .space 16, 'EEEEEEEEEEEEEEEE'
//0x00000150 .p2align 4, 0x90
//0x00000150 _skip_number
0x55, //0x00000150 pushq %rbp
0x48, 0x89, 0xe5, //0x00000151 movq %rsp, %rbp
0x41, 0x57, //0x00000154 pushq %r15
0x41, 0x56, //0x00000156 pushq %r14
0x41, 0x55, //0x00000158 pushq %r13
0x41, 0x54, //0x0000015a pushq %r12
0x53, //0x0000015c pushq %rbx
0x48, 0x83, 0xec, 0x28, //0x0000015d subq $40, %rsp
0x4c, 0x8b, 0x0f, //0x00000161 movq (%rdi), %r9
0x4c, 0x8b, 0x57, 0x08, //0x00000164 movq $8(%rdi), %r10
0x48, 0x8b, 0x16, //0x00000168 movq (%rsi), %rdx
0x49, 0x29, 0xd2, //0x0000016b subq %rdx, %r10
0x31, 0xdb, //0x0000016e xorl %ebx, %ebx
0x41, 0x80, 0x3c, 0x11, 0x2d, //0x00000170 cmpb $45, (%r9,%rdx)
0x4d, 0x8d, 0x04, 0x11, //0x00000175 leaq (%r9,%rdx), %r8
0x0f, 0x94, 0xc3, //0x00000179 sete %bl
0x4d, 0x8d, 0x34, 0x18, //0x0000017c leaq (%r8,%rbx), %r14
0x49, 0x29, 0xda, //0x00000180 subq %rbx, %r10
0x0f, 0x84, 0x90, 0x05, 0x00, 0x00, //0x00000183 je LBB0_1
0x41, 0x8a, 0x3e, //0x00000189 movb (%r14), %dil
0x8d, 0x4f, 0xd0, //0x0000018c leal $-48(%rdi), %ecx
0x48, 0xc7, 0xc0, 0xfe, 0xff, 0xff, 0xff, //0x0000018f movq $-2, %rax
0x80, 0xf9, 0x09, //0x00000196 cmpb $9, %cl
0x0f, 0x87, 0x62, 0x05, 0x00, 0x00, //0x00000199 ja LBB0_83
0x48, 0x89, 0x55, 0xb0, //0x0000019f movq %rdx, $-80(%rbp)
0x40, 0x80, 0xff, 0x30, //0x000001a3 cmpb $48, %dil
0x0f, 0x85, 0x34, 0x00, 0x00, 0x00, //0x000001a7 jne LBB0_7
0xba, 0x01, 0x00, 0x00, 0x00, //0x000001ad movl $1, %edx
0x49, 0x83, 0xfa, 0x01, //0x000001b2 cmpq $1, %r10
0x0f, 0x84, 0x3e, 0x05, 0x00, 0x00, //0x000001b6 je LBB0_82
0x41, 0x8a, 0x46, 0x01, //0x000001bc movb $1(%r14), %al
0x04, 0xd2, //0x000001c0 addb $-46, %al
0x3c, 0x37, //0x000001c2 cmpb $55, %al
0x0f, 0x87, 0x30, 0x05, 0x00, 0x00, //0x000001c4 ja LBB0_82
0x0f, 0xb6, 0xc0, //0x000001ca movzbl %al, %eax
0x48, 0xb9, 0x01, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, //0x000001cd movabsq $36028797027352577, %rcx
0x48, 0x0f, 0xa3, 0xc1, //0x000001d7 btq %rax, %rcx
0x0f, 0x83, 0x19, 0x05, 0x00, 0x00, //0x000001db jae LBB0_82
//0x000001e1 LBB0_7
0x49, 0x83, 0xfa, 0x20, //0x000001e1 cmpq $32, %r10
0x4c, 0x89, 0x45, 0xc8, //0x000001e5 movq %r8, $-56(%rbp)
0x48, 0x89, 0x5d, 0xd0, //0x000001e9 movq %rbx, $-48(%rbp)
0x49, 0xc7, 0xc5, 0xff, 0xff, 0xff, 0xff, //0x000001ed movq $-1, %r13
0x0f, 0x82, 0x2b, 0x05, 0x00, 0x00, //0x000001f4 jb LBB0_8
0x31, 0xd2, //0x000001fa xorl %edx, %edx
0xc5, 0xfe, 0x6f, 0x05, 0xfc, 0xfd, 0xff, 0xff, //0x000001fc vmovdqu $-516(%rip), %ymm0 /* LCPI0_0+0(%rip) */
0xc5, 0xfe, 0x6f, 0x0d, 0x14, 0xfe, 0xff, 0xff, //0x00000204 vmovdqu $-492(%rip), %ymm1 /* LCPI0_1+0(%rip) */
0xc5, 0xfe, 0x6f, 0x15, 0x2c, 0xfe, 0xff, 0xff, //0x0000020c vmovdqu $-468(%rip), %ymm2 /* LCPI0_2+0(%rip) */
0xc5, 0xfe, 0x6f, 0x1d, 0x44, 0xfe, 0xff, 0xff, //0x00000214 vmovdqu $-444(%rip), %ymm3 /* LCPI0_3+0(%rip) */
0xc5, 0xfe, 0x6f, 0x25, 0x5c, 0xfe, 0xff, 0xff, //0x0000021c vmovdqu $-420(%rip), %ymm4 /* LCPI0_4+0(%rip) */
0xc5, 0xfe, 0x6f, 0x2d, 0x74, 0xfe, 0xff, 0xff, //0x00000224 vmovdqu $-396(%rip), %ymm5 /* LCPI0_5+0(%rip) */
0xc5, 0xfe, 0x6f, 0x35, 0x8c, 0xfe, 0xff, 0xff, //0x0000022c vmovdqu $-372(%rip), %ymm6 /* LCPI0_6+0(%rip) */
0x49, 0xc7, 0xc7, 0xff, 0xff, 0xff, 0xff, //0x00000234 movq $-1, %r15
0x49, 0xc7, 0xc4, 0xff, 0xff, 0xff, 0xff, //0x0000023b movq $-1, %r12
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000242 .p2align 4, 0x90
//0x00000250 LBB0_10
0xc4, 0xc1, 0x7e, 0x6f, 0x3c, 0x16, //0x00000250 vmovdqu (%r14,%rdx), %ymm7
0xc5, 0x45, 0x64, 0xc0, //0x00000256 vpcmpgtb %ymm0, %ymm7, %ymm8
0xc5, 0x75, 0x64, 0xcf, //0x0000025a vpcmpgtb %ymm7, %ymm1, %ymm9
0xc4, 0x41, 0x35, 0xdb, 0xc0, //0x0000025e vpand %ymm8, %ymm9, %ymm8
0xc5, 0x45, 0x74, 0xca, //0x00000263 vpcmpeqb %ymm2, %ymm7, %ymm9
0xc5, 0x45, 0x74, 0xd3, //0x00000267 vpcmpeqb %ymm3, %ymm7, %ymm10
0xc4, 0x41, 0x2d, 0xeb, 0xc9, //0x0000026b vpor %ymm9, %ymm10, %ymm9
0xc5, 0x45, 0xdb, 0xd4, //0x00000270 vpand %ymm4, %ymm7, %ymm10
0xc5, 0x2d, 0x74, 0xd6, //0x00000274 vpcmpeqb %ymm6, %ymm10, %ymm10
0xc5, 0xc5, 0x74, 0xfd, //0x00000278 vpcmpeqb %ymm5, %ymm7, %ymm7
0xc5, 0xfd, 0xd7, 0xc7, //0x0000027c vpmovmskb %ymm7, %eax
0xc4, 0xc1, 0x7d, 0xd7, 0xfa, //0x00000280 vpmovmskb %ymm10, %edi
0xc4, 0x41, 0x7d, 0xd7, 0xc1, //0x00000285 vpmovmskb %ymm9, %r8d
0xc5, 0xbd, 0xeb, 0xff, //0x0000028a vpor %ymm7, %ymm8, %ymm7
0xc4, 0x41, 0x2d, 0xeb, 0xc1, //0x0000028e vpor %ymm9, %ymm10, %ymm8
0xc5, 0xbd, 0xeb, 0xff, //0x00000293 vpor %ymm7, %ymm8, %ymm7
0xc5, 0xfd, 0xd7, 0xcf, //0x00000297 vpmovmskb %ymm7, %ecx
0x48, 0xf7, 0xd1, //0x0000029b notq %rcx
0x4c, 0x0f, 0xbc, 0xd9, //0x0000029e bsfq %rcx, %r11
0x41, 0x83, 0xfb, 0x20, //0x000002a2 cmpl $32, %r11d
0x0f, 0x84, 0x16, 0x00, 0x00, 0x00, //0x000002a6 je LBB0_12
0xbb, 0xff, 0xff, 0xff, 0xff, //0x000002ac movl $-1, %ebx
0x44, 0x89, 0xd9, //0x000002b1 movl %r11d, %ecx
0xd3, 0xe3, //0x000002b4 shll %cl, %ebx
0xf7, 0xd3, //0x000002b6 notl %ebx
0x21, 0xd8, //0x000002b8 andl %ebx, %eax
0x21, 0xdf, //0x000002ba andl %ebx, %edi
0x44, 0x21, 0xc3, //0x000002bc andl %r8d, %ebx
0x41, 0x89, 0xd8, //0x000002bf movl %ebx, %r8d
//0x000002c2 LBB0_12
0x8d, 0x48, 0xff, //0x000002c2 leal $-1(%rax), %ecx
0x21, 0xc1, //0x000002c5 andl %eax, %ecx
0x0f, 0x85, 0xb9, 0x03, 0x00, 0x00, //0x000002c7 jne LBB0_13
0x8d, 0x4f, 0xff, //0x000002cd leal $-1(%rdi), %ecx
0x21, 0xf9, //0x000002d0 andl %edi, %ecx
0x0f, 0x85, 0xae, 0x03, 0x00, 0x00, //0x000002d2 jne LBB0_13
0x41, 0x8d, 0x48, 0xff, //0x000002d8 leal $-1(%r8), %ecx
0x44, 0x21, 0xc1, //0x000002dc andl %r8d, %ecx
0x0f, 0x85, 0xa1, 0x03, 0x00, 0x00, //0x000002df jne LBB0_13
0x85, 0xc0, //0x000002e5 testl %eax, %eax
0x0f, 0x84, 0x13, 0x00, 0x00, 0x00, //0x000002e7 je LBB0_20
0x0f, 0xbc, 0xc8, //0x000002ed bsfl %eax, %ecx
0x49, 0x83, 0xfc, 0xff, //0x000002f0 cmpq $-1, %r12
0x0f, 0x85, 0xaa, 0x03, 0x00, 0x00, //0x000002f4 jne LBB0_84
0x48, 0x01, 0xd1, //0x000002fa addq %rdx, %rcx
0x49, 0x89, 0xcc, //0x000002fd movq %rcx, %r12
//0x00000300 LBB0_20
0x85, 0xff, //0x00000300 testl %edi, %edi
0x0f, 0x84, 0x13, 0x00, 0x00, 0x00, //0x00000302 je LBB0_23
0x0f, 0xbc, 0xcf, //0x00000308 bsfl %edi, %ecx
0x49, 0x83, 0xff, 0xff, //0x0000030b cmpq $-1, %r15
0x0f, 0x85, 0x8f, 0x03, 0x00, 0x00, //0x0000030f jne LBB0_84
0x48, 0x01, 0xd1, //0x00000315 addq %rdx, %rcx
0x49, 0x89, 0xcf, //0x00000318 movq %rcx, %r15
//0x0000031b LBB0_23
0x45, 0x85, 0xc0, //0x0000031b testl %r8d, %r8d
0x0f, 0x84, 0x14, 0x00, 0x00, 0x00, //0x0000031e je LBB0_26
0x41, 0x0f, 0xbc, 0xc0, //0x00000324 bsfl %r8d, %eax
0x49, 0x83, 0xfd, 0xff, //0x00000328 cmpq $-1, %r13
0x0f, 0x85, 0x81, 0x03, 0x00, 0x00, //0x0000032c jne LBB0_85
0x48, 0x01, 0xd0, //0x00000332 addq %rdx, %rax
0x49, 0x89, 0xc5, //0x00000335 movq %rax, %r13
//0x00000338 LBB0_26
0x41, 0x83, 0xfb, 0x20, //0x00000338 cmpl $32, %r11d
0x0f, 0x85, 0x27, 0x02, 0x00, 0x00, //0x0000033c jne LBB0_86
0x49, 0x83, 0xc2, 0xe0, //0x00000342 addq $-32, %r10
0x48, 0x83, 0xc2, 0x20, //0x00000346 addq $32, %rdx
0x49, 0x83, 0xfa, 0x1f, //0x0000034a cmpq $31, %r10
0x0f, 0x87, 0xfc, 0xfe, 0xff, 0xff, //0x0000034e ja LBB0_10
0xc5, 0xf8, 0x77, //0x00000354 vzeroupper
0x4c, 0x01, 0xf2, //0x00000357 addq %r14, %rdx
0x49, 0x89, 0xd3, //0x0000035a movq %rdx, %r11
0x49, 0x83, 0xfa, 0x10, //0x0000035d cmpq $16, %r10
0x0f, 0x82, 0x6a, 0x01, 0x00, 0x00, //0x00000361 jb LBB0_51
//0x00000367 LBB0_30
0x4c, 0x89, 0x4d, 0xb8, //0x00000367 movq %r9, $-72(%rbp)
0x48, 0x89, 0xf3, //0x0000036b movq %rsi, %rbx
0x4c, 0x89, 0xf0, //0x0000036e movq %r14, %rax
0x4d, 0x89, 0xde, //0x00000371 movq %r11, %r14
0x48, 0x89, 0x45, 0xc0, //0x00000374 movq %rax, $-64(%rbp)
0x49, 0x29, 0xc6, //0x00000378 subq %rax, %r14
0x31, 0xd2, //0x0000037b xorl %edx, %edx
0xc5, 0x7a, 0x6f, 0x05, 0x5b, 0xfd, 0xff, 0xff, //0x0000037d vmovdqu $-677(%rip), %xmm8 /* LCPI0_7+0(%rip) */
0xc5, 0x7a, 0x6f, 0x0d, 0x63, 0xfd, 0xff, 0xff, //0x00000385 vmovdqu $-669(%rip), %xmm9 /* LCPI0_8+0(%rip) */
0xc5, 0x7a, 0x6f, 0x15, 0x6b, 0xfd, 0xff, 0xff, //0x0000038d vmovdqu $-661(%rip), %xmm10 /* LCPI0_9+0(%rip) */
0xc5, 0x7a, 0x6f, 0x1d, 0x73, 0xfd, 0xff, 0xff, //0x00000395 vmovdqu $-653(%rip), %xmm11 /* LCPI0_10+0(%rip) */
0xc5, 0xfa, 0x6f, 0x25, 0x7b, 0xfd, 0xff, 0xff, //0x0000039d vmovdqu $-645(%rip), %xmm4 /* LCPI0_11+0(%rip) */
0xc5, 0xfa, 0x6f, 0x2d, 0x83, 0xfd, 0xff, 0xff, //0x000003a5 vmovdqu $-637(%rip), %xmm5 /* LCPI0_12+0(%rip) */
0xc5, 0xfa, 0x6f, 0x35, 0x8b, 0xfd, 0xff, 0xff, //0x000003ad vmovdqu $-629(%rip), %xmm6 /* LCPI0_13+0(%rip) */
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x000003b5 .p2align 4, 0x90
//0x000003c0 LBB0_31
0xc4, 0xc1, 0x7a, 0x6f, 0x3c, 0x13, //0x000003c0 vmovdqu (%r11,%rdx), %xmm7
0xc4, 0xc1, 0x41, 0x64, 0xc0, //0x000003c6 vpcmpgtb %xmm8, %xmm7, %xmm0
0xc5, 0xb1, 0x64, 0xcf, //0x000003cb vpcmpgtb %xmm7, %xmm9, %xmm1
0xc5, 0xf9, 0xdb, 0xc1, //0x000003cf vpand %xmm1, %xmm0, %xmm0
0xc5, 0xa9, 0x74, 0xcf, //0x000003d3 vpcmpeqb %xmm7, %xmm10, %xmm1
0xc5, 0xa1, 0x74, 0xd7, //0x000003d7 vpcmpeqb %xmm7, %xmm11, %xmm2
0xc5, 0xe9, 0xeb, 0xc9, //0x000003db vpor %xmm1, %xmm2, %xmm1
0xc5, 0xc1, 0xdb, 0xd4, //0x000003df vpand %xmm4, %xmm7, %xmm2
0xc5, 0xe9, 0x74, 0xd6, //0x000003e3 vpcmpeqb %xmm6, %xmm2, %xmm2
0xc5, 0xc1, 0x74, 0xfd, //0x000003e7 vpcmpeqb %xmm5, %xmm7, %xmm7
0xc5, 0xe9, 0xeb, 0xdf, //0x000003eb vpor %xmm7, %xmm2, %xmm3
0xc5, 0xf1, 0xeb, 0xc0, //0x000003ef vpor %xmm0, %xmm1, %xmm0
0xc5, 0xe1, 0xeb, 0xc0, //0x000003f3 vpor %xmm0, %xmm3, %xmm0
0xc5, 0xf9, 0xd7, 0xf7, //0x000003f7 vpmovmskb %xmm7, %esi
0xc5, 0x79, 0xd7, 0xc2, //0x000003fb vpmovmskb %xmm2, %r8d
0xc5, 0xf9, 0xd7, 0xc1, //0x000003ff vpmovmskb %xmm1, %eax
0xc5, 0xf9, 0xd7, 0xc8, //0x00000403 vpmovmskb %xmm0, %ecx
0xf7, 0xd1, //0x00000407 notl %ecx
0x0f, 0xbc, 0xc9, //0x00000409 bsfl %ecx, %ecx
0x83, 0xf9, 0x10, //0x0000040c cmpl $16, %ecx
0x0f, 0x84, 0x12, 0x00, 0x00, 0x00, //0x0000040f je LBB0_33
0xbf, 0xff, 0xff, 0xff, 0xff, //0x00000415 movl $-1, %edi
0xd3, 0xe7, //0x0000041a shll %cl, %edi
0xf7, 0xd7, //0x0000041c notl %edi
0x21, 0xfe, //0x0000041e andl %edi, %esi
0x41, 0x21, 0xf8, //0x00000420 andl %edi, %r8d
0x21, 0xc7, //0x00000423 andl %eax, %edi
0x89, 0xf8, //0x00000425 movl %edi, %eax
//0x00000427 LBB0_33
0x44, 0x8d, 0x4e, 0xff, //0x00000427 leal $-1(%rsi), %r9d
0x41, 0x21, 0xf1, //0x0000042b andl %esi, %r9d
0x0f, 0x85, 0x93, 0x02, 0x00, 0x00, //0x0000042e jne LBB0_34
0x41, 0x8d, 0x78, 0xff, //0x00000434 leal $-1(%r8), %edi
0x44, 0x21, 0xc7, //0x00000438 andl %r8d, %edi
0x0f, 0x85, 0x6a, 0x02, 0x00, 0x00, //0x0000043b jne LBB0_37
0x8d, 0x78, 0xff, //0x00000441 leal $-1(%rax), %edi
0x21, 0xc7, //0x00000444 andl %eax, %edi
0x0f, 0x85, 0x5f, 0x02, 0x00, 0x00, //0x00000446 jne LBB0_37
0x85, 0xf6, //0x0000044c testl %esi, %esi
0x0f, 0x84, 0x16, 0x00, 0x00, 0x00, //0x0000044e je LBB0_42
0x0f, 0xbc, 0xf6, //0x00000454 bsfl %esi, %esi
0x49, 0x83, 0xfc, 0xff, //0x00000457 cmpq $-1, %r12
0x0f, 0x85, 0x5f, 0x02, 0x00, 0x00, //0x0000045b jne LBB0_87
0x4c, 0x01, 0xf6, //0x00000461 addq %r14, %rsi
0x48, 0x01, 0xd6, //0x00000464 addq %rdx, %rsi
0x49, 0x89, 0xf4, //0x00000467 movq %rsi, %r12
//0x0000046a LBB0_42
0x45, 0x85, 0xc0, //0x0000046a testl %r8d, %r8d
0x0f, 0x84, 0x17, 0x00, 0x00, 0x00, //0x0000046d je LBB0_45
0x41, 0x0f, 0xbc, 0xf0, //0x00000473 bsfl %r8d, %esi
0x49, 0x83, 0xff, 0xff, //0x00000477 cmpq $-1, %r15
0x0f, 0x85, 0x3f, 0x02, 0x00, 0x00, //0x0000047b jne LBB0_87
0x4c, 0x01, 0xf6, //0x00000481 addq %r14, %rsi
0x48, 0x01, 0xd6, //0x00000484 addq %rdx, %rsi
0x49, 0x89, 0xf7, //0x00000487 movq %rsi, %r15
//0x0000048a LBB0_45
0x85, 0xc0, //0x0000048a testl %eax, %eax
0x0f, 0x84, 0x16, 0x00, 0x00, 0x00, //0x0000048c je LBB0_48
0x0f, 0xbc, 0xc0, //0x00000492 bsfl %eax, %eax
0x49, 0x83, 0xfd, 0xff, //0x00000495 cmpq $-1, %r13
0x0f, 0x85, 0x31, 0x02, 0x00, 0x00, //0x00000499 jne LBB0_88
0x4c, 0x01, 0xf0, //0x0000049f addq %r14, %rax
0x48, 0x01, 0xd0, //0x000004a2 addq %rdx, %rax
0x49, 0x89, 0xc5, //0x000004a5 movq %rax, %r13
//0x000004a8 LBB0_48
0x83, 0xf9, 0x10, //0x000004a8 cmpl $16, %ecx
0x0f, 0x85, 0xd6, 0x00, 0x00, 0x00, //0x000004ab jne LBB0_89
0x49, 0x83, 0xc2, 0xf0, //0x000004b1 addq $-16, %r10
0x48, 0x83, 0xc2, 0x10, //0x000004b5 addq $16, %rdx
0x49, 0x83, 0xfa, 0x0f, //0x000004b9 cmpq $15, %r10
0x0f, 0x87, 0xfd, 0xfe, 0xff, 0xff, //0x000004bd ja LBB0_31
0x49, 0x01, 0xd3, //0x000004c3 addq %rdx, %r11
0x48, 0x89, 0xde, //0x000004c6 movq %rbx, %rsi
0x4c, 0x8b, 0x4d, 0xb8, //0x000004c9 movq $-72(%rbp), %r9
0x4c, 0x8b, 0x75, 0xc0, //0x000004cd movq $-64(%rbp), %r14
//0x000004d1 LBB0_51
0x4d, 0x85, 0xd2, //0x000004d1 testq %r10, %r10
0x0f, 0x84, 0xd8, 0x00, 0x00, 0x00, //0x000004d4 je LBB0_66
0x4f, 0x8d, 0x04, 0x13, //0x000004da leaq (%r11,%r10), %r8
0x4c, 0x89, 0xd9, //0x000004de movq %r11, %rcx
0x4c, 0x29, 0xf1, //0x000004e1 subq %r14, %rcx
0x31, 0xd2, //0x000004e4 xorl %edx, %edx
0x48, 0x8d, 0x3d, 0x5b, 0x02, 0x00, 0x00, //0x000004e6 leaq $603(%rip), %rdi /* LJTI0_0+0(%rip) */
0xe9, 0x2b, 0x00, 0x00, 0x00, //0x000004ed jmp LBB0_53
//0x000004f2 LBB0_55
0x83, 0xfb, 0x65, //0x000004f2 cmpl $101, %ebx
0x0f, 0x85, 0xb4, 0x00, 0x00, 0x00, //0x000004f5 jne LBB0_65
//0x000004fb LBB0_56
0x49, 0x83, 0xff, 0xff, //0x000004fb cmpq $-1, %r15
0x0f, 0x85, 0x89, 0x01, 0x00, 0x00, //0x000004ff jne LBB0_90
0x4c, 0x8d, 0x3c, 0x11, //0x00000505 leaq (%rcx,%rdx), %r15
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000509 .p2align 4, 0x90
//0x00000510 LBB0_63
0x48, 0x83, 0xc2, 0x01, //0x00000510 addq $1, %rdx
0x49, 0x39, 0xd2, //0x00000514 cmpq %rdx, %r10
0x0f, 0x84, 0x44, 0x01, 0x00, 0x00, //0x00000517 je LBB0_64
//0x0000051d LBB0_53
0x41, 0x0f, 0xbe, 0x1c, 0x13, //0x0000051d movsbl (%r11,%rdx), %ebx
0x8d, 0x43, 0xd0, //0x00000522 leal $-48(%rbx), %eax
0x83, 0xf8, 0x0a, //0x00000525 cmpl $10, %eax
0x0f, 0x82, 0xe2, 0xff, 0xff, 0xff, //0x00000528 jb LBB0_63
0x8d, 0x43, 0xd5, //0x0000052e leal $-43(%rbx), %eax
0x83, 0xf8, 0x1a, //0x00000531 cmpl $26, %eax
0x0f, 0x87, 0xb8, 0xff, 0xff, 0xff, //0x00000534 ja LBB0_55
0x48, 0x63, 0x04, 0x87, //0x0000053a movslq (%rdi,%rax,4), %rax
0x48, 0x01, 0xf8, //0x0000053e addq %rdi, %rax
0xff, 0xe0, //0x00000541 jmpq *%rax
//0x00000543 LBB0_61
0x49, 0x83, 0xfd, 0xff, //0x00000543 cmpq $-1, %r13
0x0f, 0x85, 0x41, 0x01, 0x00, 0x00, //0x00000547 jne LBB0_90
0x4c, 0x8d, 0x2c, 0x11, //0x0000054d leaq (%rcx,%rdx), %r13
0xe9, 0xba, 0xff, 0xff, 0xff, //0x00000551 jmp LBB0_63
//0x00000556 LBB0_59
0x49, 0x83, 0xfc, 0xff, //0x00000556 cmpq $-1, %r12
0x0f, 0x85, 0x2e, 0x01, 0x00, 0x00, //0x0000055a jne LBB0_90
0x4c, 0x8d, 0x24, 0x11, //0x00000560 leaq (%rcx,%rdx), %r12
0xe9, 0xa7, 0xff, 0xff, 0xff, //0x00000564 jmp LBB0_63
//0x00000569 LBB0_86
0x49, 0x01, 0xd3, //0x00000569 addq %rdx, %r11
0x4d, 0x01, 0xf3, //0x0000056c addq %r14, %r11
0xc5, 0xf8, 0x77, //0x0000056f vzeroupper
0x48, 0xc7, 0xc2, 0xff, 0xff, 0xff, 0xff, //0x00000572 movq $-1, %rdx
0x4d, 0x85, 0xe4, //0x00000579 testq %r12, %r12
0x0f, 0x85, 0x40, 0x00, 0x00, 0x00, //0x0000057c jne LBB0_67
0xe9, 0xed, 0x00, 0x00, 0x00, //0x00000582 jmp LBB0_81
//0x00000587 LBB0_89
0x89, 0xc8, //0x00000587 movl %ecx, %eax
0x49, 0x01, 0xc3, //0x00000589 addq %rax, %r11
0x49, 0x01, 0xd3, //0x0000058c addq %rdx, %r11
0x48, 0x89, 0xde, //0x0000058f movq %rbx, %rsi
0x4c, 0x8b, 0x4d, 0xb8, //0x00000592 movq $-72(%rbp), %r9
0x4c, 0x8b, 0x75, 0xc0, //0x00000596 movq $-64(%rbp), %r14
0x48, 0xc7, 0xc2, 0xff, 0xff, 0xff, 0xff, //0x0000059a movq $-1, %rdx
0x4d, 0x85, 0xe4, //0x000005a1 testq %r12, %r12
0x0f, 0x85, 0x18, 0x00, 0x00, 0x00, //0x000005a4 jne LBB0_67
0xe9, 0xc5, 0x00, 0x00, 0x00, //0x000005aa jmp LBB0_81
//0x000005af LBB0_65
0x49, 0x01, 0xd3, //0x000005af addq %rdx, %r11
//0x000005b2 LBB0_66
0x48, 0xc7, 0xc2, 0xff, 0xff, 0xff, 0xff, //0x000005b2 movq $-1, %rdx
0x4d, 0x85, 0xe4, //0x000005b9 testq %r12, %r12
0x0f, 0x84, 0xb2, 0x00, 0x00, 0x00, //0x000005bc je LBB0_81
//0x000005c2 LBB0_67
0x4d, 0x85, 0xed, //0x000005c2 testq %r13, %r13
0x0f, 0x84, 0xa9, 0x00, 0x00, 0x00, //0x000005c5 je LBB0_81
0x4d, 0x85, 0xff, //0x000005cb testq %r15, %r15
0x0f, 0x84, 0xa0, 0x00, 0x00, 0x00, //0x000005ce je LBB0_81
0x4d, 0x29, 0xf3, //0x000005d4 subq %r14, %r11
0x49, 0x8d, 0x43, 0xff, //0x000005d7 leaq $-1(%r11), %rax
0x49, 0x39, 0xc4, //0x000005db cmpq %rax, %r12
0x0f, 0x84, 0x33, 0x00, 0x00, 0x00, //0x000005de je LBB0_72
0x49, 0x39, 0xc5, //0x000005e4 cmpq %rax, %r13
0x0f, 0x84, 0x2a, 0x00, 0x00, 0x00, //0x000005e7 je LBB0_72
0x49, 0x39, 0xc7, //0x000005ed cmpq %rax, %r15
0x0f, 0x84, 0x21, 0x00, 0x00, 0x00, //0x000005f0 je LBB0_72
0x4d, 0x85, 0xed, //0x000005f6 testq %r13, %r13
0x0f, 0x8e, 0x23, 0x00, 0x00, 0x00, //0x000005f9 jle LBB0_76
0x49, 0x8d, 0x45, 0xff, //0x000005ff leaq $-1(%r13), %rax
0x49, 0x39, 0xc7, //0x00000603 cmpq %rax, %r15
0x0f, 0x84, 0x16, 0x00, 0x00, 0x00, //0x00000606 je LBB0_76
0x49, 0xf7, 0xd5, //0x0000060c notq %r13
0x4c, 0x89, 0xea, //0x0000060f movq %r13, %rdx
0xe9, 0xda, 0x00, 0x00, 0x00, //0x00000612 jmp LBB0_80
//0x00000617 LBB0_72
0x49, 0xf7, 0xdb, //0x00000617 negq %r11
0x4c, 0x89, 0xda, //0x0000061a movq %r11, %rdx
0xe9, 0xcf, 0x00, 0x00, 0x00, //0x0000061d jmp LBB0_80
//0x00000622 LBB0_76
0x4c, 0x89, 0xe0, //0x00000622 movq %r12, %rax
0x4c, 0x09, 0xf8, //0x00000625 orq %r15, %rax
0x0f, 0x99, 0xc0, //0x00000628 setns %al
0x0f, 0x88, 0x14, 0x00, 0x00, 0x00, //0x0000062b js LBB0_79
0x4d, 0x39, 0xfc, //0x00000631 cmpq %r15, %r12
0x0f, 0x8c, 0x0b, 0x00, 0x00, 0x00, //0x00000634 jl LBB0_79
0x49, 0xf7, 0xd4, //0x0000063a notq %r12
0x4c, 0x89, 0xe2, //0x0000063d movq %r12, %rdx
0xe9, 0xac, 0x00, 0x00, 0x00, //0x00000640 jmp LBB0_80
//0x00000645 LBB0_79
0x49, 0x8d, 0x4f, 0xff, //0x00000645 leaq $-1(%r15), %rcx
0x49, 0x39, 0xcc, //0x00000649 cmpq %rcx, %r12
0x49, 0xf7, 0xd7, //0x0000064c notq %r15
0x4d, 0x0f, 0x45, 0xfb, //0x0000064f cmovneq %r11, %r15
0x84, 0xc0, //0x00000653 testb %al, %al
0x4d, 0x0f, 0x44, 0xfb, //0x00000655 cmoveq %r11, %r15
0x4c, 0x89, 0xfa, //0x00000659 movq %r15, %rdx
0xe9, 0x90, 0x00, 0x00, 0x00, //0x0000065c jmp LBB0_80
//0x00000661 LBB0_64
0x4d, 0x89, 0xc3, //0x00000661 movq %r8, %r11
0x48, 0xc7, 0xc2, 0xff, 0xff, 0xff, 0xff, //0x00000664 movq $-1, %rdx
0x4d, 0x85, 0xe4, //0x0000066b testq %r12, %r12
0x0f, 0x85, 0x4e, 0xff, 0xff, 0xff, //0x0000066e jne LBB0_67
//0x00000674 LBB0_81
0x48, 0xf7, 0xd2, //0x00000674 notq %rdx
0x49, 0x01, 0xd6, //0x00000677 addq %rdx, %r14
0x48, 0xc7, 0xc0, 0xfe, 0xff, 0xff, 0xff, //0x0000067a movq $-2, %rax
0xe9, 0x7b, 0x00, 0x00, 0x00, //0x00000681 jmp LBB0_83
//0x00000686 LBB0_13
0x0f, 0xbc, 0xc1, //0x00000686 bsfl %ecx, %eax
0xe9, 0x27, 0x00, 0x00, 0x00, //0x00000689 jmp LBB0_14
//0x0000068e LBB0_90
0x48, 0x8b, 0x45, 0xc8, //0x0000068e movq $-56(%rbp), %rax
0x48, 0x03, 0x45, 0xd0, //0x00000692 addq $-48(%rbp), %rax
0x4c, 0x29, 0xd8, //0x00000696 subq %r11, %rax
0x48, 0xf7, 0xd2, //0x00000699 notq %rdx
0x48, 0x01, 0xc2, //0x0000069c addq %rax, %rdx
0xe9, 0x4d, 0x00, 0x00, 0x00, //0x0000069f jmp LBB0_80
//0x000006a4 LBB0_84
0x89, 0xc8, //0x000006a4 movl %ecx, %eax
0xe9, 0x0a, 0x00, 0x00, 0x00, //0x000006a6 jmp LBB0_14
//0x000006ab LBB0_37
0x0f, 0xbc, 0xc7, //0x000006ab bsfl %edi, %eax
0xe9, 0x1f, 0x00, 0x00, 0x00, //0x000006ae jmp LBB0_35
//0x000006b3 LBB0_85
0x89, 0xc0, //0x000006b3 movl %eax, %eax
//0x000006b5 LBB0_14
0x48, 0xf7, 0xd2, //0x000006b5 notq %rdx
0x48, 0x29, 0xc2, //0x000006b8 subq %rax, %rdx
0xe9, 0x31, 0x00, 0x00, 0x00, //0x000006bb jmp LBB0_80
//0x000006c0 LBB0_87
0x89, 0xf0, //0x000006c0 movl %esi, %eax
0xe9, 0x0b, 0x00, 0x00, 0x00, //0x000006c2 jmp LBB0_35
//0x000006c7 LBB0_34
0x41, 0x0f, 0xbc, 0xc1, //0x000006c7 bsfl %r9d, %eax
0xe9, 0x02, 0x00, 0x00, 0x00, //0x000006cb jmp LBB0_35
//0x000006d0 LBB0_88
0x89, 0xc0, //0x000006d0 movl %eax, %eax
//0x000006d2 LBB0_35
0x48, 0x8b, 0x4d, 0xc8, //0x000006d2 movq $-56(%rbp), %rcx
0x48, 0x03, 0x4d, 0xd0, //0x000006d6 addq $-48(%rbp), %rcx
0x4c, 0x29, 0xd9, //0x000006da subq %r11, %rcx
0x48, 0x29, 0xc1, //0x000006dd subq %rax, %rcx
0x48, 0xf7, 0xd2, //0x000006e0 notq %rdx
0x48, 0x01, 0xca, //0x000006e3 addq %rcx, %rdx
0x48, 0x89, 0xde, //0x000006e6 movq %rbx, %rsi
0x4c, 0x8b, 0x4d, 0xb8, //0x000006e9 movq $-72(%rbp), %r9
0x4c, 0x8b, 0x75, 0xc0, //0x000006ed movq $-64(%rbp), %r14
//0x000006f1 LBB0_80
0x48, 0x85, 0xd2, //0x000006f1 testq %rdx, %rdx
0x0f, 0x88, 0x7a, 0xff, 0xff, 0xff, //0x000006f4 js LBB0_81
//0x000006fa LBB0_82
0x49, 0x01, 0xd6, //0x000006fa addq %rdx, %r14
0x48, 0x8b, 0x45, 0xb0, //0x000006fd movq $-80(%rbp), %rax
//0x00000701 LBB0_83
0x4d, 0x29, 0xce, //0x00000701 subq %r9, %r14
0x4c, 0x89, 0x36, //0x00000704 movq %r14, (%rsi)
0x48, 0x83, 0xc4, 0x28, //0x00000707 addq $40, %rsp
0x5b, //0x0000070b popq %rbx
0x41, 0x5c, //0x0000070c popq %r12
0x41, 0x5d, //0x0000070e popq %r13
0x41, 0x5e, //0x00000710 popq %r14
0x41, 0x5f, //0x00000712 popq %r15
0x5d, //0x00000714 popq %rbp
0xc5, 0xf8, 0x77, //0x00000715 vzeroupper
0xc3, //0x00000718 retq
//0x00000719 LBB0_1
0x48, 0xc7, 0xc0, 0xff, 0xff, 0xff, 0xff, //0x00000719 movq $-1, %rax
0xe9, 0xdc, 0xff, 0xff, 0xff, //0x00000720 jmp LBB0_83
//0x00000725 LBB0_8
0x49, 0xc7, 0xc7, 0xff, 0xff, 0xff, 0xff, //0x00000725 movq $-1, %r15
0x49, 0xc7, 0xc4, 0xff, 0xff, 0xff, 0xff, //0x0000072c movq $-1, %r12
0x4d, 0x89, 0xf3, //0x00000733 movq %r14, %r11
0x49, 0x83, 0xfa, 0x10, //0x00000736 cmpq $16, %r10
0x0f, 0x83, 0x27, 0xfc, 0xff, 0xff, //0x0000073a jae LBB0_30
0xe9, 0x8c, 0xfd, 0xff, 0xff, //0x00000740 jmp LBB0_51
0x90, 0x90, 0x90, //0x00000745 .p2align 2, 0x90
// // .set L0_0_set_61, LBB0_61-LJTI0_0
// // .set L0_0_set_65, LBB0_65-LJTI0_0
// // .set L0_0_set_59, LBB0_59-LJTI0_0
// // .set L0_0_set_56, LBB0_56-LJTI0_0
//0x00000748 LJTI0_0
0xfb, 0xfd, 0xff, 0xff, //0x00000748 .long L0_0_set_61
0x67, 0xfe, 0xff, 0xff, //0x0000074c .long L0_0_set_65
0xfb, 0xfd, 0xff, 0xff, //0x00000750 .long L0_0_set_61
0x0e, 0xfe, 0xff, 0xff, //0x00000754 .long L0_0_set_59
0x67, 0xfe, 0xff, 0xff, //0x00000758 .long L0_0_set_65
0x67, 0xfe, 0xff, 0xff, //0x0000075c .long L0_0_set_65
0x67, 0xfe, 0xff, 0xff, //0x00000760 .long L0_0_set_65
0x67, 0xfe, 0xff, 0xff, //0x00000764 .long L0_0_set_65
0x67, 0xfe, 0xff, 0xff, //0x00000768 .long L0_0_set_65
0x67, 0xfe, 0xff, 0xff, //0x0000076c .long L0_0_set_65
0x67, 0xfe, 0xff, 0xff, //0x00000770 .long L0_0_set_65
0x67, 0xfe, 0xff, 0xff, //0x00000774 .long L0_0_set_65
0x67, 0xfe, 0xff, 0xff, //0x00000778 .long L0_0_set_65
0x67, 0xfe, 0xff, 0xff, //0x0000077c .long L0_0_set_65
0x67, 0xfe, 0xff, 0xff, //0x00000780 .long L0_0_set_65
0x67, 0xfe, 0xff, 0xff, //0x00000784 .long L0_0_set_65
0x67, 0xfe, 0xff, 0xff, //0x00000788 .long L0_0_set_65
0x67, 0xfe, 0xff, 0xff, //0x0000078c .long L0_0_set_65
0x67, 0xfe, 0xff, 0xff, //0x00000790 .long L0_0_set_65
0x67, 0xfe, 0xff, 0xff, //0x00000794 .long L0_0_set_65
0x67, 0xfe, 0xff, 0xff, //0x00000798 .long L0_0_set_65
0x67, 0xfe, 0xff, 0xff, //0x0000079c .long L0_0_set_65
0x67, 0xfe, 0xff, 0xff, //0x000007a0 .long L0_0_set_65
0x67, 0xfe, 0xff, 0xff, //0x000007a4 .long L0_0_set_65
0x67, 0xfe, 0xff, 0xff, //0x000007a8 .long L0_0_set_65
0x67, 0xfe, 0xff, 0xff, //0x000007ac .long L0_0_set_65
0xb3, 0xfd, 0xff, 0xff, //0x000007b0 .long L0_0_set_56
//0x000007b4 .p2align 2, 0x00
//0x000007b4 _MASK_USE_NUMBER
0x02, 0x00, 0x00, 0x00, //0x000007b4 .long 2
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/skip_number.go | vendor/github.com/bytedance/sonic/internal/native/avx2/skip_number.go | // Code generated by Makefile, DO NOT EDIT.
/*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the License );
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package avx2
import (
`unsafe`
`github.com/bytedance/sonic/internal/rt`
)
var F_skip_number func(s unsafe.Pointer, p unsafe.Pointer) (ret int)
var S_skip_number uintptr
//go:nosplit
func skip_number(s *string, p *int) (ret int) {
return F_skip_number(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)))
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/quote_subr.go | vendor/github.com/bytedance/sonic/internal/native/avx2/quote_subr.go | // +build !noasm !appengine
// Code generated by asm2asm, DO NOT EDIT.
package avx2
import (
`github.com/bytedance/sonic/loader`
)
const (
_entry__quote = 144
)
const (
_stack__quote = 72
)
const (
_size__quote = 2880
)
var (
_pcsp__quote = [][2]uint32{
{0x1, 0},
{0x6, 8},
{0x8, 16},
{0xa, 24},
{0xc, 32},
{0xd, 40},
{0x11, 48},
{0xb10, 72},
{0xb11, 48},
{0xb13, 40},
{0xb15, 32},
{0xb17, 24},
{0xb19, 16},
{0xb1a, 8},
{0xb1e, 0},
{0xb40, 72},
}
)
var _cfunc_quote = []loader.CFunc{
{"_quote_entry", 0, _entry__quote, 0, nil},
{"_quote", _entry__quote, _size__quote, _stack__quote, _pcsp__quote},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/f64toa_subr.go | vendor/github.com/bytedance/sonic/internal/native/avx2/f64toa_subr.go | // +build !noasm !appengine
// Code generated by asm2asm, DO NOT EDIT.
package avx2
import (
`github.com/bytedance/sonic/loader`
)
const (
_entry__f64toa = 48
)
const (
_stack__f64toa = 72
)
const (
_size__f64toa = 5088
)
var (
_pcsp__f64toa = [][2]uint32{
{0x1, 0},
{0x6, 8},
{0x8, 16},
{0xa, 24},
{0xc, 32},
{0xd, 40},
{0x11, 48},
{0x137d, 72},
{0x137e, 48},
{0x1380, 40},
{0x1382, 32},
{0x1384, 24},
{0x1386, 16},
{0x1387, 8},
{0x138b, 0},
{0x13e0, 72},
}
)
var _cfunc_f64toa = []loader.CFunc{
{"_f64toa_entry", 0, _entry__f64toa, 0, nil},
{"_f64toa", _entry__f64toa, _size__f64toa, _stack__f64toa, _pcsp__f64toa},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/validate_utf8_subr.go | vendor/github.com/bytedance/sonic/internal/native/avx2/validate_utf8_subr.go | // +build !noasm !appengine
// Code generated by asm2asm, DO NOT EDIT.
package avx2
import (
`github.com/bytedance/sonic/loader`
)
const (
_entry__validate_utf8 = 0
)
const (
_stack__validate_utf8 = 48
)
const (
_size__validate_utf8 = 684
)
var (
_pcsp__validate_utf8 = [][2]uint32{
{0x1, 0},
{0x6, 8},
{0x8, 16},
{0xa, 24},
{0xb, 32},
{0xc, 40},
{0x283, 48},
{0x284, 40},
{0x286, 32},
{0x288, 24},
{0x28a, 16},
{0x28b, 8},
{0x28c, 0},
{0x2ac, 48},
}
)
var _cfunc_validate_utf8 = []loader.CFunc{
{"_validate_utf8_entry", 0, _entry__validate_utf8, 0, nil},
{"_validate_utf8", _entry__validate_utf8, _size__validate_utf8, _stack__validate_utf8, _pcsp__validate_utf8},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/skip_one_text_amd64.go | vendor/github.com/bytedance/sonic/internal/native/avx2/skip_one_text_amd64.go | // +build amd64
// Code generated by asm2asm, DO NOT EDIT.
package avx2
var _text_skip_one = []byte{
// .p2align 5, 0x00
// LCPI0_0
0x20, // .byte 32
0x00, //0x00000001 .byte 0
0x00, //0x00000002 .byte 0
0x00, //0x00000003 .byte 0
0x00, //0x00000004 .byte 0
0x00, //0x00000005 .byte 0
0x00, //0x00000006 .byte 0
0x00, //0x00000007 .byte 0
0x00, //0x00000008 .byte 0
0x09, //0x00000009 .byte 9
0x0a, //0x0000000a .byte 10
0x00, //0x0000000b .byte 0
0x00, //0x0000000c .byte 0
0x0d, //0x0000000d .byte 13
0x00, //0x0000000e .byte 0
0x00, //0x0000000f .byte 0
0x20, //0x00000010 .byte 32
0x00, //0x00000011 .byte 0
0x00, //0x00000012 .byte 0
0x00, //0x00000013 .byte 0
0x00, //0x00000014 .byte 0
0x00, //0x00000015 .byte 0
0x00, //0x00000016 .byte 0
0x00, //0x00000017 .byte 0
0x00, //0x00000018 .byte 0
0x09, //0x00000019 .byte 9
0x0a, //0x0000001a .byte 10
0x00, //0x0000001b .byte 0
0x00, //0x0000001c .byte 0
0x0d, //0x0000001d .byte 13
0x00, //0x0000001e .byte 0
0x00, //0x0000001f .byte 0
//0x00000020 LCPI0_1
0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, //0x00000020 QUAD $0x2c2c2c2c2c2c2c2c; QUAD $0x2c2c2c2c2c2c2c2c // .space 16, ',,,,,,,,,,,,,,,,'
0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, //0x00000030 QUAD $0x2c2c2c2c2c2c2c2c; QUAD $0x2c2c2c2c2c2c2c2c // .space 16, ',,,,,,,,,,,,,,,,'
//0x00000040 LCPI0_2
0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, //0x00000040 QUAD $0xdfdfdfdfdfdfdfdf; QUAD $0xdfdfdfdfdfdfdfdf // .space 16, '\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf'
0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, //0x00000050 QUAD $0xdfdfdfdfdfdfdfdf; QUAD $0xdfdfdfdfdfdfdfdf // .space 16, '\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf'
//0x00000060 LCPI0_3
0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, //0x00000060 QUAD $0x5d5d5d5d5d5d5d5d; QUAD $0x5d5d5d5d5d5d5d5d // .space 16, ']]]]]]]]]]]]]]]]'
0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, //0x00000070 QUAD $0x5d5d5d5d5d5d5d5d; QUAD $0x5d5d5d5d5d5d5d5d // .space 16, ']]]]]]]]]]]]]]]]'
//0x00000080 LCPI0_7
0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, //0x00000080 QUAD $0x2222222222222222; QUAD $0x2222222222222222 // .space 16, '""""""""""""""""'
0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, //0x00000090 QUAD $0x2222222222222222; QUAD $0x2222222222222222 // .space 16, '""""""""""""""""'
//0x000000a0 LCPI0_8
0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, //0x000000a0 QUAD $0x5c5c5c5c5c5c5c5c; QUAD $0x5c5c5c5c5c5c5c5c // .space 16, '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, //0x000000b0 QUAD $0x5c5c5c5c5c5c5c5c; QUAD $0x5c5c5c5c5c5c5c5c // .space 16, '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
//0x000000c0 LCPI0_9
0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, //0x000000c0 QUAD $0x7b7b7b7b7b7b7b7b; QUAD $0x7b7b7b7b7b7b7b7b // .space 16, '{{{{{{{{{{{{{{{{'
0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, //0x000000d0 QUAD $0x7b7b7b7b7b7b7b7b; QUAD $0x7b7b7b7b7b7b7b7b // .space 16, '{{{{{{{{{{{{{{{{'
//0x000000e0 LCPI0_10
0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, //0x000000e0 QUAD $0x7d7d7d7d7d7d7d7d; QUAD $0x7d7d7d7d7d7d7d7d // .space 16, '}}}}}}}}}}}}}}}}'
0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, //0x000000f0 QUAD $0x7d7d7d7d7d7d7d7d; QUAD $0x7d7d7d7d7d7d7d7d // .space 16, '}}}}}}}}}}}}}}}}'
//0x00000100 LCPI0_11
0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, //0x00000100 QUAD $0x5b5b5b5b5b5b5b5b; QUAD $0x5b5b5b5b5b5b5b5b // .space 16, '[[[[[[[[[[[[[[[['
0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, //0x00000110 QUAD $0x5b5b5b5b5b5b5b5b; QUAD $0x5b5b5b5b5b5b5b5b // .space 16, '[[[[[[[[[[[[[[[['
//0x00000120 LCPI0_13
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, //0x00000120 QUAD $0x2020202020202020; QUAD $0x2020202020202020 // .space 16, ' '
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, //0x00000130 QUAD $0x2020202020202020; QUAD $0x2020202020202020 // .space 16, ' '
//0x00000140 LCPI0_14
0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, //0x00000140 QUAD $0x2f2f2f2f2f2f2f2f; QUAD $0x2f2f2f2f2f2f2f2f // .space 16, '////////////////'
0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, //0x00000150 QUAD $0x2f2f2f2f2f2f2f2f; QUAD $0x2f2f2f2f2f2f2f2f // .space 16, '////////////////'
//0x00000160 LCPI0_15
0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, //0x00000160 QUAD $0x3a3a3a3a3a3a3a3a; QUAD $0x3a3a3a3a3a3a3a3a // .space 16, '::::::::::::::::'
0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, //0x00000170 QUAD $0x3a3a3a3a3a3a3a3a; QUAD $0x3a3a3a3a3a3a3a3a // .space 16, '::::::::::::::::'
//0x00000180 LCPI0_16
0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, //0x00000180 QUAD $0x2b2b2b2b2b2b2b2b; QUAD $0x2b2b2b2b2b2b2b2b // .space 16, '++++++++++++++++'
0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, //0x00000190 QUAD $0x2b2b2b2b2b2b2b2b; QUAD $0x2b2b2b2b2b2b2b2b // .space 16, '++++++++++++++++'
//0x000001a0 LCPI0_17
0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, //0x000001a0 QUAD $0x2d2d2d2d2d2d2d2d; QUAD $0x2d2d2d2d2d2d2d2d // .space 16, '----------------'
0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, //0x000001b0 QUAD $0x2d2d2d2d2d2d2d2d; QUAD $0x2d2d2d2d2d2d2d2d // .space 16, '----------------'
//0x000001c0 LCPI0_18
0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, //0x000001c0 QUAD $0x2e2e2e2e2e2e2e2e; QUAD $0x2e2e2e2e2e2e2e2e // .space 16, '................'
0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, //0x000001d0 QUAD $0x2e2e2e2e2e2e2e2e; QUAD $0x2e2e2e2e2e2e2e2e // .space 16, '................'
//0x000001e0 LCPI0_19
0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, //0x000001e0 QUAD $0x4545454545454545; QUAD $0x4545454545454545 // .space 16, 'EEEEEEEEEEEEEEEE'
0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, //0x000001f0 QUAD $0x4545454545454545; QUAD $0x4545454545454545 // .space 16, 'EEEEEEEEEEEEEEEE'
//0x00000200 .p2align 4, 0x00
//0x00000200 LCPI0_4
0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, //0x00000200 QUAD $0x2c2c2c2c2c2c2c2c; QUAD $0x2c2c2c2c2c2c2c2c // .space 16, ',,,,,,,,,,,,,,,,'
//0x00000210 LCPI0_5
0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, //0x00000210 QUAD $0xdfdfdfdfdfdfdfdf; QUAD $0xdfdfdfdfdfdfdfdf // .space 16, '\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf'
//0x00000220 LCPI0_6
0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, //0x00000220 QUAD $0x5d5d5d5d5d5d5d5d; QUAD $0x5d5d5d5d5d5d5d5d // .space 16, ']]]]]]]]]]]]]]]]'
//0x00000230 LCPI0_12
0x01, 0x00, 0x00, 0x00, //0x00000230 .long 1
0x00, 0x00, 0x00, 0x00, //0x00000234 .long 0
0x00, 0x00, 0x00, 0x00, //0x00000238 .long 0
0x00, 0x00, 0x00, 0x00, //0x0000023c .long 0
//0x00000240 LCPI0_20
0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, //0x00000240 QUAD $0x2f2f2f2f2f2f2f2f; QUAD $0x2f2f2f2f2f2f2f2f // .space 16, '////////////////'
//0x00000250 LCPI0_21
0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, //0x00000250 QUAD $0x3a3a3a3a3a3a3a3a; QUAD $0x3a3a3a3a3a3a3a3a // .space 16, '::::::::::::::::'
//0x00000260 LCPI0_22
0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, //0x00000260 QUAD $0x2b2b2b2b2b2b2b2b; QUAD $0x2b2b2b2b2b2b2b2b // .space 16, '++++++++++++++++'
//0x00000270 LCPI0_23
0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, //0x00000270 QUAD $0x2d2d2d2d2d2d2d2d; QUAD $0x2d2d2d2d2d2d2d2d // .space 16, '----------------'
//0x00000280 LCPI0_24
0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, //0x00000280 QUAD $0x2e2e2e2e2e2e2e2e; QUAD $0x2e2e2e2e2e2e2e2e // .space 16, '................'
//0x00000290 LCPI0_25
0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, //0x00000290 QUAD $0x4545454545454545; QUAD $0x4545454545454545 // .space 16, 'EEEEEEEEEEEEEEEE'
//0x000002a0 .p2align 4, 0x90
//0x000002a0 _skip_one
0x55, //0x000002a0 pushq %rbp
0x48, 0x89, 0xe5, //0x000002a1 movq %rsp, %rbp
0x41, 0x57, //0x000002a4 pushq %r15
0x41, 0x56, //0x000002a6 pushq %r14
0x41, 0x55, //0x000002a8 pushq %r13
0x41, 0x54, //0x000002aa pushq %r12
0x53, //0x000002ac pushq %rbx
0x48, 0x81, 0xec, 0xa0, 0x00, 0x00, 0x00, //0x000002ad subq $160, %rsp
0x49, 0x89, 0xca, //0x000002b4 movq %rcx, %r10
0x49, 0x89, 0xf3, //0x000002b7 movq %rsi, %r11
0x49, 0x89, 0xfd, //0x000002ba movq %rdi, %r13
0x41, 0xf6, 0xc2, 0x40, //0x000002bd testb $64, %r10b
0x0f, 0x85, 0x82, 0x00, 0x00, 0x00, //0x000002c1 jne LBB0_2
0x49, 0x89, 0xd1, //0x000002c7 movq %rdx, %r9
0xc5, 0xfa, 0x6f, 0x05, 0x5e, 0xff, 0xff, 0xff, //0x000002ca vmovdqu $-162(%rip), %xmm0 /* LCPI0_12+0(%rip) */
0xc5, 0xfa, 0x7f, 0x02, //0x000002d2 vmovdqu %xmm0, (%rdx)
0x49, 0xc7, 0xc6, 0xff, 0xff, 0xff, 0xff, //0x000002d6 movq $-1, %r14
0xc5, 0xfe, 0x6f, 0x2d, 0x1b, 0xfd, 0xff, 0xff, //0x000002dd vmovdqu $-741(%rip), %ymm5 /* LCPI0_0+0(%rip) */
0xc5, 0xfe, 0x6f, 0x35, 0x93, 0xfd, 0xff, 0xff, //0x000002e5 vmovdqu $-621(%rip), %ymm6 /* LCPI0_7+0(%rip) */
0xc5, 0xfe, 0x6f, 0x3d, 0xab, 0xfd, 0xff, 0xff, //0x000002ed vmovdqu $-597(%rip), %ymm7 /* LCPI0_8+0(%rip) */
0xc5, 0x7e, 0x6f, 0x05, 0x23, 0xfe, 0xff, 0xff, //0x000002f5 vmovdqu $-477(%rip), %ymm8 /* LCPI0_13+0(%rip) */
0xc4, 0x41, 0x35, 0x76, 0xc9, //0x000002fd vpcmpeqd %ymm9, %ymm9, %ymm9
0xc5, 0x7e, 0x6f, 0x15, 0x36, 0xfe, 0xff, 0xff, //0x00000302 vmovdqu $-458(%rip), %ymm10 /* LCPI0_14+0(%rip) */
0xc5, 0x7e, 0x6f, 0x1d, 0x4e, 0xfe, 0xff, 0xff, //0x0000030a vmovdqu $-434(%rip), %ymm11 /* LCPI0_15+0(%rip) */
0xc5, 0x7e, 0x6f, 0x25, 0x66, 0xfe, 0xff, 0xff, //0x00000312 vmovdqu $-410(%rip), %ymm12 /* LCPI0_16+0(%rip) */
0xc5, 0x7e, 0x6f, 0x2d, 0x7e, 0xfe, 0xff, 0xff, //0x0000031a vmovdqu $-386(%rip), %ymm13 /* LCPI0_17+0(%rip) */
0xc5, 0x7e, 0x6f, 0x35, 0x16, 0xfd, 0xff, 0xff, //0x00000322 vmovdqu $-746(%rip), %ymm14 /* LCPI0_2+0(%rip) */
0xc5, 0x7e, 0x6f, 0x3d, 0x8e, 0xfe, 0xff, 0xff, //0x0000032a vmovdqu $-370(%rip), %ymm15 /* LCPI0_18+0(%rip) */
0xc5, 0xfe, 0x6f, 0x25, 0xa6, 0xfe, 0xff, 0xff, //0x00000332 vmovdqu $-346(%rip), %ymm4 /* LCPI0_19+0(%rip) */
0x4c, 0x89, 0x54, 0x24, 0x18, //0x0000033a movq %r10, $24(%rsp)
0x4c, 0x89, 0x5c, 0x24, 0x08, //0x0000033f movq %r11, $8(%rsp)
0xe9, 0xc7, 0x03, 0x00, 0x00, //0x00000344 jmp LBB0_57
//0x00000349 LBB0_2
0x4d, 0x8b, 0x55, 0x00, //0x00000349 movq (%r13), %r10
0x49, 0x8b, 0x55, 0x08, //0x0000034d movq $8(%r13), %rdx
0x49, 0x8b, 0x33, //0x00000351 movq (%r11), %rsi
0x48, 0x39, 0xd6, //0x00000354 cmpq %rdx, %rsi
0x0f, 0x83, 0x26, 0x00, 0x00, 0x00, //0x00000357 jae LBB0_7
0x41, 0x8a, 0x04, 0x32, //0x0000035d movb (%r10,%rsi), %al
0x3c, 0x0d, //0x00000361 cmpb $13, %al
0x0f, 0x84, 0x1a, 0x00, 0x00, 0x00, //0x00000363 je LBB0_7
0x3c, 0x20, //0x00000369 cmpb $32, %al
0x0f, 0x84, 0x12, 0x00, 0x00, 0x00, //0x0000036b je LBB0_7
0x04, 0xf7, //0x00000371 addb $-9, %al
0x3c, 0x01, //0x00000373 cmpb $1, %al
0x0f, 0x86, 0x08, 0x00, 0x00, 0x00, //0x00000375 jbe LBB0_7
0x48, 0x89, 0xf0, //0x0000037b movq %rsi, %rax
0xe9, 0x7b, 0x01, 0x00, 0x00, //0x0000037e jmp LBB0_33
//0x00000383 LBB0_7
0x48, 0x8d, 0x46, 0x01, //0x00000383 leaq $1(%rsi), %rax
0x48, 0x39, 0xd0, //0x00000387 cmpq %rdx, %rax
0x0f, 0x83, 0x22, 0x00, 0x00, 0x00, //0x0000038a jae LBB0_11
0x41, 0x8a, 0x0c, 0x02, //0x00000390 movb (%r10,%rax), %cl
0x80, 0xf9, 0x0d, //0x00000394 cmpb $13, %cl
0x0f, 0x84, 0x15, 0x00, 0x00, 0x00, //0x00000397 je LBB0_11
0x80, 0xf9, 0x20, //0x0000039d cmpb $32, %cl
0x0f, 0x84, 0x0c, 0x00, 0x00, 0x00, //0x000003a0 je LBB0_11
0x80, 0xc1, 0xf7, //0x000003a6 addb $-9, %cl
0x80, 0xf9, 0x01, //0x000003a9 cmpb $1, %cl
0x0f, 0x87, 0x4c, 0x01, 0x00, 0x00, //0x000003ac ja LBB0_33
//0x000003b2 LBB0_11
0x48, 0x8d, 0x46, 0x02, //0x000003b2 leaq $2(%rsi), %rax
0x48, 0x39, 0xd0, //0x000003b6 cmpq %rdx, %rax
0x0f, 0x83, 0x22, 0x00, 0x00, 0x00, //0x000003b9 jae LBB0_15
0x41, 0x8a, 0x0c, 0x02, //0x000003bf movb (%r10,%rax), %cl
0x80, 0xf9, 0x0d, //0x000003c3 cmpb $13, %cl
0x0f, 0x84, 0x15, 0x00, 0x00, 0x00, //0x000003c6 je LBB0_15
0x80, 0xf9, 0x20, //0x000003cc cmpb $32, %cl
0x0f, 0x84, 0x0c, 0x00, 0x00, 0x00, //0x000003cf je LBB0_15
0x80, 0xc1, 0xf7, //0x000003d5 addb $-9, %cl
0x80, 0xf9, 0x01, //0x000003d8 cmpb $1, %cl
0x0f, 0x87, 0x1d, 0x01, 0x00, 0x00, //0x000003db ja LBB0_33
//0x000003e1 LBB0_15
0x48, 0x8d, 0x46, 0x03, //0x000003e1 leaq $3(%rsi), %rax
0x48, 0x39, 0xd0, //0x000003e5 cmpq %rdx, %rax
0x0f, 0x83, 0x22, 0x00, 0x00, 0x00, //0x000003e8 jae LBB0_19
0x41, 0x8a, 0x0c, 0x02, //0x000003ee movb (%r10,%rax), %cl
0x80, 0xf9, 0x0d, //0x000003f2 cmpb $13, %cl
0x0f, 0x84, 0x15, 0x00, 0x00, 0x00, //0x000003f5 je LBB0_19
0x80, 0xf9, 0x20, //0x000003fb cmpb $32, %cl
0x0f, 0x84, 0x0c, 0x00, 0x00, 0x00, //0x000003fe je LBB0_19
0x80, 0xc1, 0xf7, //0x00000404 addb $-9, %cl
0x80, 0xf9, 0x01, //0x00000407 cmpb $1, %cl
0x0f, 0x87, 0xee, 0x00, 0x00, 0x00, //0x0000040a ja LBB0_33
//0x00000410 LBB0_19
0x48, 0x8d, 0x46, 0x04, //0x00000410 leaq $4(%rsi), %rax
0x48, 0x89, 0xd7, //0x00000414 movq %rdx, %rdi
0x48, 0x29, 0xc7, //0x00000417 subq %rax, %rdi
0x0f, 0x86, 0xb7, 0x00, 0x00, 0x00, //0x0000041a jbe LBB0_31
0x48, 0x83, 0xff, 0x20, //0x00000420 cmpq $32, %rdi
0x0f, 0x82, 0xab, 0x32, 0x00, 0x00, //0x00000424 jb LBB0_666
0x48, 0xc7, 0xc7, 0xfc, 0xff, 0xff, 0xff, //0x0000042a movq $-4, %rdi
0x48, 0x29, 0xf7, //0x00000431 subq %rsi, %rdi
0xc5, 0xfe, 0x6f, 0x05, 0xc4, 0xfb, 0xff, 0xff, //0x00000434 vmovdqu $-1084(%rip), %ymm0 /* LCPI0_0+0(%rip) */
0x90, 0x90, 0x90, 0x90, //0x0000043c .p2align 4, 0x90
//0x00000440 LBB0_22
0xc4, 0xc1, 0x7e, 0x6f, 0x0c, 0x02, //0x00000440 vmovdqu (%r10,%rax), %ymm1
0xc4, 0xe2, 0x7d, 0x00, 0xd1, //0x00000446 vpshufb %ymm1, %ymm0, %ymm2
0xc5, 0xf5, 0x74, 0xca, //0x0000044b vpcmpeqb %ymm2, %ymm1, %ymm1
0xc5, 0xfd, 0xd7, 0xc9, //0x0000044f vpmovmskb %ymm1, %ecx
0x83, 0xf9, 0xff, //0x00000453 cmpl $-1, %ecx
0x0f, 0x85, 0x8a, 0x00, 0x00, 0x00, //0x00000456 jne LBB0_32
0x48, 0x83, 0xc0, 0x20, //0x0000045c addq $32, %rax
0x48, 0x8d, 0x0c, 0x3a, //0x00000460 leaq (%rdx,%rdi), %rcx
0x48, 0x83, 0xc1, 0xe0, //0x00000464 addq $-32, %rcx
0x48, 0x83, 0xc7, 0xe0, //0x00000468 addq $-32, %rdi
0x48, 0x83, 0xf9, 0x1f, //0x0000046c cmpq $31, %rcx
0x0f, 0x87, 0xca, 0xff, 0xff, 0xff, //0x00000470 ja LBB0_22
0x4c, 0x89, 0xd0, //0x00000476 movq %r10, %rax
0x48, 0x29, 0xf8, //0x00000479 subq %rdi, %rax
0x48, 0x01, 0xd7, //0x0000047c addq %rdx, %rdi
0x48, 0x85, 0xff, //0x0000047f testq %rdi, %rdi
0x0f, 0x84, 0x37, 0x00, 0x00, 0x00, //0x00000482 je LBB0_30
//0x00000488 LBB0_25
0x4c, 0x8d, 0x04, 0x38, //0x00000488 leaq (%rax,%rdi), %r8
0x31, 0xf6, //0x0000048c xorl %esi, %esi
0x48, 0xb9, 0x00, 0x26, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, //0x0000048e movabsq $4294977024, %rcx
//0x00000498 LBB0_26
0x0f, 0xbe, 0x1c, 0x30, //0x00000498 movsbl (%rax,%rsi), %ebx
0x83, 0xfb, 0x20, //0x0000049c cmpl $32, %ebx
0x0f, 0x87, 0xe8, 0x31, 0x00, 0x00, //0x0000049f ja LBB0_663
0x48, 0x0f, 0xa3, 0xd9, //0x000004a5 btq %rbx, %rcx
0x0f, 0x83, 0xde, 0x31, 0x00, 0x00, //0x000004a9 jae LBB0_663
0x48, 0x83, 0xc6, 0x01, //0x000004af addq $1, %rsi
0x48, 0x39, 0xf7, //0x000004b3 cmpq %rsi, %rdi
0x0f, 0x85, 0xdc, 0xff, 0xff, 0xff, //0x000004b6 jne LBB0_26
0x4c, 0x89, 0xc0, //0x000004bc movq %r8, %rax
//0x000004bf LBB0_30
0x4c, 0x29, 0xd0, //0x000004bf subq %r10, %rax
0x49, 0xc7, 0xc7, 0xff, 0xff, 0xff, 0xff, //0x000004c2 movq $-1, %r15
0x48, 0x39, 0xd0, //0x000004c9 cmpq %rdx, %rax
0x0f, 0x82, 0x2c, 0x00, 0x00, 0x00, //0x000004cc jb LBB0_33
0xe9, 0x01, 0x30, 0x00, 0x00, //0x000004d2 jmp LBB0_638
//0x000004d7 LBB0_31
0x49, 0x89, 0x03, //0x000004d7 movq %rax, (%r11)
0x49, 0xc7, 0xc7, 0xff, 0xff, 0xff, 0xff, //0x000004da movq $-1, %r15
0xe9, 0xf2, 0x2f, 0x00, 0x00, //0x000004e1 jmp LBB0_638
//0x000004e6 LBB0_32
0xf7, 0xd1, //0x000004e6 notl %ecx
0x0f, 0xbc, 0xc1, //0x000004e8 bsfl %ecx, %eax
0x48, 0x29, 0xf8, //0x000004eb subq %rdi, %rax
0x49, 0xc7, 0xc7, 0xff, 0xff, 0xff, 0xff, //0x000004ee movq $-1, %r15
0x48, 0x39, 0xd0, //0x000004f5 cmpq %rdx, %rax
0x0f, 0x83, 0xda, 0x2f, 0x00, 0x00, //0x000004f8 jae LBB0_638
//0x000004fe LBB0_33
0x48, 0x8d, 0x50, 0x01, //0x000004fe leaq $1(%rax), %rdx
0x49, 0x89, 0x13, //0x00000502 movq %rdx, (%r11)
0x41, 0x0f, 0xbe, 0x0c, 0x02, //0x00000505 movsbl (%r10,%rax), %ecx
0x83, 0xf9, 0x7b, //0x0000050a cmpl $123, %ecx
0x0f, 0x87, 0xcd, 0x28, 0x00, 0x00, //0x0000050d ja LBB0_569
0x49, 0xc7, 0xc7, 0xff, 0xff, 0xff, 0xff, //0x00000513 movq $-1, %r15
0x48, 0x8d, 0x35, 0x7b, 0x32, 0x00, 0x00, //0x0000051a leaq $12923(%rip), %rsi /* LJTI0_0+0(%rip) */
0x48, 0x63, 0x0c, 0x8e, //0x00000521 movslq (%rsi,%rcx,4), %rcx
0x48, 0x01, 0xf1, //0x00000525 addq %rsi, %rcx
0xff, 0xe1, //0x00000528 jmpq *%rcx
//0x0000052a LBB0_35
0x49, 0x8b, 0x7d, 0x08, //0x0000052a movq $8(%r13), %rdi
0x48, 0x89, 0xfe, //0x0000052e movq %rdi, %rsi
0x48, 0x29, 0xd6, //0x00000531 subq %rdx, %rsi
0x48, 0x83, 0xfe, 0x20, //0x00000534 cmpq $32, %rsi
0x0f, 0x82, 0xa8, 0x31, 0x00, 0x00, //0x00000538 jb LBB0_667
0x48, 0x89, 0xc6, //0x0000053e movq %rax, %rsi
0x48, 0xf7, 0xd6, //0x00000541 notq %rsi
0xc5, 0xfe, 0x6f, 0x05, 0xd4, 0xfa, 0xff, 0xff, //0x00000544 vmovdqu $-1324(%rip), %ymm0 /* LCPI0_1+0(%rip) */
0xc5, 0xfe, 0x6f, 0x0d, 0xec, 0xfa, 0xff, 0xff, //0x0000054c vmovdqu $-1300(%rip), %ymm1 /* LCPI0_2+0(%rip) */
0xc5, 0xfe, 0x6f, 0x15, 0x04, 0xfb, 0xff, 0xff, //0x00000554 vmovdqu $-1276(%rip), %ymm2 /* LCPI0_3+0(%rip) */
0x90, 0x90, 0x90, 0x90, //0x0000055c .p2align 4, 0x90
//0x00000560 LBB0_37
0xc4, 0xc1, 0x7e, 0x6f, 0x1c, 0x12, //0x00000560 vmovdqu (%r10,%rdx), %ymm3
0xc5, 0xe5, 0x74, 0xe0, //0x00000566 vpcmpeqb %ymm0, %ymm3, %ymm4
0xc5, 0xe5, 0xdb, 0xd9, //0x0000056a vpand %ymm1, %ymm3, %ymm3
0xc5, 0xe5, 0x74, 0xda, //0x0000056e vpcmpeqb %ymm2, %ymm3, %ymm3
0xc5, 0xe5, 0xeb, 0xdc, //0x00000572 vpor %ymm4, %ymm3, %ymm3
0xc5, 0xfd, 0xd7, 0xcb, //0x00000576 vpmovmskb %ymm3, %ecx
0x85, 0xc9, //0x0000057a testl %ecx, %ecx
0x0f, 0x85, 0xca, 0x00, 0x00, 0x00, //0x0000057c jne LBB0_51
0x48, 0x83, 0xc2, 0x20, //0x00000582 addq $32, %rdx
0x48, 0x8d, 0x0c, 0x37, //0x00000586 leaq (%rdi,%rsi), %rcx
0x48, 0x83, 0xc1, 0xe0, //0x0000058a addq $-32, %rcx
0x48, 0x83, 0xc6, 0xe0, //0x0000058e addq $-32, %rsi
0x48, 0x83, 0xf9, 0x1f, //0x00000592 cmpq $31, %rcx
0x0f, 0x87, 0xc4, 0xff, 0xff, 0xff, //0x00000596 ja LBB0_37
0x4c, 0x89, 0xd2, //0x0000059c movq %r10, %rdx
0x48, 0x29, 0xf2, //0x0000059f subq %rsi, %rdx
0x48, 0x01, 0xf7, //0x000005a2 addq %rsi, %rdi
0x48, 0x89, 0xfe, //0x000005a5 movq %rdi, %rsi
0x48, 0x83, 0xfe, 0x10, //0x000005a8 cmpq $16, %rsi
0x0f, 0x82, 0x54, 0x00, 0x00, 0x00, //0x000005ac jb LBB0_43
//0x000005b2 LBB0_40
0x4c, 0x89, 0xd7, //0x000005b2 movq %r10, %rdi
0x48, 0x29, 0xd7, //0x000005b5 subq %rdx, %rdi
0xc5, 0xfa, 0x6f, 0x05, 0x40, 0xfc, 0xff, 0xff, //0x000005b8 vmovdqu $-960(%rip), %xmm0 /* LCPI0_4+0(%rip) */
0xc5, 0xfa, 0x6f, 0x0d, 0x48, 0xfc, 0xff, 0xff, //0x000005c0 vmovdqu $-952(%rip), %xmm1 /* LCPI0_5+0(%rip) */
0xc5, 0xfa, 0x6f, 0x15, 0x50, 0xfc, 0xff, 0xff, //0x000005c8 vmovdqu $-944(%rip), %xmm2 /* LCPI0_6+0(%rip) */
//0x000005d0 LBB0_41
0xc5, 0xfa, 0x6f, 0x1a, //0x000005d0 vmovdqu (%rdx), %xmm3
0xc5, 0xe1, 0x74, 0xe0, //0x000005d4 vpcmpeqb %xmm0, %xmm3, %xmm4
0xc5, 0xe1, 0xdb, 0xd9, //0x000005d8 vpand %xmm1, %xmm3, %xmm3
0xc5, 0xe1, 0x74, 0xda, //0x000005dc vpcmpeqb %xmm2, %xmm3, %xmm3
0xc5, 0xe1, 0xeb, 0xdc, //0x000005e0 vpor %xmm4, %xmm3, %xmm3
0xc5, 0xf9, 0xd7, 0xcb, //0x000005e4 vpmovmskb %xmm3, %ecx
0x85, 0xc9, //0x000005e8 testl %ecx, %ecx
0x0f, 0x85, 0x70, 0x2f, 0x00, 0x00, //0x000005ea jne LBB0_647
0x48, 0x83, 0xc2, 0x10, //0x000005f0 addq $16, %rdx
0x48, 0x83, 0xc6, 0xf0, //0x000005f4 addq $-16, %rsi
0x48, 0x83, 0xc7, 0xf0, //0x000005f8 addq $-16, %rdi
0x48, 0x83, 0xfe, 0x0f, //0x000005fc cmpq $15, %rsi
0x0f, 0x87, 0xca, 0xff, 0xff, 0xff, //0x00000600 ja LBB0_41
//0x00000606 LBB0_43
0x48, 0x85, 0xf6, //0x00000606 testq %rsi, %rsi
0x0f, 0x84, 0x35, 0x00, 0x00, 0x00, //0x00000609 je LBB0_50
0x48, 0x8d, 0x1c, 0x32, //0x0000060f leaq (%rdx,%rsi), %rbx
0x31, 0xff, //0x00000613 xorl %edi, %edi
//0x00000615 LBB0_45
0x0f, 0xb6, 0x0c, 0x3a, //0x00000615 movzbl (%rdx,%rdi), %ecx
0x80, 0xf9, 0x2c, //0x00000619 cmpb $44, %cl
0x0f, 0x84, 0xd6, 0x30, 0x00, 0x00, //0x0000061c je LBB0_668
0x80, 0xf9, 0x7d, //0x00000622 cmpb $125, %cl
0x0f, 0x84, 0xcd, 0x30, 0x00, 0x00, //0x00000625 je LBB0_668
0x80, 0xf9, 0x5d, //0x0000062b cmpb $93, %cl
0x0f, 0x84, 0xc4, 0x30, 0x00, 0x00, //0x0000062e je LBB0_668
0x48, 0x83, 0xc7, 0x01, //0x00000634 addq $1, %rdi
0x48, 0x39, 0xfe, //0x00000638 cmpq %rdi, %rsi
0x0f, 0x85, 0xd4, 0xff, 0xff, 0xff, //0x0000063b jne LBB0_45
0x48, 0x89, 0xda, //0x00000641 movq %rbx, %rdx
//0x00000644 LBB0_50
0x4c, 0x29, 0xd2, //0x00000644 subq %r10, %rdx
0xe9, 0xb2, 0x30, 0x00, 0x00, //0x00000647 jmp LBB0_669
//0x0000064c LBB0_51
0x0f, 0xbc, 0xc9, //0x0000064c bsfl %ecx, %ecx
0x48, 0x29, 0xf1, //0x0000064f subq %rsi, %rcx
//0x00000652 LBB0_52
0x49, 0x89, 0x0b, //0x00000652 movq %rcx, (%r11)
0x49, 0x89, 0xc7, //0x00000655 movq %rax, %r15
0xe9, 0x7b, 0x2e, 0x00, 0x00, //0x00000658 jmp LBB0_638
//0x0000065d LBB0_634
0x49, 0xf7, 0xd8, //0x0000065d negq %r8
0x4c, 0x8b, 0x5c, 0x24, 0x08, //0x00000660 movq $8(%rsp), %r11
0xc5, 0xfe, 0x6f, 0x2d, 0x93, 0xf9, 0xff, 0xff, //0x00000665 vmovdqu $-1645(%rip), %ymm5 /* LCPI0_0+0(%rip) */
0xc5, 0xfe, 0x6f, 0x35, 0x0b, 0xfa, 0xff, 0xff, //0x0000066d vmovdqu $-1525(%rip), %ymm6 /* LCPI0_7+0(%rip) */
0xc5, 0xfe, 0x6f, 0x3d, 0x23, 0xfa, 0xff, 0xff, //0x00000675 vmovdqu $-1501(%rip), %ymm7 /* LCPI0_8+0(%rip) */
0xc5, 0x7e, 0x6f, 0x05, 0x9b, 0xfa, 0xff, 0xff, //0x0000067d vmovdqu $-1381(%rip), %ymm8 /* LCPI0_13+0(%rip) */
0xc4, 0x41, 0x35, 0x76, 0xc9, //0x00000685 vpcmpeqd %ymm9, %ymm9, %ymm9
0xc5, 0x7e, 0x6f, 0x15, 0xae, 0xfa, 0xff, 0xff, //0x0000068a vmovdqu $-1362(%rip), %ymm10 /* LCPI0_14+0(%rip) */
0xc5, 0x7e, 0x6f, 0x1d, 0xc6, 0xfa, 0xff, 0xff, //0x00000692 vmovdqu $-1338(%rip), %ymm11 /* LCPI0_15+0(%rip) */
0xc5, 0x7e, 0x6f, 0x25, 0xde, 0xfa, 0xff, 0xff, //0x0000069a vmovdqu $-1314(%rip), %ymm12 /* LCPI0_16+0(%rip) */
0xc5, 0x7e, 0x6f, 0x2d, 0xf6, 0xfa, 0xff, 0xff, //0x000006a2 vmovdqu $-1290(%rip), %ymm13 /* LCPI0_17+0(%rip) */
0xc5, 0x7e, 0x6f, 0x35, 0x8e, 0xf9, 0xff, 0xff, //0x000006aa vmovdqu $-1650(%rip), %ymm14 /* LCPI0_2+0(%rip) */
0xc5, 0x7e, 0x6f, 0x3d, 0x06, 0xfb, 0xff, 0xff, //0x000006b2 vmovdqu $-1274(%rip), %ymm15 /* LCPI0_18+0(%rip) */
0xc5, 0xfe, 0x6f, 0x25, 0x1e, 0xfb, 0xff, 0xff, //0x000006ba vmovdqu $-1250(%rip), %ymm4 /* LCPI0_19+0(%rip) */
0x4d, 0x85, 0xc0, //0x000006c2 testq %r8, %r8
0x4c, 0x8b, 0x54, 0x24, 0x18, //0x000006c5 movq $24(%rsp), %r10
0x0f, 0x88, 0xec, 0x2d, 0x00, 0x00, //0x000006ca js LBB0_635
//0x000006d0 LBB0_408
0x49, 0x8b, 0x0b, //0x000006d0 movq (%r11), %rcx
0x48, 0x83, 0xc1, 0xff, //0x000006d3 addq $-1, %rcx
//0x000006d7 LBB0_54
0x4c, 0x01, 0xc1, //0x000006d7 addq %r8, %rcx
0x49, 0x89, 0x0b, //0x000006da movq %rcx, (%r11)
0x48, 0x83, 0x7c, 0x24, 0x28, 0x00, //0x000006dd cmpq $0, $40(%rsp)
0x4c, 0x8b, 0x6c, 0x24, 0x38, //0x000006e3 movq $56(%rsp), %r13
0x0f, 0x8e, 0xea, 0x2d, 0x00, 0x00, //0x000006e8 jle LBB0_638
0x90, 0x90, //0x000006ee .p2align 4, 0x90
//0x000006f0 LBB0_55
0x49, 0x8b, 0x11, //0x000006f0 movq (%r9), %rdx
0x4d, 0x89, 0xf7, //0x000006f3 movq %r14, %r15
0x48, 0x85, 0xd2, //0x000006f6 testq %rdx, %rdx
0x0f, 0x85, 0x11, 0x00, 0x00, 0x00, //0x000006f9 jne LBB0_57
0xe9, 0xd4, 0x2d, 0x00, 0x00, //0x000006ff jmp LBB0_638
//0x00000704 LBB0_53
0x4c, 0x89, 0xf9, //0x00000704 movq %r15, %rcx
0xe9, 0xcb, 0xff, 0xff, 0xff, //0x00000707 jmp LBB0_54
0x90, 0x90, 0x90, 0x90, //0x0000070c .p2align 4, 0x90
//0x00000710 LBB0_57
0x4c, 0x89, 0xf1, //0x00000710 movq %r14, %rcx
0x4d, 0x8b, 0x45, 0x00, //0x00000713 movq (%r13), %r8
0x49, 0x8b, 0x75, 0x08, //0x00000717 movq $8(%r13), %rsi
0x49, 0x8b, 0x3b, //0x0000071b movq (%r11), %rdi
0x48, 0x39, 0xf7, //0x0000071e cmpq %rsi, %rdi
0x4c, 0x89, 0x44, 0x24, 0x10, //0x00000721 movq %r8, $16(%rsp)
0x0f, 0x83, 0x34, 0x00, 0x00, 0x00, //0x00000726 jae LBB0_62
0x41, 0x8a, 0x04, 0x38, //0x0000072c movb (%r8,%rdi), %al
0x3c, 0x0d, //0x00000730 cmpb $13, %al
0x0f, 0x84, 0x28, 0x00, 0x00, 0x00, //0x00000732 je LBB0_62
0x3c, 0x20, //0x00000738 cmpb $32, %al
0x0f, 0x84, 0x20, 0x00, 0x00, 0x00, //0x0000073a je LBB0_62
0x04, 0xf7, //0x00000740 addb $-9, %al
0x3c, 0x01, //0x00000742 cmpb $1, %al
0x0f, 0x86, 0x16, 0x00, 0x00, 0x00, //0x00000744 jbe LBB0_62
0x49, 0x89, 0xfe, //0x0000074a movq %rdi, %r14
0xe9, 0x80, 0x01, 0x00, 0x00, //0x0000074d jmp LBB0_87
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000752 .p2align 4, 0x90
//0x00000760 LBB0_62
0x4c, 0x8d, 0x77, 0x01, //0x00000760 leaq $1(%rdi), %r14
0x49, 0x39, 0xf6, //0x00000764 cmpq %rsi, %r14
0x0f, 0x83, 0x23, 0x00, 0x00, 0x00, //0x00000767 jae LBB0_66
0x43, 0x8a, 0x14, 0x30, //0x0000076d movb (%r8,%r14), %dl
0x80, 0xfa, 0x0d, //0x00000771 cmpb $13, %dl
0x0f, 0x84, 0x16, 0x00, 0x00, 0x00, //0x00000774 je LBB0_66
0x80, 0xfa, 0x20, //0x0000077a cmpb $32, %dl
0x0f, 0x84, 0x0d, 0x00, 0x00, 0x00, //0x0000077d je LBB0_66
0x80, 0xc2, 0xf7, //0x00000783 addb $-9, %dl
0x80, 0xfa, 0x01, //0x00000786 cmpb $1, %dl
0x0f, 0x87, 0x43, 0x01, 0x00, 0x00, //0x00000789 ja LBB0_87
0x90, //0x0000078f .p2align 4, 0x90
//0x00000790 LBB0_66
0x4c, 0x8d, 0x77, 0x02, //0x00000790 leaq $2(%rdi), %r14
0x49, 0x39, 0xf6, //0x00000794 cmpq %rsi, %r14
0x0f, 0x83, 0x23, 0x00, 0x00, 0x00, //0x00000797 jae LBB0_70
0x43, 0x8a, 0x14, 0x30, //0x0000079d movb (%r8,%r14), %dl
0x80, 0xfa, 0x0d, //0x000007a1 cmpb $13, %dl
0x0f, 0x84, 0x16, 0x00, 0x00, 0x00, //0x000007a4 je LBB0_70
0x80, 0xfa, 0x20, //0x000007aa cmpb $32, %dl
0x0f, 0x84, 0x0d, 0x00, 0x00, 0x00, //0x000007ad je LBB0_70
0x80, 0xc2, 0xf7, //0x000007b3 addb $-9, %dl
0x80, 0xfa, 0x01, //0x000007b6 cmpb $1, %dl
0x0f, 0x87, 0x13, 0x01, 0x00, 0x00, //0x000007b9 ja LBB0_87
0x90, //0x000007bf .p2align 4, 0x90
//0x000007c0 LBB0_70
0x4c, 0x8d, 0x77, 0x03, //0x000007c0 leaq $3(%rdi), %r14
0x49, 0x39, 0xf6, //0x000007c4 cmpq %rsi, %r14
0x0f, 0x83, 0x23, 0x00, 0x00, 0x00, //0x000007c7 jae LBB0_74
0x43, 0x8a, 0x14, 0x30, //0x000007cd movb (%r8,%r14), %dl
0x80, 0xfa, 0x0d, //0x000007d1 cmpb $13, %dl
0x0f, 0x84, 0x16, 0x00, 0x00, 0x00, //0x000007d4 je LBB0_74
0x80, 0xfa, 0x20, //0x000007da cmpb $32, %dl
0x0f, 0x84, 0x0d, 0x00, 0x00, 0x00, //0x000007dd je LBB0_74
0x80, 0xc2, 0xf7, //0x000007e3 addb $-9, %dl
0x80, 0xfa, 0x01, //0x000007e6 cmpb $1, %dl
0x0f, 0x87, 0xe3, 0x00, 0x00, 0x00, //0x000007e9 ja LBB0_87
0x90, //0x000007ef .p2align 4, 0x90
//0x000007f0 LBB0_74
0x4c, 0x8d, 0x77, 0x04, //0x000007f0 leaq $4(%rdi), %r14
0x48, 0x89, 0xf2, //0x000007f4 movq %rsi, %rdx
0x4c, 0x29, 0xf2, //0x000007f7 subq %r14, %rdx
0x0f, 0x86, 0x86, 0x25, 0x00, 0x00, //0x000007fa jbe LBB0_566
0x48, 0x83, 0xfa, 0x20, //0x00000800 cmpq $32, %rdx
0x0f, 0x82, 0x58, 0x18, 0x00, 0x00, //0x00000804 jb LBB0_410
0x48, 0xc7, 0xc2, 0xfc, 0xff, 0xff, 0xff, //0x0000080a movq $-4, %rdx
0x48, 0x29, 0xfa, //0x00000811 subq %rdi, %rdx
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000814 .p2align 4, 0x90
//0x00000820 LBB0_77
0xc4, 0x81, 0x7e, 0x6f, 0x04, 0x30, //0x00000820 vmovdqu (%r8,%r14), %ymm0
0xc4, 0xe2, 0x55, 0x00, 0xc8, //0x00000826 vpshufb %ymm0, %ymm5, %ymm1
0xc5, 0xfd, 0x74, 0xc1, //0x0000082b vpcmpeqb %ymm1, %ymm0, %ymm0
0xc5, 0xfd, 0xd7, 0xf8, //0x0000082f vpmovmskb %ymm0, %edi
0x83, 0xff, 0xff, //0x00000833 cmpl $-1, %edi
0x0f, 0x85, 0x84, 0x00, 0x00, 0x00, //0x00000836 jne LBB0_86
0x49, 0x83, 0xc6, 0x20, //0x0000083c addq $32, %r14
0x48, 0x8d, 0x3c, 0x16, //0x00000840 leaq (%rsi,%rdx), %rdi
0x48, 0x83, 0xc7, 0xe0, //0x00000844 addq $-32, %rdi
0x48, 0x83, 0xc2, 0xe0, //0x00000848 addq $-32, %rdx
0x48, 0x83, 0xff, 0x1f, //0x0000084c cmpq $31, %rdi
0x0f, 0x87, 0xca, 0xff, 0xff, 0xff, //0x00000850 ja LBB0_77
0x4d, 0x89, 0xc6, //0x00000856 movq %r8, %r14
0x49, 0x29, 0xd6, //0x00000859 subq %rdx, %r14
0x48, 0x01, 0xf2, //0x0000085c addq %rsi, %rdx
0x48, 0x85, 0xd2, //0x0000085f testq %rdx, %rdx
0x0f, 0x84, 0x3f, 0x00, 0x00, 0x00, //0x00000862 je LBB0_85
//0x00000868 LBB0_80
0x4d, 0x8d, 0x04, 0x16, //0x00000868 leaq (%r14,%rdx), %r8
0x31, 0xff, //0x0000086c xorl %edi, %edi
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/lookup_small_key_subr.go | vendor/github.com/bytedance/sonic/internal/native/avx2/lookup_small_key_subr.go | // +build !noasm !appengine
// Code generated by asm2asm, DO NOT EDIT.
package avx2
import (
`github.com/bytedance/sonic/loader`
)
const (
_entry__lookup_small_key = 96
)
const (
_stack__lookup_small_key = 56
)
const (
_size__lookup_small_key = 810
)
var (
_pcsp__lookup_small_key = [][2]uint32{
{0x1, 0},
{0x6, 8},
{0x8, 16},
{0xa, 24},
{0xc, 32},
{0xd, 40},
{0xe, 48},
{0x2fc, 56},
{0x2fd, 48},
{0x2ff, 40},
{0x301, 32},
{0x303, 24},
{0x305, 16},
{0x306, 8},
{0x30a, 0},
{0x32a, 56},
}
)
var _cfunc_lookup_small_key = []loader.CFunc{
{"_lookup_small_key_entry", 0, _entry__lookup_small_key, 0, nil},
{"_lookup_small_key", _entry__lookup_small_key, _size__lookup_small_key, _stack__lookup_small_key, _pcsp__lookup_small_key},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/validate_one.go | vendor/github.com/bytedance/sonic/internal/native/avx2/validate_one.go | // Code generated by Makefile, DO NOT EDIT.
/*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package avx2
import (
`unsafe`
`github.com/bytedance/sonic/internal/native/types`
`github.com/bytedance/sonic/internal/rt`
)
var F_validate_one func(s unsafe.Pointer, p unsafe.Pointer, m unsafe.Pointer, flags uint64) (ret int)
var S_validate_one uintptr
//go:nosplit
func validate_one(s *string, p *int, m *types.StateMachine, flags uint64) (ret int) {
return F_validate_one(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(m)), flags)
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/u64toa_subr.go | vendor/github.com/bytedance/sonic/internal/native/avx2/u64toa_subr.go | // +build !noasm !appengine
// Code generated by asm2asm, DO NOT EDIT.
package avx2
import (
`github.com/bytedance/sonic/loader`
)
const (
_entry__u64toa = 64
)
const (
_stack__u64toa = 8
)
const (
_size__u64toa = 1216
)
var (
_pcsp__u64toa = [][2]uint32{
{0x1, 0},
{0xa5, 8},
{0xa6, 0},
{0x1cf, 8},
{0x1d0, 0},
{0x2f9, 8},
{0x2fa, 0},
{0x4b7, 8},
{0x4c0, 0},
}
)
var _cfunc_u64toa = []loader.CFunc{
{"_u64toa_entry", 0, _entry__u64toa, 0, nil},
{"_u64toa", _entry__u64toa, _size__u64toa, _stack__u64toa, _pcsp__u64toa},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/vstring_text_amd64.go | vendor/github.com/bytedance/sonic/internal/native/avx2/vstring_text_amd64.go | // +build amd64
// Code generated by asm2asm, DO NOT EDIT.
package avx2
var _text_vstring = []byte{
// .p2align 5, 0x00
// LCPI0_0
0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, // QUAD $0x2222222222222222; QUAD $0x2222222222222222 // .space 16, '""""""""""""""""'
0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, //0x00000010 QUAD $0x2222222222222222; QUAD $0x2222222222222222 // .space 16, '""""""""""""""""'
//0x00000020 LCPI0_1
0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, //0x00000020 QUAD $0x5c5c5c5c5c5c5c5c; QUAD $0x5c5c5c5c5c5c5c5c // .space 16, '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, //0x00000030 QUAD $0x5c5c5c5c5c5c5c5c; QUAD $0x5c5c5c5c5c5c5c5c // .space 16, '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
//0x00000040 LCPI0_2
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, //0x00000040 QUAD $0x2020202020202020; QUAD $0x2020202020202020 // .space 16, ' '
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, //0x00000050 QUAD $0x2020202020202020; QUAD $0x2020202020202020 // .space 16, ' '
//0x00000060 .p2align 4, 0x90
//0x00000060 _vstring
0x55, //0x00000060 pushq %rbp
0x48, 0x89, 0xe5, //0x00000061 movq %rsp, %rbp
0x41, 0x57, //0x00000064 pushq %r15
0x41, 0x56, //0x00000066 pushq %r14
0x41, 0x55, //0x00000068 pushq %r13
0x41, 0x54, //0x0000006a pushq %r12
0x53, //0x0000006c pushq %rbx
0x48, 0x83, 0xec, 0x18, //0x0000006d subq $24, %rsp
0x4c, 0x8b, 0x16, //0x00000071 movq (%rsi), %r10
0xf6, 0xc1, 0x20, //0x00000074 testb $32, %cl
0x0f, 0x85, 0x2b, 0x01, 0x00, 0x00, //0x00000077 jne LBB0_12
0x4c, 0x8b, 0x6f, 0x08, //0x0000007d movq $8(%rdi), %r13
0x4c, 0x89, 0x6d, 0xc8, //0x00000081 movq %r13, $-56(%rbp)
0x4d, 0x29, 0xd5, //0x00000085 subq %r10, %r13
0x0f, 0x84, 0x9e, 0x03, 0x00, 0x00, //0x00000088 je LBB0_41
0x4c, 0x8b, 0x1f, //0x0000008e movq (%rdi), %r11
0x49, 0x83, 0xfd, 0x40, //0x00000091 cmpq $64, %r13
0x0f, 0x82, 0x9d, 0x03, 0x00, 0x00, //0x00000095 jb LBB0_42
0x4c, 0x89, 0xd3, //0x0000009b movq %r10, %rbx
0x48, 0xf7, 0xd3, //0x0000009e notq %rbx
0x48, 0xc7, 0x45, 0xd0, 0xff, 0xff, 0xff, 0xff, //0x000000a1 movq $-1, $-48(%rbp)
0x45, 0x31, 0xe4, //0x000000a9 xorl %r12d, %r12d
0xc5, 0xfe, 0x6f, 0x05, 0x4c, 0xff, 0xff, 0xff, //0x000000ac vmovdqu $-180(%rip), %ymm0 /* LCPI0_0+0(%rip) */
0xc5, 0xfe, 0x6f, 0x0d, 0x64, 0xff, 0xff, 0xff, //0x000000b4 vmovdqu $-156(%rip), %ymm1 /* LCPI0_1+0(%rip) */
0x49, 0xbf, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, //0x000000bc movabsq $6148914691236517205, %r15
0x4d, 0x89, 0xd0, //0x000000c6 movq %r10, %r8
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x000000c9 .p2align 4, 0x90
//0x000000d0 LBB0_4
0xc4, 0x81, 0x7e, 0x6f, 0x14, 0x03, //0x000000d0 vmovdqu (%r11,%r8), %ymm2
0xc4, 0x81, 0x7e, 0x6f, 0x5c, 0x03, 0x20, //0x000000d6 vmovdqu $32(%r11,%r8), %ymm3
0xc5, 0xed, 0x74, 0xe0, //0x000000dd vpcmpeqb %ymm0, %ymm2, %ymm4
0xc5, 0x7d, 0xd7, 0xcc, //0x000000e1 vpmovmskb %ymm4, %r9d
0xc5, 0xe5, 0x74, 0xe0, //0x000000e5 vpcmpeqb %ymm0, %ymm3, %ymm4
0xc5, 0xfd, 0xd7, 0xcc, //0x000000e9 vpmovmskb %ymm4, %ecx
0xc5, 0xed, 0x74, 0xd1, //0x000000ed vpcmpeqb %ymm1, %ymm2, %ymm2
0xc5, 0xfd, 0xd7, 0xc2, //0x000000f1 vpmovmskb %ymm2, %eax
0xc5, 0xe5, 0x74, 0xd1, //0x000000f5 vpcmpeqb %ymm1, %ymm3, %ymm2
0xc5, 0xfd, 0xd7, 0xfa, //0x000000f9 vpmovmskb %ymm2, %edi
0x48, 0xc1, 0xe1, 0x20, //0x000000fd shlq $32, %rcx
0x49, 0x09, 0xc9, //0x00000101 orq %rcx, %r9
0x48, 0xc1, 0xe7, 0x20, //0x00000104 shlq $32, %rdi
0x48, 0x09, 0xf8, //0x00000108 orq %rdi, %rax
0x0f, 0x85, 0x30, 0x00, 0x00, 0x00, //0x0000010b jne LBB0_8
0x4d, 0x85, 0xe4, //0x00000111 testq %r12, %r12
0x0f, 0x85, 0x3d, 0x00, 0x00, 0x00, //0x00000114 jne LBB0_10
0x45, 0x31, 0xe4, //0x0000011a xorl %r12d, %r12d
0x4d, 0x85, 0xc9, //0x0000011d testq %r9, %r9
0x0f, 0x85, 0x79, 0x00, 0x00, 0x00, //0x00000120 jne LBB0_11
//0x00000126 LBB0_7
0x49, 0x83, 0xc5, 0xc0, //0x00000126 addq $-64, %r13
0x48, 0x83, 0xc3, 0xc0, //0x0000012a addq $-64, %rbx
0x49, 0x83, 0xc0, 0x40, //0x0000012e addq $64, %r8
0x49, 0x83, 0xfd, 0x3f, //0x00000132 cmpq $63, %r13
0x0f, 0x87, 0x94, 0xff, 0xff, 0xff, //0x00000136 ja LBB0_4
0xe9, 0x28, 0x02, 0x00, 0x00, //0x0000013c jmp LBB0_30
//0x00000141 LBB0_8
0x48, 0x83, 0x7d, 0xd0, 0xff, //0x00000141 cmpq $-1, $-48(%rbp)
0x0f, 0x85, 0x0b, 0x00, 0x00, 0x00, //0x00000146 jne LBB0_10
0x48, 0x0f, 0xbc, 0xc8, //0x0000014c bsfq %rax, %rcx
0x4c, 0x01, 0xc1, //0x00000150 addq %r8, %rcx
0x48, 0x89, 0x4d, 0xd0, //0x00000153 movq %rcx, $-48(%rbp)
//0x00000157 LBB0_10
0x4c, 0x89, 0xe1, //0x00000157 movq %r12, %rcx
0x48, 0xf7, 0xd1, //0x0000015a notq %rcx
0x48, 0x21, 0xc1, //0x0000015d andq %rax, %rcx
0x4c, 0x8d, 0x34, 0x09, //0x00000160 leaq (%rcx,%rcx), %r14
0x4d, 0x09, 0xe6, //0x00000164 orq %r12, %r14
0x4c, 0x89, 0xf7, //0x00000167 movq %r14, %rdi
0x48, 0xf7, 0xd7, //0x0000016a notq %rdi
0x48, 0x21, 0xc7, //0x0000016d andq %rax, %rdi
0x48, 0xb8, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, //0x00000170 movabsq $-6148914691236517206, %rax
0x48, 0x21, 0xc7, //0x0000017a andq %rax, %rdi
0x45, 0x31, 0xe4, //0x0000017d xorl %r12d, %r12d
0x48, 0x01, 0xcf, //0x00000180 addq %rcx, %rdi
0x41, 0x0f, 0x92, 0xc4, //0x00000183 setb %r12b
0x48, 0x01, 0xff, //0x00000187 addq %rdi, %rdi
0x4c, 0x31, 0xff, //0x0000018a xorq %r15, %rdi
0x4c, 0x21, 0xf7, //0x0000018d andq %r14, %rdi
0x48, 0xf7, 0xd7, //0x00000190 notq %rdi
0x49, 0x21, 0xf9, //0x00000193 andq %rdi, %r9
0x4d, 0x85, 0xc9, //0x00000196 testq %r9, %r9
0x0f, 0x84, 0x87, 0xff, 0xff, 0xff, //0x00000199 je LBB0_7
//0x0000019f LBB0_11
0x4d, 0x0f, 0xbc, 0xf1, //0x0000019f bsfq %r9, %r14
0xe9, 0x8c, 0x01, 0x00, 0x00, //0x000001a3 jmp LBB0_27
//0x000001a8 LBB0_12
0x4c, 0x8b, 0x6f, 0x08, //0x000001a8 movq $8(%rdi), %r13
0x4c, 0x89, 0x6d, 0xc8, //0x000001ac movq %r13, $-56(%rbp)
0x4d, 0x29, 0xd5, //0x000001b0 subq %r10, %r13
0x0f, 0x84, 0x73, 0x02, 0x00, 0x00, //0x000001b3 je LBB0_41
0x4c, 0x8b, 0x1f, //0x000001b9 movq (%rdi), %r11
0x49, 0x83, 0xfd, 0x40, //0x000001bc cmpq $64, %r13
0x0f, 0x82, 0x90, 0x02, 0x00, 0x00, //0x000001c0 jb LBB0_43
0x4c, 0x89, 0xd3, //0x000001c6 movq %r10, %rbx
0x48, 0xf7, 0xd3, //0x000001c9 notq %rbx
0x48, 0xc7, 0x45, 0xd0, 0xff, 0xff, 0xff, 0xff, //0x000001cc movq $-1, $-48(%rbp)
0x45, 0x31, 0xe4, //0x000001d4 xorl %r12d, %r12d
0xc5, 0xfe, 0x6f, 0x05, 0x21, 0xfe, 0xff, 0xff, //0x000001d7 vmovdqu $-479(%rip), %ymm0 /* LCPI0_0+0(%rip) */
0xc5, 0xfe, 0x6f, 0x0d, 0x39, 0xfe, 0xff, 0xff, //0x000001df vmovdqu $-455(%rip), %ymm1 /* LCPI0_1+0(%rip) */
0xc5, 0xfe, 0x6f, 0x15, 0x51, 0xfe, 0xff, 0xff, //0x000001e7 vmovdqu $-431(%rip), %ymm2 /* LCPI0_2+0(%rip) */
0xc5, 0xe5, 0x76, 0xdb, //0x000001ef vpcmpeqd %ymm3, %ymm3, %ymm3
0x4d, 0x89, 0xd1, //0x000001f3 movq %r10, %r9
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x000001f6 .p2align 4, 0x90
//0x00000200 LBB0_15
0xc4, 0x81, 0x7e, 0x6f, 0x24, 0x0b, //0x00000200 vmovdqu (%r11,%r9), %ymm4
0xc4, 0x81, 0x7e, 0x6f, 0x6c, 0x0b, 0x20, //0x00000206 vmovdqu $32(%r11,%r9), %ymm5
0xc5, 0xdd, 0x74, 0xf0, //0x0000020d vpcmpeqb %ymm0, %ymm4, %ymm6
0xc5, 0xfd, 0xd7, 0xce, //0x00000211 vpmovmskb %ymm6, %ecx
0xc5, 0xd5, 0x74, 0xf0, //0x00000215 vpcmpeqb %ymm0, %ymm5, %ymm6
0xc5, 0x7d, 0xd7, 0xfe, //0x00000219 vpmovmskb %ymm6, %r15d
0xc5, 0xdd, 0x74, 0xf1, //0x0000021d vpcmpeqb %ymm1, %ymm4, %ymm6
0xc5, 0x7d, 0xd7, 0xf6, //0x00000221 vpmovmskb %ymm6, %r14d
0xc5, 0xd5, 0x74, 0xf1, //0x00000225 vpcmpeqb %ymm1, %ymm5, %ymm6
0xc5, 0x7d, 0xd7, 0xc6, //0x00000229 vpmovmskb %ymm6, %r8d
0xc5, 0xed, 0x64, 0xf5, //0x0000022d vpcmpgtb %ymm5, %ymm2, %ymm6
0xc5, 0xd5, 0x64, 0xeb, //0x00000231 vpcmpgtb %ymm3, %ymm5, %ymm5
0xc5, 0xcd, 0xdb, 0xed, //0x00000235 vpand %ymm5, %ymm6, %ymm5
0xc5, 0xfd, 0xd7, 0xc5, //0x00000239 vpmovmskb %ymm5, %eax
0x49, 0xc1, 0xe7, 0x20, //0x0000023d shlq $32, %r15
0x4c, 0x09, 0xf9, //0x00000241 orq %r15, %rcx
0x49, 0xc1, 0xe0, 0x20, //0x00000244 shlq $32, %r8
0x48, 0xc1, 0xe0, 0x20, //0x00000248 shlq $32, %rax
0x4d, 0x09, 0xc6, //0x0000024c orq %r8, %r14
0x0f, 0x85, 0x4c, 0x00, 0x00, 0x00, //0x0000024f jne LBB0_21
0x4d, 0x85, 0xe4, //0x00000255 testq %r12, %r12
0x0f, 0x85, 0x59, 0x00, 0x00, 0x00, //0x00000258 jne LBB0_23
0x45, 0x31, 0xe4, //0x0000025e xorl %r12d, %r12d
//0x00000261 LBB0_18
0xc5, 0xed, 0x64, 0xec, //0x00000261 vpcmpgtb %ymm4, %ymm2, %ymm5
0xc5, 0xdd, 0x64, 0xe3, //0x00000265 vpcmpgtb %ymm3, %ymm4, %ymm4
0xc5, 0xd5, 0xdb, 0xe4, //0x00000269 vpand %ymm4, %ymm5, %ymm4
0xc5, 0xfd, 0xd7, 0xfc, //0x0000026d vpmovmskb %ymm4, %edi
0x48, 0x09, 0xf8, //0x00000271 orq %rdi, %rax
0x48, 0x85, 0xc9, //0x00000274 testq %rcx, %rcx
0x0f, 0x85, 0x8a, 0x00, 0x00, 0x00, //0x00000277 jne LBB0_24
0x48, 0x85, 0xc0, //0x0000027d testq %rax, %rax
0x0f, 0x85, 0x3e, 0x04, 0x00, 0x00, //0x00000280 jne LBB0_80
0x49, 0x83, 0xc5, 0xc0, //0x00000286 addq $-64, %r13
0x48, 0x83, 0xc3, 0xc0, //0x0000028a addq $-64, %rbx
0x49, 0x83, 0xc1, 0x40, //0x0000028e addq $64, %r9
0x49, 0x83, 0xfd, 0x3f, //0x00000292 cmpq $63, %r13
0x0f, 0x87, 0x64, 0xff, 0xff, 0xff, //0x00000296 ja LBB0_15
0xe9, 0x23, 0x01, 0x00, 0x00, //0x0000029c jmp LBB0_35
//0x000002a1 LBB0_21
0x48, 0x83, 0x7d, 0xd0, 0xff, //0x000002a1 cmpq $-1, $-48(%rbp)
0x0f, 0x85, 0x0b, 0x00, 0x00, 0x00, //0x000002a6 jne LBB0_23
0x49, 0x0f, 0xbc, 0xfe, //0x000002ac bsfq %r14, %rdi
0x4c, 0x01, 0xcf, //0x000002b0 addq %r9, %rdi
0x48, 0x89, 0x7d, 0xd0, //0x000002b3 movq %rdi, $-48(%rbp)
//0x000002b7 LBB0_23
0x4d, 0x89, 0xe0, //0x000002b7 movq %r12, %r8
0x49, 0xf7, 0xd0, //0x000002ba notq %r8
0x4d, 0x21, 0xf0, //0x000002bd andq %r14, %r8
0x4f, 0x8d, 0x3c, 0x00, //0x000002c0 leaq (%r8,%r8), %r15
0x4d, 0x09, 0xe7, //0x000002c4 orq %r12, %r15
0x4c, 0x89, 0x7d, 0xc0, //0x000002c7 movq %r15, $-64(%rbp)
0x49, 0xf7, 0xd7, //0x000002cb notq %r15
0x4d, 0x21, 0xf7, //0x000002ce andq %r14, %r15
0x48, 0xbf, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, //0x000002d1 movabsq $-6148914691236517206, %rdi
0x49, 0x21, 0xff, //0x000002db andq %rdi, %r15
0x45, 0x31, 0xe4, //0x000002de xorl %r12d, %r12d
0x4d, 0x01, 0xc7, //0x000002e1 addq %r8, %r15
0x41, 0x0f, 0x92, 0xc4, //0x000002e4 setb %r12b
0x4d, 0x01, 0xff, //0x000002e8 addq %r15, %r15
0x48, 0xbf, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, //0x000002eb movabsq $6148914691236517205, %rdi
0x49, 0x31, 0xff, //0x000002f5 xorq %rdi, %r15
0x4c, 0x23, 0x7d, 0xc0, //0x000002f8 andq $-64(%rbp), %r15
0x49, 0xf7, 0xd7, //0x000002fc notq %r15
0x4c, 0x21, 0xf9, //0x000002ff andq %r15, %rcx
0xe9, 0x5a, 0xff, 0xff, 0xff, //0x00000302 jmp LBB0_18
//0x00000307 LBB0_24
0x4c, 0x0f, 0xbc, 0xf1, //0x00000307 bsfq %rcx, %r14
0x48, 0x85, 0xc0, //0x0000030b testq %rax, %rax
0x0f, 0x84, 0x12, 0x00, 0x00, 0x00, //0x0000030e je LBB0_26
0x48, 0x0f, 0xbc, 0xc0, //0x00000314 bsfq %rax, %rax
0x4c, 0x39, 0xf0, //0x00000318 cmpq %r14, %rax
0x0f, 0x83, 0x13, 0x00, 0x00, 0x00, //0x0000031b jae LBB0_27
0xe9, 0x9e, 0x03, 0x00, 0x00, //0x00000321 jmp LBB0_80
//0x00000326 LBB0_26
0xb8, 0x40, 0x00, 0x00, 0x00, //0x00000326 movl $64, %eax
0x4c, 0x39, 0xf0, //0x0000032b cmpq %r14, %rax
0x0f, 0x82, 0x90, 0x03, 0x00, 0x00, //0x0000032e jb LBB0_80
//0x00000334 LBB0_27
0x49, 0x29, 0xde, //0x00000334 subq %rbx, %r14
//0x00000337 LBB0_28
0x4d, 0x85, 0xf6, //0x00000337 testq %r14, %r14
0x0f, 0x88, 0x8b, 0x03, 0x00, 0x00, //0x0000033a js LBB0_81
0x4c, 0x89, 0x36, //0x00000340 movq %r14, (%rsi)
0x4c, 0x89, 0x52, 0x10, //0x00000343 movq %r10, $16(%rdx)
0x48, 0xc7, 0x02, 0x07, 0x00, 0x00, 0x00, //0x00000347 movq $7, (%rdx)
0x48, 0x8b, 0x4d, 0xd0, //0x0000034e movq $-48(%rbp), %rcx
0x4c, 0x39, 0xf1, //0x00000352 cmpq %r14, %rcx
0x48, 0xc7, 0xc0, 0xff, 0xff, 0xff, 0xff, //0x00000355 movq $-1, %rax
0x48, 0x0f, 0x4c, 0xc1, //0x0000035c cmovlq %rcx, %rax
0x48, 0x89, 0x42, 0x18, //0x00000360 movq %rax, $24(%rdx)
0xe9, 0x6c, 0x03, 0x00, 0x00, //0x00000364 jmp LBB0_83
//0x00000369 LBB0_30
0x4d, 0x01, 0xd8, //0x00000369 addq %r11, %r8
0x49, 0x83, 0xfd, 0x20, //0x0000036c cmpq $32, %r13
0x0f, 0x82, 0x5b, 0x01, 0x00, 0x00, //0x00000370 jb LBB0_48
//0x00000376 LBB0_31
0xc4, 0xc1, 0x7e, 0x6f, 0x00, //0x00000376 vmovdqu (%r8), %ymm0
0xc5, 0xfd, 0x74, 0x0d, 0x7d, 0xfc, 0xff, 0xff, //0x0000037b vpcmpeqb $-899(%rip), %ymm0, %ymm1 /* LCPI0_0+0(%rip) */
0xc5, 0xfd, 0xd7, 0xf9, //0x00000383 vpmovmskb %ymm1, %edi
0xc5, 0xfd, 0x74, 0x05, 0x91, 0xfc, 0xff, 0xff, //0x00000387 vpcmpeqb $-879(%rip), %ymm0, %ymm0 /* LCPI0_1+0(%rip) */
0xc5, 0xfd, 0xd7, 0xc0, //0x0000038f vpmovmskb %ymm0, %eax
0x85, 0xc0, //0x00000393 testl %eax, %eax
0x0f, 0x85, 0xd9, 0x00, 0x00, 0x00, //0x00000395 jne LBB0_44
0x4d, 0x85, 0xe4, //0x0000039b testq %r12, %r12
0x0f, 0x85, 0xec, 0x00, 0x00, 0x00, //0x0000039e jne LBB0_46
0x45, 0x31, 0xe4, //0x000003a4 xorl %r12d, %r12d
0x48, 0x85, 0xff, //0x000003a7 testq %rdi, %rdi
0x0f, 0x84, 0x19, 0x01, 0x00, 0x00, //0x000003aa je LBB0_47
//0x000003b0 LBB0_34
0x48, 0x0f, 0xbc, 0xc7, //0x000003b0 bsfq %rdi, %rax
0x4d, 0x29, 0xd8, //0x000003b4 subq %r11, %r8
0x4d, 0x8d, 0x34, 0x00, //0x000003b7 leaq (%r8,%rax), %r14
0x49, 0x83, 0xc6, 0x01, //0x000003bb addq $1, %r14
0xe9, 0x73, 0xff, 0xff, 0xff, //0x000003bf jmp LBB0_28
//0x000003c4 LBB0_35
0x4d, 0x01, 0xd9, //0x000003c4 addq %r11, %r9
0x49, 0x83, 0xfd, 0x20, //0x000003c7 cmpq $32, %r13
0x0f, 0x82, 0x6b, 0x02, 0x00, 0x00, //0x000003cb jb LBB0_70
//0x000003d1 LBB0_36
0xc4, 0xc1, 0x7e, 0x6f, 0x09, //0x000003d1 vmovdqu (%r9), %ymm1
0xc5, 0xf5, 0x74, 0x05, 0x22, 0xfc, 0xff, 0xff, //0x000003d6 vpcmpeqb $-990(%rip), %ymm1, %ymm0 /* LCPI0_0+0(%rip) */
0xc5, 0xfd, 0xd7, 0xc8, //0x000003de vpmovmskb %ymm0, %ecx
0xc5, 0xf5, 0x74, 0x05, 0x36, 0xfc, 0xff, 0xff, //0x000003e2 vpcmpeqb $-970(%rip), %ymm1, %ymm0 /* LCPI0_1+0(%rip) */
0xc5, 0xfd, 0xd7, 0xc0, //0x000003ea vpmovmskb %ymm0, %eax
0xc5, 0xfe, 0x6f, 0x05, 0x4a, 0xfc, 0xff, 0xff, //0x000003ee vmovdqu $-950(%rip), %ymm0 /* LCPI0_2+0(%rip) */
0xc5, 0xfd, 0x64, 0xc1, //0x000003f6 vpcmpgtb %ymm1, %ymm0, %ymm0
0xc5, 0xed, 0x76, 0xd2, //0x000003fa vpcmpeqd %ymm2, %ymm2, %ymm2
0xc5, 0xf5, 0x64, 0xca, //0x000003fe vpcmpgtb %ymm2, %ymm1, %ymm1
0x85, 0xc0, //0x00000402 testl %eax, %eax
0x0f, 0x85, 0x91, 0x01, 0x00, 0x00, //0x00000404 jne LBB0_61
0x4d, 0x85, 0xe4, //0x0000040a testq %r12, %r12
0x0f, 0x85, 0xa4, 0x01, 0x00, 0x00, //0x0000040d jne LBB0_63
0x45, 0x31, 0xe4, //0x00000413 xorl %r12d, %r12d
0xc5, 0xfd, 0xdb, 0xc1, //0x00000416 vpand %ymm1, %ymm0, %ymm0
0x48, 0x85, 0xc9, //0x0000041a testq %rcx, %rcx
0x0f, 0x84, 0xd1, 0x01, 0x00, 0x00, //0x0000041d je LBB0_64
//0x00000423 LBB0_39
0x48, 0x0f, 0xbc, 0xc1, //0x00000423 bsfq %rcx, %rax
0xe9, 0xcd, 0x01, 0x00, 0x00, //0x00000427 jmp LBB0_65
//0x0000042c LBB0_41
0x49, 0xc7, 0xc6, 0xff, 0xff, 0xff, 0xff, //0x0000042c movq $-1, %r14
0xe9, 0x97, 0x02, 0x00, 0x00, //0x00000433 jmp LBB0_82
//0x00000438 LBB0_42
0x4f, 0x8d, 0x04, 0x13, //0x00000438 leaq (%r11,%r10), %r8
0x48, 0xc7, 0x45, 0xd0, 0xff, 0xff, 0xff, 0xff, //0x0000043c movq $-1, $-48(%rbp)
0x45, 0x31, 0xe4, //0x00000444 xorl %r12d, %r12d
0x49, 0x83, 0xfd, 0x20, //0x00000447 cmpq $32, %r13
0x0f, 0x83, 0x25, 0xff, 0xff, 0xff, //0x0000044b jae LBB0_31
0xe9, 0x7b, 0x00, 0x00, 0x00, //0x00000451 jmp LBB0_48
//0x00000456 LBB0_43
0x4f, 0x8d, 0x0c, 0x13, //0x00000456 leaq (%r11,%r10), %r9
0x48, 0xc7, 0x45, 0xd0, 0xff, 0xff, 0xff, 0xff, //0x0000045a movq $-1, $-48(%rbp)
0x45, 0x31, 0xe4, //0x00000462 xorl %r12d, %r12d
0x49, 0x83, 0xfd, 0x20, //0x00000465 cmpq $32, %r13
0x0f, 0x83, 0x62, 0xff, 0xff, 0xff, //0x00000469 jae LBB0_36
0xe9, 0xc8, 0x01, 0x00, 0x00, //0x0000046f jmp LBB0_70
//0x00000474 LBB0_44
0x48, 0x83, 0x7d, 0xd0, 0xff, //0x00000474 cmpq $-1, $-48(%rbp)
0x0f, 0x85, 0x11, 0x00, 0x00, 0x00, //0x00000479 jne LBB0_46
0x4c, 0x89, 0xc1, //0x0000047f movq %r8, %rcx
0x4c, 0x29, 0xd9, //0x00000482 subq %r11, %rcx
0x48, 0x0f, 0xbc, 0xd8, //0x00000485 bsfq %rax, %rbx
0x48, 0x01, 0xcb, //0x00000489 addq %rcx, %rbx
0x48, 0x89, 0x5d, 0xd0, //0x0000048c movq %rbx, $-48(%rbp)
//0x00000490 LBB0_46
0x44, 0x89, 0xe1, //0x00000490 movl %r12d, %ecx
0xf7, 0xd1, //0x00000493 notl %ecx
0x21, 0xc1, //0x00000495 andl %eax, %ecx
0x8d, 0x1c, 0x09, //0x00000497 leal (%rcx,%rcx), %ebx
0x45, 0x8d, 0x0c, 0x4c, //0x0000049a leal (%r12,%rcx,2), %r9d
0xf7, 0xd3, //0x0000049e notl %ebx
0x21, 0xc3, //0x000004a0 andl %eax, %ebx
0x81, 0xe3, 0xaa, 0xaa, 0xaa, 0xaa, //0x000004a2 andl $-1431655766, %ebx
0x45, 0x31, 0xe4, //0x000004a8 xorl %r12d, %r12d
0x01, 0xcb, //0x000004ab addl %ecx, %ebx
0x41, 0x0f, 0x92, 0xc4, //0x000004ad setb %r12b
0x01, 0xdb, //0x000004b1 addl %ebx, %ebx
0x81, 0xf3, 0x55, 0x55, 0x55, 0x55, //0x000004b3 xorl $1431655765, %ebx
0x44, 0x21, 0xcb, //0x000004b9 andl %r9d, %ebx
0xf7, 0xd3, //0x000004bc notl %ebx
0x21, 0xdf, //0x000004be andl %ebx, %edi
0x48, 0x85, 0xff, //0x000004c0 testq %rdi, %rdi
0x0f, 0x85, 0xe7, 0xfe, 0xff, 0xff, //0x000004c3 jne LBB0_34
//0x000004c9 LBB0_47
0x49, 0x83, 0xc0, 0x20, //0x000004c9 addq $32, %r8
0x49, 0x83, 0xc5, 0xe0, //0x000004cd addq $-32, %r13
//0x000004d1 LBB0_48
0x4d, 0x85, 0xe4, //0x000004d1 testq %r12, %r12
0x0f, 0x85, 0x1c, 0x02, 0x00, 0x00, //0x000004d4 jne LBB0_85
0x4c, 0x89, 0xdf, //0x000004da movq %r11, %rdi
0x48, 0xf7, 0xd7, //0x000004dd notq %rdi
0x4c, 0x8b, 0x7d, 0xd0, //0x000004e0 movq $-48(%rbp), %r15
0x4d, 0x85, 0xed, //0x000004e4 testq %r13, %r13
0x0f, 0x84, 0x8b, 0x00, 0x00, 0x00, //0x000004e7 je LBB0_58
//0x000004ed LBB0_50
0x48, 0x83, 0xc7, 0x01, //0x000004ed addq $1, %rdi
0x49, 0xc7, 0xc6, 0xff, 0xff, 0xff, 0xff, //0x000004f1 movq $-1, %r14
//0x000004f8 LBB0_51
0x31, 0xc0, //0x000004f8 xorl %eax, %eax
//0x000004fa LBB0_52
0x41, 0x0f, 0xb6, 0x1c, 0x00, //0x000004fa movzbl (%r8,%rax), %ebx
0x80, 0xfb, 0x22, //0x000004ff cmpb $34, %bl
0x0f, 0x84, 0x69, 0x00, 0x00, 0x00, //0x00000502 je LBB0_57
0x80, 0xfb, 0x5c, //0x00000508 cmpb $92, %bl
0x0f, 0x84, 0x12, 0x00, 0x00, 0x00, //0x0000050b je LBB0_55
0x48, 0x83, 0xc0, 0x01, //0x00000511 addq $1, %rax
0x49, 0x39, 0xc5, //0x00000515 cmpq %rax, %r13
0x0f, 0x85, 0xdc, 0xff, 0xff, 0xff, //0x00000518 jne LBB0_52
0xe9, 0x60, 0x00, 0x00, 0x00, //0x0000051e jmp LBB0_59
//0x00000523 LBB0_55
0x49, 0x8d, 0x4d, 0xff, //0x00000523 leaq $-1(%r13), %rcx
0x48, 0x39, 0xc1, //0x00000527 cmpq %rax, %rcx
0x0f, 0x84, 0x9b, 0x01, 0x00, 0x00, //0x0000052a je LBB0_81
0x4a, 0x8d, 0x0c, 0x07, //0x00000530 leaq (%rdi,%r8), %rcx
0x48, 0x01, 0xc1, //0x00000534 addq %rax, %rcx
0x49, 0x83, 0xff, 0xff, //0x00000537 cmpq $-1, %r15
0x48, 0x8b, 0x5d, 0xd0, //0x0000053b movq $-48(%rbp), %rbx
0x48, 0x0f, 0x44, 0xd9, //0x0000053f cmoveq %rcx, %rbx
0x48, 0x89, 0x5d, 0xd0, //0x00000543 movq %rbx, $-48(%rbp)
0x4c, 0x0f, 0x44, 0xf9, //0x00000547 cmoveq %rcx, %r15
0x49, 0x01, 0xc0, //0x0000054b addq %rax, %r8
0x49, 0x83, 0xc0, 0x02, //0x0000054e addq $2, %r8
0x4c, 0x89, 0xe9, //0x00000552 movq %r13, %rcx
0x48, 0x29, 0xc1, //0x00000555 subq %rax, %rcx
0x48, 0x83, 0xc1, 0xfe, //0x00000558 addq $-2, %rcx
0x49, 0x83, 0xc5, 0xfe, //0x0000055c addq $-2, %r13
0x49, 0x39, 0xc5, //0x00000560 cmpq %rax, %r13
0x49, 0x89, 0xcd, //0x00000563 movq %rcx, %r13
0x0f, 0x85, 0x8c, 0xff, 0xff, 0xff, //0x00000566 jne LBB0_51
0xe9, 0x5a, 0x01, 0x00, 0x00, //0x0000056c jmp LBB0_81
//0x00000571 LBB0_57
0x49, 0x01, 0xc0, //0x00000571 addq %rax, %r8
0x49, 0x83, 0xc0, 0x01, //0x00000574 addq $1, %r8
//0x00000578 LBB0_58
0x4d, 0x29, 0xd8, //0x00000578 subq %r11, %r8
0x4d, 0x89, 0xc6, //0x0000057b movq %r8, %r14
0xe9, 0xb4, 0xfd, 0xff, 0xff, //0x0000057e jmp LBB0_28
//0x00000583 LBB0_59
0x49, 0xc7, 0xc6, 0xff, 0xff, 0xff, 0xff, //0x00000583 movq $-1, %r14
0x80, 0xfb, 0x22, //0x0000058a cmpb $34, %bl
0x0f, 0x85, 0x38, 0x01, 0x00, 0x00, //0x0000058d jne LBB0_81
0x4d, 0x01, 0xe8, //0x00000593 addq %r13, %r8
0xe9, 0xdd, 0xff, 0xff, 0xff, //0x00000596 jmp LBB0_58
//0x0000059b LBB0_61
0x48, 0x83, 0x7d, 0xd0, 0xff, //0x0000059b cmpq $-1, $-48(%rbp)
0x0f, 0x85, 0x11, 0x00, 0x00, 0x00, //0x000005a0 jne LBB0_63
0x4c, 0x89, 0xcf, //0x000005a6 movq %r9, %rdi
0x4c, 0x29, 0xdf, //0x000005a9 subq %r11, %rdi
0x48, 0x0f, 0xbc, 0xd8, //0x000005ac bsfq %rax, %rbx
0x48, 0x01, 0xfb, //0x000005b0 addq %rdi, %rbx
0x48, 0x89, 0x5d, 0xd0, //0x000005b3 movq %rbx, $-48(%rbp)
//0x000005b7 LBB0_63
0x44, 0x89, 0xe7, //0x000005b7 movl %r12d, %edi
0xf7, 0xd7, //0x000005ba notl %edi
0x21, 0xc7, //0x000005bc andl %eax, %edi
0x8d, 0x1c, 0x3f, //0x000005be leal (%rdi,%rdi), %ebx
0x45, 0x8d, 0x04, 0x7c, //0x000005c1 leal (%r12,%rdi,2), %r8d
0xf7, 0xd3, //0x000005c5 notl %ebx
0x21, 0xc3, //0x000005c7 andl %eax, %ebx
0x81, 0xe3, 0xaa, 0xaa, 0xaa, 0xaa, //0x000005c9 andl $-1431655766, %ebx
0x45, 0x31, 0xe4, //0x000005cf xorl %r12d, %r12d
0x01, 0xfb, //0x000005d2 addl %edi, %ebx
0x41, 0x0f, 0x92, 0xc4, //0x000005d4 setb %r12b
0x01, 0xdb, //0x000005d8 addl %ebx, %ebx
0x81, 0xf3, 0x55, 0x55, 0x55, 0x55, //0x000005da xorl $1431655765, %ebx
0x44, 0x21, 0xc3, //0x000005e0 andl %r8d, %ebx
0xf7, 0xd3, //0x000005e3 notl %ebx
0x21, 0xd9, //0x000005e5 andl %ebx, %ecx
0xc5, 0xfd, 0xdb, 0xc1, //0x000005e7 vpand %ymm1, %ymm0, %ymm0
0x48, 0x85, 0xc9, //0x000005eb testq %rcx, %rcx
0x0f, 0x85, 0x2f, 0xfe, 0xff, 0xff, //0x000005ee jne LBB0_39
//0x000005f4 LBB0_64
0xb8, 0x40, 0x00, 0x00, 0x00, //0x000005f4 movl $64, %eax
//0x000005f9 LBB0_65
0xc5, 0xfd, 0xd7, 0xd8, //0x000005f9 vpmovmskb %ymm0, %ebx
0x48, 0x85, 0xc9, //0x000005fd testq %rcx, %rcx
0x0f, 0x84, 0x26, 0x00, 0x00, 0x00, //0x00000600 je LBB0_68
0x0f, 0xbc, 0xcb, //0x00000606 bsfl %ebx, %ecx
0x85, 0xdb, //0x00000609 testl %ebx, %ebx
0xbf, 0x40, 0x00, 0x00, 0x00, //0x0000060b movl $64, %edi
0x0f, 0x45, 0xf9, //0x00000610 cmovnel %ecx, %edi
0x48, 0x39, 0xf8, //0x00000613 cmpq %rdi, %rax
0x0f, 0x87, 0xa8, 0x00, 0x00, 0x00, //0x00000616 ja LBB0_80
0x4d, 0x29, 0xd9, //0x0000061c subq %r11, %r9
0x4d, 0x8d, 0x34, 0x01, //0x0000061f leaq (%r9,%rax), %r14
0x49, 0x83, 0xc6, 0x01, //0x00000623 addq $1, %r14
0xe9, 0x0b, 0xfd, 0xff, 0xff, //0x00000627 jmp LBB0_28
//0x0000062c LBB0_68
0x85, 0xdb, //0x0000062c testl %ebx, %ebx
0x0f, 0x85, 0x90, 0x00, 0x00, 0x00, //0x0000062e jne LBB0_80
0x49, 0x83, 0xc1, 0x20, //0x00000634 addq $32, %r9
0x49, 0x83, 0xc5, 0xe0, //0x00000638 addq $-32, %r13
//0x0000063c LBB0_70
0x4d, 0x85, 0xe4, //0x0000063c testq %r12, %r12
0x0f, 0x85, 0xf1, 0x00, 0x00, 0x00, //0x0000063f jne LBB0_87
0x48, 0x8b, 0x45, 0xd0, //0x00000645 movq $-48(%rbp), %rax
0x49, 0xc7, 0xc6, 0xff, 0xff, 0xff, 0xff, //0x00000649 movq $-1, %r14
0x4d, 0x85, 0xed, //0x00000650 testq %r13, %r13
0x0f, 0x84, 0x72, 0x00, 0x00, 0x00, //0x00000653 je LBB0_81
//0x00000659 LBB0_72
0x41, 0x0f, 0xb6, 0x09, //0x00000659 movzbl (%r9), %ecx
0x80, 0xf9, 0x22, //0x0000065d cmpb $34, %cl
0x0f, 0x84, 0x81, 0x00, 0x00, 0x00, //0x00000660 je LBB0_84
0x80, 0xf9, 0x5c, //0x00000666 cmpb $92, %cl
0x0f, 0x84, 0x26, 0x00, 0x00, 0x00, //0x00000669 je LBB0_77
0x80, 0xf9, 0x20, //0x0000066f cmpb $32, %cl
0x0f, 0x82, 0x4c, 0x00, 0x00, 0x00, //0x00000672 jb LBB0_80
0x48, 0xc7, 0xc1, 0xff, 0xff, 0xff, 0xff, //0x00000678 movq $-1, %rcx
0xbb, 0x01, 0x00, 0x00, 0x00, //0x0000067f movl $1, %ebx
//0x00000684 LBB0_76
0x49, 0x01, 0xd9, //0x00000684 addq %rbx, %r9
0x49, 0x01, 0xcd, //0x00000687 addq %rcx, %r13
0x0f, 0x85, 0xc9, 0xff, 0xff, 0xff, //0x0000068a jne LBB0_72
0xe9, 0x36, 0x00, 0x00, 0x00, //0x00000690 jmp LBB0_81
//0x00000695 LBB0_77
0x49, 0x83, 0xfd, 0x01, //0x00000695 cmpq $1, %r13
0x0f, 0x84, 0x2c, 0x00, 0x00, 0x00, //0x00000699 je LBB0_81
0x48, 0xc7, 0xc1, 0xfe, 0xff, 0xff, 0xff, //0x0000069f movq $-2, %rcx
0xbb, 0x02, 0x00, 0x00, 0x00, //0x000006a6 movl $2, %ebx
0x48, 0x83, 0xf8, 0xff, //0x000006ab cmpq $-1, %rax
0x0f, 0x85, 0xcf, 0xff, 0xff, 0xff, //0x000006af jne LBB0_76
0x4c, 0x89, 0xc8, //0x000006b5 movq %r9, %rax
0x4c, 0x29, 0xd8, //0x000006b8 subq %r11, %rax
0x48, 0x89, 0x45, 0xd0, //0x000006bb movq %rax, $-48(%rbp)
0xe9, 0xc0, 0xff, 0xff, 0xff, //0x000006bf jmp LBB0_76
//0x000006c4 LBB0_80
0x49, 0xc7, 0xc6, 0xfe, 0xff, 0xff, 0xff, //0x000006c4 movq $-2, %r14
//0x000006cb LBB0_81
0x4c, 0x8b, 0x55, 0xc8, //0x000006cb movq $-56(%rbp), %r10
//0x000006cf LBB0_82
0x4c, 0x89, 0x16, //0x000006cf movq %r10, (%rsi)
0x4c, 0x89, 0x32, //0x000006d2 movq %r14, (%rdx)
//0x000006d5 LBB0_83
0x48, 0x83, 0xc4, 0x18, //0x000006d5 addq $24, %rsp
0x5b, //0x000006d9 popq %rbx
0x41, 0x5c, //0x000006da popq %r12
0x41, 0x5d, //0x000006dc popq %r13
0x41, 0x5e, //0x000006de popq %r14
0x41, 0x5f, //0x000006e0 popq %r15
0x5d, //0x000006e2 popq %rbp
0xc5, 0xf8, 0x77, //0x000006e3 vzeroupper
0xc3, //0x000006e6 retq
//0x000006e7 LBB0_84
0x4d, 0x29, 0xd9, //0x000006e7 subq %r11, %r9
0x49, 0x83, 0xc1, 0x01, //0x000006ea addq $1, %r9
0x4d, 0x89, 0xce, //0x000006ee movq %r9, %r14
0xe9, 0x41, 0xfc, 0xff, 0xff, //0x000006f1 jmp LBB0_28
//0x000006f6 LBB0_85
0x4d, 0x85, 0xed, //0x000006f6 testq %r13, %r13
0x0f, 0x84, 0x7d, 0x00, 0x00, 0x00, //0x000006f9 je LBB0_89
0x4c, 0x89, 0xdf, //0x000006ff movq %r11, %rdi
0x48, 0xf7, 0xd7, //0x00000702 notq %rdi
0x49, 0x8d, 0x04, 0x38, //0x00000705 leaq (%r8,%rdi), %rax
0x48, 0x8b, 0x4d, 0xd0, //0x00000709 movq $-48(%rbp), %rcx
0x48, 0x83, 0xf9, 0xff, //0x0000070d cmpq $-1, %rcx
0x49, 0x89, 0xcf, //0x00000711 movq %rcx, %r15
0x48, 0x0f, 0x44, 0xc8, //0x00000714 cmoveq %rax, %rcx
0x4c, 0x0f, 0x44, 0xf8, //0x00000718 cmoveq %rax, %r15
0x49, 0x83, 0xc0, 0x01, //0x0000071c addq $1, %r8
0x49, 0x83, 0xc5, 0xff, //0x00000720 addq $-1, %r13
0x48, 0x89, 0x4d, 0xd0, //0x00000724 movq %rcx, $-48(%rbp)
0x4d, 0x85, 0xed, //0x00000728 testq %r13, %r13
0x0f, 0x85, 0xbc, 0xfd, 0xff, 0xff, //0x0000072b jne LBB0_50
0xe9, 0x42, 0xfe, 0xff, 0xff, //0x00000731 jmp LBB0_58
//0x00000736 LBB0_87
0x4d, 0x85, 0xed, //0x00000736 testq %r13, %r13
0x0f, 0x84, 0x3d, 0x00, 0x00, 0x00, //0x00000739 je LBB0_89
0x4c, 0x89, 0xd8, //0x0000073f movq %r11, %rax
0x48, 0xf7, 0xd0, //0x00000742 notq %rax
0x4c, 0x01, 0xc8, //0x00000745 addq %r9, %rax
0x48, 0x8b, 0x7d, 0xd0, //0x00000748 movq $-48(%rbp), %rdi
0x48, 0x83, 0xff, 0xff, //0x0000074c cmpq $-1, %rdi
0x48, 0x89, 0xf9, //0x00000750 movq %rdi, %rcx
0x48, 0x0f, 0x44, 0xc8, //0x00000753 cmoveq %rax, %rcx
0x48, 0x0f, 0x45, 0xc7, //0x00000757 cmovneq %rdi, %rax
0x49, 0x83, 0xc1, 0x01, //0x0000075b addq $1, %r9
0x49, 0x83, 0xc5, 0xff, //0x0000075f addq $-1, %r13
0x48, 0x89, 0x4d, 0xd0, //0x00000763 movq %rcx, $-48(%rbp)
0x49, 0xc7, 0xc6, 0xff, 0xff, 0xff, 0xff, //0x00000767 movq $-1, %r14
0x4d, 0x85, 0xed, //0x0000076e testq %r13, %r13
0x0f, 0x85, 0xe2, 0xfe, 0xff, 0xff, //0x00000771 jne LBB0_72
0xe9, 0x4f, 0xff, 0xff, 0xff, //0x00000777 jmp LBB0_81
//0x0000077c LBB0_89
0x49, 0xc7, 0xc6, 0xff, 0xff, 0xff, 0xff, //0x0000077c movq $-1, %r14
0xe9, 0x43, 0xff, 0xff, 0xff, //0x00000783 jmp LBB0_81
//0x00000788 .p2align 2, 0x00
//0x00000788 _MASK_USE_NUMBER
0x02, 0x00, 0x00, 0x00, //0x00000788 .long 2
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/value.go | vendor/github.com/bytedance/sonic/internal/native/avx2/value.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package avx2
import (
`unsafe`
`github.com/bytedance/sonic/internal/native/types`
`github.com/bytedance/sonic/internal/rt`
)
var F_value func(s unsafe.Pointer, n int, p int, v unsafe.Pointer, flags uint64) (ret int)
var S_value uintptr
//go:nosplit
func value(s unsafe.Pointer, n int, p int, v *types.JsonState, flags uint64) (ret int) {
return F_value(rt.NoEscape(unsafe.Pointer(s)), n, p, rt.NoEscape(unsafe.Pointer(v)), flags)
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/get_by_path_subr.go | vendor/github.com/bytedance/sonic/internal/native/avx2/get_by_path_subr.go | // +build !noasm !appengine
// Code generated by asm2asm, DO NOT EDIT.
package avx2
import (
`github.com/bytedance/sonic/loader`
)
const (
_entry__get_by_path = 640
)
const (
_stack__get_by_path = 240
)
const (
_size__get_by_path = 21452
)
var (
_pcsp__get_by_path = [][2]uint32{
{0x1, 0},
{0x6, 8},
{0x8, 16},
{0xa, 24},
{0xc, 32},
{0xd, 40},
{0x14, 48},
{0x4a1c, 240},
{0x4a1d, 48},
{0x4a1f, 40},
{0x4a21, 32},
{0x4a23, 24},
{0x4a25, 16},
{0x4a26, 8},
{0x4a2a, 0},
{0x53cc, 240},
}
)
var _cfunc_get_by_path = []loader.CFunc{
{"_get_by_path_entry", 0, _entry__get_by_path, 0, nil},
{"_get_by_path", _entry__get_by_path, _size__get_by_path, _stack__get_by_path, _pcsp__get_by_path},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/vstring.go | vendor/github.com/bytedance/sonic/internal/native/avx2/vstring.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package avx2
import (
`unsafe`
`github.com/bytedance/sonic/internal/native/types`
`github.com/bytedance/sonic/internal/rt`
)
var F_vstring func(s unsafe.Pointer, p unsafe.Pointer, v unsafe.Pointer, flags uint64)
var S_vstring uintptr
//go:nosplit
func vstring(s *string, p *int, v *types.JsonState, flags uint64) {
F_vstring(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(v)), flags)
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/i64toa_text_amd64.go | vendor/github.com/bytedance/sonic/internal/native/avx2/i64toa_text_amd64.go | // +build amd64
// Code generated by asm2asm, DO NOT EDIT.
package avx2
var _text_i64toa = []byte{
// .p2align 4, 0x00
// LCPI0_0
0x59, 0x17, 0xb7, 0xd1, 0x00, 0x00, 0x00, 0x00, // .quad 3518437209
0x59, 0x17, 0xb7, 0xd1, 0x00, 0x00, 0x00, 0x00, //0x00000008 .quad 3518437209
//0x00000010 LCPI0_3
0x0a, 0x00, //0x00000010 .word 10
0x0a, 0x00, //0x00000012 .word 10
0x0a, 0x00, //0x00000014 .word 10
0x0a, 0x00, //0x00000016 .word 10
0x0a, 0x00, //0x00000018 .word 10
0x0a, 0x00, //0x0000001a .word 10
0x0a, 0x00, //0x0000001c .word 10
0x0a, 0x00, //0x0000001e .word 10
//0x00000020 LCPI0_4
0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, //0x00000020 QUAD $0x3030303030303030; QUAD $0x3030303030303030 // .space 16, '0000000000000000'
//0x00000030 .p2align 3, 0x00
//0x00000030 LCPI0_1
0xc5, 0x20, 0x7b, 0x14, 0x34, 0x33, 0x00, 0x80, //0x00000030 .quad -9223315738079846203
//0x00000038 LCPI0_2
0x80, 0x00, 0x00, 0x08, 0x00, 0x20, 0x00, 0x80, //0x00000038 .quad -9223336852348469120
//0x00000040 .p2align 4, 0x90
//0x00000040 _i64toa
0x55, //0x00000040 pushq %rbp
0x48, 0x89, 0xe5, //0x00000041 movq %rsp, %rbp
0x48, 0x85, 0xf6, //0x00000044 testq %rsi, %rsi
0x0f, 0x88, 0xb2, 0x00, 0x00, 0x00, //0x00000047 js LBB0_25
0x48, 0x81, 0xfe, 0x0f, 0x27, 0x00, 0x00, //0x0000004d cmpq $9999, %rsi
0x0f, 0x87, 0xfb, 0x00, 0x00, 0x00, //0x00000054 ja LBB0_9
0x0f, 0xb7, 0xc6, //0x0000005a movzwl %si, %eax
0xc1, 0xe8, 0x02, //0x0000005d shrl $2, %eax
0x69, 0xc0, 0x7b, 0x14, 0x00, 0x00, //0x00000060 imull $5243, %eax, %eax
0xc1, 0xe8, 0x11, //0x00000066 shrl $17, %eax
0x48, 0x8d, 0x14, 0x00, //0x00000069 leaq (%rax,%rax), %rdx
0x6b, 0xc0, 0x64, //0x0000006d imull $100, %eax, %eax
0x89, 0xf1, //0x00000070 movl %esi, %ecx
0x29, 0xc1, //0x00000072 subl %eax, %ecx
0x0f, 0xb7, 0xc1, //0x00000074 movzwl %cx, %eax
0x48, 0x01, 0xc0, //0x00000077 addq %rax, %rax
0x81, 0xfe, 0xe8, 0x03, 0x00, 0x00, //0x0000007a cmpl $1000, %esi
0x0f, 0x82, 0x16, 0x00, 0x00, 0x00, //0x00000080 jb LBB0_4
0x48, 0x8d, 0x0d, 0x93, 0x08, 0x00, 0x00, //0x00000086 leaq $2195(%rip), %rcx /* _Digits+0(%rip) */
0x8a, 0x0c, 0x0a, //0x0000008d movb (%rdx,%rcx), %cl
0x88, 0x0f, //0x00000090 movb %cl, (%rdi)
0xb9, 0x01, 0x00, 0x00, 0x00, //0x00000092 movl $1, %ecx
0xe9, 0x0b, 0x00, 0x00, 0x00, //0x00000097 jmp LBB0_5
//0x0000009c LBB0_4
0x31, 0xc9, //0x0000009c xorl %ecx, %ecx
0x83, 0xfe, 0x64, //0x0000009e cmpl $100, %esi
0x0f, 0x82, 0x48, 0x00, 0x00, 0x00, //0x000000a1 jb LBB0_6
//0x000000a7 LBB0_5
0x0f, 0xb7, 0xd2, //0x000000a7 movzwl %dx, %edx
0x48, 0x83, 0xca, 0x01, //0x000000aa orq $1, %rdx
0x48, 0x8d, 0x35, 0x6b, 0x08, 0x00, 0x00, //0x000000ae leaq $2155(%rip), %rsi /* _Digits+0(%rip) */
0x8a, 0x14, 0x32, //0x000000b5 movb (%rdx,%rsi), %dl
0x89, 0xce, //0x000000b8 movl %ecx, %esi
0x83, 0xc1, 0x01, //0x000000ba addl $1, %ecx
0x88, 0x14, 0x37, //0x000000bd movb %dl, (%rdi,%rsi)
//0x000000c0 LBB0_7
0x48, 0x8d, 0x15, 0x59, 0x08, 0x00, 0x00, //0x000000c0 leaq $2137(%rip), %rdx /* _Digits+0(%rip) */
0x8a, 0x14, 0x10, //0x000000c7 movb (%rax,%rdx), %dl
0x89, 0xce, //0x000000ca movl %ecx, %esi
0x83, 0xc1, 0x01, //0x000000cc addl $1, %ecx
0x88, 0x14, 0x37, //0x000000cf movb %dl, (%rdi,%rsi)
//0x000000d2 LBB0_8
0x0f, 0xb7, 0xc0, //0x000000d2 movzwl %ax, %eax
0x48, 0x83, 0xc8, 0x01, //0x000000d5 orq $1, %rax
0x48, 0x8d, 0x15, 0x40, 0x08, 0x00, 0x00, //0x000000d9 leaq $2112(%rip), %rdx /* _Digits+0(%rip) */
0x8a, 0x04, 0x10, //0x000000e0 movb (%rax,%rdx), %al
0x89, 0xca, //0x000000e3 movl %ecx, %edx
0x83, 0xc1, 0x01, //0x000000e5 addl $1, %ecx
0x88, 0x04, 0x17, //0x000000e8 movb %al, (%rdi,%rdx)
0x89, 0xc8, //0x000000eb movl %ecx, %eax
0x5d, //0x000000ed popq %rbp
0xc3, //0x000000ee retq
//0x000000ef LBB0_6
0x31, 0xc9, //0x000000ef xorl %ecx, %ecx
0x83, 0xfe, 0x0a, //0x000000f1 cmpl $10, %esi
0x0f, 0x83, 0xc6, 0xff, 0xff, 0xff, //0x000000f4 jae LBB0_7
0xe9, 0xd3, 0xff, 0xff, 0xff, //0x000000fa jmp LBB0_8
//0x000000ff LBB0_25
0xc6, 0x07, 0x2d, //0x000000ff movb $45, (%rdi)
0x48, 0xf7, 0xde, //0x00000102 negq %rsi
0x48, 0x81, 0xfe, 0x0f, 0x27, 0x00, 0x00, //0x00000105 cmpq $9999, %rsi
0x0f, 0x87, 0xd9, 0x01, 0x00, 0x00, //0x0000010c ja LBB0_33
0x0f, 0xb7, 0xc6, //0x00000112 movzwl %si, %eax
0xc1, 0xe8, 0x02, //0x00000115 shrl $2, %eax
0x69, 0xc0, 0x7b, 0x14, 0x00, 0x00, //0x00000118 imull $5243, %eax, %eax
0xc1, 0xe8, 0x11, //0x0000011e shrl $17, %eax
0x48, 0x8d, 0x14, 0x00, //0x00000121 leaq (%rax,%rax), %rdx
0x6b, 0xc0, 0x64, //0x00000125 imull $100, %eax, %eax
0x89, 0xf1, //0x00000128 movl %esi, %ecx
0x29, 0xc1, //0x0000012a subl %eax, %ecx
0x0f, 0xb7, 0xc1, //0x0000012c movzwl %cx, %eax
0x48, 0x01, 0xc0, //0x0000012f addq %rax, %rax
0x81, 0xfe, 0xe8, 0x03, 0x00, 0x00, //0x00000132 cmpl $1000, %esi
0x0f, 0x82, 0xab, 0x00, 0x00, 0x00, //0x00000138 jb LBB0_28
0x48, 0x8d, 0x0d, 0xdb, 0x07, 0x00, 0x00, //0x0000013e leaq $2011(%rip), %rcx /* _Digits+0(%rip) */
0x8a, 0x0c, 0x0a, //0x00000145 movb (%rdx,%rcx), %cl
0x88, 0x4f, 0x01, //0x00000148 movb %cl, $1(%rdi)
0xb9, 0x01, 0x00, 0x00, 0x00, //0x0000014b movl $1, %ecx
0xe9, 0x9f, 0x00, 0x00, 0x00, //0x00000150 jmp LBB0_29
//0x00000155 LBB0_9
0x48, 0x81, 0xfe, 0xff, 0xe0, 0xf5, 0x05, //0x00000155 cmpq $99999999, %rsi
0x0f, 0x87, 0x1e, 0x02, 0x00, 0x00, //0x0000015c ja LBB0_17
0x89, 0xf0, //0x00000162 movl %esi, %eax
0xba, 0x59, 0x17, 0xb7, 0xd1, //0x00000164 movl $3518437209, %edx
0x48, 0x0f, 0xaf, 0xd0, //0x00000169 imulq %rax, %rdx
0x48, 0xc1, 0xea, 0x2d, //0x0000016d shrq $45, %rdx
0x44, 0x69, 0xc2, 0x10, 0x27, 0x00, 0x00, //0x00000171 imull $10000, %edx, %r8d
0x89, 0xf1, //0x00000178 movl %esi, %ecx
0x44, 0x29, 0xc1, //0x0000017a subl %r8d, %ecx
0x4c, 0x69, 0xd0, 0x83, 0xde, 0x1b, 0x43, //0x0000017d imulq $1125899907, %rax, %r10
0x49, 0xc1, 0xea, 0x31, //0x00000184 shrq $49, %r10
0x41, 0x83, 0xe2, 0xfe, //0x00000188 andl $-2, %r10d
0x0f, 0xb7, 0xc2, //0x0000018c movzwl %dx, %eax
0xc1, 0xe8, 0x02, //0x0000018f shrl $2, %eax
0x69, 0xc0, 0x7b, 0x14, 0x00, 0x00, //0x00000192 imull $5243, %eax, %eax
0xc1, 0xe8, 0x11, //0x00000198 shrl $17, %eax
0x6b, 0xc0, 0x64, //0x0000019b imull $100, %eax, %eax
0x29, 0xc2, //0x0000019e subl %eax, %edx
0x44, 0x0f, 0xb7, 0xca, //0x000001a0 movzwl %dx, %r9d
0x4d, 0x01, 0xc9, //0x000001a4 addq %r9, %r9
0x0f, 0xb7, 0xc1, //0x000001a7 movzwl %cx, %eax
0xc1, 0xe8, 0x02, //0x000001aa shrl $2, %eax
0x69, 0xc0, 0x7b, 0x14, 0x00, 0x00, //0x000001ad imull $5243, %eax, %eax
0xc1, 0xe8, 0x11, //0x000001b3 shrl $17, %eax
0x4c, 0x8d, 0x04, 0x00, //0x000001b6 leaq (%rax,%rax), %r8
0x6b, 0xc0, 0x64, //0x000001ba imull $100, %eax, %eax
0x29, 0xc1, //0x000001bd subl %eax, %ecx
0x44, 0x0f, 0xb7, 0xd9, //0x000001bf movzwl %cx, %r11d
0x4d, 0x01, 0xdb, //0x000001c3 addq %r11, %r11
0x81, 0xfe, 0x80, 0x96, 0x98, 0x00, //0x000001c6 cmpl $10000000, %esi
0x0f, 0x82, 0x70, 0x00, 0x00, 0x00, //0x000001cc jb LBB0_12
0x48, 0x8d, 0x05, 0x47, 0x07, 0x00, 0x00, //0x000001d2 leaq $1863(%rip), %rax /* _Digits+0(%rip) */
0x41, 0x8a, 0x04, 0x02, //0x000001d9 movb (%r10,%rax), %al
0x88, 0x07, //0x000001dd movb %al, (%rdi)
0xb9, 0x01, 0x00, 0x00, 0x00, //0x000001df movl $1, %ecx
0xe9, 0x67, 0x00, 0x00, 0x00, //0x000001e4 jmp LBB0_13
//0x000001e9 LBB0_28
0x31, 0xc9, //0x000001e9 xorl %ecx, %ecx
0x83, 0xfe, 0x64, //0x000001eb cmpl $100, %esi
0x0f, 0x82, 0xd4, 0x00, 0x00, 0x00, //0x000001ee jb LBB0_30
//0x000001f4 LBB0_29
0x0f, 0xb7, 0xd2, //0x000001f4 movzwl %dx, %edx
0x48, 0x83, 0xca, 0x01, //0x000001f7 orq $1, %rdx
0x48, 0x8d, 0x35, 0x1e, 0x07, 0x00, 0x00, //0x000001fb leaq $1822(%rip), %rsi /* _Digits+0(%rip) */
0x8a, 0x14, 0x32, //0x00000202 movb (%rdx,%rsi), %dl
0x89, 0xce, //0x00000205 movl %ecx, %esi
0x83, 0xc1, 0x01, //0x00000207 addl $1, %ecx
0x88, 0x54, 0x37, 0x01, //0x0000020a movb %dl, $1(%rdi,%rsi)
//0x0000020e LBB0_31
0x48, 0x8d, 0x15, 0x0b, 0x07, 0x00, 0x00, //0x0000020e leaq $1803(%rip), %rdx /* _Digits+0(%rip) */
0x8a, 0x14, 0x10, //0x00000215 movb (%rax,%rdx), %dl
0x89, 0xce, //0x00000218 movl %ecx, %esi
0x83, 0xc1, 0x01, //0x0000021a addl $1, %ecx
0x88, 0x54, 0x37, 0x01, //0x0000021d movb %dl, $1(%rdi,%rsi)
//0x00000221 LBB0_32
0x0f, 0xb7, 0xc0, //0x00000221 movzwl %ax, %eax
0x48, 0x83, 0xc8, 0x01, //0x00000224 orq $1, %rax
0x48, 0x8d, 0x15, 0xf1, 0x06, 0x00, 0x00, //0x00000228 leaq $1777(%rip), %rdx /* _Digits+0(%rip) */
0x8a, 0x04, 0x10, //0x0000022f movb (%rax,%rdx), %al
0x89, 0xca, //0x00000232 movl %ecx, %edx
0x83, 0xc1, 0x01, //0x00000234 addl $1, %ecx
0x88, 0x44, 0x17, 0x01, //0x00000237 movb %al, $1(%rdi,%rdx)
0x83, 0xc1, 0x01, //0x0000023b addl $1, %ecx
0x89, 0xc8, //0x0000023e movl %ecx, %eax
0x5d, //0x00000240 popq %rbp
0xc3, //0x00000241 retq
//0x00000242 LBB0_12
0x31, 0xc9, //0x00000242 xorl %ecx, %ecx
0x81, 0xfe, 0x40, 0x42, 0x0f, 0x00, //0x00000244 cmpl $1000000, %esi
0x0f, 0x82, 0x88, 0x00, 0x00, 0x00, //0x0000024a jb LBB0_14
//0x00000250 LBB0_13
0x44, 0x89, 0xd0, //0x00000250 movl %r10d, %eax
0x48, 0x83, 0xc8, 0x01, //0x00000253 orq $1, %rax
0x48, 0x8d, 0x35, 0xc2, 0x06, 0x00, 0x00, //0x00000257 leaq $1730(%rip), %rsi /* _Digits+0(%rip) */
0x8a, 0x04, 0x30, //0x0000025e movb (%rax,%rsi), %al
0x89, 0xce, //0x00000261 movl %ecx, %esi
0x83, 0xc1, 0x01, //0x00000263 addl $1, %ecx
0x88, 0x04, 0x37, //0x00000266 movb %al, (%rdi,%rsi)
//0x00000269 LBB0_15
0x48, 0x8d, 0x05, 0xb0, 0x06, 0x00, 0x00, //0x00000269 leaq $1712(%rip), %rax /* _Digits+0(%rip) */
0x41, 0x8a, 0x04, 0x01, //0x00000270 movb (%r9,%rax), %al
0x89, 0xce, //0x00000274 movl %ecx, %esi
0x83, 0xc1, 0x01, //0x00000276 addl $1, %ecx
0x88, 0x04, 0x37, //0x00000279 movb %al, (%rdi,%rsi)
//0x0000027c LBB0_16
0x41, 0x0f, 0xb7, 0xc1, //0x0000027c movzwl %r9w, %eax
0x48, 0x83, 0xc8, 0x01, //0x00000280 orq $1, %rax
0x48, 0x8d, 0x35, 0x95, 0x06, 0x00, 0x00, //0x00000284 leaq $1685(%rip), %rsi /* _Digits+0(%rip) */
0x8a, 0x04, 0x30, //0x0000028b movb (%rax,%rsi), %al
0x89, 0xca, //0x0000028e movl %ecx, %edx
0x88, 0x04, 0x17, //0x00000290 movb %al, (%rdi,%rdx)
0x41, 0x8a, 0x04, 0x30, //0x00000293 movb (%r8,%rsi), %al
0x88, 0x44, 0x17, 0x01, //0x00000297 movb %al, $1(%rdi,%rdx)
0x41, 0x0f, 0xb7, 0xc0, //0x0000029b movzwl %r8w, %eax
0x48, 0x83, 0xc8, 0x01, //0x0000029f orq $1, %rax
0x8a, 0x04, 0x30, //0x000002a3 movb (%rax,%rsi), %al
0x88, 0x44, 0x17, 0x02, //0x000002a6 movb %al, $2(%rdi,%rdx)
0x41, 0x8a, 0x04, 0x33, //0x000002aa movb (%r11,%rsi), %al
0x88, 0x44, 0x17, 0x03, //0x000002ae movb %al, $3(%rdi,%rdx)
0x41, 0x0f, 0xb7, 0xc3, //0x000002b2 movzwl %r11w, %eax
0x48, 0x83, 0xc8, 0x01, //0x000002b6 orq $1, %rax
0x8a, 0x04, 0x30, //0x000002ba movb (%rax,%rsi), %al
0x83, 0xc1, 0x05, //0x000002bd addl $5, %ecx
0x88, 0x44, 0x17, 0x04, //0x000002c0 movb %al, $4(%rdi,%rdx)
0x89, 0xc8, //0x000002c4 movl %ecx, %eax
0x5d, //0x000002c6 popq %rbp
0xc3, //0x000002c7 retq
//0x000002c8 LBB0_30
0x31, 0xc9, //0x000002c8 xorl %ecx, %ecx
0x83, 0xfe, 0x0a, //0x000002ca cmpl $10, %esi
0x0f, 0x83, 0x3b, 0xff, 0xff, 0xff, //0x000002cd jae LBB0_31
0xe9, 0x49, 0xff, 0xff, 0xff, //0x000002d3 jmp LBB0_32
//0x000002d8 LBB0_14
0x31, 0xc9, //0x000002d8 xorl %ecx, %ecx
0x81, 0xfe, 0xa0, 0x86, 0x01, 0x00, //0x000002da cmpl $100000, %esi
0x0f, 0x83, 0x83, 0xff, 0xff, 0xff, //0x000002e0 jae LBB0_15
0xe9, 0x91, 0xff, 0xff, 0xff, //0x000002e6 jmp LBB0_16
//0x000002eb LBB0_33
0x48, 0x81, 0xfe, 0xff, 0xe0, 0xf5, 0x05, //0x000002eb cmpq $99999999, %rsi
0x0f, 0x87, 0x3e, 0x02, 0x00, 0x00, //0x000002f2 ja LBB0_41
0x89, 0xf0, //0x000002f8 movl %esi, %eax
0xba, 0x59, 0x17, 0xb7, 0xd1, //0x000002fa movl $3518437209, %edx
0x48, 0x0f, 0xaf, 0xd0, //0x000002ff imulq %rax, %rdx
0x48, 0xc1, 0xea, 0x2d, //0x00000303 shrq $45, %rdx
0x44, 0x69, 0xc2, 0x10, 0x27, 0x00, 0x00, //0x00000307 imull $10000, %edx, %r8d
0x89, 0xf1, //0x0000030e movl %esi, %ecx
0x44, 0x29, 0xc1, //0x00000310 subl %r8d, %ecx
0x4c, 0x69, 0xd0, 0x83, 0xde, 0x1b, 0x43, //0x00000313 imulq $1125899907, %rax, %r10
0x49, 0xc1, 0xea, 0x31, //0x0000031a shrq $49, %r10
0x41, 0x83, 0xe2, 0xfe, //0x0000031e andl $-2, %r10d
0x0f, 0xb7, 0xc2, //0x00000322 movzwl %dx, %eax
0xc1, 0xe8, 0x02, //0x00000325 shrl $2, %eax
0x69, 0xc0, 0x7b, 0x14, 0x00, 0x00, //0x00000328 imull $5243, %eax, %eax
0xc1, 0xe8, 0x11, //0x0000032e shrl $17, %eax
0x6b, 0xc0, 0x64, //0x00000331 imull $100, %eax, %eax
0x29, 0xc2, //0x00000334 subl %eax, %edx
0x44, 0x0f, 0xb7, 0xca, //0x00000336 movzwl %dx, %r9d
0x4d, 0x01, 0xc9, //0x0000033a addq %r9, %r9
0x0f, 0xb7, 0xc1, //0x0000033d movzwl %cx, %eax
0xc1, 0xe8, 0x02, //0x00000340 shrl $2, %eax
0x69, 0xc0, 0x7b, 0x14, 0x00, 0x00, //0x00000343 imull $5243, %eax, %eax
0xc1, 0xe8, 0x11, //0x00000349 shrl $17, %eax
0x4c, 0x8d, 0x04, 0x00, //0x0000034c leaq (%rax,%rax), %r8
0x6b, 0xc0, 0x64, //0x00000350 imull $100, %eax, %eax
0x29, 0xc1, //0x00000353 subl %eax, %ecx
0x44, 0x0f, 0xb7, 0xd9, //0x00000355 movzwl %cx, %r11d
0x4d, 0x01, 0xdb, //0x00000359 addq %r11, %r11
0x81, 0xfe, 0x80, 0x96, 0x98, 0x00, //0x0000035c cmpl $10000000, %esi
0x0f, 0x82, 0x2f, 0x01, 0x00, 0x00, //0x00000362 jb LBB0_36
0x48, 0x8d, 0x05, 0xb1, 0x05, 0x00, 0x00, //0x00000368 leaq $1457(%rip), %rax /* _Digits+0(%rip) */
0x41, 0x8a, 0x04, 0x02, //0x0000036f movb (%r10,%rax), %al
0x88, 0x47, 0x01, //0x00000373 movb %al, $1(%rdi)
0xb9, 0x01, 0x00, 0x00, 0x00, //0x00000376 movl $1, %ecx
0xe9, 0x25, 0x01, 0x00, 0x00, //0x0000037b jmp LBB0_37
//0x00000380 LBB0_17
0x48, 0xb9, 0x00, 0x00, 0xc1, 0x6f, 0xf2, 0x86, 0x23, 0x00, //0x00000380 movabsq $10000000000000000, %rcx
0x48, 0x39, 0xce, //0x0000038a cmpq %rcx, %rsi
0x0f, 0x83, 0xbe, 0x02, 0x00, 0x00, //0x0000038d jae LBB0_19
0x48, 0xb9, 0xfd, 0xce, 0x61, 0x84, 0x11, 0x77, 0xcc, 0xab, //0x00000393 movabsq $-6067343680855748867, %rcx
0x48, 0x89, 0xf0, //0x0000039d movq %rsi, %rax
0x48, 0xf7, 0xe1, //0x000003a0 mulq %rcx
0x48, 0xc1, 0xea, 0x1a, //0x000003a3 shrq $26, %rdx
0x69, 0xc2, 0x00, 0xe1, 0xf5, 0x05, //0x000003a7 imull $100000000, %edx, %eax
0x29, 0xc6, //0x000003ad subl %eax, %esi
0xc5, 0xf9, 0x6e, 0xc2, //0x000003af vmovd %edx, %xmm0
0xc5, 0xfa, 0x6f, 0x0d, 0x45, 0xfc, 0xff, 0xff, //0x000003b3 vmovdqu $-955(%rip), %xmm1 /* LCPI0_0+0(%rip) */
0xc5, 0xf9, 0xf4, 0xd1, //0x000003bb vpmuludq %xmm1, %xmm0, %xmm2
0xc5, 0xe9, 0x73, 0xd2, 0x2d, //0x000003bf vpsrlq $45, %xmm2, %xmm2
0xb8, 0x10, 0x27, 0x00, 0x00, //0x000003c4 movl $10000, %eax
0xc4, 0xe1, 0xf9, 0x6e, 0xd8, //0x000003c9 vmovq %rax, %xmm3
0xc5, 0xe9, 0xf4, 0xe3, //0x000003ce vpmuludq %xmm3, %xmm2, %xmm4
0xc5, 0xf9, 0xfa, 0xc4, //0x000003d2 vpsubd %xmm4, %xmm0, %xmm0
0xc5, 0xe9, 0x61, 0xc0, //0x000003d6 vpunpcklwd %xmm0, %xmm2, %xmm0
0xc5, 0xf9, 0x73, 0xf0, 0x02, //0x000003da vpsllq $2, %xmm0, %xmm0
0xc5, 0xfb, 0x70, 0xc0, 0x50, //0x000003df vpshuflw $80, %xmm0, %xmm0
0xc5, 0xf9, 0x70, 0xc0, 0x50, //0x000003e4 vpshufd $80, %xmm0, %xmm0
0xc4, 0xe2, 0x79, 0x59, 0x15, 0x3e, 0xfc, 0xff, 0xff, //0x000003e9 vpbroadcastq $-962(%rip), %xmm2 /* LCPI0_1+0(%rip) */
0xc4, 0xe2, 0x79, 0x59, 0x25, 0x3d, 0xfc, 0xff, 0xff, //0x000003f2 vpbroadcastq $-963(%rip), %xmm4 /* LCPI0_2+0(%rip) */
0xc5, 0xf9, 0xe4, 0xc2, //0x000003fb vpmulhuw %xmm2, %xmm0, %xmm0
0xc5, 0xf9, 0xe4, 0xc4, //0x000003ff vpmulhuw %xmm4, %xmm0, %xmm0
0xc5, 0xfa, 0x6f, 0x2d, 0x05, 0xfc, 0xff, 0xff, //0x00000403 vmovdqu $-1019(%rip), %xmm5 /* LCPI0_3+0(%rip) */
0xc5, 0xf9, 0xd5, 0xf5, //0x0000040b vpmullw %xmm5, %xmm0, %xmm6
0xc5, 0xc9, 0x73, 0xf6, 0x10, //0x0000040f vpsllq $16, %xmm6, %xmm6
0xc5, 0xf9, 0xf9, 0xc6, //0x00000414 vpsubw %xmm6, %xmm0, %xmm0
0xc5, 0xf9, 0x6e, 0xf6, //0x00000418 vmovd %esi, %xmm6
0xc5, 0xc9, 0xf4, 0xc9, //0x0000041c vpmuludq %xmm1, %xmm6, %xmm1
0xc5, 0xf1, 0x73, 0xd1, 0x2d, //0x00000420 vpsrlq $45, %xmm1, %xmm1
0xc5, 0xf1, 0xf4, 0xdb, //0x00000425 vpmuludq %xmm3, %xmm1, %xmm3
0xc5, 0xc9, 0xfa, 0xdb, //0x00000429 vpsubd %xmm3, %xmm6, %xmm3
0xc5, 0xf1, 0x61, 0xcb, //0x0000042d vpunpcklwd %xmm3, %xmm1, %xmm1
0xc5, 0xf1, 0x73, 0xf1, 0x02, //0x00000431 vpsllq $2, %xmm1, %xmm1
0xc5, 0xfb, 0x70, 0xc9, 0x50, //0x00000436 vpshuflw $80, %xmm1, %xmm1
0xc5, 0xf9, 0x70, 0xc9, 0x50, //0x0000043b vpshufd $80, %xmm1, %xmm1
0xc5, 0xf1, 0xe4, 0xca, //0x00000440 vpmulhuw %xmm2, %xmm1, %xmm1
0xc5, 0xf1, 0xe4, 0xcc, //0x00000444 vpmulhuw %xmm4, %xmm1, %xmm1
0xc5, 0xf1, 0xd5, 0xd5, //0x00000448 vpmullw %xmm5, %xmm1, %xmm2
0xc5, 0xe9, 0x73, 0xf2, 0x10, //0x0000044c vpsllq $16, %xmm2, %xmm2
0xc5, 0xf1, 0xf9, 0xca, //0x00000451 vpsubw %xmm2, %xmm1, %xmm1
0xc5, 0xf9, 0x67, 0xc1, //0x00000455 vpackuswb %xmm1, %xmm0, %xmm0
0xc5, 0xf9, 0xfc, 0x0d, 0xbf, 0xfb, 0xff, 0xff, //0x00000459 vpaddb $-1089(%rip), %xmm0, %xmm1 /* LCPI0_4+0(%rip) */
0xc5, 0xe9, 0xef, 0xd2, //0x00000461 vpxor %xmm2, %xmm2, %xmm2
0xc5, 0xf9, 0x74, 0xc2, //0x00000465 vpcmpeqb %xmm2, %xmm0, %xmm0
0xc5, 0xf9, 0xd7, 0xc0, //0x00000469 vpmovmskb %xmm0, %eax
0xf7, 0xd0, //0x0000046d notl %eax
0x0d, 0x00, 0x80, 0x00, 0x00, //0x0000046f orl $32768, %eax
0x0f, 0xbc, 0xc0, //0x00000474 bsfl %eax, %eax
0xb9, 0x10, 0x00, 0x00, 0x00, //0x00000477 movl $16, %ecx
0x29, 0xc1, //0x0000047c subl %eax, %ecx
0x48, 0xc1, 0xe0, 0x04, //0x0000047e shlq $4, %rax
0x48, 0x8d, 0x15, 0x67, 0x05, 0x00, 0x00, //0x00000482 leaq $1383(%rip), %rdx /* _VecShiftShuffles+0(%rip) */
0xc4, 0xe2, 0x71, 0x00, 0x04, 0x10, //0x00000489 vpshufb (%rax,%rdx), %xmm1, %xmm0
0xc5, 0xfa, 0x7f, 0x07, //0x0000048f vmovdqu %xmm0, (%rdi)
0x89, 0xc8, //0x00000493 movl %ecx, %eax
0x5d, //0x00000495 popq %rbp
0xc3, //0x00000496 retq
//0x00000497 LBB0_36
0x31, 0xc9, //0x00000497 xorl %ecx, %ecx
0x81, 0xfe, 0x40, 0x42, 0x0f, 0x00, //0x00000499 cmpl $1000000, %esi
0x0f, 0x82, 0x7e, 0x00, 0x00, 0x00, //0x0000049f jb LBB0_38
//0x000004a5 LBB0_37
0x44, 0x89, 0xd0, //0x000004a5 movl %r10d, %eax
0x48, 0x83, 0xc8, 0x01, //0x000004a8 orq $1, %rax
0x48, 0x8d, 0x35, 0x6d, 0x04, 0x00, 0x00, //0x000004ac leaq $1133(%rip), %rsi /* _Digits+0(%rip) */
0x8a, 0x04, 0x30, //0x000004b3 movb (%rax,%rsi), %al
0x89, 0xce, //0x000004b6 movl %ecx, %esi
0x83, 0xc1, 0x01, //0x000004b8 addl $1, %ecx
0x88, 0x44, 0x37, 0x01, //0x000004bb movb %al, $1(%rdi,%rsi)
//0x000004bf LBB0_39
0x48, 0x8d, 0x05, 0x5a, 0x04, 0x00, 0x00, //0x000004bf leaq $1114(%rip), %rax /* _Digits+0(%rip) */
0x41, 0x8a, 0x04, 0x01, //0x000004c6 movb (%r9,%rax), %al
0x89, 0xce, //0x000004ca movl %ecx, %esi
0x83, 0xc1, 0x01, //0x000004cc addl $1, %ecx
0x88, 0x44, 0x37, 0x01, //0x000004cf movb %al, $1(%rdi,%rsi)
//0x000004d3 LBB0_40
0x41, 0x0f, 0xb7, 0xc1, //0x000004d3 movzwl %r9w, %eax
0x48, 0x83, 0xc8, 0x01, //0x000004d7 orq $1, %rax
0x48, 0x8d, 0x35, 0x3e, 0x04, 0x00, 0x00, //0x000004db leaq $1086(%rip), %rsi /* _Digits+0(%rip) */
0x8a, 0x04, 0x30, //0x000004e2 movb (%rax,%rsi), %al
0x89, 0xca, //0x000004e5 movl %ecx, %edx
0x88, 0x44, 0x17, 0x01, //0x000004e7 movb %al, $1(%rdi,%rdx)
0x41, 0x8a, 0x04, 0x30, //0x000004eb movb (%r8,%rsi), %al
0x88, 0x44, 0x17, 0x02, //0x000004ef movb %al, $2(%rdi,%rdx)
0x41, 0x0f, 0xb7, 0xc0, //0x000004f3 movzwl %r8w, %eax
0x48, 0x83, 0xc8, 0x01, //0x000004f7 orq $1, %rax
0x8a, 0x04, 0x30, //0x000004fb movb (%rax,%rsi), %al
0x88, 0x44, 0x17, 0x03, //0x000004fe movb %al, $3(%rdi,%rdx)
0x41, 0x8a, 0x04, 0x33, //0x00000502 movb (%r11,%rsi), %al
0x88, 0x44, 0x17, 0x04, //0x00000506 movb %al, $4(%rdi,%rdx)
0x41, 0x0f, 0xb7, 0xc3, //0x0000050a movzwl %r11w, %eax
0x48, 0x83, 0xc8, 0x01, //0x0000050e orq $1, %rax
0x8a, 0x04, 0x30, //0x00000512 movb (%rax,%rsi), %al
0x83, 0xc1, 0x05, //0x00000515 addl $5, %ecx
0x88, 0x44, 0x17, 0x05, //0x00000518 movb %al, $5(%rdi,%rdx)
0x83, 0xc1, 0x01, //0x0000051c addl $1, %ecx
0x89, 0xc8, //0x0000051f movl %ecx, %eax
0x5d, //0x00000521 popq %rbp
0xc3, //0x00000522 retq
//0x00000523 LBB0_38
0x31, 0xc9, //0x00000523 xorl %ecx, %ecx
0x81, 0xfe, 0xa0, 0x86, 0x01, 0x00, //0x00000525 cmpl $100000, %esi
0x0f, 0x83, 0x8e, 0xff, 0xff, 0xff, //0x0000052b jae LBB0_39
0xe9, 0x9d, 0xff, 0xff, 0xff, //0x00000531 jmp LBB0_40
//0x00000536 LBB0_41
0x48, 0xb9, 0x00, 0x00, 0xc1, 0x6f, 0xf2, 0x86, 0x23, 0x00, //0x00000536 movabsq $10000000000000000, %rcx
0x48, 0x39, 0xce, //0x00000540 cmpq %rcx, %rsi
0x0f, 0x83, 0x69, 0x02, 0x00, 0x00, //0x00000543 jae LBB0_43
0x48, 0xb9, 0xfd, 0xce, 0x61, 0x84, 0x11, 0x77, 0xcc, 0xab, //0x00000549 movabsq $-6067343680855748867, %rcx
0x48, 0x89, 0xf0, //0x00000553 movq %rsi, %rax
0x48, 0xf7, 0xe1, //0x00000556 mulq %rcx
0x48, 0xc1, 0xea, 0x1a, //0x00000559 shrq $26, %rdx
0x69, 0xc2, 0x00, 0xe1, 0xf5, 0x05, //0x0000055d imull $100000000, %edx, %eax
0x29, 0xc6, //0x00000563 subl %eax, %esi
0xc5, 0xf9, 0x6e, 0xc2, //0x00000565 vmovd %edx, %xmm0
0xc5, 0xfa, 0x6f, 0x0d, 0x8f, 0xfa, 0xff, 0xff, //0x00000569 vmovdqu $-1393(%rip), %xmm1 /* LCPI0_0+0(%rip) */
0xc5, 0xf9, 0xf4, 0xd1, //0x00000571 vpmuludq %xmm1, %xmm0, %xmm2
0xc5, 0xe9, 0x73, 0xd2, 0x2d, //0x00000575 vpsrlq $45, %xmm2, %xmm2
0xb8, 0x10, 0x27, 0x00, 0x00, //0x0000057a movl $10000, %eax
0xc4, 0xe1, 0xf9, 0x6e, 0xd8, //0x0000057f vmovq %rax, %xmm3
0xc5, 0xe9, 0xf4, 0xe3, //0x00000584 vpmuludq %xmm3, %xmm2, %xmm4
0xc5, 0xf9, 0xfa, 0xc4, //0x00000588 vpsubd %xmm4, %xmm0, %xmm0
0xc5, 0xe9, 0x61, 0xc0, //0x0000058c vpunpcklwd %xmm0, %xmm2, %xmm0
0xc5, 0xf9, 0x73, 0xf0, 0x02, //0x00000590 vpsllq $2, %xmm0, %xmm0
0xc5, 0xfb, 0x70, 0xc0, 0x50, //0x00000595 vpshuflw $80, %xmm0, %xmm0
0xc5, 0xf9, 0x70, 0xc0, 0x50, //0x0000059a vpshufd $80, %xmm0, %xmm0
0xc4, 0xe2, 0x79, 0x59, 0x15, 0x88, 0xfa, 0xff, 0xff, //0x0000059f vpbroadcastq $-1400(%rip), %xmm2 /* LCPI0_1+0(%rip) */
0xc4, 0xe2, 0x79, 0x59, 0x25, 0x87, 0xfa, 0xff, 0xff, //0x000005a8 vpbroadcastq $-1401(%rip), %xmm4 /* LCPI0_2+0(%rip) */
0xc5, 0xf9, 0xe4, 0xc2, //0x000005b1 vpmulhuw %xmm2, %xmm0, %xmm0
0xc5, 0xf9, 0xe4, 0xc4, //0x000005b5 vpmulhuw %xmm4, %xmm0, %xmm0
0xc5, 0xfa, 0x6f, 0x2d, 0x4f, 0xfa, 0xff, 0xff, //0x000005b9 vmovdqu $-1457(%rip), %xmm5 /* LCPI0_3+0(%rip) */
0xc5, 0xf9, 0xd5, 0xf5, //0x000005c1 vpmullw %xmm5, %xmm0, %xmm6
0xc5, 0xc9, 0x73, 0xf6, 0x10, //0x000005c5 vpsllq $16, %xmm6, %xmm6
0xc5, 0xf9, 0xf9, 0xc6, //0x000005ca vpsubw %xmm6, %xmm0, %xmm0
0xc5, 0xf9, 0x6e, 0xf6, //0x000005ce vmovd %esi, %xmm6
0xc5, 0xc9, 0xf4, 0xc9, //0x000005d2 vpmuludq %xmm1, %xmm6, %xmm1
0xc5, 0xf1, 0x73, 0xd1, 0x2d, //0x000005d6 vpsrlq $45, %xmm1, %xmm1
0xc5, 0xf1, 0xf4, 0xdb, //0x000005db vpmuludq %xmm3, %xmm1, %xmm3
0xc5, 0xc9, 0xfa, 0xdb, //0x000005df vpsubd %xmm3, %xmm6, %xmm3
0xc5, 0xf1, 0x61, 0xcb, //0x000005e3 vpunpcklwd %xmm3, %xmm1, %xmm1
0xc5, 0xf1, 0x73, 0xf1, 0x02, //0x000005e7 vpsllq $2, %xmm1, %xmm1
0xc5, 0xfb, 0x70, 0xc9, 0x50, //0x000005ec vpshuflw $80, %xmm1, %xmm1
0xc5, 0xf9, 0x70, 0xc9, 0x50, //0x000005f1 vpshufd $80, %xmm1, %xmm1
0xc5, 0xf1, 0xe4, 0xca, //0x000005f6 vpmulhuw %xmm2, %xmm1, %xmm1
0xc5, 0xf1, 0xe4, 0xcc, //0x000005fa vpmulhuw %xmm4, %xmm1, %xmm1
0xc5, 0xf1, 0xd5, 0xd5, //0x000005fe vpmullw %xmm5, %xmm1, %xmm2
0xc5, 0xe9, 0x73, 0xf2, 0x10, //0x00000602 vpsllq $16, %xmm2, %xmm2
0xc5, 0xf1, 0xf9, 0xca, //0x00000607 vpsubw %xmm2, %xmm1, %xmm1
0xc5, 0xf9, 0x67, 0xc1, //0x0000060b vpackuswb %xmm1, %xmm0, %xmm0
0xc5, 0xf9, 0xfc, 0x0d, 0x09, 0xfa, 0xff, 0xff, //0x0000060f vpaddb $-1527(%rip), %xmm0, %xmm1 /* LCPI0_4+0(%rip) */
0xc5, 0xe9, 0xef, 0xd2, //0x00000617 vpxor %xmm2, %xmm2, %xmm2
0xc5, 0xf9, 0x74, 0xc2, //0x0000061b vpcmpeqb %xmm2, %xmm0, %xmm0
0xc5, 0xf9, 0xd7, 0xc0, //0x0000061f vpmovmskb %xmm0, %eax
0xf7, 0xd0, //0x00000623 notl %eax
0x0d, 0x00, 0x80, 0x00, 0x00, //0x00000625 orl $32768, %eax
0x0f, 0xbc, 0xc0, //0x0000062a bsfl %eax, %eax
0xb9, 0x10, 0x00, 0x00, 0x00, //0x0000062d movl $16, %ecx
0x29, 0xc1, //0x00000632 subl %eax, %ecx
0x48, 0xc1, 0xe0, 0x04, //0x00000634 shlq $4, %rax
0x48, 0x8d, 0x15, 0xb1, 0x03, 0x00, 0x00, //0x00000638 leaq $945(%rip), %rdx /* _VecShiftShuffles+0(%rip) */
0xc4, 0xe2, 0x71, 0x00, 0x04, 0x10, //0x0000063f vpshufb (%rax,%rdx), %xmm1, %xmm0
0xc5, 0xfa, 0x7f, 0x47, 0x01, //0x00000645 vmovdqu %xmm0, $1(%rdi)
0x83, 0xc1, 0x01, //0x0000064a addl $1, %ecx
0x89, 0xc8, //0x0000064d movl %ecx, %eax
0x5d, //0x0000064f popq %rbp
0xc3, //0x00000650 retq
//0x00000651 LBB0_19
0x48, 0xba, 0x57, 0x78, 0x13, 0xb1, 0x2f, 0x65, 0xa5, 0x39, //0x00000651 movabsq $4153837486827862103, %rdx
0x48, 0x89, 0xf0, //0x0000065b movq %rsi, %rax
0x48, 0xf7, 0xe2, //0x0000065e mulq %rdx
0x48, 0xc1, 0xea, 0x33, //0x00000661 shrq $51, %rdx
0x48, 0x0f, 0xaf, 0xca, //0x00000665 imulq %rdx, %rcx
0x48, 0x29, 0xce, //0x00000669 subq %rcx, %rsi
0x83, 0xfa, 0x09, //0x0000066c cmpl $9, %edx
0x0f, 0x87, 0x0f, 0x00, 0x00, 0x00, //0x0000066f ja LBB0_21
0x80, 0xc2, 0x30, //0x00000675 addb $48, %dl
0x88, 0x17, //0x00000678 movb %dl, (%rdi)
0xb9, 0x01, 0x00, 0x00, 0x00, //0x0000067a movl $1, %ecx
0xe9, 0x52, 0x00, 0x00, 0x00, //0x0000067f jmp LBB0_24
//0x00000684 LBB0_21
0x83, 0xfa, 0x63, //0x00000684 cmpl $99, %edx
0x0f, 0x87, 0x1a, 0x00, 0x00, 0x00, //0x00000687 ja LBB0_23
0x89, 0xd0, //0x0000068d movl %edx, %eax
0x48, 0x8d, 0x0d, 0x8a, 0x02, 0x00, 0x00, //0x0000068f leaq $650(%rip), %rcx /* _Digits+0(%rip) */
0x0f, 0xb7, 0x04, 0x41, //0x00000696 movzwl (%rcx,%rax,2), %eax
0x66, 0x89, 0x07, //0x0000069a movw %ax, (%rdi)
0xb9, 0x02, 0x00, 0x00, 0x00, //0x0000069d movl $2, %ecx
0xe9, 0x2f, 0x00, 0x00, 0x00, //0x000006a2 jmp LBB0_24
//0x000006a7 LBB0_23
0x89, 0xd0, //0x000006a7 movl %edx, %eax
0xc1, 0xe8, 0x02, //0x000006a9 shrl $2, %eax
0x69, 0xc0, 0x7b, 0x14, 0x00, 0x00, //0x000006ac imull $5243, %eax, %eax
0xc1, 0xe8, 0x11, //0x000006b2 shrl $17, %eax
0x8d, 0x48, 0x30, //0x000006b5 leal $48(%rax), %ecx
0x88, 0x0f, //0x000006b8 movb %cl, (%rdi)
0x6b, 0xc0, 0x64, //0x000006ba imull $100, %eax, %eax
0x29, 0xc2, //0x000006bd subl %eax, %edx
0x0f, 0xb7, 0xc2, //0x000006bf movzwl %dx, %eax
0x48, 0x8d, 0x0d, 0x57, 0x02, 0x00, 0x00, //0x000006c2 leaq $599(%rip), %rcx /* _Digits+0(%rip) */
0x0f, 0xb7, 0x04, 0x41, //0x000006c9 movzwl (%rcx,%rax,2), %eax
0x66, 0x89, 0x47, 0x01, //0x000006cd movw %ax, $1(%rdi)
0xb9, 0x03, 0x00, 0x00, 0x00, //0x000006d1 movl $3, %ecx
//0x000006d6 LBB0_24
0x48, 0xba, 0xfd, 0xce, 0x61, 0x84, 0x11, 0x77, 0xcc, 0xab, //0x000006d6 movabsq $-6067343680855748867, %rdx
0x48, 0x89, 0xf0, //0x000006e0 movq %rsi, %rax
0x48, 0xf7, 0xe2, //0x000006e3 mulq %rdx
0x48, 0xc1, 0xea, 0x1a, //0x000006e6 shrq $26, %rdx
0xc5, 0xf9, 0x6e, 0xc2, //0x000006ea vmovd %edx, %xmm0
0xc5, 0xfa, 0x6f, 0x0d, 0x0a, 0xf9, 0xff, 0xff, //0x000006ee vmovdqu $-1782(%rip), %xmm1 /* LCPI0_0+0(%rip) */
0xc5, 0xf9, 0xf4, 0xd1, //0x000006f6 vpmuludq %xmm1, %xmm0, %xmm2
0xc5, 0xe9, 0x73, 0xd2, 0x2d, //0x000006fa vpsrlq $45, %xmm2, %xmm2
0xb8, 0x10, 0x27, 0x00, 0x00, //0x000006ff movl $10000, %eax
0xc4, 0xe1, 0xf9, 0x6e, 0xd8, //0x00000704 vmovq %rax, %xmm3
0xc5, 0xe9, 0xf4, 0xe3, //0x00000709 vpmuludq %xmm3, %xmm2, %xmm4
0xc5, 0xf9, 0xfa, 0xc4, //0x0000070d vpsubd %xmm4, %xmm0, %xmm0
0xc5, 0xe9, 0x61, 0xc0, //0x00000711 vpunpcklwd %xmm0, %xmm2, %xmm0
0xc5, 0xf9, 0x73, 0xf0, 0x02, //0x00000715 vpsllq $2, %xmm0, %xmm0
0xc5, 0xfb, 0x70, 0xc0, 0x50, //0x0000071a vpshuflw $80, %xmm0, %xmm0
0xc4, 0xe2, 0x79, 0x59, 0x15, 0x08, 0xf9, 0xff, 0xff, //0x0000071f vpbroadcastq $-1784(%rip), %xmm2 /* LCPI0_1+0(%rip) */
0xc5, 0xf9, 0x70, 0xc0, 0x50, //0x00000728 vpshufd $80, %xmm0, %xmm0
0xc5, 0xf9, 0xe4, 0xc2, //0x0000072d vpmulhuw %xmm2, %xmm0, %xmm0
0xc4, 0xe2, 0x79, 0x59, 0x25, 0xfe, 0xf8, 0xff, 0xff, //0x00000731 vpbroadcastq $-1794(%rip), %xmm4 /* LCPI0_2+0(%rip) */
0xc5, 0xf9, 0xe4, 0xc4, //0x0000073a vpmulhuw %xmm4, %xmm0, %xmm0
0xc5, 0xfa, 0x6f, 0x2d, 0xca, 0xf8, 0xff, 0xff, //0x0000073e vmovdqu $-1846(%rip), %xmm5 /* LCPI0_3+0(%rip) */
0xc5, 0xf9, 0xd5, 0xf5, //0x00000746 vpmullw %xmm5, %xmm0, %xmm6
0xc5, 0xc9, 0x73, 0xf6, 0x10, //0x0000074a vpsllq $16, %xmm6, %xmm6
0xc5, 0xf9, 0xf9, 0xc6, //0x0000074f vpsubw %xmm6, %xmm0, %xmm0
0x69, 0xc2, 0x00, 0xe1, 0xf5, 0x05, //0x00000753 imull $100000000, %edx, %eax
0x29, 0xc6, //0x00000759 subl %eax, %esi
0xc5, 0xf9, 0x6e, 0xf6, //0x0000075b vmovd %esi, %xmm6
0xc5, 0xc9, 0xf4, 0xc9, //0x0000075f vpmuludq %xmm1, %xmm6, %xmm1
0xc5, 0xf1, 0x73, 0xd1, 0x2d, //0x00000763 vpsrlq $45, %xmm1, %xmm1
0xc5, 0xf1, 0xf4, 0xdb, //0x00000768 vpmuludq %xmm3, %xmm1, %xmm3
0xc5, 0xc9, 0xfa, 0xdb, //0x0000076c vpsubd %xmm3, %xmm6, %xmm3
0xc5, 0xf1, 0x61, 0xcb, //0x00000770 vpunpcklwd %xmm3, %xmm1, %xmm1
0xc5, 0xf1, 0x73, 0xf1, 0x02, //0x00000774 vpsllq $2, %xmm1, %xmm1
0xc5, 0xfb, 0x70, 0xc9, 0x50, //0x00000779 vpshuflw $80, %xmm1, %xmm1
0xc5, 0xf9, 0x70, 0xc9, 0x50, //0x0000077e vpshufd $80, %xmm1, %xmm1
0xc5, 0xf1, 0xe4, 0xca, //0x00000783 vpmulhuw %xmm2, %xmm1, %xmm1
0xc5, 0xf1, 0xe4, 0xcc, //0x00000787 vpmulhuw %xmm4, %xmm1, %xmm1
0xc5, 0xf1, 0xd5, 0xd5, //0x0000078b vpmullw %xmm5, %xmm1, %xmm2
0xc5, 0xe9, 0x73, 0xf2, 0x10, //0x0000078f vpsllq $16, %xmm2, %xmm2
0xc5, 0xf1, 0xf9, 0xca, //0x00000794 vpsubw %xmm2, %xmm1, %xmm1
0xc5, 0xf9, 0x67, 0xc1, //0x00000798 vpackuswb %xmm1, %xmm0, %xmm0
0xc5, 0xf9, 0xfc, 0x05, 0x7c, 0xf8, 0xff, 0xff, //0x0000079c vpaddb $-1924(%rip), %xmm0, %xmm0 /* LCPI0_4+0(%rip) */
0x89, 0xc8, //0x000007a4 movl %ecx, %eax
0xc5, 0xfa, 0x7f, 0x04, 0x07, //0x000007a6 vmovdqu %xmm0, (%rdi,%rax)
0x83, 0xc9, 0x10, //0x000007ab orl $16, %ecx
0x89, 0xc8, //0x000007ae movl %ecx, %eax
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/skip_array.go | vendor/github.com/bytedance/sonic/internal/native/avx2/skip_array.go | // Code generated by Makefile, DO NOT EDIT.
/*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the License );
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package avx2
import (
`unsafe`
`github.com/bytedance/sonic/internal/native/types`
`github.com/bytedance/sonic/internal/rt`
)
var F_skip_array func(s unsafe.Pointer, p unsafe.Pointer, m unsafe.Pointer, flags uint64) (ret int)
var S_skip_array uintptr
//go:nosplit
func skip_array(s *string, p *int, m *types.StateMachine, flags uint64) (ret int) {
return F_skip_array(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(m)), flags)
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/f32toa.go | vendor/github.com/bytedance/sonic/internal/native/avx2/f32toa.go | // Code generated by Makefile, DO NOT EDIT.
/*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package avx2
import (
`unsafe`
`github.com/bytedance/sonic/internal/rt`
)
var F_f32toa func(out unsafe.Pointer, val float32) (ret int)
var S_f32toa uintptr
//go:nosplit
func f32toa(out *byte, val float32) (ret int) {
return F_f32toa(rt.NoEscape(unsafe.Pointer(out)), val)
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/html_escape_text_amd64.go | vendor/github.com/bytedance/sonic/internal/native/avx2/html_escape_text_amd64.go | // +build amd64
// Code generated by asm2asm, DO NOT EDIT.
package avx2
var _text_html_escape = []byte{
// .p2align 5, 0x00
// LCPI0_0
0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, // QUAD $0x2626262626262626; QUAD $0x2626262626262626 // .space 16, '&&&&&&&&&&&&&&&&'
0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, //0x00000010 QUAD $0x2626262626262626; QUAD $0x2626262626262626 // .space 16, '&&&&&&&&&&&&&&&&'
//0x00000020 LCPI0_1
0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, //0x00000020 QUAD $0xe2e2e2e2e2e2e2e2; QUAD $0xe2e2e2e2e2e2e2e2 // .space 16, '\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2'
0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, //0x00000030 QUAD $0xe2e2e2e2e2e2e2e2; QUAD $0xe2e2e2e2e2e2e2e2 // .space 16, '\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2'
//0x00000040 LCPI0_2
0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, //0x00000040 QUAD $0xfdfdfdfdfdfdfdfd; QUAD $0xfdfdfdfdfdfdfdfd // .space 16, '\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd'
0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, //0x00000050 QUAD $0xfdfdfdfdfdfdfdfd; QUAD $0xfdfdfdfdfdfdfdfd // .space 16, '\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd'
//0x00000060 LCPI0_3
0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, //0x00000060 QUAD $0x3c3c3c3c3c3c3c3c; QUAD $0x3c3c3c3c3c3c3c3c // .space 16, '<<<<<<<<<<<<<<<<'
0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, //0x00000070 QUAD $0x3c3c3c3c3c3c3c3c; QUAD $0x3c3c3c3c3c3c3c3c // .space 16, '<<<<<<<<<<<<<<<<'
//0x00000080 .p2align 4, 0x00
//0x00000080 LCPI0_4
0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, //0x00000080 QUAD $0x2626262626262626; QUAD $0x2626262626262626 // .space 16, '&&&&&&&&&&&&&&&&'
//0x00000090 LCPI0_5
0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, 0xe2, //0x00000090 QUAD $0xe2e2e2e2e2e2e2e2; QUAD $0xe2e2e2e2e2e2e2e2 // .space 16, '\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2\xe2'
//0x000000a0 LCPI0_6
0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, //0x000000a0 QUAD $0xfdfdfdfdfdfdfdfd; QUAD $0xfdfdfdfdfdfdfdfd // .space 16, '\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd'
//0x000000b0 LCPI0_7
0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, //0x000000b0 QUAD $0x3c3c3c3c3c3c3c3c; QUAD $0x3c3c3c3c3c3c3c3c // .space 16, '<<<<<<<<<<<<<<<<'
//0x000000c0 .p2align 4, 0x90
//0x000000c0 _html_escape
0x55, //0x000000c0 pushq %rbp
0x48, 0x89, 0xe5, //0x000000c1 movq %rsp, %rbp
0x41, 0x57, //0x000000c4 pushq %r15
0x41, 0x56, //0x000000c6 pushq %r14
0x41, 0x55, //0x000000c8 pushq %r13
0x41, 0x54, //0x000000ca pushq %r12
0x53, //0x000000cc pushq %rbx
0x48, 0x83, 0xec, 0x18, //0x000000cd subq $24, %rsp
0x48, 0x89, 0x4d, 0xc0, //0x000000d1 movq %rcx, $-64(%rbp)
0x49, 0x89, 0xd7, //0x000000d5 movq %rdx, %r15
0x48, 0x89, 0x55, 0xc8, //0x000000d8 movq %rdx, $-56(%rbp)
0x48, 0x89, 0x7d, 0xd0, //0x000000dc movq %rdi, $-48(%rbp)
0x48, 0x89, 0xf8, //0x000000e0 movq %rdi, %rax
0x48, 0x85, 0xf6, //0x000000e3 testq %rsi, %rsi
0x0f, 0x8e, 0x8c, 0x07, 0x00, 0x00, //0x000000e6 jle LBB0_106
0x48, 0x8b, 0x45, 0xc0, //0x000000ec movq $-64(%rbp), %rax
0x4c, 0x8b, 0x08, //0x000000f0 movq (%rax), %r9
0xc5, 0xfe, 0x6f, 0x1d, 0x05, 0xff, 0xff, 0xff, //0x000000f3 vmovdqu $-251(%rip), %ymm3 /* LCPI0_0+0(%rip) */
0xc5, 0xfe, 0x6f, 0x25, 0x1d, 0xff, 0xff, 0xff, //0x000000fb vmovdqu $-227(%rip), %ymm4 /* LCPI0_1+0(%rip) */
0xc5, 0xfe, 0x6f, 0x2d, 0x35, 0xff, 0xff, 0xff, //0x00000103 vmovdqu $-203(%rip), %ymm5 /* LCPI0_2+0(%rip) */
0xc5, 0xfe, 0x6f, 0x35, 0x4d, 0xff, 0xff, 0xff, //0x0000010b vmovdqu $-179(%rip), %ymm6 /* LCPI0_3+0(%rip) */
0x4c, 0x8d, 0x35, 0xa6, 0x07, 0x00, 0x00, //0x00000113 leaq $1958(%rip), %r14 /* __HtmlQuoteTab+0(%rip) */
0x4c, 0x8b, 0x5d, 0xd0, //0x0000011a movq $-48(%rbp), %r11
0x4c, 0x8b, 0x7d, 0xc8, //0x0000011e movq $-56(%rbp), %r15
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000122 .p2align 4, 0x90
//0x00000130 LBB0_2
0x4d, 0x85, 0xc9, //0x00000130 testq %r9, %r9
0x0f, 0x8e, 0x5e, 0x07, 0x00, 0x00, //0x00000133 jle LBB0_3
0x48, 0x83, 0xfe, 0x20, //0x00000139 cmpq $32, %rsi
0x0f, 0x9d, 0xc1, //0x0000013d setge %cl
0x4c, 0x89, 0xc8, //0x00000140 movq %r9, %rax
0x4d, 0x89, 0xf8, //0x00000143 movq %r15, %r8
0x49, 0x89, 0xf2, //0x00000146 movq %rsi, %r10
0x4d, 0x89, 0xdc, //0x00000149 movq %r11, %r12
0x0f, 0x8c, 0x7e, 0x00, 0x00, 0x00, //0x0000014c jl LBB0_12
0x49, 0x83, 0xf9, 0x20, //0x00000152 cmpq $32, %r9
0x0f, 0x8c, 0x74, 0x00, 0x00, 0x00, //0x00000156 jl LBB0_12
0x45, 0x31, 0xc0, //0x0000015c xorl %r8d, %r8d
0x48, 0x89, 0xf3, //0x0000015f movq %rsi, %rbx
0x4c, 0x89, 0xcf, //0x00000162 movq %r9, %rdi
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000165 .p2align 4, 0x90
//0x00000170 LBB0_7
0xc4, 0x81, 0x7e, 0x6f, 0x04, 0x03, //0x00000170 vmovdqu (%r11,%r8), %ymm0
0xc5, 0xfd, 0x74, 0xcb, //0x00000176 vpcmpeqb %ymm3, %ymm0, %ymm1
0xc5, 0xfd, 0x74, 0xd4, //0x0000017a vpcmpeqb %ymm4, %ymm0, %ymm2
0xc5, 0xed, 0xeb, 0xc9, //0x0000017e vpor %ymm1, %ymm2, %ymm1
0xc5, 0xfd, 0xdb, 0xd5, //0x00000182 vpand %ymm5, %ymm0, %ymm2
0xc5, 0xed, 0x74, 0xd6, //0x00000186 vpcmpeqb %ymm6, %ymm2, %ymm2
0xc5, 0xf5, 0xeb, 0xca, //0x0000018a vpor %ymm2, %ymm1, %ymm1
0xc4, 0x81, 0x7e, 0x7f, 0x04, 0x07, //0x0000018e vmovdqu %ymm0, (%r15,%r8)
0xc5, 0xfd, 0xd7, 0xc1, //0x00000194 vpmovmskb %ymm1, %eax
0x85, 0xc0, //0x00000198 testl %eax, %eax
0x0f, 0x85, 0x90, 0x01, 0x00, 0x00, //0x0000019a jne LBB0_8
0x4c, 0x8d, 0x53, 0xe0, //0x000001a0 leaq $-32(%rbx), %r10
0x48, 0x8d, 0x47, 0xe0, //0x000001a4 leaq $-32(%rdi), %rax
0x49, 0x83, 0xc0, 0x20, //0x000001a8 addq $32, %r8
0x48, 0x83, 0xfb, 0x40, //0x000001ac cmpq $64, %rbx
0x0f, 0x9d, 0xc1, //0x000001b0 setge %cl
0x0f, 0x8c, 0x10, 0x00, 0x00, 0x00, //0x000001b3 jl LBB0_11
0x4c, 0x89, 0xd3, //0x000001b9 movq %r10, %rbx
0x48, 0x83, 0xff, 0x3f, //0x000001bc cmpq $63, %rdi
0x48, 0x89, 0xc7, //0x000001c0 movq %rax, %rdi
0x0f, 0x8f, 0xa7, 0xff, 0xff, 0xff, //0x000001c3 jg LBB0_7
//0x000001c9 LBB0_11
0x4f, 0x8d, 0x24, 0x03, //0x000001c9 leaq (%r11,%r8), %r12
0x4d, 0x01, 0xf8, //0x000001cd addq %r15, %r8
//0x000001d0 LBB0_12
0x84, 0xc9, //0x000001d0 testb %cl, %cl
0x0f, 0x84, 0x88, 0x00, 0x00, 0x00, //0x000001d2 je LBB0_38
0xc4, 0xc1, 0x7e, 0x6f, 0x04, 0x24, //0x000001d8 vmovdqu (%r12), %ymm0
0xc5, 0xfd, 0x74, 0xcb, //0x000001de vpcmpeqb %ymm3, %ymm0, %ymm1
0xc5, 0xfd, 0x74, 0xd4, //0x000001e2 vpcmpeqb %ymm4, %ymm0, %ymm2
0xc5, 0xed, 0xeb, 0xc9, //0x000001e6 vpor %ymm1, %ymm2, %ymm1
0xc5, 0xfd, 0xdb, 0xc5, //0x000001ea vpand %ymm5, %ymm0, %ymm0
0xc5, 0xfd, 0x74, 0xc6, //0x000001ee vpcmpeqb %ymm6, %ymm0, %ymm0
0xc5, 0xf5, 0xeb, 0xc0, //0x000001f2 vpor %ymm0, %ymm1, %ymm0
0xc5, 0xfd, 0xd7, 0xc8, //0x000001f6 vpmovmskb %ymm0, %ecx
0x48, 0xba, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, //0x000001fa movabsq $4294967296, %rdx
0x48, 0x09, 0xd1, //0x00000204 orq %rdx, %rcx
0x4c, 0x0f, 0xbc, 0xe9, //0x00000207 bsfq %rcx, %r13
0xc4, 0xc1, 0x7a, 0x6f, 0x04, 0x24, //0x0000020b vmovdqu (%r12), %xmm0
0xc4, 0xe3, 0xf9, 0x16, 0xc1, 0x01, //0x00000211 vpextrq $1, %xmm0, %rcx
0xc4, 0xe1, 0xf9, 0x7e, 0xc7, //0x00000217 vmovq %xmm0, %rdi
0x49, 0x39, 0xc5, //0x0000021c cmpq %rax, %r13
0x0f, 0x8e, 0x17, 0x01, 0x00, 0x00, //0x0000021f jle LBB0_14
0x48, 0x83, 0xf8, 0x10, //0x00000225 cmpq $16, %rax
0x0f, 0x82, 0x4a, 0x01, 0x00, 0x00, //0x00000229 jb LBB0_27
0x49, 0x89, 0x38, //0x0000022f movq %rdi, (%r8)
0x49, 0x89, 0x48, 0x08, //0x00000232 movq %rcx, $8(%r8)
0x4d, 0x8d, 0x54, 0x24, 0x10, //0x00000236 leaq $16(%r12), %r10
0x49, 0x83, 0xc0, 0x10, //0x0000023b addq $16, %r8
0x4c, 0x8d, 0x70, 0xf0, //0x0000023f leaq $-16(%rax), %r14
0x49, 0x83, 0xfe, 0x08, //0x00000243 cmpq $8, %r14
0x0f, 0x83, 0x3c, 0x01, 0x00, 0x00, //0x00000247 jae LBB0_30
0xe9, 0x49, 0x01, 0x00, 0x00, //0x0000024d jmp LBB0_31
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000252 .p2align 4, 0x90
//0x00000260 LBB0_38
0xc5, 0xf8, 0x77, //0x00000260 vzeroupper
0x49, 0x83, 0xfa, 0x10, //0x00000263 cmpq $16, %r10
0x0f, 0x9d, 0xc1, //0x00000267 setge %cl
0x0f, 0x8c, 0x5f, 0x01, 0x00, 0x00, //0x0000026a jl LBB0_39
0x48, 0x83, 0xf8, 0x10, //0x00000270 cmpq $16, %rax
0xc5, 0xfa, 0x6f, 0x3d, 0x04, 0xfe, 0xff, 0xff, //0x00000274 vmovdqu $-508(%rip), %xmm7 /* LCPI0_4+0(%rip) */
0xc5, 0x7a, 0x6f, 0x05, 0x0c, 0xfe, 0xff, 0xff, //0x0000027c vmovdqu $-500(%rip), %xmm8 /* LCPI0_5+0(%rip) */
0xc5, 0x7a, 0x6f, 0x0d, 0x14, 0xfe, 0xff, 0xff, //0x00000284 vmovdqu $-492(%rip), %xmm9 /* LCPI0_6+0(%rip) */
0xc5, 0x7a, 0x6f, 0x15, 0x1c, 0xfe, 0xff, 0xff, //0x0000028c vmovdqu $-484(%rip), %xmm10 /* LCPI0_7+0(%rip) */
0x0f, 0x8c, 0xeb, 0x01, 0x00, 0x00, //0x00000294 jl LBB0_41
0x4c, 0x89, 0xdf, //0x0000029a movq %r11, %rdi
0x4c, 0x29, 0xe7, //0x0000029d subq %r12, %rdi
0xc5, 0xfe, 0x6f, 0x1d, 0x58, 0xfd, 0xff, 0xff, //0x000002a0 vmovdqu $-680(%rip), %ymm3 /* LCPI0_0+0(%rip) */
0xc5, 0xfe, 0x6f, 0x25, 0x70, 0xfd, 0xff, 0xff, //0x000002a8 vmovdqu $-656(%rip), %ymm4 /* LCPI0_1+0(%rip) */
0xc5, 0xfe, 0x6f, 0x2d, 0x88, 0xfd, 0xff, 0xff, //0x000002b0 vmovdqu $-632(%rip), %ymm5 /* LCPI0_2+0(%rip) */
0xc5, 0xfe, 0x6f, 0x35, 0xa0, 0xfd, 0xff, 0xff, //0x000002b8 vmovdqu $-608(%rip), %ymm6 /* LCPI0_3+0(%rip) */
//0x000002c0 .p2align 4, 0x90
//0x000002c0 LBB0_43
0xc4, 0xc1, 0x7a, 0x6f, 0x04, 0x24, //0x000002c0 vmovdqu (%r12), %xmm0
0xc5, 0xf9, 0x74, 0xcf, //0x000002c6 vpcmpeqb %xmm7, %xmm0, %xmm1
0xc5, 0xb9, 0x74, 0xd0, //0x000002ca vpcmpeqb %xmm0, %xmm8, %xmm2
0xc5, 0xe9, 0xeb, 0xc9, //0x000002ce vpor %xmm1, %xmm2, %xmm1
0xc5, 0xb1, 0xdb, 0xd0, //0x000002d2 vpand %xmm0, %xmm9, %xmm2
0xc5, 0xa9, 0x74, 0xd2, //0x000002d6 vpcmpeqb %xmm2, %xmm10, %xmm2
0xc5, 0xf1, 0xeb, 0xca, //0x000002da vpor %xmm2, %xmm1, %xmm1
0xc4, 0xc1, 0x7a, 0x7f, 0x00, //0x000002de vmovdqu %xmm0, (%r8)
0xc5, 0xf9, 0xd7, 0xc9, //0x000002e3 vpmovmskb %xmm1, %ecx
0x85, 0xc9, //0x000002e7 testl %ecx, %ecx
0x0f, 0x85, 0x7a, 0x00, 0x00, 0x00, //0x000002e9 jne LBB0_44
0x49, 0x83, 0xc4, 0x10, //0x000002ef addq $16, %r12
0x49, 0x83, 0xc0, 0x10, //0x000002f3 addq $16, %r8
0x4d, 0x8d, 0x72, 0xf0, //0x000002f7 leaq $-16(%r10), %r14
0x4c, 0x8d, 0x68, 0xf0, //0x000002fb leaq $-16(%rax), %r13
0x49, 0x83, 0xfa, 0x20, //0x000002ff cmpq $32, %r10
0x0f, 0x9d, 0xc1, //0x00000303 setge %cl
0x0f, 0x8c, 0x09, 0x01, 0x00, 0x00, //0x00000306 jl LBB0_47
0x48, 0x83, 0xc7, 0xf0, //0x0000030c addq $-16, %rdi
0x4d, 0x89, 0xf2, //0x00000310 movq %r14, %r10
0x48, 0x83, 0xf8, 0x1f, //0x00000313 cmpq $31, %rax
0x4c, 0x89, 0xe8, //0x00000317 movq %r13, %rax
0x0f, 0x8f, 0xa0, 0xff, 0xff, 0xff, //0x0000031a jg LBB0_43
0xe9, 0xf0, 0x00, 0x00, 0x00, //0x00000320 jmp LBB0_47
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000325 .p2align 4, 0x90
//0x00000330 LBB0_8
0x44, 0x0f, 0xbc, 0xe0, //0x00000330 bsfl %eax, %r12d
0x4d, 0x01, 0xc4, //0x00000334 addq %r8, %r12
0xe9, 0xeb, 0x03, 0x00, 0x00, //0x00000337 jmp LBB0_83
//0x0000033c LBB0_14
0x41, 0x83, 0xfd, 0x10, //0x0000033c cmpl $16, %r13d
0x0f, 0x82, 0xfb, 0x01, 0x00, 0x00, //0x00000340 jb LBB0_15
0x49, 0x89, 0x38, //0x00000346 movq %rdi, (%r8)
0x49, 0x89, 0x48, 0x08, //0x00000349 movq %rcx, $8(%r8)
0x4d, 0x8d, 0x54, 0x24, 0x10, //0x0000034d leaq $16(%r12), %r10
0x49, 0x83, 0xc0, 0x10, //0x00000352 addq $16, %r8
0x49, 0x8d, 0x45, 0xf0, //0x00000356 leaq $-16(%r13), %rax
0x48, 0x83, 0xf8, 0x08, //0x0000035a cmpq $8, %rax
0x0f, 0x83, 0xed, 0x01, 0x00, 0x00, //0x0000035e jae LBB0_18
0xe9, 0xfa, 0x01, 0x00, 0x00, //0x00000364 jmp LBB0_19
//0x00000369 LBB0_44
0x66, 0x0f, 0xbc, 0xc1, //0x00000369 bsfw %cx, %ax
0x44, 0x0f, 0xb7, 0xe0, //0x0000036d movzwl %ax, %r12d
0x49, 0x29, 0xfc, //0x00000371 subq %rdi, %r12
0xe9, 0xa7, 0x03, 0x00, 0x00, //0x00000374 jmp LBB0_82
//0x00000379 LBB0_27
0x4d, 0x89, 0xe2, //0x00000379 movq %r12, %r10
0x49, 0x89, 0xc6, //0x0000037c movq %rax, %r14
0x49, 0x83, 0xfe, 0x08, //0x0000037f cmpq $8, %r14
0x0f, 0x82, 0x12, 0x00, 0x00, 0x00, //0x00000383 jb LBB0_31
//0x00000389 LBB0_30
0x49, 0x8b, 0x0a, //0x00000389 movq (%r10), %rcx
0x49, 0x89, 0x08, //0x0000038c movq %rcx, (%r8)
0x49, 0x83, 0xc2, 0x08, //0x0000038f addq $8, %r10
0x49, 0x83, 0xc0, 0x08, //0x00000393 addq $8, %r8
0x49, 0x83, 0xc6, 0xf8, //0x00000397 addq $-8, %r14
//0x0000039b LBB0_31
0x49, 0x83, 0xfe, 0x04, //0x0000039b cmpq $4, %r14
0x0f, 0x8d, 0xec, 0x01, 0x00, 0x00, //0x0000039f jge LBB0_32
0x49, 0x83, 0xfe, 0x02, //0x000003a5 cmpq $2, %r14
0x0f, 0x83, 0xfe, 0x01, 0x00, 0x00, //0x000003a9 jae LBB0_34
//0x000003af LBB0_35
0x4d, 0x85, 0xf6, //0x000003af testq %r14, %r14
0x0f, 0x84, 0x06, 0x00, 0x00, 0x00, //0x000003b2 je LBB0_37
//0x000003b8 LBB0_36
0x41, 0x8a, 0x0a, //0x000003b8 movb (%r10), %cl
0x41, 0x88, 0x08, //0x000003bb movb %cl, (%r8)
//0x000003be LBB0_37
0x4c, 0x01, 0xe0, //0x000003be addq %r12, %rax
0x48, 0xf7, 0xd0, //0x000003c1 notq %rax
0x4c, 0x01, 0xd8, //0x000003c4 addq %r11, %rax
0x49, 0x89, 0xc4, //0x000003c7 movq %rax, %r12
0xe9, 0x51, 0x03, 0x00, 0x00, //0x000003ca jmp LBB0_82
//0x000003cf LBB0_39
0x49, 0x89, 0xc5, //0x000003cf movq %rax, %r13
0x4d, 0x89, 0xd6, //0x000003d2 movq %r10, %r14
0xc5, 0xfe, 0x6f, 0x1d, 0x23, 0xfc, 0xff, 0xff, //0x000003d5 vmovdqu $-989(%rip), %ymm3 /* LCPI0_0+0(%rip) */
0xc5, 0xfe, 0x6f, 0x25, 0x3b, 0xfc, 0xff, 0xff, //0x000003dd vmovdqu $-965(%rip), %ymm4 /* LCPI0_1+0(%rip) */
0xc5, 0xfe, 0x6f, 0x2d, 0x53, 0xfc, 0xff, 0xff, //0x000003e5 vmovdqu $-941(%rip), %ymm5 /* LCPI0_2+0(%rip) */
0xc5, 0xfe, 0x6f, 0x35, 0x6b, 0xfc, 0xff, 0xff, //0x000003ed vmovdqu $-917(%rip), %ymm6 /* LCPI0_3+0(%rip) */
0xc5, 0xfa, 0x6f, 0x3d, 0x83, 0xfc, 0xff, 0xff, //0x000003f5 vmovdqu $-893(%rip), %xmm7 /* LCPI0_4+0(%rip) */
0xc5, 0x7a, 0x6f, 0x05, 0x8b, 0xfc, 0xff, 0xff, //0x000003fd vmovdqu $-885(%rip), %xmm8 /* LCPI0_5+0(%rip) */
0xc5, 0x7a, 0x6f, 0x0d, 0x93, 0xfc, 0xff, 0xff, //0x00000405 vmovdqu $-877(%rip), %xmm9 /* LCPI0_6+0(%rip) */
0xc5, 0x7a, 0x6f, 0x15, 0x9b, 0xfc, 0xff, 0xff, //0x0000040d vmovdqu $-869(%rip), %xmm10 /* LCPI0_7+0(%rip) */
//0x00000415 LBB0_47
0x84, 0xc9, //0x00000415 testb %cl, %cl
0x0f, 0x84, 0x96, 0x00, 0x00, 0x00, //0x00000417 je LBB0_48
//0x0000041d LBB0_58
0xc4, 0xc1, 0x7a, 0x6f, 0x04, 0x24, //0x0000041d vmovdqu (%r12), %xmm0
0xc5, 0xf9, 0x74, 0xcf, //0x00000423 vpcmpeqb %xmm7, %xmm0, %xmm1
0xc5, 0xb9, 0x74, 0xd0, //0x00000427 vpcmpeqb %xmm0, %xmm8, %xmm2
0xc5, 0xe9, 0xeb, 0xc9, //0x0000042b vpor %xmm1, %xmm2, %xmm1
0xc5, 0xb1, 0xdb, 0xd0, //0x0000042f vpand %xmm0, %xmm9, %xmm2
0xc5, 0xa9, 0x74, 0xd2, //0x00000433 vpcmpeqb %xmm2, %xmm10, %xmm2
0xc5, 0xf1, 0xeb, 0xca, //0x00000437 vpor %xmm2, %xmm1, %xmm1
0xc5, 0xf9, 0xd7, 0xc1, //0x0000043b vpmovmskb %xmm1, %eax
0x0d, 0x00, 0x00, 0x01, 0x00, //0x0000043f orl $65536, %eax
0x0f, 0xbc, 0xc0, //0x00000444 bsfl %eax, %eax
0xc4, 0xe1, 0xf9, 0x7e, 0xc1, //0x00000447 vmovq %xmm0, %rcx
0x49, 0x39, 0xc5, //0x0000044c cmpq %rax, %r13
0x0f, 0x8d, 0xb8, 0x01, 0x00, 0x00, //0x0000044f jge LBB0_59
0x49, 0x83, 0xfd, 0x08, //0x00000455 cmpq $8, %r13
0x4c, 0x8d, 0x35, 0x60, 0x04, 0x00, 0x00, //0x00000459 leaq $1120(%rip), %r14 /* __HtmlQuoteTab+0(%rip) */
0x0f, 0x82, 0xe1, 0x01, 0x00, 0x00, //0x00000460 jb LBB0_70
0x49, 0x89, 0x08, //0x00000466 movq %rcx, (%r8)
0x49, 0x8d, 0x44, 0x24, 0x08, //0x00000469 leaq $8(%r12), %rax
0x49, 0x83, 0xc0, 0x08, //0x0000046e addq $8, %r8
0x49, 0x8d, 0x7d, 0xf8, //0x00000472 leaq $-8(%r13), %rdi
0x48, 0x83, 0xff, 0x04, //0x00000476 cmpq $4, %rdi
0x0f, 0x8d, 0xd7, 0x01, 0x00, 0x00, //0x0000047a jge LBB0_73
0xe9, 0xe3, 0x01, 0x00, 0x00, //0x00000480 jmp LBB0_74
//0x00000485 LBB0_41
0x49, 0x89, 0xc5, //0x00000485 movq %rax, %r13
0x4d, 0x89, 0xd6, //0x00000488 movq %r10, %r14
0xc5, 0xfe, 0x6f, 0x1d, 0x6d, 0xfb, 0xff, 0xff, //0x0000048b vmovdqu $-1171(%rip), %ymm3 /* LCPI0_0+0(%rip) */
0xc5, 0xfe, 0x6f, 0x25, 0x85, 0xfb, 0xff, 0xff, //0x00000493 vmovdqu $-1147(%rip), %ymm4 /* LCPI0_1+0(%rip) */
0xc5, 0xfe, 0x6f, 0x2d, 0x9d, 0xfb, 0xff, 0xff, //0x0000049b vmovdqu $-1123(%rip), %ymm5 /* LCPI0_2+0(%rip) */
0xc5, 0xfe, 0x6f, 0x35, 0xb5, 0xfb, 0xff, 0xff, //0x000004a3 vmovdqu $-1099(%rip), %ymm6 /* LCPI0_3+0(%rip) */
0x84, 0xc9, //0x000004ab testb %cl, %cl
0x0f, 0x85, 0x6a, 0xff, 0xff, 0xff, //0x000004ad jne LBB0_58
//0x000004b3 LBB0_48
0x4d, 0x85, 0xf6, //0x000004b3 testq %r14, %r14
0x0f, 0x8e, 0x71, 0x00, 0x00, 0x00, //0x000004b6 jle LBB0_56
0x4d, 0x85, 0xed, //0x000004bc testq %r13, %r13
0x0f, 0x8e, 0x68, 0x00, 0x00, 0x00, //0x000004bf jle LBB0_56
0x31, 0xc9, //0x000004c5 xorl %ecx, %ecx
0x31, 0xc0, //0x000004c7 xorl %eax, %eax
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x000004c9 .p2align 4, 0x90
//0x000004d0 LBB0_51
0x41, 0x0f, 0xb6, 0x3c, 0x0c, //0x000004d0 movzbl (%r12,%rcx), %edi
0x48, 0x83, 0xff, 0x3e, //0x000004d5 cmpq $62, %rdi
0x0f, 0x87, 0x14, 0x00, 0x00, 0x00, //0x000004d9 ja LBB0_52
0x48, 0xba, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x50, //0x000004df movabsq $5764607797912141824, %rdx
0x48, 0x0f, 0xa3, 0xfa, //0x000004e9 btq %rdi, %rdx
0x0f, 0x82, 0x49, 0x01, 0x00, 0x00, //0x000004ed jb LBB0_80
//0x000004f3 LBB0_52
0x40, 0x80, 0xff, 0xe2, //0x000004f3 cmpb $-30, %dil
0x0f, 0x84, 0x3f, 0x01, 0x00, 0x00, //0x000004f7 je LBB0_80
0x49, 0x8d, 0x14, 0x06, //0x000004fd leaq (%r14,%rax), %rdx
0x41, 0x88, 0x3c, 0x08, //0x00000501 movb %dil, (%r8,%rcx)
0x48, 0x8d, 0x78, 0xff, //0x00000505 leaq $-1(%rax), %rdi
0x48, 0x83, 0xfa, 0x02, //0x00000509 cmpq $2, %rdx
0x0f, 0x8c, 0x14, 0x00, 0x00, 0x00, //0x0000050d jl LBB0_55
0x4c, 0x01, 0xe8, //0x00000513 addq %r13, %rax
0x48, 0x83, 0xc1, 0x01, //0x00000516 addq $1, %rcx
0x48, 0x83, 0xf8, 0x01, //0x0000051a cmpq $1, %rax
0x48, 0x89, 0xf8, //0x0000051e movq %rdi, %rax
0x0f, 0x8f, 0xa9, 0xff, 0xff, 0xff, //0x00000521 jg LBB0_51
//0x00000527 LBB0_55
0x49, 0x29, 0xfc, //0x00000527 subq %rdi, %r12
0x49, 0x01, 0xfe, //0x0000052a addq %rdi, %r14
//0x0000052d LBB0_56
0x4d, 0x85, 0xf6, //0x0000052d testq %r14, %r14
0x0f, 0x84, 0xe4, 0x01, 0x00, 0x00, //0x00000530 je LBB0_57
0x49, 0xf7, 0xd4, //0x00000536 notq %r12
0x4d, 0x01, 0xdc, //0x00000539 addq %r11, %r12
0xe9, 0xdf, 0x01, 0x00, 0x00, //0x0000053c jmp LBB0_82
//0x00000541 LBB0_15
0x4d, 0x89, 0xe2, //0x00000541 movq %r12, %r10
0x4c, 0x89, 0xe8, //0x00000544 movq %r13, %rax
0x48, 0x83, 0xf8, 0x08, //0x00000547 cmpq $8, %rax
0x0f, 0x82, 0x12, 0x00, 0x00, 0x00, //0x0000054b jb LBB0_19
//0x00000551 LBB0_18
0x49, 0x8b, 0x0a, //0x00000551 movq (%r10), %rcx
0x49, 0x89, 0x08, //0x00000554 movq %rcx, (%r8)
0x49, 0x83, 0xc2, 0x08, //0x00000557 addq $8, %r10
0x49, 0x83, 0xc0, 0x08, //0x0000055b addq $8, %r8
0x48, 0x83, 0xc0, 0xf8, //0x0000055f addq $-8, %rax
//0x00000563 LBB0_19
0x48, 0x83, 0xf8, 0x04, //0x00000563 cmpq $4, %rax
0x0f, 0x8d, 0x62, 0x00, 0x00, 0x00, //0x00000567 jge LBB0_20
0x48, 0x83, 0xf8, 0x02, //0x0000056d cmpq $2, %rax
0x0f, 0x83, 0x74, 0x00, 0x00, 0x00, //0x00000571 jae LBB0_22
//0x00000577 LBB0_23
0x48, 0x85, 0xc0, //0x00000577 testq %rax, %rax
0x0f, 0x84, 0x06, 0x00, 0x00, 0x00, //0x0000057a je LBB0_25
//0x00000580 LBB0_24
0x41, 0x8a, 0x02, //0x00000580 movb (%r10), %al
0x41, 0x88, 0x00, //0x00000583 movb %al, (%r8)
//0x00000586 LBB0_25
0x4d, 0x29, 0xdc, //0x00000586 subq %r11, %r12
0x4d, 0x01, 0xec, //0x00000589 addq %r13, %r12
0xe9, 0x96, 0x01, 0x00, 0x00, //0x0000058c jmp LBB0_83
//0x00000591 LBB0_32
0x41, 0x8b, 0x0a, //0x00000591 movl (%r10), %ecx
0x41, 0x89, 0x08, //0x00000594 movl %ecx, (%r8)
0x49, 0x83, 0xc2, 0x04, //0x00000597 addq $4, %r10
0x49, 0x83, 0xc0, 0x04, //0x0000059b addq $4, %r8
0x49, 0x83, 0xc6, 0xfc, //0x0000059f addq $-4, %r14
0x49, 0x83, 0xfe, 0x02, //0x000005a3 cmpq $2, %r14
0x0f, 0x82, 0x02, 0xfe, 0xff, 0xff, //0x000005a7 jb LBB0_35
//0x000005ad LBB0_34
0x41, 0x0f, 0xb7, 0x0a, //0x000005ad movzwl (%r10), %ecx
0x66, 0x41, 0x89, 0x08, //0x000005b1 movw %cx, (%r8)
0x49, 0x83, 0xc2, 0x02, //0x000005b5 addq $2, %r10
0x49, 0x83, 0xc0, 0x02, //0x000005b9 addq $2, %r8
0x49, 0x83, 0xc6, 0xfe, //0x000005bd addq $-2, %r14
0x4d, 0x85, 0xf6, //0x000005c1 testq %r14, %r14
0x0f, 0x85, 0xee, 0xfd, 0xff, 0xff, //0x000005c4 jne LBB0_36
0xe9, 0xef, 0xfd, 0xff, 0xff, //0x000005ca jmp LBB0_37
//0x000005cf LBB0_20
0x41, 0x8b, 0x0a, //0x000005cf movl (%r10), %ecx
0x41, 0x89, 0x08, //0x000005d2 movl %ecx, (%r8)
0x49, 0x83, 0xc2, 0x04, //0x000005d5 addq $4, %r10
0x49, 0x83, 0xc0, 0x04, //0x000005d9 addq $4, %r8
0x48, 0x83, 0xc0, 0xfc, //0x000005dd addq $-4, %rax
0x48, 0x83, 0xf8, 0x02, //0x000005e1 cmpq $2, %rax
0x0f, 0x82, 0x8c, 0xff, 0xff, 0xff, //0x000005e5 jb LBB0_23
//0x000005eb LBB0_22
0x41, 0x0f, 0xb7, 0x0a, //0x000005eb movzwl (%r10), %ecx
0x66, 0x41, 0x89, 0x08, //0x000005ef movw %cx, (%r8)
0x49, 0x83, 0xc2, 0x02, //0x000005f3 addq $2, %r10
0x49, 0x83, 0xc0, 0x02, //0x000005f7 addq $2, %r8
0x48, 0x83, 0xc0, 0xfe, //0x000005fb addq $-2, %rax
0x48, 0x85, 0xc0, //0x000005ff testq %rax, %rax
0x0f, 0x85, 0x78, 0xff, 0xff, 0xff, //0x00000602 jne LBB0_24
0xe9, 0x79, 0xff, 0xff, 0xff, //0x00000608 jmp LBB0_25
//0x0000060d LBB0_59
0x83, 0xf8, 0x08, //0x0000060d cmpl $8, %eax
0x4c, 0x8d, 0x35, 0xa9, 0x02, 0x00, 0x00, //0x00000610 leaq $681(%rip), %r14 /* __HtmlQuoteTab+0(%rip) */
0x0f, 0x82, 0x74, 0x00, 0x00, 0x00, //0x00000617 jb LBB0_60
0x49, 0x89, 0x08, //0x0000061d movq %rcx, (%r8)
0x4d, 0x8d, 0x54, 0x24, 0x08, //0x00000620 leaq $8(%r12), %r10
0x49, 0x83, 0xc0, 0x08, //0x00000625 addq $8, %r8
0x48, 0x8d, 0x78, 0xf8, //0x00000629 leaq $-8(%rax), %rdi
0x48, 0x83, 0xff, 0x04, //0x0000062d cmpq $4, %rdi
0x0f, 0x8d, 0x6a, 0x00, 0x00, 0x00, //0x00000631 jge LBB0_63
0xe9, 0x77, 0x00, 0x00, 0x00, //0x00000637 jmp LBB0_64
//0x0000063c LBB0_80
0x4d, 0x29, 0xdc, //0x0000063c subq %r11, %r12
0x49, 0x29, 0xc4, //0x0000063f subq %rax, %r12
0xe9, 0xd9, 0x00, 0x00, 0x00, //0x00000642 jmp LBB0_82
//0x00000647 LBB0_70
0x4c, 0x89, 0xe0, //0x00000647 movq %r12, %rax
0x4c, 0x89, 0xef, //0x0000064a movq %r13, %rdi
0x48, 0x83, 0xff, 0x04, //0x0000064d cmpq $4, %rdi
0x0f, 0x8c, 0x11, 0x00, 0x00, 0x00, //0x00000651 jl LBB0_74
//0x00000657 LBB0_73
0x8b, 0x08, //0x00000657 movl (%rax), %ecx
0x41, 0x89, 0x08, //0x00000659 movl %ecx, (%r8)
0x48, 0x83, 0xc0, 0x04, //0x0000065c addq $4, %rax
0x49, 0x83, 0xc0, 0x04, //0x00000660 addq $4, %r8
0x48, 0x83, 0xc7, 0xfc, //0x00000664 addq $-4, %rdi
//0x00000668 LBB0_74
0x48, 0x83, 0xff, 0x02, //0x00000668 cmpq $2, %rdi
0x0f, 0x83, 0x65, 0x00, 0x00, 0x00, //0x0000066c jae LBB0_75
0x48, 0x85, 0xff, //0x00000672 testq %rdi, %rdi
0x0f, 0x84, 0x05, 0x00, 0x00, 0x00, //0x00000675 je LBB0_78
//0x0000067b LBB0_77
0x8a, 0x00, //0x0000067b movb (%rax), %al
0x41, 0x88, 0x00, //0x0000067d movb %al, (%r8)
//0x00000680 LBB0_78
0x4d, 0x01, 0xe5, //0x00000680 addq %r12, %r13
0x49, 0xf7, 0xd5, //0x00000683 notq %r13
0x4d, 0x01, 0xdd, //0x00000686 addq %r11, %r13
0x4d, 0x89, 0xec, //0x00000689 movq %r13, %r12
0xe9, 0x96, 0x00, 0x00, 0x00, //0x0000068c jmp LBB0_83
//0x00000691 LBB0_60
0x4d, 0x89, 0xe2, //0x00000691 movq %r12, %r10
0x48, 0x89, 0xc7, //0x00000694 movq %rax, %rdi
0x48, 0x83, 0xff, 0x04, //0x00000697 cmpq $4, %rdi
0x0f, 0x8c, 0x12, 0x00, 0x00, 0x00, //0x0000069b jl LBB0_64
//0x000006a1 LBB0_63
0x41, 0x8b, 0x0a, //0x000006a1 movl (%r10), %ecx
0x41, 0x89, 0x08, //0x000006a4 movl %ecx, (%r8)
0x49, 0x83, 0xc2, 0x04, //0x000006a7 addq $4, %r10
0x49, 0x83, 0xc0, 0x04, //0x000006ab addq $4, %r8
0x48, 0x83, 0xc7, 0xfc, //0x000006af addq $-4, %rdi
//0x000006b3 LBB0_64
0x48, 0x83, 0xff, 0x02, //0x000006b3 cmpq $2, %rdi
0x0f, 0x83, 0x3b, 0x00, 0x00, 0x00, //0x000006b7 jae LBB0_65
0x48, 0x85, 0xff, //0x000006bd testq %rdi, %rdi
0x0f, 0x84, 0x06, 0x00, 0x00, 0x00, //0x000006c0 je LBB0_68
//0x000006c6 LBB0_67
0x41, 0x8a, 0x0a, //0x000006c6 movb (%r10), %cl
0x41, 0x88, 0x08, //0x000006c9 movb %cl, (%r8)
//0x000006cc LBB0_68
0x4d, 0x29, 0xdc, //0x000006cc subq %r11, %r12
0x49, 0x01, 0xc4, //0x000006cf addq %rax, %r12
0xe9, 0x50, 0x00, 0x00, 0x00, //0x000006d2 jmp LBB0_83
//0x000006d7 LBB0_75
0x0f, 0xb7, 0x08, //0x000006d7 movzwl (%rax), %ecx
0x66, 0x41, 0x89, 0x08, //0x000006da movw %cx, (%r8)
0x48, 0x83, 0xc0, 0x02, //0x000006de addq $2, %rax
0x49, 0x83, 0xc0, 0x02, //0x000006e2 addq $2, %r8
0x48, 0x83, 0xc7, 0xfe, //0x000006e6 addq $-2, %rdi
0x48, 0x85, 0xff, //0x000006ea testq %rdi, %rdi
0x0f, 0x85, 0x88, 0xff, 0xff, 0xff, //0x000006ed jne LBB0_77
0xe9, 0x88, 0xff, 0xff, 0xff, //0x000006f3 jmp LBB0_78
//0x000006f8 LBB0_65
0x41, 0x0f, 0xb7, 0x0a, //0x000006f8 movzwl (%r10), %ecx
0x66, 0x41, 0x89, 0x08, //0x000006fc movw %cx, (%r8)
0x49, 0x83, 0xc2, 0x02, //0x00000700 addq $2, %r10
0x49, 0x83, 0xc0, 0x02, //0x00000704 addq $2, %r8
0x48, 0x83, 0xc7, 0xfe, //0x00000708 addq $-2, %rdi
0x48, 0x85, 0xff, //0x0000070c testq %rdi, %rdi
0x0f, 0x85, 0xb1, 0xff, 0xff, 0xff, //0x0000070f jne LBB0_67
0xe9, 0xb2, 0xff, 0xff, 0xff, //0x00000715 jmp LBB0_68
//0x0000071a LBB0_57
0x4d, 0x29, 0xdc, //0x0000071a subq %r11, %r12
0x90, 0x90, 0x90, //0x0000071d .p2align 4, 0x90
//0x00000720 LBB0_82
0x4c, 0x8d, 0x35, 0x99, 0x01, 0x00, 0x00, //0x00000720 leaq $409(%rip), %r14 /* __HtmlQuoteTab+0(%rip) */
//0x00000727 LBB0_83
0x4d, 0x85, 0xe4, //0x00000727 testq %r12, %r12
0x0f, 0x88, 0x22, 0x01, 0x00, 0x00, //0x0000072a js LBB0_84
0x4d, 0x01, 0xe3, //0x00000730 addq %r12, %r11
0x4d, 0x01, 0xe7, //0x00000733 addq %r12, %r15
0x4c, 0x29, 0xe6, //0x00000736 subq %r12, %rsi
0x0f, 0x8e, 0x36, 0x01, 0x00, 0x00, //0x00000739 jle LBB0_86
0x4d, 0x29, 0xe1, //0x0000073f subq %r12, %r9
0x41, 0x8a, 0x0b, //0x00000742 movb (%r11), %cl
0x80, 0xf9, 0xe2, //0x00000745 cmpb $-30, %cl
0x0f, 0x84, 0xb5, 0x00, 0x00, 0x00, //0x00000748 je LBB0_89
0x4c, 0x89, 0xd8, //0x0000074e movq %r11, %rax
//0x00000751 LBB0_93
0x0f, 0xb6, 0xf9, //0x00000751 movzbl %cl, %edi
0x48, 0xc1, 0xe7, 0x04, //0x00000754 shlq $4, %rdi
0x4a, 0x8b, 0x14, 0x37, //0x00000758 movq (%rdi,%r14), %rdx
0x48, 0x63, 0xda, //0x0000075c movslq %edx, %rbx
0x49, 0x29, 0xd9, //0x0000075f subq %rbx, %r9
0x0f, 0x8c, 0x24, 0x01, 0x00, 0x00, //0x00000762 jl LBB0_94
0x48, 0xc1, 0xe2, 0x20, //0x00000768 shlq $32, %rdx
0x4e, 0x8d, 0x04, 0x37, //0x0000076c leaq (%rdi,%r14), %r8
0x49, 0x83, 0xc0, 0x08, //0x00000770 addq $8, %r8
0x48, 0xb9, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, //0x00000774 movabsq $12884901889, %rcx
0x48, 0x39, 0xca, //0x0000077e cmpq %rcx, %rdx
0x0f, 0x8c, 0x29, 0x00, 0x00, 0x00, //0x00000781 jl LBB0_98
0x41, 0x8b, 0x08, //0x00000787 movl (%r8), %ecx
0x41, 0x89, 0x0f, //0x0000078a movl %ecx, (%r15)
0x4e, 0x8d, 0x04, 0x37, //0x0000078d leaq (%rdi,%r14), %r8
0x49, 0x83, 0xc0, 0x0c, //0x00000791 addq $12, %r8
0x4d, 0x8d, 0x57, 0x04, //0x00000795 leaq $4(%r15), %r10
0x48, 0x8d, 0x7b, 0xfc, //0x00000799 leaq $-4(%rbx), %rdi
0x48, 0x83, 0xff, 0x02, //0x0000079d cmpq $2, %rdi
0x0f, 0x83, 0x19, 0x00, 0x00, 0x00, //0x000007a1 jae LBB0_101
0xe9, 0x28, 0x00, 0x00, 0x00, //0x000007a7 jmp LBB0_102
0x90, 0x90, 0x90, 0x90, //0x000007ac .p2align 4, 0x90
//0x000007b0 LBB0_98
0x4d, 0x89, 0xfa, //0x000007b0 movq %r15, %r10
0x48, 0x89, 0xdf, //0x000007b3 movq %rbx, %rdi
0x48, 0x83, 0xff, 0x02, //0x000007b6 cmpq $2, %rdi
0x0f, 0x82, 0x14, 0x00, 0x00, 0x00, //0x000007ba jb LBB0_102
//0x000007c0 LBB0_101
0x41, 0x0f, 0xb7, 0x10, //0x000007c0 movzwl (%r8), %edx
0x66, 0x41, 0x89, 0x12, //0x000007c4 movw %dx, (%r10)
0x49, 0x83, 0xc0, 0x02, //0x000007c8 addq $2, %r8
0x49, 0x83, 0xc2, 0x02, //0x000007cc addq $2, %r10
0x48, 0x83, 0xc7, 0xfe, //0x000007d0 addq $-2, %rdi
//0x000007d4 LBB0_102
0x48, 0x85, 0xff, //0x000007d4 testq %rdi, %rdi
0x0f, 0x84, 0x06, 0x00, 0x00, 0x00, //0x000007d7 je LBB0_104
0x41, 0x8a, 0x08, //0x000007dd movb (%r8), %cl
0x41, 0x88, 0x0a, //0x000007e0 movb %cl, (%r10)
//0x000007e3 LBB0_104
0x49, 0x01, 0xdf, //0x000007e3 addq %rbx, %r15
//0x000007e6 LBB0_105
0x48, 0x83, 0xc0, 0x01, //0x000007e6 addq $1, %rax
0x48, 0x8d, 0x4e, 0xff, //0x000007ea leaq $-1(%rsi), %rcx
0x49, 0x89, 0xc3, //0x000007ee movq %rax, %r11
0x48, 0x83, 0xfe, 0x01, //0x000007f1 cmpq $1, %rsi
0x48, 0x89, 0xce, //0x000007f5 movq %rcx, %rsi
0x0f, 0x8f, 0x32, 0xf9, 0xff, 0xff, //0x000007f8 jg LBB0_2
0xe9, 0x75, 0x00, 0x00, 0x00, //0x000007fe jmp LBB0_106
//0x00000803 LBB0_89
0x48, 0x83, 0xfe, 0x03, //0x00000803 cmpq $3, %rsi
0x0f, 0x8c, 0x28, 0x00, 0x00, 0x00, //0x00000807 jl LBB0_95
0x41, 0x80, 0x7b, 0x01, 0x80, //0x0000080d cmpb $-128, $1(%r11)
0x0f, 0x85, 0x1d, 0x00, 0x00, 0x00, //0x00000812 jne LBB0_95
0x41, 0x8a, 0x4b, 0x02, //0x00000818 movb $2(%r11), %cl
0x89, 0xc8, //0x0000081c movl %ecx, %eax
0x24, 0xfe, //0x0000081e andb $-2, %al
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/lspace_subr.go | vendor/github.com/bytedance/sonic/internal/native/avx2/lspace_subr.go | // +build !noasm !appengine
// Code generated by asm2asm, DO NOT EDIT.
package avx2
import (
`github.com/bytedance/sonic/loader`
)
const (
_entry__lspace = 32
)
const (
_stack__lspace = 8
)
const (
_size__lspace = 232
)
var (
_pcsp__lspace = [][2]uint32{
{0x1, 0},
{0xbb, 8},
{0xbf, 0},
{0xc8, 8},
{0xcc, 0},
{0xd3, 8},
{0xd7, 0},
{0xe8, 8},
}
)
var _cfunc_lspace = []loader.CFunc{
{"_lspace_entry", 0, _entry__lspace, 0, nil},
{"_lspace", _entry__lspace, _size__lspace, _stack__lspace, _pcsp__lspace},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/i64toa_subr.go | vendor/github.com/bytedance/sonic/internal/native/avx2/i64toa_subr.go | // +build !noasm !appengine
// Code generated by asm2asm, DO NOT EDIT.
package avx2
import (
`github.com/bytedance/sonic/loader`
)
const (
_entry__i64toa = 64
)
const (
_stack__i64toa = 8
)
const (
_size__i64toa = 2272
)
var (
_pcsp__i64toa = [][2]uint32{
{0x1, 0},
{0xae, 8},
{0xaf, 0},
{0x201, 8},
{0x202, 0},
{0x287, 8},
{0x288, 0},
{0x456, 8},
{0x457, 0},
{0x4e2, 8},
{0x4e3, 0},
{0x610, 8},
{0x611, 0},
{0x771, 8},
{0x772, 0},
{0x8d9, 8},
{0x8e0, 0},
}
)
var _cfunc_i64toa = []loader.CFunc{
{"_i64toa_entry", 0, _entry__i64toa, 0, nil},
{"_i64toa", _entry__i64toa, _size__i64toa, _stack__i64toa, _pcsp__i64toa},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/unquote_text_amd64.go | vendor/github.com/bytedance/sonic/internal/native/avx2/unquote_text_amd64.go | // +build amd64
// Code generated by asm2asm, DO NOT EDIT.
package avx2
var _text_unquote = []byte{
// .p2align 5, 0x00
// LCPI0_0
0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, // QUAD $0x5c5c5c5c5c5c5c5c; QUAD $0x5c5c5c5c5c5c5c5c // .space 16, '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, //0x00000010 QUAD $0x5c5c5c5c5c5c5c5c; QUAD $0x5c5c5c5c5c5c5c5c // .space 16, '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
//0x00000020 .p2align 4, 0x00
//0x00000020 LCPI0_1
0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, //0x00000020 QUAD $0x5c5c5c5c5c5c5c5c; QUAD $0x5c5c5c5c5c5c5c5c // .space 16, '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
//0x00000030 .p2align 4, 0x90
//0x00000030 _unquote
0x55, //0x00000030 pushq %rbp
0x48, 0x89, 0xe5, //0x00000031 movq %rsp, %rbp
0x41, 0x57, //0x00000034 pushq %r15
0x41, 0x56, //0x00000036 pushq %r14
0x41, 0x55, //0x00000038 pushq %r13
0x41, 0x54, //0x0000003a pushq %r12
0x53, //0x0000003c pushq %rbx
0x48, 0x83, 0xec, 0x20, //0x0000003d subq $32, %rsp
0x48, 0x85, 0xf6, //0x00000041 testq %rsi, %rsi
0x0f, 0x84, 0xcb, 0x05, 0x00, 0x00, //0x00000044 je LBB0_1
0x48, 0x89, 0x4d, 0xd0, //0x0000004a movq %rcx, $-48(%rbp)
0x4c, 0x89, 0xc0, //0x0000004e movq %r8, %rax
0x4c, 0x89, 0x45, 0xb8, //0x00000051 movq %r8, $-72(%rbp)
0x41, 0x83, 0xe0, 0x01, //0x00000055 andl $1, %r8d
0x4c, 0x8d, 0x1d, 0xc0, 0x08, 0x00, 0x00, //0x00000059 leaq $2240(%rip), %r11 /* __UnquoteTab+0(%rip) */
0xc5, 0xfe, 0x6f, 0x0d, 0x98, 0xff, 0xff, 0xff, //0x00000060 vmovdqu $-104(%rip), %ymm1 /* LCPI0_0+0(%rip) */
0xc5, 0xfa, 0x6f, 0x15, 0xb0, 0xff, 0xff, 0xff, //0x00000068 vmovdqu $-80(%rip), %xmm2 /* LCPI0_1+0(%rip) */
0x48, 0x89, 0x7d, 0xc8, //0x00000070 movq %rdi, $-56(%rbp)
0x49, 0x89, 0xf9, //0x00000074 movq %rdi, %r9
0x48, 0x89, 0x75, 0xc0, //0x00000077 movq %rsi, $-64(%rbp)
0x49, 0x89, 0xf2, //0x0000007b movq %rsi, %r10
0x4c, 0x89, 0xc6, //0x0000007e movq %r8, %rsi
0x49, 0x89, 0xd0, //0x00000081 movq %rdx, %r8
0xe9, 0x77, 0x02, 0x00, 0x00, //0x00000084 jmp LBB0_3
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000089 .p2align 4, 0x90
//0x00000090 LBB0_64
0x44, 0x89, 0xf8, //0x00000090 movl %r15d, %eax
0x41, 0x81, 0xff, 0xff, 0x07, 0x00, 0x00, //0x00000093 cmpl $2047, %r15d
0x0f, 0x86, 0xba, 0x01, 0x00, 0x00, //0x0000009a jbe LBB0_65
0x25, 0x00, 0xf8, 0xff, 0xff, //0x000000a0 andl $-2048, %eax
0x3d, 0x00, 0xd8, 0x00, 0x00, //0x000000a5 cmpl $55296, %eax
0x0f, 0x85, 0x70, 0x01, 0x00, 0x00, //0x000000aa jne LBB0_67
0x48, 0x85, 0xf6, //0x000000b0 testq %rsi, %rsi
0x0f, 0x85, 0x14, 0x01, 0x00, 0x00, //0x000000b3 jne LBB0_69
0x49, 0x83, 0xfa, 0x06, //0x000000b9 cmpq $6, %r10
0x0f, 0x8c, 0x2f, 0x01, 0x00, 0x00, //0x000000bd jl LBB0_78
//0x000000c3 LBB0_75
0x41, 0x81, 0xff, 0xff, 0xdb, 0x00, 0x00, //0x000000c3 cmpl $56319, %r15d
0x0f, 0x87, 0x22, 0x01, 0x00, 0x00, //0x000000ca ja LBB0_78
0x41, 0x80, 0x39, 0x5c, //0x000000d0 cmpb $92, (%r9)
0x0f, 0x85, 0x18, 0x01, 0x00, 0x00, //0x000000d4 jne LBB0_78
0x41, 0x80, 0x79, 0x01, 0x75, //0x000000da cmpb $117, $1(%r9)
0x0f, 0x85, 0x0d, 0x01, 0x00, 0x00, //0x000000df jne LBB0_78
0x45, 0x8b, 0x71, 0x02, //0x000000e5 movl $2(%r9), %r14d
0x44, 0x89, 0xf1, //0x000000e9 movl %r14d, %ecx
0xf7, 0xd1, //0x000000ec notl %ecx
0x41, 0x8d, 0x86, 0xd0, 0xcf, 0xcf, 0xcf, //0x000000ee leal $-808464432(%r14), %eax
0x81, 0xe1, 0x80, 0x80, 0x80, 0x80, //0x000000f5 andl $-2139062144, %ecx
0x85, 0xc1, //0x000000fb testl %eax, %ecx
0x0f, 0x85, 0x6d, 0x06, 0x00, 0x00, //0x000000fd jne LBB0_88
0x41, 0x8d, 0x86, 0x19, 0x19, 0x19, 0x19, //0x00000103 leal $421075225(%r14), %eax
0x44, 0x09, 0xf0, //0x0000010a orl %r14d, %eax
0xa9, 0x80, 0x80, 0x80, 0x80, //0x0000010d testl $-2139062144, %eax
0x0f, 0x85, 0x58, 0x06, 0x00, 0x00, //0x00000112 jne LBB0_88
0x44, 0x89, 0xf3, //0x00000118 movl %r14d, %ebx
0x81, 0xe3, 0x7f, 0x7f, 0x7f, 0x7f, //0x0000011b andl $2139062143, %ebx
0xb8, 0xc0, 0xc0, 0xc0, 0xc0, //0x00000121 movl $-1061109568, %eax
0x29, 0xd8, //0x00000126 subl %ebx, %eax
0x8d, 0x93, 0x46, 0x46, 0x46, 0x46, //0x00000128 leal $1179010630(%rbx), %edx
0x21, 0xc8, //0x0000012e andl %ecx, %eax
0x85, 0xd0, //0x00000130 testl %edx, %eax
0x0f, 0x85, 0x38, 0x06, 0x00, 0x00, //0x00000132 jne LBB0_88
0xb8, 0xe0, 0xe0, 0xe0, 0xe0, //0x00000138 movl $-522133280, %eax
0x29, 0xd8, //0x0000013d subl %ebx, %eax
0x81, 0xc3, 0x39, 0x39, 0x39, 0x39, //0x0000013f addl $960051513, %ebx
0x21, 0xc1, //0x00000145 andl %eax, %ecx
0x85, 0xd9, //0x00000147 testl %ebx, %ecx
0x0f, 0x85, 0x21, 0x06, 0x00, 0x00, //0x00000149 jne LBB0_88
0x41, 0x0f, 0xce, //0x0000014f bswapl %r14d
0x44, 0x89, 0xf0, //0x00000152 movl %r14d, %eax
0xc1, 0xe8, 0x04, //0x00000155 shrl $4, %eax
0xf7, 0xd0, //0x00000158 notl %eax
0x25, 0x01, 0x01, 0x01, 0x01, //0x0000015a andl $16843009, %eax
0x8d, 0x04, 0xc0, //0x0000015f leal (%rax,%rax,8), %eax
0x41, 0x81, 0xe6, 0x0f, 0x0f, 0x0f, 0x0f, //0x00000162 andl $252645135, %r14d
0x41, 0x01, 0xc6, //0x00000169 addl %eax, %r14d
0x44, 0x89, 0xf0, //0x0000016c movl %r14d, %eax
0xc1, 0xe8, 0x04, //0x0000016f shrl $4, %eax
0x44, 0x09, 0xf0, //0x00000172 orl %r14d, %eax
0x89, 0xc1, //0x00000175 movl %eax, %ecx
0xc1, 0xe9, 0x08, //0x00000177 shrl $8, %ecx
0x81, 0xe1, 0x00, 0xff, 0x00, 0x00, //0x0000017a andl $65280, %ecx
0x0f, 0xb6, 0xd8, //0x00000180 movzbl %al, %ebx
0x09, 0xcb, //0x00000183 orl %ecx, %ebx
0x49, 0x83, 0xc1, 0x06, //0x00000185 addq $6, %r9
0x49, 0x83, 0xc2, 0xfa, //0x00000189 addq $-6, %r10
0x25, 0x00, 0x00, 0xfc, 0x00, //0x0000018d andl $16515072, %eax
0x3d, 0x00, 0x00, 0xdc, 0x00, //0x00000192 cmpl $14417920, %eax
0x0f, 0x84, 0xe3, 0x00, 0x00, 0x00, //0x00000197 je LBB0_103
0xf6, 0x45, 0xb8, 0x02, //0x0000019d testb $2, $-72(%rbp)
0x0f, 0x84, 0x17, 0x07, 0x00, 0x00, //0x000001a1 je LBB0_82
0x4c, 0x89, 0xda, //0x000001a7 movq %r11, %rdx
0x66, 0x41, 0xc7, 0x40, 0xfe, 0xef, 0xbf, //0x000001aa movw $-16401, $-2(%r8)
0x41, 0xc6, 0x00, 0xbd, //0x000001b1 movb $-67, (%r8)
0x49, 0x83, 0xc0, 0x03, //0x000001b5 addq $3, %r8
0x41, 0x89, 0xdf, //0x000001b9 movl %ebx, %r15d
0x81, 0xfb, 0x80, 0x00, 0x00, 0x00, //0x000001bc cmpl $128, %ebx
0x0f, 0x83, 0xc8, 0xfe, 0xff, 0xff, //0x000001c2 jae LBB0_64
0xe9, 0x0d, 0x01, 0x00, 0x00, //0x000001c8 jmp LBB0_61
//0x000001cd LBB0_69
0x4d, 0x85, 0xd2, //0x000001cd testq %r10, %r10
0x0f, 0x8e, 0x0f, 0x07, 0x00, 0x00, //0x000001d0 jle LBB0_70
0x41, 0x80, 0x39, 0x5c, //0x000001d6 cmpb $92, (%r9)
0x0f, 0x85, 0x06, 0x01, 0x00, 0x00, //0x000001da jne LBB0_80
0x49, 0x83, 0xc2, 0xff, //0x000001e0 addq $-1, %r10
0x49, 0x83, 0xc1, 0x01, //0x000001e4 addq $1, %r9
0x49, 0x83, 0xfa, 0x06, //0x000001e8 cmpq $6, %r10
0x0f, 0x8d, 0xd1, 0xfe, 0xff, 0xff, //0x000001ec jge LBB0_75
//0x000001f2 LBB0_78
0xf6, 0x45, 0xb8, 0x02, //0x000001f2 testb $2, $-72(%rbp)
0x0f, 0x84, 0xdd, 0x06, 0x00, 0x00, //0x000001f6 je LBB0_79
//0x000001fc LBB0_81
0x66, 0x41, 0xc7, 0x40, 0xfe, 0xef, 0xbf, //0x000001fc movw $-16401, $-2(%r8)
0x41, 0xc6, 0x00, 0xbd, //0x00000203 movb $-67, (%r8)
0x49, 0x83, 0xc0, 0x01, //0x00000207 addq $1, %r8
0x4c, 0x89, 0xda, //0x0000020b movq %r11, %rdx
0x49, 0x89, 0xfb, //0x0000020e movq %rdi, %r11
0x4d, 0x85, 0xd2, //0x00000211 testq %r10, %r10
0x0f, 0x85, 0xe6, 0x00, 0x00, 0x00, //0x00000214 jne LBB0_3
0xe9, 0xee, 0x03, 0x00, 0x00, //0x0000021a jmp LBB0_106
0x90, //0x0000021f .p2align 4, 0x90
//0x00000220 LBB0_67
0x44, 0x89, 0xf8, //0x00000220 movl %r15d, %eax
0xc1, 0xe8, 0x0c, //0x00000223 shrl $12, %eax
0x0c, 0xe0, //0x00000226 orb $-32, %al
0x41, 0x88, 0x40, 0xfe, //0x00000228 movb %al, $-2(%r8)
0x44, 0x89, 0xf8, //0x0000022c movl %r15d, %eax
0xc1, 0xe8, 0x06, //0x0000022f shrl $6, %eax
0x24, 0x3f, //0x00000232 andb $63, %al
0x0c, 0x80, //0x00000234 orb $-128, %al
0x41, 0x88, 0x40, 0xff, //0x00000236 movb %al, $-1(%r8)
0x41, 0x80, 0xe7, 0x3f, //0x0000023a andb $63, %r15b
0x41, 0x80, 0xcf, 0x80, //0x0000023e orb $-128, %r15b
0x45, 0x88, 0x38, //0x00000242 movb %r15b, (%r8)
0x49, 0x83, 0xc0, 0x01, //0x00000245 addq $1, %r8
0x49, 0x89, 0xfb, //0x00000249 movq %rdi, %r11
0x4d, 0x85, 0xd2, //0x0000024c testq %r10, %r10
0x0f, 0x85, 0xab, 0x00, 0x00, 0x00, //0x0000024f jne LBB0_3
0xe9, 0xb3, 0x03, 0x00, 0x00, //0x00000255 jmp LBB0_106
//0x0000025a LBB0_65
0xc1, 0xe8, 0x06, //0x0000025a shrl $6, %eax
0x0c, 0xc0, //0x0000025d orb $-64, %al
0x41, 0x88, 0x40, 0xfe, //0x0000025f movb %al, $-2(%r8)
0x41, 0x80, 0xe7, 0x3f, //0x00000263 andb $63, %r15b
0x41, 0x80, 0xcf, 0x80, //0x00000267 orb $-128, %r15b
0x45, 0x88, 0x78, 0xff, //0x0000026b movb %r15b, $-1(%r8)
0x49, 0x89, 0xfb, //0x0000026f movq %rdi, %r11
0x4d, 0x85, 0xd2, //0x00000272 testq %r10, %r10
0x0f, 0x85, 0x85, 0x00, 0x00, 0x00, //0x00000275 jne LBB0_3
0xe9, 0x8d, 0x03, 0x00, 0x00, //0x0000027b jmp LBB0_106
//0x00000280 LBB0_103
0x41, 0xc1, 0xe7, 0x0a, //0x00000280 shll $10, %r15d
0x89, 0xd8, //0x00000284 movl %ebx, %eax
0x44, 0x01, 0xf8, //0x00000286 addl %r15d, %eax
0x42, 0x8d, 0x0c, 0x3b, //0x00000289 leal (%rbx,%r15), %ecx
0x81, 0xc1, 0x00, 0x24, 0xa0, 0xfc, //0x0000028d addl $-56613888, %ecx
0x89, 0xca, //0x00000293 movl %ecx, %edx
0xc1, 0xea, 0x12, //0x00000295 shrl $18, %edx
0x80, 0xca, 0xf0, //0x00000298 orb $-16, %dl
0x41, 0x88, 0x50, 0xfe, //0x0000029b movb %dl, $-2(%r8)
0x89, 0xca, //0x0000029f movl %ecx, %edx
0xc1, 0xea, 0x0c, //0x000002a1 shrl $12, %edx
0x80, 0xe2, 0x3f, //0x000002a4 andb $63, %dl
0x80, 0xca, 0x80, //0x000002a7 orb $-128, %dl
0x41, 0x88, 0x50, 0xff, //0x000002aa movb %dl, $-1(%r8)
0x4c, 0x89, 0xda, //0x000002ae movq %r11, %rdx
0xc1, 0xe9, 0x06, //0x000002b1 shrl $6, %ecx
0x80, 0xe1, 0x3f, //0x000002b4 andb $63, %cl
0x80, 0xc9, 0x80, //0x000002b7 orb $-128, %cl
0x41, 0x88, 0x08, //0x000002ba movb %cl, (%r8)
0x24, 0x3f, //0x000002bd andb $63, %al
0x0c, 0x80, //0x000002bf orb $-128, %al
0x41, 0x88, 0x40, 0x01, //0x000002c1 movb %al, $1(%r8)
0x49, 0x83, 0xc0, 0x02, //0x000002c5 addq $2, %r8
0x49, 0x89, 0xfb, //0x000002c9 movq %rdi, %r11
0x4d, 0x85, 0xd2, //0x000002cc testq %r10, %r10
0x0f, 0x85, 0x2b, 0x00, 0x00, 0x00, //0x000002cf jne LBB0_3
0xe9, 0x33, 0x03, 0x00, 0x00, //0x000002d5 jmp LBB0_106
//0x000002da LBB0_61
0x49, 0x83, 0xc0, 0xfe, //0x000002da addq $-2, %r8
0x4d, 0x89, 0xc4, //0x000002de movq %r8, %r12
0xe9, 0x10, 0x03, 0x00, 0x00, //0x000002e1 jmp LBB0_62
//0x000002e6 LBB0_80
0xf6, 0x45, 0xb8, 0x02, //0x000002e6 testb $2, $-72(%rbp)
0x0f, 0x85, 0x0c, 0xff, 0xff, 0xff, //0x000002ea jne LBB0_81
0xe9, 0xc9, 0x05, 0x00, 0x00, //0x000002f0 jmp LBB0_82
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x000002f5 .p2align 4, 0x90
//0x00000300 LBB0_3
0x41, 0x80, 0x39, 0x5c, //0x00000300 cmpb $92, (%r9)
0x0f, 0x85, 0x16, 0x00, 0x00, 0x00, //0x00000304 jne LBB0_5
0x45, 0x31, 0xed, //0x0000030a xorl %r13d, %r13d
0xe9, 0x5e, 0x01, 0x00, 0x00, //0x0000030d jmp LBB0_23
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000312 .p2align 4, 0x90
//0x00000320 LBB0_5
0x4d, 0x89, 0xd7, //0x00000320 movq %r10, %r15
0x4c, 0x89, 0xc0, //0x00000323 movq %r8, %rax
0x4d, 0x89, 0xcd, //0x00000326 movq %r9, %r13
0x49, 0x83, 0xfa, 0x20, //0x00000329 cmpq $32, %r10
0x0f, 0x8c, 0x45, 0x00, 0x00, 0x00, //0x0000032d jl LBB0_11
0x31, 0xc0, //0x00000333 xorl %eax, %eax
0x4c, 0x89, 0xd1, //0x00000335 movq %r10, %rcx
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000338 .p2align 4, 0x90
//0x00000340 LBB0_7
0xc4, 0xc1, 0x7e, 0x6f, 0x04, 0x01, //0x00000340 vmovdqu (%r9,%rax), %ymm0
0xc4, 0xc1, 0x7e, 0x7f, 0x04, 0x00, //0x00000346 vmovdqu %ymm0, (%r8,%rax)
0xc5, 0xfd, 0x74, 0xc1, //0x0000034c vpcmpeqb %ymm1, %ymm0, %ymm0
0xc5, 0xfd, 0xd7, 0xd8, //0x00000350 vpmovmskb %ymm0, %ebx
0x85, 0xdb, //0x00000354 testl %ebx, %ebx
0x0f, 0x85, 0xdd, 0x00, 0x00, 0x00, //0x00000356 jne LBB0_8
0x4c, 0x8d, 0x79, 0xe0, //0x0000035c leaq $-32(%rcx), %r15
0x48, 0x83, 0xc0, 0x20, //0x00000360 addq $32, %rax
0x48, 0x83, 0xf9, 0x3f, //0x00000364 cmpq $63, %rcx
0x4c, 0x89, 0xf9, //0x00000368 movq %r15, %rcx
0x0f, 0x8f, 0xcf, 0xff, 0xff, 0xff, //0x0000036b jg LBB0_7
0x4d, 0x8d, 0x2c, 0x01, //0x00000371 leaq (%r9,%rax), %r13
0x4c, 0x01, 0xc0, //0x00000375 addq %r8, %rax
//0x00000378 LBB0_11
0xc5, 0xf8, 0x77, //0x00000378 vzeroupper
0x49, 0x83, 0xff, 0x10, //0x0000037b cmpq $16, %r15
0x0f, 0x8c, 0x57, 0x00, 0x00, 0x00, //0x0000037f jl LBB0_12
0x4d, 0x89, 0xcc, //0x00000385 movq %r9, %r12
0x4d, 0x29, 0xec, //0x00000388 subq %r13, %r12
0xc5, 0xfe, 0x6f, 0x0d, 0x6d, 0xfc, 0xff, 0xff, //0x0000038b vmovdqu $-915(%rip), %ymm1 /* LCPI0_0+0(%rip) */
0xc5, 0xfa, 0x6f, 0x15, 0x85, 0xfc, 0xff, 0xff, //0x00000393 vmovdqu $-891(%rip), %xmm2 /* LCPI0_1+0(%rip) */
0x90, 0x90, 0x90, 0x90, 0x90, //0x0000039b .p2align 4, 0x90
//0x000003a0 LBB0_18
0xc4, 0xc1, 0x7a, 0x6f, 0x45, 0x00, //0x000003a0 vmovdqu (%r13), %xmm0
0xc5, 0xfa, 0x7f, 0x00, //0x000003a6 vmovdqu %xmm0, (%rax)
0xc5, 0xf9, 0x74, 0xc2, //0x000003aa vpcmpeqb %xmm2, %xmm0, %xmm0
0xc5, 0xf9, 0xd7, 0xc8, //0x000003ae vpmovmskb %xmm0, %ecx
0x85, 0xc9, //0x000003b2 testl %ecx, %ecx
0x0f, 0x85, 0x95, 0x00, 0x00, 0x00, //0x000003b4 jne LBB0_19
0x49, 0x83, 0xc5, 0x10, //0x000003ba addq $16, %r13
0x48, 0x83, 0xc0, 0x10, //0x000003be addq $16, %rax
0x4d, 0x8d, 0x77, 0xf0, //0x000003c2 leaq $-16(%r15), %r14
0x49, 0x83, 0xc4, 0xf0, //0x000003c6 addq $-16, %r12
0x49, 0x83, 0xff, 0x1f, //0x000003ca cmpq $31, %r15
0x4d, 0x89, 0xf7, //0x000003ce movq %r14, %r15
0x0f, 0x8f, 0xc9, 0xff, 0xff, 0xff, //0x000003d1 jg LBB0_18
0xe9, 0x13, 0x00, 0x00, 0x00, //0x000003d7 jmp LBB0_13
//0x000003dc LBB0_12
0x4d, 0x89, 0xfe, //0x000003dc movq %r15, %r14
0xc5, 0xfe, 0x6f, 0x0d, 0x19, 0xfc, 0xff, 0xff, //0x000003df vmovdqu $-999(%rip), %ymm1 /* LCPI0_0+0(%rip) */
0xc5, 0xfa, 0x6f, 0x15, 0x31, 0xfc, 0xff, 0xff, //0x000003e7 vmovdqu $-975(%rip), %xmm2 /* LCPI0_1+0(%rip) */
//0x000003ef LBB0_13
0x4d, 0x85, 0xf6, //0x000003ef testq %r14, %r14
0x0f, 0x84, 0x23, 0x02, 0x00, 0x00, //0x000003f2 je LBB0_107
0x31, 0xc9, //0x000003f8 xorl %ecx, %ecx
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x000003fa .p2align 4, 0x90
//0x00000400 LBB0_15
0x41, 0x0f, 0xb6, 0x5c, 0x0d, 0x00, //0x00000400 movzbl (%r13,%rcx), %ebx
0x80, 0xfb, 0x5c, //0x00000406 cmpb $92, %bl
0x0f, 0x84, 0x15, 0x00, 0x00, 0x00, //0x00000409 je LBB0_21
0x88, 0x1c, 0x08, //0x0000040f movb %bl, (%rax,%rcx)
0x48, 0x83, 0xc1, 0x01, //0x00000412 addq $1, %rcx
0x49, 0x39, 0xce, //0x00000416 cmpq %rcx, %r14
0x0f, 0x85, 0xe1, 0xff, 0xff, 0xff, //0x00000419 jne LBB0_15
0xe9, 0xf7, 0x01, 0x00, 0x00, //0x0000041f jmp LBB0_107
//0x00000424 LBB0_21
0x4d, 0x29, 0xcd, //0x00000424 subq %r9, %r13
0x49, 0x01, 0xcd, //0x00000427 addq %rcx, %r13
0x49, 0x83, 0xfd, 0xff, //0x0000042a cmpq $-1, %r13
0x0f, 0x85, 0x3c, 0x00, 0x00, 0x00, //0x0000042e jne LBB0_23
0xe9, 0xe2, 0x01, 0x00, 0x00, //0x00000434 jmp LBB0_107
//0x00000439 LBB0_8
0x44, 0x0f, 0xbc, 0xeb, //0x00000439 bsfl %ebx, %r13d
0x49, 0x01, 0xc5, //0x0000043d addq %rax, %r13
0x49, 0x83, 0xfd, 0xff, //0x00000440 cmpq $-1, %r13
0x0f, 0x85, 0x26, 0x00, 0x00, 0x00, //0x00000444 jne LBB0_23
0xe9, 0xcc, 0x01, 0x00, 0x00, //0x0000044a jmp LBB0_107
//0x0000044f LBB0_19
0x66, 0x0f, 0xbc, 0xc1, //0x0000044f bsfw %cx, %ax
0x44, 0x0f, 0xb7, 0xe8, //0x00000453 movzwl %ax, %r13d
0x4d, 0x29, 0xe5, //0x00000457 subq %r12, %r13
0x49, 0x83, 0xfd, 0xff, //0x0000045a cmpq $-1, %r13
0x0f, 0x84, 0xb7, 0x01, 0x00, 0x00, //0x0000045e je LBB0_107
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000464 .p2align 4, 0x90
//0x00000470 LBB0_23
0x49, 0x8d, 0x45, 0x02, //0x00000470 leaq $2(%r13), %rax
0x49, 0x29, 0xc2, //0x00000474 subq %rax, %r10
0x0f, 0x88, 0x8c, 0x04, 0x00, 0x00, //0x00000477 js LBB0_24
0x4d, 0x01, 0xe9, //0x0000047d addq %r13, %r9
0x49, 0x83, 0xc1, 0x02, //0x00000480 addq $2, %r9
0x48, 0x85, 0xf6, //0x00000484 testq %rsi, %rsi
0x0f, 0x85, 0x15, 0x01, 0x00, 0x00, //0x00000487 jne LBB0_26
//0x0000048d LBB0_37
0x4f, 0x8d, 0x24, 0x28, //0x0000048d leaq (%r8,%r13), %r12
0x41, 0x0f, 0xb6, 0x41, 0xff, //0x00000491 movzbl $-1(%r9), %eax
0x42, 0x8a, 0x0c, 0x18, //0x00000496 movb (%rax,%r11), %cl
0x80, 0xf9, 0xff, //0x0000049a cmpb $-1, %cl
0x0f, 0x84, 0x2d, 0x00, 0x00, 0x00, //0x0000049d je LBB0_41
0x84, 0xc9, //0x000004a3 testb %cl, %cl
0x0f, 0x84, 0xa8, 0x02, 0x00, 0x00, //0x000004a5 je LBB0_39
0x41, 0x88, 0x0c, 0x24, //0x000004ab movb %cl, (%r12)
0x49, 0x83, 0xc4, 0x01, //0x000004af addq $1, %r12
0x4d, 0x89, 0xe0, //0x000004b3 movq %r12, %r8
0x4d, 0x85, 0xd2, //0x000004b6 testq %r10, %r10
0x0f, 0x85, 0x41, 0xfe, 0xff, 0xff, //0x000004b9 jne LBB0_3
0xe9, 0x49, 0x01, 0x00, 0x00, //0x000004bf jmp LBB0_106
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x000004c4 .p2align 4, 0x90
//0x000004d0 LBB0_41
0x49, 0x83, 0xfa, 0x03, //0x000004d0 cmpq $3, %r10
0x0f, 0x8e, 0x2f, 0x04, 0x00, 0x00, //0x000004d4 jle LBB0_24
0x45, 0x8b, 0x31, //0x000004da movl (%r9), %r14d
0x44, 0x89, 0xf1, //0x000004dd movl %r14d, %ecx
0xf7, 0xd1, //0x000004e0 notl %ecx
0x41, 0x8d, 0x86, 0xd0, 0xcf, 0xcf, 0xcf, //0x000004e2 leal $-808464432(%r14), %eax
0x81, 0xe1, 0x80, 0x80, 0x80, 0x80, //0x000004e9 andl $-2139062144, %ecx
0x85, 0xc1, //0x000004ef testl %eax, %ecx
0x0f, 0x85, 0x3f, 0x01, 0x00, 0x00, //0x000004f1 jne LBB0_46
0x41, 0x8d, 0x86, 0x19, 0x19, 0x19, 0x19, //0x000004f7 leal $421075225(%r14), %eax
0x44, 0x09, 0xf0, //0x000004fe orl %r14d, %eax
0xa9, 0x80, 0x80, 0x80, 0x80, //0x00000501 testl $-2139062144, %eax
0x0f, 0x85, 0x2a, 0x01, 0x00, 0x00, //0x00000506 jne LBB0_46
0x4c, 0x89, 0xdf, //0x0000050c movq %r11, %rdi
0x44, 0x89, 0xf3, //0x0000050f movl %r14d, %ebx
0x81, 0xe3, 0x7f, 0x7f, 0x7f, 0x7f, //0x00000512 andl $2139062143, %ebx
0xb8, 0xc0, 0xc0, 0xc0, 0xc0, //0x00000518 movl $-1061109568, %eax
0x29, 0xd8, //0x0000051d subl %ebx, %eax
0x49, 0x89, 0xd3, //0x0000051f movq %rdx, %r11
0x8d, 0x93, 0x46, 0x46, 0x46, 0x46, //0x00000522 leal $1179010630(%rbx), %edx
0x21, 0xc8, //0x00000528 andl %ecx, %eax
0x85, 0xd0, //0x0000052a testl %edx, %eax
0x0f, 0x85, 0x04, 0x01, 0x00, 0x00, //0x0000052c jne LBB0_46
0xb8, 0xe0, 0xe0, 0xe0, 0xe0, //0x00000532 movl $-522133280, %eax
0x29, 0xd8, //0x00000537 subl %ebx, %eax
0x81, 0xc3, 0x39, 0x39, 0x39, 0x39, //0x00000539 addl $960051513, %ebx
0x21, 0xc1, //0x0000053f andl %eax, %ecx
0x85, 0xd9, //0x00000541 testl %ebx, %ecx
0x0f, 0x85, 0xed, 0x00, 0x00, 0x00, //0x00000543 jne LBB0_46
0x4c, 0x89, 0xda, //0x00000549 movq %r11, %rdx
0x41, 0x0f, 0xce, //0x0000054c bswapl %r14d
0x44, 0x89, 0xf0, //0x0000054f movl %r14d, %eax
0xc1, 0xe8, 0x04, //0x00000552 shrl $4, %eax
0xf7, 0xd0, //0x00000555 notl %eax
0x25, 0x01, 0x01, 0x01, 0x01, //0x00000557 andl $16843009, %eax
0x8d, 0x04, 0xc0, //0x0000055c leal (%rax,%rax,8), %eax
0x41, 0x81, 0xe6, 0x0f, 0x0f, 0x0f, 0x0f, //0x0000055f andl $252645135, %r14d
0x41, 0x01, 0xc6, //0x00000566 addl %eax, %r14d
0x44, 0x89, 0xf0, //0x00000569 movl %r14d, %eax
0xc1, 0xe8, 0x04, //0x0000056c shrl $4, %eax
0x44, 0x09, 0xf0, //0x0000056f orl %r14d, %eax
0x44, 0x0f, 0xb6, 0xf8, //0x00000572 movzbl %al, %r15d
0xc1, 0xe8, 0x08, //0x00000576 shrl $8, %eax
0x25, 0x00, 0xff, 0x00, 0x00, //0x00000579 andl $65280, %eax
0x41, 0x09, 0xc7, //0x0000057e orl %eax, %r15d
0x49, 0x83, 0xc1, 0x04, //0x00000581 addq $4, %r9
0x49, 0x83, 0xc2, 0xfc, //0x00000585 addq $-4, %r10
0x41, 0x81, 0xff, 0x80, 0x00, 0x00, 0x00, //0x00000589 cmpl $128, %r15d
0x0f, 0x82, 0x5d, 0x00, 0x00, 0x00, //0x00000590 jb LBB0_60
0x4d, 0x01, 0xe8, //0x00000596 addq %r13, %r8
0x49, 0x83, 0xc0, 0x02, //0x00000599 addq $2, %r8
0xe9, 0xee, 0xfa, 0xff, 0xff, //0x0000059d jmp LBB0_64
//0x000005a2 LBB0_26
0x45, 0x85, 0xd2, //0x000005a2 testl %r10d, %r10d
0x0f, 0x84, 0x5e, 0x03, 0x00, 0x00, //0x000005a5 je LBB0_24
0x41, 0x80, 0x79, 0xff, 0x5c, //0x000005ab cmpb $92, $-1(%r9)
0x0f, 0x85, 0xde, 0x02, 0x00, 0x00, //0x000005b0 jne LBB0_28
0x41, 0x80, 0x39, 0x5c, //0x000005b6 cmpb $92, (%r9)
0x0f, 0x85, 0x26, 0x00, 0x00, 0x00, //0x000005ba jne LBB0_36
0x41, 0x83, 0xfa, 0x01, //0x000005c0 cmpl $1, %r10d
0x0f, 0x8e, 0x3f, 0x03, 0x00, 0x00, //0x000005c4 jle LBB0_24
0x41, 0x8a, 0x41, 0x01, //0x000005ca movb $1(%r9), %al
0x3c, 0x22, //0x000005ce cmpb $34, %al
0x0f, 0x84, 0x08, 0x00, 0x00, 0x00, //0x000005d0 je LBB0_35
0x3c, 0x5c, //0x000005d6 cmpb $92, %al
0x0f, 0x85, 0xd3, 0x02, 0x00, 0x00, //0x000005d8 jne LBB0_33
//0x000005de LBB0_35
0x49, 0x83, 0xc1, 0x01, //0x000005de addq $1, %r9
0x49, 0x83, 0xc2, 0xff, //0x000005e2 addq $-1, %r10
//0x000005e6 LBB0_36
0x49, 0x83, 0xc1, 0x01, //0x000005e6 addq $1, %r9
0x49, 0x83, 0xc2, 0xff, //0x000005ea addq $-1, %r10
0xe9, 0x9a, 0xfe, 0xff, 0xff, //0x000005ee jmp LBB0_37
//0x000005f3 LBB0_60
0x44, 0x89, 0xfb, //0x000005f3 movl %r15d, %ebx
//0x000005f6 LBB0_62
0x41, 0x88, 0x1c, 0x24, //0x000005f6 movb %bl, (%r12)
0x49, 0x83, 0xc4, 0x01, //0x000005fa addq $1, %r12
0x4d, 0x89, 0xe0, //0x000005fe movq %r12, %r8
0x49, 0x89, 0xfb, //0x00000601 movq %rdi, %r11
0x4d, 0x85, 0xd2, //0x00000604 testq %r10, %r10
0x0f, 0x85, 0xf3, 0xfc, 0xff, 0xff, //0x00000607 jne LBB0_3
//0x0000060d LBB0_106
0x45, 0x31, 0xd2, //0x0000060d xorl %r10d, %r10d
0xe9, 0x06, 0x00, 0x00, 0x00, //0x00000610 jmp LBB0_107
//0x00000615 LBB0_1
0x45, 0x31, 0xd2, //0x00000615 xorl %r10d, %r10d
0x49, 0x89, 0xd0, //0x00000618 movq %rdx, %r8
//0x0000061b LBB0_107
0x4d, 0x01, 0xd0, //0x0000061b addq %r10, %r8
0x49, 0x29, 0xd0, //0x0000061e subq %rdx, %r8
//0x00000621 LBB0_108
0x4c, 0x89, 0xc0, //0x00000621 movq %r8, %rax
0x48, 0x83, 0xc4, 0x20, //0x00000624 addq $32, %rsp
0x5b, //0x00000628 popq %rbx
0x41, 0x5c, //0x00000629 popq %r12
0x41, 0x5d, //0x0000062b popq %r13
0x41, 0x5e, //0x0000062d popq %r14
0x41, 0x5f, //0x0000062f popq %r15
0x5d, //0x00000631 popq %rbp
0xc5, 0xf8, 0x77, //0x00000632 vzeroupper
0xc3, //0x00000635 retq
//0x00000636 LBB0_46
0x4c, 0x89, 0xc8, //0x00000636 movq %r9, %rax
0x48, 0x2b, 0x45, 0xc8, //0x00000639 subq $-56(%rbp), %rax
0x48, 0x8b, 0x75, 0xd0, //0x0000063d movq $-48(%rbp), %rsi
0x48, 0x89, 0x06, //0x00000641 movq %rax, (%rsi)
0x41, 0x8a, 0x09, //0x00000644 movb (%r9), %cl
0x8d, 0x51, 0xd0, //0x00000647 leal $-48(%rcx), %edx
0x80, 0xfa, 0x0a, //0x0000064a cmpb $10, %dl
0x0f, 0x82, 0x2a, 0x00, 0x00, 0x00, //0x0000064d jb LBB0_49
0x49, 0xc7, 0xc0, 0xfe, 0xff, 0xff, 0xff, //0x00000653 movq $-2, %r8
0x80, 0xc1, 0xbf, //0x0000065a addb $-65, %cl
0x80, 0xf9, 0x25, //0x0000065d cmpb $37, %cl
0x0f, 0x87, 0xbb, 0xff, 0xff, 0xff, //0x00000660 ja LBB0_108
0x0f, 0xb6, 0xc9, //0x00000666 movzbl %cl, %ecx
0x48, 0xba, 0x3f, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x00, //0x00000669 movabsq $270582939711, %rdx
0x48, 0x0f, 0xa3, 0xca, //0x00000673 btq %rcx, %rdx
0x0f, 0x83, 0xa4, 0xff, 0xff, 0xff, //0x00000677 jae LBB0_108
//0x0000067d LBB0_49
0x48, 0x8d, 0x48, 0x01, //0x0000067d leaq $1(%rax), %rcx
0x48, 0x89, 0x0e, //0x00000681 movq %rcx, (%rsi)
0x41, 0x8a, 0x49, 0x01, //0x00000684 movb $1(%r9), %cl
0x8d, 0x51, 0xd0, //0x00000688 leal $-48(%rcx), %edx
0x80, 0xfa, 0x09, //0x0000068b cmpb $9, %dl
0x0f, 0x86, 0x2a, 0x00, 0x00, 0x00, //0x0000068e jbe LBB0_52
0x49, 0xc7, 0xc0, 0xfe, 0xff, 0xff, 0xff, //0x00000694 movq $-2, %r8
0x80, 0xc1, 0xbf, //0x0000069b addb $-65, %cl
0x80, 0xf9, 0x25, //0x0000069e cmpb $37, %cl
0x0f, 0x87, 0x7a, 0xff, 0xff, 0xff, //0x000006a1 ja LBB0_108
0x0f, 0xb6, 0xc9, //0x000006a7 movzbl %cl, %ecx
0x48, 0xba, 0x3f, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x00, //0x000006aa movabsq $270582939711, %rdx
0x48, 0x0f, 0xa3, 0xca, //0x000006b4 btq %rcx, %rdx
0x0f, 0x83, 0x63, 0xff, 0xff, 0xff, //0x000006b8 jae LBB0_108
//0x000006be LBB0_52
0x48, 0x8d, 0x48, 0x02, //0x000006be leaq $2(%rax), %rcx
0x48, 0x89, 0x0e, //0x000006c2 movq %rcx, (%rsi)
0x41, 0x8a, 0x49, 0x02, //0x000006c5 movb $2(%r9), %cl
0x8d, 0x51, 0xd0, //0x000006c9 leal $-48(%rcx), %edx
0x80, 0xfa, 0x0a, //0x000006cc cmpb $10, %dl
0x0f, 0x82, 0x2a, 0x00, 0x00, 0x00, //0x000006cf jb LBB0_55
0x49, 0xc7, 0xc0, 0xfe, 0xff, 0xff, 0xff, //0x000006d5 movq $-2, %r8
0x80, 0xc1, 0xbf, //0x000006dc addb $-65, %cl
0x80, 0xf9, 0x25, //0x000006df cmpb $37, %cl
0x0f, 0x87, 0x39, 0xff, 0xff, 0xff, //0x000006e2 ja LBB0_108
0x0f, 0xb6, 0xc9, //0x000006e8 movzbl %cl, %ecx
0x48, 0xba, 0x3f, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x00, //0x000006eb movabsq $270582939711, %rdx
0x48, 0x0f, 0xa3, 0xca, //0x000006f5 btq %rcx, %rdx
0x0f, 0x83, 0x22, 0xff, 0xff, 0xff, //0x000006f9 jae LBB0_108
//0x000006ff LBB0_55
0x48, 0x8d, 0x48, 0x03, //0x000006ff leaq $3(%rax), %rcx
0x48, 0x89, 0x0e, //0x00000703 movq %rcx, (%rsi)
0x41, 0x8a, 0x49, 0x03, //0x00000706 movb $3(%r9), %cl
0x8d, 0x51, 0xd0, //0x0000070a leal $-48(%rcx), %edx
0x80, 0xfa, 0x0a, //0x0000070d cmpb $10, %dl
0x0f, 0x82, 0x2a, 0x00, 0x00, 0x00, //0x00000710 jb LBB0_58
0x49, 0xc7, 0xc0, 0xfe, 0xff, 0xff, 0xff, //0x00000716 movq $-2, %r8
0x80, 0xc1, 0xbf, //0x0000071d addb $-65, %cl
0x80, 0xf9, 0x25, //0x00000720 cmpb $37, %cl
0x0f, 0x87, 0xf8, 0xfe, 0xff, 0xff, //0x00000723 ja LBB0_108
0x0f, 0xb6, 0xc9, //0x00000729 movzbl %cl, %ecx
0x48, 0xba, 0x3f, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x00, //0x0000072c movabsq $270582939711, %rdx
0x48, 0x0f, 0xa3, 0xca, //0x00000736 btq %rcx, %rdx
0x0f, 0x83, 0xe1, 0xfe, 0xff, 0xff, //0x0000073a jae LBB0_108
//0x00000740 LBB0_58
0x48, 0x83, 0xc0, 0x04, //0x00000740 addq $4, %rax
0x48, 0x89, 0x06, //0x00000744 movq %rax, (%rsi)
0x49, 0xc7, 0xc0, 0xfe, 0xff, 0xff, 0xff, //0x00000747 movq $-2, %r8
0xe9, 0xce, 0xfe, 0xff, 0xff, //0x0000074e jmp LBB0_108
//0x00000753 LBB0_39
0x48, 0x8b, 0x45, 0xc8, //0x00000753 movq $-56(%rbp), %rax
0x48, 0xf7, 0xd0, //0x00000757 notq %rax
0x49, 0x01, 0xc1, //0x0000075a addq %rax, %r9
0x48, 0x8b, 0x45, 0xd0, //0x0000075d movq $-48(%rbp), %rax
0x4c, 0x89, 0x08, //0x00000761 movq %r9, (%rax)
0x49, 0xc7, 0xc0, 0xfd, 0xff, 0xff, 0xff, //0x00000764 movq $-3, %r8
0xe9, 0xb1, 0xfe, 0xff, 0xff, //0x0000076b jmp LBB0_108
//0x00000770 LBB0_88
0x4c, 0x89, 0xc8, //0x00000770 movq %r9, %rax
0x48, 0x2b, 0x45, 0xc8, //0x00000773 subq $-56(%rbp), %rax
0x48, 0x83, 0xc0, 0x02, //0x00000777 addq $2, %rax
0x48, 0x8b, 0x75, 0xd0, //0x0000077b movq $-48(%rbp), %rsi
0x48, 0x89, 0x06, //0x0000077f movq %rax, (%rsi)
0x41, 0x8a, 0x49, 0x02, //0x00000782 movb $2(%r9), %cl
0x8d, 0x51, 0xd0, //0x00000786 leal $-48(%rcx), %edx
0x80, 0xfa, 0x0a, //0x00000789 cmpb $10, %dl
0x0f, 0x82, 0x2e, 0x00, 0x00, 0x00, //0x0000078c jb LBB0_91
0x49, 0xc7, 0xc0, 0xfe, 0xff, 0xff, 0xff, //0x00000792 movq $-2, %r8
0x80, 0xc1, 0xbf, //0x00000799 addb $-65, %cl
0x80, 0xf9, 0x25, //0x0000079c cmpb $37, %cl
0x0f, 0x87, 0x7c, 0xfe, 0xff, 0xff, //0x0000079f ja LBB0_108
0x0f, 0xb6, 0xc9, //0x000007a5 movzbl %cl, %ecx
0x48, 0xba, 0x3f, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x00, //0x000007a8 movabsq $270582939711, %rdx
0x48, 0x0f, 0xa3, 0xca, //0x000007b2 btq %rcx, %rdx
0x48, 0x8b, 0x75, 0xd0, //0x000007b6 movq $-48(%rbp), %rsi
0x0f, 0x83, 0x61, 0xfe, 0xff, 0xff, //0x000007ba jae LBB0_108
//0x000007c0 LBB0_91
0x48, 0x8d, 0x48, 0x01, //0x000007c0 leaq $1(%rax), %rcx
0x48, 0x89, 0x0e, //0x000007c4 movq %rcx, (%rsi)
0x41, 0x8a, 0x49, 0x03, //0x000007c7 movb $3(%r9), %cl
0x8d, 0x51, 0xd0, //0x000007cb leal $-48(%rcx), %edx
0x80, 0xfa, 0x09, //0x000007ce cmpb $9, %dl
0x0f, 0x86, 0x2e, 0x00, 0x00, 0x00, //0x000007d1 jbe LBB0_94
0x49, 0xc7, 0xc0, 0xfe, 0xff, 0xff, 0xff, //0x000007d7 movq $-2, %r8
0x80, 0xc1, 0xbf, //0x000007de addb $-65, %cl
0x80, 0xf9, 0x25, //0x000007e1 cmpb $37, %cl
0x0f, 0x87, 0x37, 0xfe, 0xff, 0xff, //0x000007e4 ja LBB0_108
0x0f, 0xb6, 0xc9, //0x000007ea movzbl %cl, %ecx
0x48, 0xba, 0x3f, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x00, //0x000007ed movabsq $270582939711, %rdx
0x48, 0x0f, 0xa3, 0xca, //0x000007f7 btq %rcx, %rdx
0x48, 0x8b, 0x75, 0xd0, //0x000007fb movq $-48(%rbp), %rsi
0x0f, 0x83, 0x1c, 0xfe, 0xff, 0xff, //0x000007ff jae LBB0_108
//0x00000805 LBB0_94
0x48, 0x8d, 0x48, 0x02, //0x00000805 leaq $2(%rax), %rcx
0x48, 0x89, 0x0e, //0x00000809 movq %rcx, (%rsi)
0x41, 0x8a, 0x49, 0x04, //0x0000080c movb $4(%r9), %cl
0x8d, 0x51, 0xd0, //0x00000810 leal $-48(%rcx), %edx
0x80, 0xfa, 0x0a, //0x00000813 cmpb $10, %dl
0x0f, 0x82, 0x2e, 0x00, 0x00, 0x00, //0x00000816 jb LBB0_97
0x49, 0xc7, 0xc0, 0xfe, 0xff, 0xff, 0xff, //0x0000081c movq $-2, %r8
0x80, 0xc1, 0xbf, //0x00000823 addb $-65, %cl
0x80, 0xf9, 0x25, //0x00000826 cmpb $37, %cl
0x0f, 0x87, 0xf2, 0xfd, 0xff, 0xff, //0x00000829 ja LBB0_108
0x0f, 0xb6, 0xc9, //0x0000082f movzbl %cl, %ecx
0x48, 0xba, 0x3f, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x00, //0x00000832 movabsq $270582939711, %rdx
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/vsigned_text_amd64.go | vendor/github.com/bytedance/sonic/internal/native/avx2/vsigned_text_amd64.go | // +build amd64
// Code generated by asm2asm, DO NOT EDIT.
package avx2
var _text_vsigned = []byte{
// .p2align 4, 0x90
// _vsigned
0x55, // pushq %rbp
0x48, 0x89, 0xe5, //0x00000001 movq %rsp, %rbp
0x53, //0x00000004 pushq %rbx
0x48, 0x8b, 0x06, //0x00000005 movq (%rsi), %rax
0x4c, 0x8b, 0x0f, //0x00000008 movq (%rdi), %r9
0x4c, 0x8b, 0x5f, 0x08, //0x0000000b movq $8(%rdi), %r11
0x48, 0xc7, 0x02, 0x09, 0x00, 0x00, 0x00, //0x0000000f movq $9, (%rdx)
0xc5, 0xf8, 0x57, 0xc0, //0x00000016 vxorps %xmm0, %xmm0, %xmm0
0xc5, 0xf8, 0x11, 0x42, 0x08, //0x0000001a vmovups %xmm0, $8(%rdx)
0x48, 0x8b, 0x0e, //0x0000001f movq (%rsi), %rcx
0x48, 0x89, 0x4a, 0x18, //0x00000022 movq %rcx, $24(%rdx)
0x4c, 0x39, 0xd8, //0x00000026 cmpq %r11, %rax
0x0f, 0x83, 0x45, 0x00, 0x00, 0x00, //0x00000029 jae LBB0_1
0x41, 0x8a, 0x0c, 0x01, //0x0000002f movb (%r9,%rax), %cl
0x41, 0xb8, 0x01, 0x00, 0x00, 0x00, //0x00000033 movl $1, %r8d
0x80, 0xf9, 0x2d, //0x00000039 cmpb $45, %cl
0x0f, 0x85, 0x18, 0x00, 0x00, 0x00, //0x0000003c jne LBB0_5
0x48, 0x83, 0xc0, 0x01, //0x00000042 addq $1, %rax
0x4c, 0x39, 0xd8, //0x00000046 cmpq %r11, %rax
0x0f, 0x83, 0x25, 0x00, 0x00, 0x00, //0x00000049 jae LBB0_1
0x41, 0x8a, 0x0c, 0x01, //0x0000004f movb (%r9,%rax), %cl
0x49, 0xc7, 0xc0, 0xff, 0xff, 0xff, 0xff, //0x00000053 movq $-1, %r8
//0x0000005a LBB0_5
0x8d, 0x79, 0xd0, //0x0000005a leal $-48(%rcx), %edi
0x40, 0x80, 0xff, 0x0a, //0x0000005d cmpb $10, %dil
0x0f, 0x82, 0x1a, 0x00, 0x00, 0x00, //0x00000061 jb LBB0_7
0x48, 0x89, 0x06, //0x00000067 movq %rax, (%rsi)
0x48, 0xc7, 0x02, 0xfe, 0xff, 0xff, 0xff, //0x0000006a movq $-2, (%rdx)
0x5b, //0x00000071 popq %rbx
0x5d, //0x00000072 popq %rbp
0xc3, //0x00000073 retq
//0x00000074 LBB0_1
0x4c, 0x89, 0x1e, //0x00000074 movq %r11, (%rsi)
0x48, 0xc7, 0x02, 0xff, 0xff, 0xff, 0xff, //0x00000077 movq $-1, (%rdx)
0x5b, //0x0000007e popq %rbx
0x5d, //0x0000007f popq %rbp
0xc3, //0x00000080 retq
//0x00000081 LBB0_7
0x80, 0xf9, 0x30, //0x00000081 cmpb $48, %cl
0x0f, 0x85, 0x35, 0x00, 0x00, 0x00, //0x00000084 jne LBB0_12
0x48, 0x8d, 0x78, 0x01, //0x0000008a leaq $1(%rax), %rdi
0x4c, 0x39, 0xd8, //0x0000008e cmpq %r11, %rax
0x0f, 0x83, 0x82, 0x00, 0x00, 0x00, //0x00000091 jae LBB0_11
0x41, 0x8a, 0x0c, 0x39, //0x00000097 movb (%r9,%rdi), %cl
0x80, 0xc1, 0xd2, //0x0000009b addb $-46, %cl
0x80, 0xf9, 0x37, //0x0000009e cmpb $55, %cl
0x0f, 0x87, 0x72, 0x00, 0x00, 0x00, //0x000000a1 ja LBB0_11
0x44, 0x0f, 0xb6, 0xd1, //0x000000a7 movzbl %cl, %r10d
0x48, 0xb9, 0x01, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, //0x000000ab movabsq $36028797027352577, %rcx
0x4c, 0x0f, 0xa3, 0xd1, //0x000000b5 btq %r10, %rcx
0x0f, 0x83, 0x5a, 0x00, 0x00, 0x00, //0x000000b9 jae LBB0_11
//0x000000bf LBB0_12
0x4c, 0x39, 0xd8, //0x000000bf cmpq %r11, %rax
0x4d, 0x89, 0xda, //0x000000c2 movq %r11, %r10
0x4c, 0x0f, 0x47, 0xd0, //0x000000c5 cmovaq %rax, %r10
0x31, 0xc9, //0x000000c9 xorl %ecx, %ecx
0x90, 0x90, 0x90, 0x90, 0x90, //0x000000cb .p2align 4, 0x90
//0x000000d0 LBB0_13
0x49, 0x39, 0xc2, //0x000000d0 cmpq %rax, %r10
0x0f, 0x84, 0x81, 0x00, 0x00, 0x00, //0x000000d3 je LBB0_23
0x49, 0x0f, 0xbe, 0x3c, 0x01, //0x000000d9 movsbq (%r9,%rax), %rdi
0x8d, 0x5f, 0xd0, //0x000000de leal $-48(%rdi), %ebx
0x80, 0xfb, 0x09, //0x000000e1 cmpb $9, %bl
0x0f, 0x87, 0x35, 0x00, 0x00, 0x00, //0x000000e4 ja LBB0_18
0x48, 0x6b, 0xc9, 0x0a, //0x000000ea imulq $10, %rcx, %rcx
0x0f, 0x80, 0x14, 0x00, 0x00, 0x00, //0x000000ee jo LBB0_17
0x48, 0x83, 0xc0, 0x01, //0x000000f4 addq $1, %rax
0x83, 0xc7, 0xd0, //0x000000f8 addl $-48, %edi
0x49, 0x0f, 0xaf, 0xf8, //0x000000fb imulq %r8, %rdi
0x48, 0x01, 0xf9, //0x000000ff addq %rdi, %rcx
0x0f, 0x81, 0xc8, 0xff, 0xff, 0xff, //0x00000102 jno LBB0_13
//0x00000108 LBB0_17
0x48, 0x83, 0xc0, 0xff, //0x00000108 addq $-1, %rax
0x48, 0x89, 0x06, //0x0000010c movq %rax, (%rsi)
0x48, 0xc7, 0x02, 0xfb, 0xff, 0xff, 0xff, //0x0000010f movq $-5, (%rdx)
0x5b, //0x00000116 popq %rbx
0x5d, //0x00000117 popq %rbp
0xc3, //0x00000118 retq
//0x00000119 LBB0_11
0x48, 0x89, 0x3e, //0x00000119 movq %rdi, (%rsi)
0x5b, //0x0000011c popq %rbx
0x5d, //0x0000011d popq %rbp
0xc3, //0x0000011e retq
//0x0000011f LBB0_18
0x4c, 0x39, 0xd8, //0x0000011f cmpq %r11, %rax
0x0f, 0x83, 0x2f, 0x00, 0x00, 0x00, //0x00000122 jae LBB0_22
0x41, 0x8a, 0x3c, 0x01, //0x00000128 movb (%r9,%rax), %dil
0x40, 0x80, 0xff, 0x2e, //0x0000012c cmpb $46, %dil
0x0f, 0x84, 0x14, 0x00, 0x00, 0x00, //0x00000130 je LBB0_25
0x40, 0x80, 0xff, 0x45, //0x00000136 cmpb $69, %dil
0x0f, 0x84, 0x0a, 0x00, 0x00, 0x00, //0x0000013a je LBB0_25
0x40, 0x80, 0xff, 0x65, //0x00000140 cmpb $101, %dil
0x0f, 0x85, 0x0d, 0x00, 0x00, 0x00, //0x00000144 jne LBB0_22
//0x0000014a LBB0_25
0x48, 0x89, 0x06, //0x0000014a movq %rax, (%rsi)
0x48, 0xc7, 0x02, 0xfa, 0xff, 0xff, 0xff, //0x0000014d movq $-6, (%rdx)
0x5b, //0x00000154 popq %rbx
0x5d, //0x00000155 popq %rbp
0xc3, //0x00000156 retq
//0x00000157 LBB0_22
0x49, 0x89, 0xc2, //0x00000157 movq %rax, %r10
//0x0000015a LBB0_23
0x4c, 0x89, 0x16, //0x0000015a movq %r10, (%rsi)
0x48, 0x89, 0x4a, 0x10, //0x0000015d movq %rcx, $16(%rdx)
0x5b, //0x00000161 popq %rbx
0x5d, //0x00000162 popq %rbp
0xc3, //0x00000163 retq
//0x00000164 .p2align 2, 0x00
//0x00000164 _MASK_USE_NUMBER
0x02, 0x00, 0x00, 0x00, //0x00000164 .long 2
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/validate_one_text_amd64.go | vendor/github.com/bytedance/sonic/internal/native/avx2/validate_one_text_amd64.go | // +build amd64
// Code generated by asm2asm, DO NOT EDIT.
package avx2
var _text_validate_one = []byte{
// .p2align 4, 0x00
// LCPI0_0
0x01, 0x00, 0x00, 0x00, // .long 1
0x00, 0x00, 0x00, 0x00, //0x00000004 .long 0
0x00, 0x00, 0x00, 0x00, //0x00000008 .long 0
0x00, 0x00, 0x00, 0x00, //0x0000000c .long 0
//0x00000010 LCPI0_11
0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, //0x00000010 QUAD $0x2c2c2c2c2c2c2c2c; QUAD $0x2c2c2c2c2c2c2c2c // .space 16, ',,,,,,,,,,,,,,,,'
//0x00000020 LCPI0_12
0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, //0x00000020 QUAD $0xdfdfdfdfdfdfdfdf; QUAD $0xdfdfdfdfdfdfdfdf // .space 16, '\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf'
//0x00000030 LCPI0_13
0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, //0x00000030 QUAD $0x5d5d5d5d5d5d5d5d; QUAD $0x5d5d5d5d5d5d5d5d // .space 16, ']]]]]]]]]]]]]]]]'
//0x00000040 LCPI0_20
0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, //0x00000040 QUAD $0x2f2f2f2f2f2f2f2f; QUAD $0x2f2f2f2f2f2f2f2f // .space 16, '////////////////'
//0x00000050 LCPI0_21
0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, //0x00000050 QUAD $0x3a3a3a3a3a3a3a3a; QUAD $0x3a3a3a3a3a3a3a3a // .space 16, '::::::::::::::::'
//0x00000060 LCPI0_22
0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, //0x00000060 QUAD $0x2b2b2b2b2b2b2b2b; QUAD $0x2b2b2b2b2b2b2b2b // .space 16, '++++++++++++++++'
//0x00000070 LCPI0_23
0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, //0x00000070 QUAD $0x2d2d2d2d2d2d2d2d; QUAD $0x2d2d2d2d2d2d2d2d // .space 16, '----------------'
//0x00000080 LCPI0_24
0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, //0x00000080 QUAD $0x2e2e2e2e2e2e2e2e; QUAD $0x2e2e2e2e2e2e2e2e // .space 16, '................'
//0x00000090 LCPI0_25
0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, //0x00000090 QUAD $0x4545454545454545; QUAD $0x4545454545454545 // .space 16, 'EEEEEEEEEEEEEEEE'
//0x000000a0 LCPI0_26
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, //0x000000a0 QUAD $0xffffffffffffffff; QUAD $0xffffffffffffffff // .space 16, '\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //0x000000b0 .p2align 5, 0x00
//0x000000c0 LCPI0_1
0x20, //0x000000c0 .byte 32
0x00, //0x000000c1 .byte 0
0x00, //0x000000c2 .byte 0
0x00, //0x000000c3 .byte 0
0x00, //0x000000c4 .byte 0
0x00, //0x000000c5 .byte 0
0x00, //0x000000c6 .byte 0
0x00, //0x000000c7 .byte 0
0x00, //0x000000c8 .byte 0
0x09, //0x000000c9 .byte 9
0x0a, //0x000000ca .byte 10
0x00, //0x000000cb .byte 0
0x00, //0x000000cc .byte 0
0x0d, //0x000000cd .byte 13
0x00, //0x000000ce .byte 0
0x00, //0x000000cf .byte 0
0x20, //0x000000d0 .byte 32
0x00, //0x000000d1 .byte 0
0x00, //0x000000d2 .byte 0
0x00, //0x000000d3 .byte 0
0x00, //0x000000d4 .byte 0
0x00, //0x000000d5 .byte 0
0x00, //0x000000d6 .byte 0
0x00, //0x000000d7 .byte 0
0x00, //0x000000d8 .byte 0
0x09, //0x000000d9 .byte 9
0x0a, //0x000000da .byte 10
0x00, //0x000000db .byte 0
0x00, //0x000000dc .byte 0
0x0d, //0x000000dd .byte 13
0x00, //0x000000de .byte 0
0x00, //0x000000df .byte 0
//0x000000e0 LCPI0_2
0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, //0x000000e0 QUAD $0x2222222222222222; QUAD $0x2222222222222222 // .space 16, '""""""""""""""""'
0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, //0x000000f0 QUAD $0x2222222222222222; QUAD $0x2222222222222222 // .space 16, '""""""""""""""""'
//0x00000100 LCPI0_3
0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, //0x00000100 QUAD $0x5c5c5c5c5c5c5c5c; QUAD $0x5c5c5c5c5c5c5c5c // .space 16, '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, //0x00000110 QUAD $0x5c5c5c5c5c5c5c5c; QUAD $0x5c5c5c5c5c5c5c5c // .space 16, '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
//0x00000120 LCPI0_4
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, //0x00000120 QUAD $0x2020202020202020; QUAD $0x2020202020202020 // .space 16, ' '
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, //0x00000130 QUAD $0x2020202020202020; QUAD $0x2020202020202020 // .space 16, ' '
//0x00000140 LCPI0_5
0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, //0x00000140 QUAD $0x7b7b7b7b7b7b7b7b; QUAD $0x7b7b7b7b7b7b7b7b // .space 16, '{{{{{{{{{{{{{{{{'
0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, //0x00000150 QUAD $0x7b7b7b7b7b7b7b7b; QUAD $0x7b7b7b7b7b7b7b7b // .space 16, '{{{{{{{{{{{{{{{{'
//0x00000160 LCPI0_6
0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, //0x00000160 QUAD $0x7d7d7d7d7d7d7d7d; QUAD $0x7d7d7d7d7d7d7d7d // .space 16, '}}}}}}}}}}}}}}}}'
0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, //0x00000170 QUAD $0x7d7d7d7d7d7d7d7d; QUAD $0x7d7d7d7d7d7d7d7d // .space 16, '}}}}}}}}}}}}}}}}'
//0x00000180 LCPI0_7
0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, //0x00000180 QUAD $0x5b5b5b5b5b5b5b5b; QUAD $0x5b5b5b5b5b5b5b5b // .space 16, '[[[[[[[[[[[[[[[['
0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, //0x00000190 QUAD $0x5b5b5b5b5b5b5b5b; QUAD $0x5b5b5b5b5b5b5b5b // .space 16, '[[[[[[[[[[[[[[[['
//0x000001a0 LCPI0_8
0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, //0x000001a0 QUAD $0x5d5d5d5d5d5d5d5d; QUAD $0x5d5d5d5d5d5d5d5d // .space 16, ']]]]]]]]]]]]]]]]'
0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, //0x000001b0 QUAD $0x5d5d5d5d5d5d5d5d; QUAD $0x5d5d5d5d5d5d5d5d // .space 16, ']]]]]]]]]]]]]]]]'
//0x000001c0 LCPI0_9
0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, //0x000001c0 QUAD $0x2c2c2c2c2c2c2c2c; QUAD $0x2c2c2c2c2c2c2c2c // .space 16, ',,,,,,,,,,,,,,,,'
0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, //0x000001d0 QUAD $0x2c2c2c2c2c2c2c2c; QUAD $0x2c2c2c2c2c2c2c2c // .space 16, ',,,,,,,,,,,,,,,,'
//0x000001e0 LCPI0_10
0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, //0x000001e0 QUAD $0xdfdfdfdfdfdfdfdf; QUAD $0xdfdfdfdfdfdfdfdf // .space 16, '\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf'
0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, //0x000001f0 QUAD $0xdfdfdfdfdfdfdfdf; QUAD $0xdfdfdfdfdfdfdfdf // .space 16, '\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf'
//0x00000200 LCPI0_14
0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, //0x00000200 QUAD $0x2f2f2f2f2f2f2f2f; QUAD $0x2f2f2f2f2f2f2f2f // .space 16, '////////////////'
0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, //0x00000210 QUAD $0x2f2f2f2f2f2f2f2f; QUAD $0x2f2f2f2f2f2f2f2f // .space 16, '////////////////'
//0x00000220 LCPI0_15
0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, //0x00000220 QUAD $0x3a3a3a3a3a3a3a3a; QUAD $0x3a3a3a3a3a3a3a3a // .space 16, '::::::::::::::::'
0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, 0x3a, //0x00000230 QUAD $0x3a3a3a3a3a3a3a3a; QUAD $0x3a3a3a3a3a3a3a3a // .space 16, '::::::::::::::::'
//0x00000240 LCPI0_16
0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, //0x00000240 QUAD $0x2b2b2b2b2b2b2b2b; QUAD $0x2b2b2b2b2b2b2b2b // .space 16, '++++++++++++++++'
0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, 0x2b, //0x00000250 QUAD $0x2b2b2b2b2b2b2b2b; QUAD $0x2b2b2b2b2b2b2b2b // .space 16, '++++++++++++++++'
//0x00000260 LCPI0_17
0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, //0x00000260 QUAD $0x2d2d2d2d2d2d2d2d; QUAD $0x2d2d2d2d2d2d2d2d // .space 16, '----------------'
0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, //0x00000270 QUAD $0x2d2d2d2d2d2d2d2d; QUAD $0x2d2d2d2d2d2d2d2d // .space 16, '----------------'
//0x00000280 LCPI0_18
0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, //0x00000280 QUAD $0x2e2e2e2e2e2e2e2e; QUAD $0x2e2e2e2e2e2e2e2e // .space 16, '................'
0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, 0x2e, //0x00000290 QUAD $0x2e2e2e2e2e2e2e2e; QUAD $0x2e2e2e2e2e2e2e2e // .space 16, '................'
//0x000002a0 LCPI0_19
0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, //0x000002a0 QUAD $0x4545454545454545; QUAD $0x4545454545454545 // .space 16, 'EEEEEEEEEEEEEEEE'
0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, //0x000002b0 QUAD $0x4545454545454545; QUAD $0x4545454545454545 // .space 16, 'EEEEEEEEEEEEEEEE'
//0x000002c0 .p2align 4, 0x90
//0x000002c0 _validate_one
0x55, //0x000002c0 pushq %rbp
0x48, 0x89, 0xe5, //0x000002c1 movq %rsp, %rbp
0x41, 0x57, //0x000002c4 pushq %r15
0x41, 0x56, //0x000002c6 pushq %r14
0x41, 0x55, //0x000002c8 pushq %r13
0x41, 0x54, //0x000002ca pushq %r12
0x53, //0x000002cc pushq %rbx
0x48, 0x81, 0xec, 0xa0, 0x00, 0x00, 0x00, //0x000002cd subq $160, %rsp
0x49, 0x89, 0xcb, //0x000002d4 movq %rcx, %r11
0x49, 0x89, 0xd7, //0x000002d7 movq %rdx, %r15
0x49, 0x89, 0xf5, //0x000002da movq %rsi, %r13
0xc5, 0xfa, 0x6f, 0x05, 0x1b, 0xfd, 0xff, 0xff, //0x000002dd vmovdqu $-741(%rip), %xmm0 /* LCPI0_0+0(%rip) */
0xc5, 0xfa, 0x7f, 0x02, //0x000002e5 vmovdqu %xmm0, (%rdx)
0x49, 0xc7, 0xc4, 0xff, 0xff, 0xff, 0xff, //0x000002e9 movq $-1, %r12
0xc5, 0xfe, 0x6f, 0x2d, 0xc8, 0xfd, 0xff, 0xff, //0x000002f0 vmovdqu $-568(%rip), %ymm5 /* LCPI0_1+0(%rip) */
0xc5, 0xfe, 0x6f, 0x35, 0xe0, 0xfd, 0xff, 0xff, //0x000002f8 vmovdqu $-544(%rip), %ymm6 /* LCPI0_2+0(%rip) */
0xc5, 0xfe, 0x6f, 0x3d, 0xf8, 0xfd, 0xff, 0xff, //0x00000300 vmovdqu $-520(%rip), %ymm7 /* LCPI0_3+0(%rip) */
0xc5, 0x7e, 0x6f, 0x05, 0x10, 0xfe, 0xff, 0xff, //0x00000308 vmovdqu $-496(%rip), %ymm8 /* LCPI0_4+0(%rip) */
0xc4, 0x41, 0x35, 0x76, 0xc9, //0x00000310 vpcmpeqd %ymm9, %ymm9, %ymm9
0xc5, 0x7e, 0x6f, 0x15, 0xe3, 0xfe, 0xff, 0xff, //0x00000315 vmovdqu $-285(%rip), %ymm10 /* LCPI0_14+0(%rip) */
0xc5, 0x7e, 0x6f, 0x2d, 0xfb, 0xfe, 0xff, 0xff, //0x0000031d vmovdqu $-261(%rip), %ymm13 /* LCPI0_15+0(%rip) */
0xc5, 0x7e, 0x6f, 0x3d, 0x13, 0xff, 0xff, 0xff, //0x00000325 vmovdqu $-237(%rip), %ymm15 /* LCPI0_16+0(%rip) */
0xc5, 0x7e, 0x6f, 0x35, 0xab, 0xfe, 0xff, 0xff, //0x0000032d vmovdqu $-341(%rip), %ymm14 /* LCPI0_10+0(%rip) */
0xc5, 0xfe, 0x6f, 0x25, 0x63, 0xff, 0xff, 0xff, //0x00000335 vmovdqu $-157(%rip), %ymm4 /* LCPI0_19+0(%rip) */
0xc5, 0xfe, 0x6f, 0x1d, 0x7b, 0xfe, 0xff, 0xff, //0x0000033d vmovdqu $-389(%rip), %ymm3 /* LCPI0_9+0(%rip) */
0xc5, 0x7e, 0x6f, 0x1d, 0xf3, 0xfd, 0xff, 0xff, //0x00000345 vmovdqu $-525(%rip), %ymm11 /* LCPI0_5+0(%rip) */
0xc5, 0x7e, 0x6f, 0x25, 0x0b, 0xfe, 0xff, 0xff, //0x0000034d vmovdqu $-501(%rip), %ymm12 /* LCPI0_6+0(%rip) */
0x48, 0x89, 0x4c, 0x24, 0x18, //0x00000355 movq %rcx, $24(%rsp)
0x48, 0x89, 0x7c, 0x24, 0x10, //0x0000035a movq %rdi, $16(%rsp)
0x48, 0x89, 0x54, 0x24, 0x08, //0x0000035f movq %rdx, $8(%rsp)
0xe9, 0x77, 0x00, 0x00, 0x00, //0x00000364 jmp LBB0_5
//0x00000369 LBB0_153
0x41, 0x0f, 0xbc, 0xc3, //0x00000369 bsfl %r11d, %eax
0x4c, 0x01, 0xc0, //0x0000036d addq %r8, %rax
0x4c, 0x8d, 0x0c, 0x06, //0x00000370 leaq (%rsi,%rax), %r9
0x49, 0x83, 0xc1, 0x01, //0x00000374 addq $1, %r9
0x4c, 0x8b, 0x5c, 0x24, 0x18, //0x00000378 movq $24(%rsp), %r11
0x48, 0x8b, 0x7c, 0x24, 0x10, //0x0000037d movq $16(%rsp), %rdi
0x4c, 0x8b, 0x7c, 0x24, 0x08, //0x00000382 movq $8(%rsp), %r15
0x4d, 0x89, 0x4d, 0x00, //0x00000387 movq %r9, (%r13)
0x4d, 0x85, 0xc0, //0x0000038b testq %r8, %r8
0x0f, 0x8e, 0x98, 0x37, 0x00, 0x00, //0x0000038e jle LBB0_679
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000394 .p2align 4, 0x90
//0x000003a0 LBB0_3
0x4d, 0x8b, 0x07, //0x000003a0 movq (%r15), %r8
0x4c, 0x89, 0x24, 0x24, //0x000003a3 movq %r12, (%rsp)
0x4d, 0x85, 0xc0, //0x000003a7 testq %r8, %r8
0x0f, 0x85, 0x30, 0x00, 0x00, 0x00, //0x000003aa jne LBB0_5
0xe9, 0xe0, 0x37, 0x00, 0x00, //0x000003b0 jmp LBB0_711
//0x000003b5 LBB0_1
0x48, 0x89, 0xd1, //0x000003b5 movq %rdx, %rcx
//0x000003b8 LBB0_2
0x4c, 0x01, 0xe9, //0x000003b8 addq %r13, %rcx
0x4c, 0x8b, 0x6c, 0x24, 0x30, //0x000003bb movq $48(%rsp), %r13
0x49, 0x89, 0x4d, 0x00, //0x000003c0 movq %rcx, (%r13)
0x48, 0x85, 0xdb, //0x000003c4 testq %rbx, %rbx
0x0f, 0x8f, 0xd3, 0xff, 0xff, 0xff, //0x000003c7 jg LBB0_3
0xe9, 0xc3, 0x37, 0x00, 0x00, //0x000003cd jmp LBB0_711
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x000003d2 .p2align 4, 0x90
//0x000003e0 LBB0_5
0x4d, 0x89, 0xe1, //0x000003e0 movq %r12, %r9
0x4c, 0x8b, 0x37, //0x000003e3 movq (%rdi), %r14
0x48, 0x8b, 0x5f, 0x08, //0x000003e6 movq $8(%rdi), %rbx
0x49, 0x8b, 0x75, 0x00, //0x000003ea movq (%r13), %rsi
0x48, 0x39, 0xde, //0x000003ee cmpq %rbx, %rsi
0x0f, 0x83, 0x29, 0x00, 0x00, 0x00, //0x000003f1 jae LBB0_10
0x41, 0x8a, 0x04, 0x36, //0x000003f7 movb (%r14,%rsi), %al
0x3c, 0x0d, //0x000003fb cmpb $13, %al
0x0f, 0x84, 0x1d, 0x00, 0x00, 0x00, //0x000003fd je LBB0_10
0x3c, 0x20, //0x00000403 cmpb $32, %al
0x0f, 0x84, 0x15, 0x00, 0x00, 0x00, //0x00000405 je LBB0_10
0x04, 0xf7, //0x0000040b addb $-9, %al
0x3c, 0x01, //0x0000040d cmpb $1, %al
0x0f, 0x86, 0x0b, 0x00, 0x00, 0x00, //0x0000040f jbe LBB0_10
0x49, 0x89, 0xf4, //0x00000415 movq %rsi, %r12
0xe9, 0x75, 0x01, 0x00, 0x00, //0x00000418 jmp LBB0_35
0x90, 0x90, 0x90, //0x0000041d .p2align 4, 0x90
//0x00000420 LBB0_10
0x4c, 0x8d, 0x66, 0x01, //0x00000420 leaq $1(%rsi), %r12
0x49, 0x39, 0xdc, //0x00000424 cmpq %rbx, %r12
0x0f, 0x83, 0x23, 0x00, 0x00, 0x00, //0x00000427 jae LBB0_14
0x43, 0x8a, 0x14, 0x26, //0x0000042d movb (%r14,%r12), %dl
0x80, 0xfa, 0x0d, //0x00000431 cmpb $13, %dl
0x0f, 0x84, 0x16, 0x00, 0x00, 0x00, //0x00000434 je LBB0_14
0x80, 0xfa, 0x20, //0x0000043a cmpb $32, %dl
0x0f, 0x84, 0x0d, 0x00, 0x00, 0x00, //0x0000043d je LBB0_14
0x80, 0xc2, 0xf7, //0x00000443 addb $-9, %dl
0x80, 0xfa, 0x01, //0x00000446 cmpb $1, %dl
0x0f, 0x87, 0x43, 0x01, 0x00, 0x00, //0x00000449 ja LBB0_35
0x90, //0x0000044f .p2align 4, 0x90
//0x00000450 LBB0_14
0x4c, 0x8d, 0x66, 0x02, //0x00000450 leaq $2(%rsi), %r12
0x49, 0x39, 0xdc, //0x00000454 cmpq %rbx, %r12
0x0f, 0x83, 0x23, 0x00, 0x00, 0x00, //0x00000457 jae LBB0_18
0x43, 0x8a, 0x14, 0x26, //0x0000045d movb (%r14,%r12), %dl
0x80, 0xfa, 0x0d, //0x00000461 cmpb $13, %dl
0x0f, 0x84, 0x16, 0x00, 0x00, 0x00, //0x00000464 je LBB0_18
0x80, 0xfa, 0x20, //0x0000046a cmpb $32, %dl
0x0f, 0x84, 0x0d, 0x00, 0x00, 0x00, //0x0000046d je LBB0_18
0x80, 0xc2, 0xf7, //0x00000473 addb $-9, %dl
0x80, 0xfa, 0x01, //0x00000476 cmpb $1, %dl
0x0f, 0x87, 0x13, 0x01, 0x00, 0x00, //0x00000479 ja LBB0_35
0x90, //0x0000047f .p2align 4, 0x90
//0x00000480 LBB0_18
0x4c, 0x8d, 0x66, 0x03, //0x00000480 leaq $3(%rsi), %r12
0x49, 0x39, 0xdc, //0x00000484 cmpq %rbx, %r12
0x0f, 0x83, 0x23, 0x00, 0x00, 0x00, //0x00000487 jae LBB0_22
0x43, 0x8a, 0x14, 0x26, //0x0000048d movb (%r14,%r12), %dl
0x80, 0xfa, 0x0d, //0x00000491 cmpb $13, %dl
0x0f, 0x84, 0x16, 0x00, 0x00, 0x00, //0x00000494 je LBB0_22
0x80, 0xfa, 0x20, //0x0000049a cmpb $32, %dl
0x0f, 0x84, 0x0d, 0x00, 0x00, 0x00, //0x0000049d je LBB0_22
0x80, 0xc2, 0xf7, //0x000004a3 addb $-9, %dl
0x80, 0xfa, 0x01, //0x000004a6 cmpb $1, %dl
0x0f, 0x87, 0xe3, 0x00, 0x00, 0x00, //0x000004a9 ja LBB0_35
0x90, //0x000004af .p2align 4, 0x90
//0x000004b0 LBB0_22
0x4c, 0x8d, 0x66, 0x04, //0x000004b0 leaq $4(%rsi), %r12
0x48, 0x89, 0xd8, //0x000004b4 movq %rbx, %rax
0x4c, 0x29, 0xe0, //0x000004b7 subq %r12, %rax
0x0f, 0x86, 0x4e, 0x36, 0x00, 0x00, //0x000004ba jbe LBB0_675
0x48, 0x83, 0xf8, 0x20, //0x000004c0 cmpq $32, %rax
0x0f, 0x82, 0x69, 0x23, 0x00, 0x00, //0x000004c4 jb LBB0_488
0x48, 0xc7, 0xc0, 0xfc, 0xff, 0xff, 0xff, //0x000004ca movq $-4, %rax
0x48, 0x29, 0xf0, //0x000004d1 subq %rsi, %rax
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x000004d4 .p2align 4, 0x90
//0x000004e0 LBB0_25
0xc4, 0x81, 0x7e, 0x6f, 0x04, 0x26, //0x000004e0 vmovdqu (%r14,%r12), %ymm0
0xc4, 0xe2, 0x55, 0x00, 0xc8, //0x000004e6 vpshufb %ymm0, %ymm5, %ymm1
0xc5, 0xfd, 0x74, 0xc1, //0x000004eb vpcmpeqb %ymm1, %ymm0, %ymm0
0xc5, 0xfd, 0xd7, 0xd0, //0x000004ef vpmovmskb %ymm0, %edx
0x83, 0xfa, 0xff, //0x000004f3 cmpl $-1, %edx
0x0f, 0x85, 0x84, 0x00, 0x00, 0x00, //0x000004f6 jne LBB0_34
0x49, 0x83, 0xc4, 0x20, //0x000004fc addq $32, %r12
0x48, 0x8d, 0x14, 0x03, //0x00000500 leaq (%rbx,%rax), %rdx
0x48, 0x83, 0xc2, 0xe0, //0x00000504 addq $-32, %rdx
0x48, 0x83, 0xc0, 0xe0, //0x00000508 addq $-32, %rax
0x48, 0x83, 0xfa, 0x1f, //0x0000050c cmpq $31, %rdx
0x0f, 0x87, 0xca, 0xff, 0xff, 0xff, //0x00000510 ja LBB0_25
0x4d, 0x89, 0xf4, //0x00000516 movq %r14, %r12
0x49, 0x29, 0xc4, //0x00000519 subq %rax, %r12
0x48, 0x01, 0xd8, //0x0000051c addq %rbx, %rax
0x48, 0x85, 0xc0, //0x0000051f testq %rax, %rax
0x0f, 0x84, 0x3a, 0x00, 0x00, 0x00, //0x00000522 je LBB0_33
//0x00000528 LBB0_28
0x4d, 0x8d, 0x04, 0x04, //0x00000528 leaq (%r12,%rax), %r8
0x31, 0xd2, //0x0000052c xorl %edx, %edx
0x90, 0x90, //0x0000052e .p2align 4, 0x90
//0x00000530 LBB0_29
0x41, 0x0f, 0xbe, 0x34, 0x14, //0x00000530 movsbl (%r12,%rdx), %esi
0x83, 0xfe, 0x20, //0x00000535 cmpl $32, %esi
0x0f, 0x87, 0x78, 0x1f, 0x00, 0x00, //0x00000538 ja LBB0_676
0x48, 0xb9, 0x00, 0x26, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, //0x0000053e movabsq $4294977024, %rcx
0x48, 0x0f, 0xa3, 0xf1, //0x00000548 btq %rsi, %rcx
0x0f, 0x83, 0x64, 0x1f, 0x00, 0x00, //0x0000054c jae LBB0_676
0x48, 0x83, 0xc2, 0x01, //0x00000552 addq $1, %rdx
0x48, 0x39, 0xd0, //0x00000556 cmpq %rdx, %rax
0x0f, 0x85, 0xd1, 0xff, 0xff, 0xff, //0x00000559 jne LBB0_29
0x4d, 0x89, 0xc4, //0x0000055f movq %r8, %r12
//0x00000562 LBB0_33
0x4d, 0x29, 0xf4, //0x00000562 subq %r14, %r12
0x49, 0x39, 0xdc, //0x00000565 cmpq %rbx, %r12
0x0f, 0x82, 0x24, 0x00, 0x00, 0x00, //0x00000568 jb LBB0_35
0xe9, 0x9f, 0x35, 0x00, 0x00, //0x0000056e jmp LBB0_677
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000573 .p2align 4, 0x90
//0x00000580 LBB0_34
0xf7, 0xd2, //0x00000580 notl %edx
0x44, 0x0f, 0xbc, 0xe2, //0x00000582 bsfl %edx, %r12d
0x49, 0x29, 0xc4, //0x00000586 subq %rax, %r12
0x49, 0x39, 0xdc, //0x00000589 cmpq %rbx, %r12
0x0f, 0x83, 0x80, 0x35, 0x00, 0x00, //0x0000058c jae LBB0_677
//0x00000592 LBB0_35
0x49, 0x8d, 0x54, 0x24, 0x01, //0x00000592 leaq $1(%r12), %rdx
0x49, 0x89, 0x55, 0x00, //0x00000597 movq %rdx, (%r13)
0x43, 0x0f, 0xbe, 0x04, 0x26, //0x0000059b movsbl (%r14,%r12), %eax
0x85, 0xc0, //0x000005a0 testl %eax, %eax
0x0f, 0x84, 0x6a, 0x35, 0x00, 0x00, //0x000005a2 je LBB0_677
0x49, 0x8b, 0x37, //0x000005a8 movq (%r15), %rsi
0x4c, 0x8d, 0x46, 0xff, //0x000005ab leaq $-1(%rsi), %r8
0x41, 0x8b, 0x1c, 0xf7, //0x000005af movl (%r15,%rsi,8), %ebx
0x49, 0x83, 0xf9, 0xff, //0x000005b3 cmpq $-1, %r9
0x4d, 0x0f, 0x45, 0xe1, //0x000005b7 cmovneq %r9, %r12
0x83, 0xc3, 0xff, //0x000005bb addl $-1, %ebx
0x83, 0xfb, 0x05, //0x000005be cmpl $5, %ebx
0x0f, 0x87, 0x27, 0x00, 0x00, 0x00, //0x000005c1 ja LBB0_41
0x48, 0x8d, 0x15, 0x12, 0x38, 0x00, 0x00, //0x000005c7 leaq $14354(%rip), %rdx /* LJTI0_0+0(%rip) */
0x48, 0x63, 0x0c, 0x9a, //0x000005ce movslq (%rdx,%rbx,4), %rcx
0x48, 0x01, 0xd1, //0x000005d2 addq %rdx, %rcx
0xff, 0xe1, //0x000005d5 jmpq *%rcx
//0x000005d7 LBB0_38
0x83, 0xf8, 0x2c, //0x000005d7 cmpl $44, %eax
0x0f, 0x84, 0x41, 0x06, 0x00, 0x00, //0x000005da je LBB0_126
0x83, 0xf8, 0x5d, //0x000005e0 cmpl $93, %eax
0x0f, 0x84, 0x23, 0x06, 0x00, 0x00, //0x000005e3 je LBB0_40
0xe9, 0x9f, 0x35, 0x00, 0x00, //0x000005e9 jmp LBB0_710
//0x000005ee LBB0_41
0x48, 0xc7, 0x04, 0x24, 0xff, 0xff, 0xff, 0xff, //0x000005ee movq $-1, (%rsp)
0x4d, 0x89, 0x07, //0x000005f6 movq %r8, (%r15)
0x83, 0xf8, 0x7b, //0x000005f9 cmpl $123, %eax
0x0f, 0x86, 0xaf, 0x01, 0x00, 0x00, //0x000005fc jbe LBB0_67
0xe9, 0x86, 0x35, 0x00, 0x00, //0x00000602 jmp LBB0_710
//0x00000607 LBB0_42
0x83, 0xf8, 0x2c, //0x00000607 cmpl $44, %eax
0x0f, 0x85, 0xf3, 0x05, 0x00, 0x00, //0x0000060a jne LBB0_43
0x48, 0x81, 0xfe, 0xff, 0x0f, 0x00, 0x00, //0x00000610 cmpq $4095, %rsi
0x0f, 0x8f, 0x02, 0x35, 0x00, 0x00, //0x00000617 jg LBB0_705
0x48, 0x8d, 0x4e, 0x01, //0x0000061d leaq $1(%rsi), %rcx
0x49, 0x89, 0x0f, //0x00000621 movq %rcx, (%r15)
0x49, 0xc7, 0x44, 0xf7, 0x08, 0x03, 0x00, 0x00, 0x00, //0x00000624 movq $3, $8(%r15,%rsi,8)
0xe9, 0x6e, 0xfd, 0xff, 0xff, //0x0000062d jmp LBB0_3
//0x00000632 LBB0_44
0x3c, 0x22, //0x00000632 cmpb $34, %al
0x0f, 0x85, 0x53, 0x35, 0x00, 0x00, //0x00000634 jne LBB0_710
0x49, 0xc7, 0x04, 0xf7, 0x04, 0x00, 0x00, 0x00, //0x0000063a movq $4, (%r15,%rsi,8)
0x41, 0xf6, 0xc3, 0x40, //0x00000642 testb $64, %r11b
0x0f, 0x85, 0x2f, 0x07, 0x00, 0x00, //0x00000646 jne LBB0_148
0x4d, 0x8b, 0x4d, 0x00, //0x0000064c movq (%r13), %r9
0x4c, 0x8b, 0x47, 0x08, //0x00000650 movq $8(%rdi), %r8
0x4c, 0x89, 0xc3, //0x00000654 movq %r8, %rbx
0x41, 0xf6, 0xc3, 0x20, //0x00000657 testb $32, %r11b
0x0f, 0x85, 0xf6, 0x09, 0x00, 0x00, //0x0000065b jne LBB0_190
0x4c, 0x29, 0xcb, //0x00000661 subq %r9, %rbx
0x0f, 0x84, 0xb2, 0x36, 0x00, 0x00, //0x00000664 je LBB0_717
0x48, 0x83, 0xfb, 0x40, //0x0000066a cmpq $64, %rbx
0x0f, 0x82, 0x29, 0x24, 0x00, 0x00, //0x0000066e jb LBB0_504
0x4c, 0x89, 0xce, //0x00000674 movq %r9, %rsi
0x48, 0xf7, 0xd6, //0x00000677 notq %rsi
0x49, 0xc7, 0xc3, 0xff, 0xff, 0xff, 0xff, //0x0000067a movq $-1, %r11
0x4c, 0x89, 0xc9, //0x00000681 movq %r9, %rcx
0x45, 0x31, 0xd2, //0x00000684 xorl %r10d, %r10d
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000687 .p2align 4, 0x90
//0x00000690 LBB0_50
0xc4, 0xc1, 0x7e, 0x6f, 0x04, 0x0e, //0x00000690 vmovdqu (%r14,%rcx), %ymm0
0x49, 0x89, 0xcf, //0x00000696 movq %rcx, %r15
0xc4, 0xc1, 0x7e, 0x6f, 0x4c, 0x0e, 0x20, //0x00000699 vmovdqu $32(%r14,%rcx), %ymm1
0xc5, 0xfd, 0x74, 0xd6, //0x000006a0 vpcmpeqb %ymm6, %ymm0, %ymm2
0xc5, 0xfd, 0xd7, 0xfa, //0x000006a4 vpmovmskb %ymm2, %edi
0xc5, 0xf5, 0x74, 0xd6, //0x000006a8 vpcmpeqb %ymm6, %ymm1, %ymm2
0xc5, 0xfd, 0xd7, 0xc2, //0x000006ac vpmovmskb %ymm2, %eax
0xc5, 0xfd, 0x74, 0xc7, //0x000006b0 vpcmpeqb %ymm7, %ymm0, %ymm0
0xc5, 0xfd, 0xd7, 0xd0, //0x000006b4 vpmovmskb %ymm0, %edx
0xc5, 0xf5, 0x74, 0xc7, //0x000006b8 vpcmpeqb %ymm7, %ymm1, %ymm0
0xc5, 0xfd, 0xd7, 0xc8, //0x000006bc vpmovmskb %ymm0, %ecx
0x48, 0xc1, 0xe0, 0x20, //0x000006c0 shlq $32, %rax
0x48, 0x09, 0xc7, //0x000006c4 orq %rax, %rdi
0x48, 0xc1, 0xe1, 0x20, //0x000006c7 shlq $32, %rcx
0x48, 0x09, 0xca, //0x000006cb orq %rcx, %rdx
0x0f, 0x85, 0x33, 0x00, 0x00, 0x00, //0x000006ce jne LBB0_59
0x4d, 0x85, 0xd2, //0x000006d4 testq %r10, %r10
0x0f, 0x85, 0x3b, 0x00, 0x00, 0x00, //0x000006d7 jne LBB0_61
0x45, 0x31, 0xd2, //0x000006dd xorl %r10d, %r10d
0x48, 0x85, 0xff, //0x000006e0 testq %rdi, %rdi
0x0f, 0x85, 0x83, 0x00, 0x00, 0x00, //0x000006e3 jne LBB0_62
//0x000006e9 LBB0_53
0x48, 0x83, 0xc3, 0xc0, //0x000006e9 addq $-64, %rbx
0x48, 0x83, 0xc6, 0xc0, //0x000006ed addq $-64, %rsi
0x4c, 0x89, 0xf9, //0x000006f1 movq %r15, %rcx
0x48, 0x83, 0xc1, 0x40, //0x000006f4 addq $64, %rcx
0x48, 0x83, 0xfb, 0x3f, //0x000006f8 cmpq $63, %rbx
0x0f, 0x87, 0x8e, 0xff, 0xff, 0xff, //0x000006fc ja LBB0_50
0xe9, 0x42, 0x20, 0x00, 0x00, //0x00000702 jmp LBB0_54
//0x00000707 LBB0_59
0x49, 0x83, 0xfb, 0xff, //0x00000707 cmpq $-1, %r11
0x0f, 0x85, 0x07, 0x00, 0x00, 0x00, //0x0000070b jne LBB0_61
0x4c, 0x0f, 0xbc, 0xda, //0x00000711 bsfq %rdx, %r11
0x4d, 0x01, 0xfb, //0x00000715 addq %r15, %r11
//0x00000718 LBB0_61
0x4c, 0x89, 0xd0, //0x00000718 movq %r10, %rax
0x48, 0xf7, 0xd0, //0x0000071b notq %rax
0x48, 0x21, 0xd0, //0x0000071e andq %rdx, %rax
0x48, 0x8d, 0x0c, 0x00, //0x00000721 leaq (%rax,%rax), %rcx
0x4c, 0x09, 0xd1, //0x00000725 orq %r10, %rcx
0x48, 0x89, 0x0c, 0x24, //0x00000728 movq %rcx, (%rsp)
0x48, 0xf7, 0xd1, //0x0000072c notq %rcx
0x48, 0x21, 0xd1, //0x0000072f andq %rdx, %rcx
0x48, 0xba, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, //0x00000732 movabsq $-6148914691236517206, %rdx
0x48, 0x21, 0xd1, //0x0000073c andq %rdx, %rcx
0x45, 0x31, 0xd2, //0x0000073f xorl %r10d, %r10d
0x48, 0x01, 0xc1, //0x00000742 addq %rax, %rcx
0x41, 0x0f, 0x92, 0xc2, //0x00000745 setb %r10b
0x48, 0x01, 0xc9, //0x00000749 addq %rcx, %rcx
0x48, 0xb8, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, //0x0000074c movabsq $6148914691236517205, %rax
0x48, 0x31, 0xc1, //0x00000756 xorq %rax, %rcx
0x48, 0x23, 0x0c, 0x24, //0x00000759 andq (%rsp), %rcx
0x48, 0xf7, 0xd1, //0x0000075d notq %rcx
0x48, 0x21, 0xcf, //0x00000760 andq %rcx, %rdi
0x48, 0x85, 0xff, //0x00000763 testq %rdi, %rdi
0x0f, 0x84, 0x7d, 0xff, 0xff, 0xff, //0x00000766 je LBB0_53
//0x0000076c LBB0_62
0x4c, 0x0f, 0xbc, 0xd7, //0x0000076c bsfq %rdi, %r10
0x49, 0x29, 0xf2, //0x00000770 subq %rsi, %r10
0x4d, 0x89, 0xdf, //0x00000773 movq %r11, %r15
0xe9, 0xa5, 0x0b, 0x00, 0x00, //0x00000776 jmp LBB0_232
//0x0000077b LBB0_63
0x3c, 0x3a, //0x0000077b cmpb $58, %al
0x0f, 0x85, 0x0a, 0x34, 0x00, 0x00, //0x0000077d jne LBB0_710
0x49, 0xc7, 0x04, 0xf7, 0x00, 0x00, 0x00, 0x00, //0x00000783 movq $0, (%r15,%rsi,8)
0xe9, 0x10, 0xfc, 0xff, 0xff, //0x0000078b jmp LBB0_3
//0x00000790 LBB0_65
0x3c, 0x5d, //0x00000790 cmpb $93, %al
0x0f, 0x84, 0x74, 0x04, 0x00, 0x00, //0x00000792 je LBB0_40
0x48, 0xc7, 0x04, 0x24, 0xff, 0xff, 0xff, 0xff, //0x00000798 movq $-1, (%rsp)
0x49, 0xc7, 0x04, 0xf7, 0x01, 0x00, 0x00, 0x00, //0x000007a0 movq $1, (%r15,%rsi,8)
0x83, 0xf8, 0x7b, //0x000007a8 cmpl $123, %eax
0x0f, 0x87, 0xdc, 0x33, 0x00, 0x00, //0x000007ab ja LBB0_710
//0x000007b1 LBB0_67
0x89, 0xc0, //0x000007b1 movl %eax, %eax
0x48, 0x8d, 0x0d, 0x3e, 0x36, 0x00, 0x00, //0x000007b3 leaq $13886(%rip), %rcx /* LJTI0_1+0(%rip) */
0x48, 0x63, 0x04, 0x81, //0x000007ba movslq (%rcx,%rax,4), %rax
0x48, 0x01, 0xc8, //0x000007be addq %rcx, %rax
0xff, 0xe0, //0x000007c1 jmpq *%rax
//0x000007c3 LBB0_70
0x4c, 0x8b, 0x47, 0x08, //0x000007c3 movq $8(%rdi), %r8
0x49, 0x8b, 0x5d, 0x00, //0x000007c7 movq (%r13), %rbx
0x41, 0xf6, 0xc3, 0x40, //0x000007cb testb $64, %r11b
0x0f, 0x85, 0x67, 0x06, 0x00, 0x00, //0x000007cf jne LBB0_159
0x4c, 0x89, 0x6c, 0x24, 0x30, //0x000007d5 movq %r13, $48(%rsp)
0x48, 0x8d, 0x53, 0xff, //0x000007da leaq $-1(%rbx), %rdx
0x49, 0x29, 0xd0, //0x000007de subq %rdx, %r8
0x0f, 0x84, 0x78, 0x33, 0x00, 0x00, //0x000007e1 je LBB0_682
0x49, 0x8d, 0x04, 0x1e, //0x000007e7 leaq (%r14,%rbx), %rax
0x48, 0x83, 0xc0, 0xff, //0x000007eb addq $-1, %rax
0x48, 0x89, 0x44, 0x24, 0x38, //0x000007ef movq %rax, $56(%rsp)
0x80, 0x38, 0x30, //0x000007f4 cmpb $48, (%rax)
0x48, 0x89, 0x14, 0x24, //0x000007f7 movq %rdx, (%rsp)
0x0f, 0x85, 0x3a, 0x00, 0x00, 0x00, //0x000007fb jne LBB0_76
0x41, 0xbd, 0x01, 0x00, 0x00, 0x00, //0x00000801 movl $1, %r13d
0x49, 0x83, 0xf8, 0x01, //0x00000807 cmpq $1, %r8
0x0f, 0x84, 0xa4, 0xfb, 0xff, 0xff, //0x0000080b je LBB0_1
0x41, 0x8a, 0x0c, 0x1e, //0x00000811 movb (%r14,%rbx), %cl
0x80, 0xc1, 0xd2, //0x00000815 addb $-46, %cl
0x80, 0xf9, 0x37, //0x00000818 cmpb $55, %cl
0x0f, 0x87, 0x94, 0xfb, 0xff, 0xff, //0x0000081b ja LBB0_1
0x0f, 0xb6, 0xc1, //0x00000821 movzbl %cl, %eax
0x48, 0xb9, 0x01, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, //0x00000824 movabsq $36028797027352577, %rcx
0x48, 0x0f, 0xa3, 0xc1, //0x0000082e btq %rax, %rcx
0x48, 0x89, 0xd1, //0x00000832 movq %rdx, %rcx
0x0f, 0x83, 0x7d, 0xfb, 0xff, 0xff, //0x00000835 jae LBB0_2
//0x0000083b LBB0_76
0x48, 0x89, 0x5c, 0x24, 0x20, //0x0000083b movq %rbx, $32(%rsp)
0x49, 0xc7, 0xc2, 0xff, 0xff, 0xff, 0xff, //0x00000840 movq $-1, %r10
0x49, 0x83, 0xf8, 0x20, //0x00000847 cmpq $32, %r8
0x0f, 0x82, 0x21, 0x22, 0x00, 0x00, //0x0000084b jb LBB0_502
0x45, 0x31, 0xed, //0x00000851 xorl %r13d, %r13d
0x49, 0xc7, 0xc1, 0xff, 0xff, 0xff, 0xff, //0x00000854 movq $-1, %r9
0x48, 0xc7, 0x44, 0x24, 0x28, 0xff, 0xff, 0xff, 0xff, //0x0000085b movq $-1, $40(%rsp)
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000864 .p2align 4, 0x90
//0x00000870 LBB0_78
0x48, 0x8b, 0x44, 0x24, 0x38, //0x00000870 movq $56(%rsp), %rax
0xc4, 0xa1, 0x7e, 0x6f, 0x04, 0x28, //0x00000875 vmovdqu (%rax,%r13), %ymm0
0xc4, 0xc1, 0x7d, 0x64, 0xca, //0x0000087b vpcmpgtb %ymm10, %ymm0, %ymm1
0xc5, 0x95, 0x64, 0xd0, //0x00000880 vpcmpgtb %ymm0, %ymm13, %ymm2
0xc5, 0xed, 0xdb, 0xc9, //0x00000884 vpand %ymm1, %ymm2, %ymm1
0xc5, 0x85, 0x74, 0xd0, //0x00000888 vpcmpeqb %ymm0, %ymm15, %ymm2
0xc5, 0xfd, 0x74, 0x1d, 0xcc, 0xf9, 0xff, 0xff, //0x0000088c vpcmpeqb $-1588(%rip), %ymm0, %ymm3 /* LCPI0_17+0(%rip) */
0xc5, 0xe5, 0xeb, 0xd2, //0x00000894 vpor %ymm2, %ymm3, %ymm2
0xc5, 0x8d, 0xdb, 0xd8, //0x00000898 vpand %ymm0, %ymm14, %ymm3
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/unquote_subr.go | vendor/github.com/bytedance/sonic/internal/native/avx2/unquote_subr.go | // +build !noasm !appengine
// Code generated by asm2asm, DO NOT EDIT.
package avx2
import (
`github.com/bytedance/sonic/loader`
)
const (
_entry__unquote = 48
)
const (
_stack__unquote = 80
)
const (
_size__unquote = 2288
)
var (
_pcsp__unquote = [][2]uint32{
{0x1, 0},
{0x6, 8},
{0x8, 16},
{0xa, 24},
{0xc, 32},
{0xd, 40},
{0x11, 48},
{0x5f8, 80},
{0x5f9, 48},
{0x5fb, 40},
{0x5fd, 32},
{0x5ff, 24},
{0x601, 16},
{0x602, 8},
{0x606, 0},
{0x8f0, 80},
}
)
var _cfunc_unquote = []loader.CFunc{
{"_unquote_entry", 0, _entry__unquote, 0, nil},
{"_unquote", _entry__unquote, _size__unquote, _stack__unquote, _pcsp__unquote},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/parse_with_padding_subr.go | vendor/github.com/bytedance/sonic/internal/native/avx2/parse_with_padding_subr.go | // +build !noasm !appengine
// Code generated by asm2asm, DO NOT EDIT.
package avx2
import (
`github.com/bytedance/sonic/loader`
)
const (
_entry__parse_with_padding = 688
)
const (
_stack__parse_with_padding = 200
)
const (
_size__parse_with_padding = 48876
)
var (
_pcsp__parse_with_padding = [][2]uint32{
{0x1, 0},
{0x6, 8},
{0x8, 16},
{0xa, 24},
{0xc, 32},
{0xd, 40},
{0x14, 48},
{0xbea, 200},
{0xbeb, 48},
{0xbed, 40},
{0xbef, 32},
{0xbf1, 24},
{0xbf3, 16},
{0xbf4, 8},
{0xbf8, 0},
{0xbeec, 200},
}
)
var _cfunc_parse_with_padding = []loader.CFunc{
{"_parse_with_padding_entry", 0, _entry__parse_with_padding, 0, nil},
{"_parse_with_padding", _entry__parse_with_padding, _size__parse_with_padding, _stack__parse_with_padding, _pcsp__parse_with_padding},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/vunsigned_subr.go | vendor/github.com/bytedance/sonic/internal/native/avx2/vunsigned_subr.go | // +build !noasm !appengine
// Code generated by asm2asm, DO NOT EDIT.
package avx2
import (
`github.com/bytedance/sonic/loader`
)
const (
_entry__vunsigned = 0
)
const (
_stack__vunsigned = 24
)
const (
_size__vunsigned = 356
)
var (
_pcsp__vunsigned = [][2]uint32{
{0x1, 0},
{0x6, 8},
{0x7, 16},
{0x4b, 24},
{0x4d, 16},
{0x4e, 8},
{0x4f, 0},
{0x5a, 24},
{0x5c, 16},
{0x5d, 8},
{0x5e, 0},
{0x75, 24},
{0x77, 16},
{0x78, 8},
{0x79, 0},
{0x11a, 24},
{0x11c, 16},
{0x11d, 8},
{0x11e, 0},
{0x151, 24},
{0x153, 16},
{0x154, 8},
{0x155, 0},
{0x15d, 24},
{0x15f, 16},
{0x160, 8},
{0x164, 0},
}
)
var _cfunc_vunsigned = []loader.CFunc{
{"_vunsigned_entry", 0, _entry__vunsigned, 0, nil},
{"_vunsigned", _entry__vunsigned, _size__vunsigned, _stack__vunsigned, _pcsp__vunsigned},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/f64toa_text_amd64.go | vendor/github.com/bytedance/sonic/internal/native/avx2/f64toa_text_amd64.go | // +build amd64
// Code generated by asm2asm, DO NOT EDIT.
package avx2
var _text_f64toa = []byte{
// .p2align 5, 0x00
// LCPI0_0
0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, // QUAD $0x3030303030303030; QUAD $0x3030303030303030 // .space 16, '0000000000000000'
0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, //0x00000010 QUAD $0x3030303030303030; QUAD $0x3030303030303030 // .space 16, '0000000000000000'
//0x00000020 .p2align 4, 0x00
//0x00000020 LCPI0_1
0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, //0x00000020 QUAD $0x3030303030303030; QUAD $0x3030303030303030 // .space 16, '0000000000000000'
//0x00000030 .p2align 4, 0x90
//0x00000030 _f64toa
0x55, //0x00000030 pushq %rbp
0x48, 0x89, 0xe5, //0x00000031 movq %rsp, %rbp
0x41, 0x57, //0x00000034 pushq %r15
0x41, 0x56, //0x00000036 pushq %r14
0x41, 0x55, //0x00000038 pushq %r13
0x41, 0x54, //0x0000003a pushq %r12
0x53, //0x0000003c pushq %rbx
0x48, 0x83, 0xec, 0x18, //0x0000003d subq $24, %rsp
0xc4, 0xe1, 0xf9, 0x7e, 0xc2, //0x00000041 vmovq %xmm0, %rdx
0x48, 0x89, 0xd0, //0x00000046 movq %rdx, %rax
0x48, 0xc1, 0xe8, 0x34, //0x00000049 shrq $52, %rax
0x25, 0xff, 0x07, 0x00, 0x00, //0x0000004d andl $2047, %eax
0x3d, 0xff, 0x07, 0x00, 0x00, //0x00000052 cmpl $2047, %eax
0x0f, 0x84, 0x70, 0x13, 0x00, 0x00, //0x00000057 je LBB0_1
0xc6, 0x07, 0x2d, //0x0000005d movb $45, (%rdi)
0x49, 0x89, 0xd5, //0x00000060 movq %rdx, %r13
0x49, 0xc1, 0xed, 0x3f, //0x00000063 shrq $63, %r13
0x4e, 0x8d, 0x04, 0x2f, //0x00000067 leaq (%rdi,%r13), %r8
0x48, 0x8d, 0x0c, 0x55, 0x00, 0x00, 0x00, 0x00, //0x0000006b leaq (,%rdx,2), %rcx
0x48, 0x85, 0xc9, //0x00000073 testq %rcx, %rcx
0x0f, 0x84, 0xee, 0x01, 0x00, 0x00, //0x00000076 je LBB0_3
0x4c, 0x89, 0x45, 0xc8, //0x0000007c movq %r8, $-56(%rbp)
0x49, 0xb8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, //0x00000080 movabsq $4503599627370495, %r8
0x4c, 0x21, 0xc2, //0x0000008a andq %r8, %rdx
0x85, 0xc0, //0x0000008d testl %eax, %eax
0x48, 0x89, 0xf9, //0x0000008f movq %rdi, %rcx
0x48, 0x89, 0x7d, 0xd0, //0x00000092 movq %rdi, $-48(%rbp)
0x0f, 0x84, 0x39, 0x13, 0x00, 0x00, //0x00000096 je LBB0_5
0x49, 0x83, 0xc0, 0x01, //0x0000009c addq $1, %r8
0x49, 0x09, 0xd0, //0x000000a0 orq %rdx, %r8
0x44, 0x8d, 0x98, 0xcd, 0xfb, 0xff, 0xff, //0x000000a3 leal $-1075(%rax), %r11d
0x8d, 0x88, 0x01, 0xfc, 0xff, 0xff, //0x000000aa leal $-1023(%rax), %ecx
0x83, 0xf9, 0x34, //0x000000b0 cmpl $52, %ecx
0x0f, 0x87, 0x1d, 0x00, 0x00, 0x00, //0x000000b3 ja LBB0_6
0xb9, 0x33, 0x04, 0x00, 0x00, //0x000000b9 movl $1075, %ecx
0x29, 0xc1, //0x000000be subl %eax, %ecx
0x48, 0xc7, 0xc3, 0xff, 0xff, 0xff, 0xff, //0x000000c0 movq $-1, %rbx
0x48, 0xd3, 0xe3, //0x000000c7 shlq %cl, %rbx
0x48, 0xf7, 0xd3, //0x000000ca notq %rbx
0x49, 0x85, 0xd8, //0x000000cd testq %rbx, %r8
0x0f, 0x84, 0x5c, 0x04, 0x00, 0x00, //0x000000d0 je LBB0_11
//0x000000d6 LBB0_6
0x48, 0x85, 0xd2, //0x000000d6 testq %rdx, %rdx
0x0f, 0x94, 0xc1, //0x000000d9 sete %cl
0x83, 0xf8, 0x02, //0x000000dc cmpl $2, %eax
0x0f, 0x93, 0xc0, //0x000000df setae %al
0x20, 0xc8, //0x000000e2 andb %cl, %al
0x4e, 0x8d, 0x0c, 0x85, 0x00, 0x00, 0x00, 0x00, //0x000000e4 leaq (,%r8,4), %r9
0x0f, 0xb6, 0xc0, //0x000000ec movzbl %al, %eax
0x41, 0x69, 0xcb, 0x13, 0x44, 0x13, 0x00, //0x000000ef imull $1262611, %r11d, %ecx
0x8d, 0x91, 0x01, 0x01, 0xf8, 0xff, //0x000000f6 leal $-524031(%rcx), %edx
0x84, 0xc0, //0x000000fc testb %al, %al
0x0f, 0x44, 0xd1, //0x000000fe cmovel %ecx, %edx
0x4e, 0x8d, 0x14, 0x80, //0x00000101 leaq (%rax,%r8,4), %r10
0x49, 0x83, 0xc2, 0xfe, //0x00000105 addq $-2, %r10
0xc1, 0xfa, 0x16, //0x00000109 sarl $22, %edx
0x69, 0xca, 0xb1, 0x6c, 0xe5, 0xff, //0x0000010c imull $-1741647, %edx, %ecx
0xc1, 0xe9, 0x13, //0x00000112 shrl $19, %ecx
0x44, 0x01, 0xd9, //0x00000115 addl %r11d, %ecx
0xbf, 0x24, 0x01, 0x00, 0x00, //0x00000118 movl $292, %edi
0x48, 0x89, 0x55, 0xc0, //0x0000011d movq %rdx, $-64(%rbp)
0x29, 0xd7, //0x00000121 subl %edx, %edi
0x48, 0xc1, 0xe7, 0x04, //0x00000123 shlq $4, %rdi
0x80, 0xc1, 0x01, //0x00000127 addb $1, %cl
0x49, 0xd3, 0xe2, //0x0000012a shlq %cl, %r10
0x48, 0x8d, 0x1d, 0xac, 0x13, 0x00, 0x00, //0x0000012d leaq $5036(%rip), %rbx /* _pow10_ceil_sig.g+0(%rip) */
0x4c, 0x8b, 0x7c, 0x1f, 0x08, //0x00000134 movq $8(%rdi,%rbx), %r15
0x4c, 0x89, 0xd0, //0x00000139 movq %r10, %rax
0x49, 0xf7, 0xe7, //0x0000013c mulq %r15
0x49, 0x89, 0xd3, //0x0000013f movq %rdx, %r11
0x48, 0x8b, 0x1c, 0x1f, //0x00000142 movq (%rdi,%rbx), %rbx
0x4c, 0x89, 0xd0, //0x00000146 movq %r10, %rax
0x48, 0xf7, 0xe3, //0x00000149 mulq %rbx
0x49, 0x89, 0xd2, //0x0000014c movq %rdx, %r10
0x4c, 0x01, 0xd8, //0x0000014f addq %r11, %rax
0x49, 0x83, 0xd2, 0x00, //0x00000152 adcq $0, %r10
0x45, 0x31, 0xe4, //0x00000156 xorl %r12d, %r12d
0x48, 0x83, 0xf8, 0x02, //0x00000159 cmpq $2, %rax
0x41, 0x0f, 0x93, 0xc4, //0x0000015d setae %r12b
0x49, 0xd3, 0xe1, //0x00000161 shlq %cl, %r9
0x4e, 0x8d, 0x1c, 0x85, 0x02, 0x00, 0x00, 0x00, //0x00000164 leaq $2(,%r8,4), %r11
0x4c, 0x89, 0xc8, //0x0000016c movq %r9, %rax
0x49, 0xf7, 0xe7, //0x0000016f mulq %r15
0x49, 0x89, 0xd6, //0x00000172 movq %rdx, %r14
0x4d, 0x09, 0xd4, //0x00000175 orq %r10, %r12
0x4c, 0x89, 0xc8, //0x00000178 movq %r9, %rax
0x48, 0xf7, 0xe3, //0x0000017b mulq %rbx
0x49, 0x89, 0xd1, //0x0000017e movq %rdx, %r9
0x4c, 0x01, 0xf0, //0x00000181 addq %r14, %rax
0x49, 0x83, 0xd1, 0x00, //0x00000184 adcq $0, %r9
0x45, 0x31, 0xd2, //0x00000188 xorl %r10d, %r10d
0x48, 0x83, 0xf8, 0x02, //0x0000018b cmpq $2, %rax
0x41, 0x0f, 0x93, 0xc2, //0x0000018f setae %r10b
0x49, 0xd3, 0xe3, //0x00000193 shlq %cl, %r11
0x4c, 0x89, 0xd8, //0x00000196 movq %r11, %rax
0x49, 0xf7, 0xe7, //0x00000199 mulq %r15
0x48, 0x89, 0xd1, //0x0000019c movq %rdx, %rcx
0x4c, 0x89, 0xd8, //0x0000019f movq %r11, %rax
0x48, 0xf7, 0xe3, //0x000001a2 mulq %rbx
0x4d, 0x09, 0xca, //0x000001a5 orq %r9, %r10
0x48, 0x01, 0xc8, //0x000001a8 addq %rcx, %rax
0x48, 0x83, 0xd2, 0x00, //0x000001ab adcq $0, %rdx
0x31, 0xdb, //0x000001af xorl %ebx, %ebx
0x48, 0x83, 0xf8, 0x02, //0x000001b1 cmpq $2, %rax
0x0f, 0x93, 0xc3, //0x000001b5 setae %bl
0x48, 0x09, 0xd3, //0x000001b8 orq %rdx, %rbx
0x41, 0x83, 0xe0, 0x01, //0x000001bb andl $1, %r8d
0x4d, 0x01, 0xc4, //0x000001bf addq %r8, %r12
0x4c, 0x29, 0xc3, //0x000001c2 subq %r8, %rbx
0x49, 0x83, 0xfa, 0x28, //0x000001c5 cmpq $40, %r10
0x0f, 0x82, 0x43, 0x00, 0x00, 0x00, //0x000001c9 jb LBB0_41
0x48, 0xb9, 0xcd, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, //0x000001cf movabsq $-3689348814741910323, %rcx
0x4c, 0x89, 0xc8, //0x000001d9 movq %r9, %rax
0x48, 0xf7, 0xe1, //0x000001dc mulq %rcx
0x48, 0x89, 0xd1, //0x000001df movq %rdx, %rcx
0x48, 0xc1, 0xe9, 0x05, //0x000001e2 shrq $5, %rcx
0x48, 0x8d, 0x04, 0xcd, 0x00, 0x00, 0x00, 0x00, //0x000001e6 leaq (,%rcx,8), %rax
0x48, 0x8d, 0x14, 0x80, //0x000001ee leaq (%rax,%rax,4), %rdx
0x49, 0x39, 0xd4, //0x000001f2 cmpq %rdx, %r12
0x40, 0x0f, 0x97, 0xc6, //0x000001f5 seta %sil
0x48, 0x8d, 0x14, 0x80, //0x000001f9 leaq (%rax,%rax,4), %rdx
0x48, 0x83, 0xc2, 0x28, //0x000001fd addq $40, %rdx
0x31, 0xc0, //0x00000201 xorl %eax, %eax
0x48, 0x39, 0xda, //0x00000203 cmpq %rbx, %rdx
0x0f, 0x96, 0xc2, //0x00000206 setbe %dl
0x40, 0x38, 0xd6, //0x00000209 cmpb %dl, %sil
0x0f, 0x84, 0x2d, 0x01, 0x00, 0x00, //0x0000020c je LBB0_8
//0x00000212 LBB0_41
0x4c, 0x89, 0xc8, //0x00000212 movq %r9, %rax
0x48, 0xc1, 0xe8, 0x02, //0x00000215 shrq $2, %rax
0x4c, 0x89, 0xca, //0x00000219 movq %r9, %rdx
0x48, 0x83, 0xe2, 0xfc, //0x0000021c andq $-4, %rdx
0x49, 0x39, 0xd4, //0x00000220 cmpq %rdx, %r12
0x40, 0x0f, 0x97, 0xc6, //0x00000223 seta %sil
0x48, 0x8d, 0x7a, 0x04, //0x00000227 leaq $4(%rdx), %rdi
0x48, 0x39, 0xdf, //0x0000022b cmpq %rbx, %rdi
0x0f, 0x96, 0xc1, //0x0000022e setbe %cl
0x40, 0x30, 0xf1, //0x00000231 xorb %sil, %cl
0x4c, 0x8b, 0x45, 0xc8, //0x00000234 movq $-56(%rbp), %r8
0x0f, 0x84, 0x3c, 0x00, 0x00, 0x00, //0x00000238 je LBB0_42
0x48, 0x83, 0xca, 0x02, //0x0000023e orq $2, %rdx
0xb9, 0x01, 0x00, 0x00, 0x00, //0x00000242 movl $1, %ecx
0x49, 0x39, 0xd2, //0x00000247 cmpq %rdx, %r10
0x4c, 0x8b, 0x65, 0xd0, //0x0000024a movq $-48(%rbp), %r12
0x0f, 0x87, 0x0e, 0x00, 0x00, 0x00, //0x0000024e ja LBB0_45
0x0f, 0x94, 0xc1, //0x00000254 sete %cl
0x41, 0xc0, 0xe9, 0x02, //0x00000257 shrb $2, %r9b
0x41, 0x20, 0xc9, //0x0000025b andb %cl, %r9b
0x41, 0x0f, 0xb6, 0xc9, //0x0000025e movzbl %r9b, %ecx
//0x00000262 LBB0_45
0x48, 0x01, 0xc1, //0x00000262 addq %rax, %rcx
0xe9, 0x1e, 0x00, 0x00, 0x00, //0x00000265 jmp LBB0_46
//0x0000026a LBB0_3
0x41, 0xc6, 0x00, 0x30, //0x0000026a movb $48, (%r8)
0x41, 0x29, 0xf8, //0x0000026e subl %edi, %r8d
0x41, 0x83, 0xc0, 0x01, //0x00000271 addl $1, %r8d
0xe9, 0x2c, 0x11, 0x00, 0x00, //0x00000275 jmp LBB0_181
//0x0000027a LBB0_42
0x48, 0x39, 0xfb, //0x0000027a cmpq %rdi, %rbx
0x48, 0x83, 0xd8, 0xff, //0x0000027d sbbq $-1, %rax
0x48, 0x89, 0xc1, //0x00000281 movq %rax, %rcx
0x4c, 0x8b, 0x65, 0xd0, //0x00000284 movq $-48(%rbp), %r12
//0x00000288 LBB0_46
0x4c, 0x8b, 0x55, 0xc0, //0x00000288 movq $-64(%rbp), %r10
0x48, 0xba, 0x80, 0xff, 0xff, 0xff, 0x01, 0x00, 0x00, 0x00, //0x0000028c movabsq $8589934464, %rdx
0x48, 0x8d, 0x82, 0x7f, 0xe4, 0x0b, 0x54, //0x00000296 leaq $1410065535(%rdx), %rax
0x48, 0x39, 0xc1, //0x0000029d cmpq %rax, %rcx
0x0f, 0x86, 0xc8, 0x00, 0x00, 0x00, //0x000002a0 jbe LBB0_54
//0x000002a6 LBB0_48
0x48, 0x89, 0xc8, //0x000002a6 movq %rcx, %rax
0x48, 0xc1, 0xe8, 0x0b, //0x000002a9 shrq $11, %rax
0x41, 0xbb, 0x0b, 0x00, 0x00, 0x00, //0x000002ad movl $11, %r11d
0x48, 0x3d, 0xdd, 0x0e, 0xe9, 0x02, //0x000002b3 cmpq $48828125, %rax
0x0f, 0x82, 0x41, 0x01, 0x00, 0x00, //0x000002b9 jb LBB0_64
0x48, 0x89, 0xc8, //0x000002bf movq %rcx, %rax
0x48, 0xc1, 0xe8, 0x0c, //0x000002c2 shrq $12, %rax
0x41, 0xbb, 0x0c, 0x00, 0x00, 0x00, //0x000002c6 movl $12, %r11d
0x48, 0x3d, 0x51, 0x4a, 0x8d, 0x0e, //0x000002cc cmpq $244140625, %rax
0x0f, 0x82, 0x28, 0x01, 0x00, 0x00, //0x000002d2 jb LBB0_64
0x48, 0x89, 0xc8, //0x000002d8 movq %rcx, %rax
0x48, 0xc1, 0xe8, 0x0d, //0x000002db shrq $13, %rax
0x41, 0xbb, 0x0d, 0x00, 0x00, 0x00, //0x000002df movl $13, %r11d
0x48, 0x3d, 0x95, 0x73, 0xc2, 0x48, //0x000002e5 cmpq $1220703125, %rax
0x0f, 0x82, 0x0f, 0x01, 0x00, 0x00, //0x000002eb jb LBB0_64
0x41, 0xbb, 0x0e, 0x00, 0x00, 0x00, //0x000002f1 movl $14, %r11d
0x48, 0xb8, 0x00, 0x40, 0x7a, 0x10, 0xf3, 0x5a, 0x00, 0x00, //0x000002f7 movabsq $100000000000000, %rax
0x48, 0x39, 0xc1, //0x00000301 cmpq %rax, %rcx
0x0f, 0x82, 0xf6, 0x00, 0x00, 0x00, //0x00000304 jb LBB0_64
0x41, 0xbb, 0x0f, 0x00, 0x00, 0x00, //0x0000030a movl $15, %r11d
0x48, 0xb8, 0x00, 0x80, 0xc6, 0xa4, 0x7e, 0x8d, 0x03, 0x00, //0x00000310 movabsq $1000000000000000, %rax
0x48, 0x39, 0xc1, //0x0000031a cmpq %rax, %rcx
0x0f, 0x82, 0xdd, 0x00, 0x00, 0x00, //0x0000031d jb LBB0_64
0x48, 0xb8, 0x00, 0x00, 0xc1, 0x6f, 0xf2, 0x86, 0x23, 0x00, //0x00000323 movabsq $10000000000000000, %rax
0x48, 0x39, 0xc1, //0x0000032d cmpq %rax, %rcx
0x41, 0xbb, 0x11, 0x00, 0x00, 0x00, //0x00000330 movl $17, %r11d
//0x00000336 LBB0_63
0x41, 0x83, 0xdb, 0x00, //0x00000336 sbbl $0, %r11d
0xe9, 0xc1, 0x00, 0x00, 0x00, //0x0000033a jmp LBB0_64
//0x0000033f LBB0_8
0x88, 0xd0, //0x0000033f movb %dl, %al
0x48, 0x01, 0xc1, //0x00000341 addq %rax, %rcx
0x4c, 0x8b, 0x55, 0xc0, //0x00000344 movq $-64(%rbp), %r10
0x41, 0x83, 0xc2, 0x01, //0x00000348 addl $1, %r10d
0x4c, 0x8b, 0x65, 0xd0, //0x0000034c movq $-48(%rbp), %r12
0x4c, 0x8b, 0x45, 0xc8, //0x00000350 movq $-56(%rbp), %r8
0x48, 0xba, 0x80, 0xff, 0xff, 0xff, 0x01, 0x00, 0x00, 0x00, //0x00000354 movabsq $8589934464, %rdx
0x48, 0x8d, 0x82, 0x7f, 0xe4, 0x0b, 0x54, //0x0000035e leaq $1410065535(%rdx), %rax
0x48, 0x39, 0xc1, //0x00000365 cmpq %rax, %rcx
0x0f, 0x87, 0x38, 0xff, 0xff, 0xff, //0x00000368 ja LBB0_48
//0x0000036e LBB0_54
0x41, 0xbb, 0x01, 0x00, 0x00, 0x00, //0x0000036e movl $1, %r11d
0x48, 0x83, 0xf9, 0x0a, //0x00000374 cmpq $10, %rcx
0x0f, 0x82, 0x82, 0x00, 0x00, 0x00, //0x00000378 jb LBB0_64
0x41, 0xbb, 0x02, 0x00, 0x00, 0x00, //0x0000037e movl $2, %r11d
0x48, 0x83, 0xf9, 0x64, //0x00000384 cmpq $100, %rcx
0x0f, 0x82, 0x72, 0x00, 0x00, 0x00, //0x00000388 jb LBB0_64
0x41, 0xbb, 0x03, 0x00, 0x00, 0x00, //0x0000038e movl $3, %r11d
0x48, 0x81, 0xf9, 0xe8, 0x03, 0x00, 0x00, //0x00000394 cmpq $1000, %rcx
0x0f, 0x82, 0x5f, 0x00, 0x00, 0x00, //0x0000039b jb LBB0_64
0x41, 0xbb, 0x04, 0x00, 0x00, 0x00, //0x000003a1 movl $4, %r11d
0x48, 0x81, 0xf9, 0x10, 0x27, 0x00, 0x00, //0x000003a7 cmpq $10000, %rcx
0x0f, 0x82, 0x4c, 0x00, 0x00, 0x00, //0x000003ae jb LBB0_64
0x41, 0xbb, 0x05, 0x00, 0x00, 0x00, //0x000003b4 movl $5, %r11d
0x48, 0x81, 0xf9, 0xa0, 0x86, 0x01, 0x00, //0x000003ba cmpq $100000, %rcx
0x0f, 0x82, 0x39, 0x00, 0x00, 0x00, //0x000003c1 jb LBB0_64
0x41, 0xbb, 0x06, 0x00, 0x00, 0x00, //0x000003c7 movl $6, %r11d
0x48, 0x81, 0xf9, 0x40, 0x42, 0x0f, 0x00, //0x000003cd cmpq $1000000, %rcx
0x0f, 0x82, 0x26, 0x00, 0x00, 0x00, //0x000003d4 jb LBB0_64
0x41, 0xbb, 0x07, 0x00, 0x00, 0x00, //0x000003da movl $7, %r11d
0x48, 0x81, 0xf9, 0x80, 0x96, 0x98, 0x00, //0x000003e0 cmpq $10000000, %rcx
0x0f, 0x82, 0x13, 0x00, 0x00, 0x00, //0x000003e7 jb LBB0_64
0x41, 0xbb, 0x08, 0x00, 0x00, 0x00, //0x000003ed movl $8, %r11d
0x48, 0x81, 0xf9, 0x00, 0xe1, 0xf5, 0x05, //0x000003f3 cmpq $100000000, %rcx
0x0f, 0x83, 0xbb, 0x0f, 0x00, 0x00, //0x000003fa jae LBB0_62
//0x00000400 LBB0_64
0x47, 0x8d, 0x0c, 0x13, //0x00000400 leal (%r11,%r10), %r9d
0x43, 0x8d, 0x04, 0x13, //0x00000404 leal (%r11,%r10), %eax
0x83, 0xc0, 0x05, //0x00000408 addl $5, %eax
0x45, 0x89, 0xde, //0x0000040b movl %r11d, %r14d
0x83, 0xf8, 0x1b, //0x0000040e cmpl $27, %eax
0x0f, 0x82, 0x2d, 0x00, 0x00, 0x00, //0x00000411 jb LBB0_93
0x4b, 0x8d, 0x34, 0x30, //0x00000417 leaq (%r8,%r14), %rsi
0x48, 0x83, 0xc6, 0x01, //0x0000041b addq $1, %rsi
0x48, 0x89, 0xc8, //0x0000041f movq %rcx, %rax
0x48, 0xc1, 0xe8, 0x20, //0x00000422 shrq $32, %rax
0x0f, 0x85, 0x48, 0x00, 0x00, 0x00, //0x00000426 jne LBB0_67
0x45, 0x31, 0xd2, //0x0000042c xorl %r10d, %r10d
0x89, 0xca, //0x0000042f movl %ecx, %edx
0x81, 0xfa, 0x10, 0x27, 0x00, 0x00, //0x00000431 cmpl $10000, %edx
0x0f, 0x83, 0x0d, 0x06, 0x00, 0x00, //0x00000437 jae LBB0_73
//0x0000043d LBB0_72
0x89, 0xd1, //0x0000043d movl %edx, %ecx
0xe9, 0x62, 0x06, 0x00, 0x00, //0x0000043f jmp LBB0_75
//0x00000444 LBB0_93
0x45, 0x85, 0xd2, //0x00000444 testl %r10d, %r10d
0x0f, 0x88, 0x05, 0x03, 0x00, 0x00, //0x00000447 js LBB0_94
0x4f, 0x8d, 0x14, 0x30, //0x0000044d leaq (%r8,%r14), %r10
0x48, 0x89, 0xc8, //0x00000451 movq %rcx, %rax
0x48, 0xc1, 0xe8, 0x20, //0x00000454 shrq $32, %rax
0x0f, 0x85, 0x59, 0x03, 0x00, 0x00, //0x00000458 jne LBB0_151
0x4c, 0x89, 0xd6, //0x0000045e movq %r10, %rsi
0x81, 0xf9, 0x10, 0x27, 0x00, 0x00, //0x00000461 cmpl $10000, %ecx
0x0f, 0x83, 0xfc, 0x03, 0x00, 0x00, //0x00000467 jae LBB0_154
//0x0000046d LBB0_153
0x89, 0xca, //0x0000046d movl %ecx, %edx
0xe9, 0x52, 0x04, 0x00, 0x00, //0x0000046f jmp LBB0_156
//0x00000474 LBB0_67
0x48, 0xba, 0xfd, 0xce, 0x61, 0x84, 0x11, 0x77, 0xcc, 0xab, //0x00000474 movabsq $-6067343680855748867, %rdx
0x48, 0x89, 0xc8, //0x0000047e movq %rcx, %rax
0x48, 0xf7, 0xe2, //0x00000481 mulq %rdx
0x48, 0xc1, 0xea, 0x1a, //0x00000484 shrq $26, %rdx
0x69, 0xfa, 0x00, 0x1f, 0x0a, 0xfa, //0x00000488 imull $-100000000, %edx, %edi
0x01, 0xcf, //0x0000048e addl %ecx, %edi
0x0f, 0x84, 0x9e, 0x05, 0x00, 0x00, //0x00000490 je LBB0_68
0x89, 0xf9, //0x00000496 movl %edi, %ecx
0x41, 0xba, 0x59, 0x17, 0xb7, 0xd1, //0x00000498 movl $3518437209, %r10d
0x49, 0x0f, 0xaf, 0xca, //0x0000049e imulq %r10, %rcx
0x48, 0xc1, 0xe9, 0x2d, //0x000004a2 shrq $45, %rcx
0x69, 0xd9, 0x10, 0x27, 0x00, 0x00, //0x000004a6 imull $10000, %ecx, %ebx
0x29, 0xdf, //0x000004ac subl %ebx, %edi
0x48, 0x89, 0xc8, //0x000004ae movq %rcx, %rax
0x49, 0x0f, 0xaf, 0xc2, //0x000004b1 imulq %r10, %rax
0x48, 0xc1, 0xe8, 0x2d, //0x000004b5 shrq $45, %rax
0x69, 0xc0, 0x10, 0x27, 0x00, 0x00, //0x000004b9 imull $10000, %eax, %eax
0x29, 0xc1, //0x000004bf subl %eax, %ecx
0x0f, 0xb7, 0xc7, //0x000004c1 movzwl %di, %eax
0xc1, 0xe8, 0x02, //0x000004c4 shrl $2, %eax
0x69, 0xc0, 0x7b, 0x14, 0x00, 0x00, //0x000004c7 imull $5243, %eax, %eax
0xc1, 0xe8, 0x11, //0x000004cd shrl $17, %eax
0x6b, 0xd8, 0x64, //0x000004d0 imull $100, %eax, %ebx
0x29, 0xdf, //0x000004d3 subl %ebx, %edi
0x44, 0x0f, 0xb7, 0xd7, //0x000004d5 movzwl %di, %r10d
0x0f, 0xb7, 0xd9, //0x000004d9 movzwl %cx, %ebx
0xc1, 0xeb, 0x02, //0x000004dc shrl $2, %ebx
0x69, 0xdb, 0x7b, 0x14, 0x00, 0x00, //0x000004df imull $5243, %ebx, %ebx
0xc1, 0xeb, 0x11, //0x000004e5 shrl $17, %ebx
0x6b, 0xfb, 0x64, //0x000004e8 imull $100, %ebx, %edi
0x29, 0xf9, //0x000004eb subl %edi, %ecx
0x44, 0x0f, 0xb7, 0xd9, //0x000004ed movzwl %cx, %r11d
0x48, 0x8d, 0x3d, 0x18, 0x0f, 0x00, 0x00, //0x000004f1 leaq $3864(%rip), %rdi /* _Digits+0(%rip) */
0x42, 0x0f, 0xb7, 0x0c, 0x57, //0x000004f8 movzwl (%rdi,%r10,2), %ecx
0x66, 0x89, 0x4e, 0xfe, //0x000004fd movw %cx, $-2(%rsi)
0x0f, 0xb7, 0x04, 0x47, //0x00000501 movzwl (%rdi,%rax,2), %eax
0x66, 0x89, 0x46, 0xfc, //0x00000505 movw %ax, $-4(%rsi)
0x42, 0x0f, 0xb7, 0x04, 0x5f, //0x00000509 movzwl (%rdi,%r11,2), %eax
0x66, 0x89, 0x46, 0xfa, //0x0000050e movw %ax, $-6(%rsi)
0x0f, 0xb7, 0x04, 0x5f, //0x00000512 movzwl (%rdi,%rbx,2), %eax
0x66, 0x89, 0x46, 0xf8, //0x00000516 movw %ax, $-8(%rsi)
0x45, 0x31, 0xd2, //0x0000051a xorl %r10d, %r10d
0x48, 0x83, 0xc6, 0xf8, //0x0000051d addq $-8, %rsi
0x81, 0xfa, 0x10, 0x27, 0x00, 0x00, //0x00000521 cmpl $10000, %edx
0x0f, 0x82, 0x10, 0xff, 0xff, 0xff, //0x00000527 jb LBB0_72
0xe9, 0x18, 0x05, 0x00, 0x00, //0x0000052d jmp LBB0_73
//0x00000532 LBB0_11
0x49, 0xd3, 0xe8, //0x00000532 shrq %cl, %r8
0x48, 0xb8, 0x80, 0xff, 0xff, 0xff, 0x01, 0x00, 0x00, 0x00, //0x00000535 movabsq $8589934464, %rax
0x48, 0x05, 0x7f, 0xe4, 0x0b, 0x54, //0x0000053f addq $1410065535, %rax
0x49, 0x39, 0xc0, //0x00000545 cmpq %rax, %r8
0x0f, 0x86, 0x1f, 0x04, 0x00, 0x00, //0x00000548 jbe LBB0_20
0x4c, 0x89, 0xc0, //0x0000054e movq %r8, %rax
0x48, 0xc1, 0xe8, 0x0b, //0x00000551 shrq $11, %rax
0x41, 0xb9, 0x0b, 0x00, 0x00, 0x00, //0x00000555 movl $11, %r9d
0x48, 0x3d, 0xdd, 0x0e, 0xe9, 0x02, //0x0000055b cmpq $48828125, %rax
0x0f, 0x82, 0x7b, 0x00, 0x00, 0x00, //0x00000561 jb LBB0_18
0x4c, 0x89, 0xc0, //0x00000567 movq %r8, %rax
0x48, 0xc1, 0xe8, 0x0c, //0x0000056a shrq $12, %rax
0x41, 0xb9, 0x0c, 0x00, 0x00, 0x00, //0x0000056e movl $12, %r9d
0x48, 0x3d, 0x51, 0x4a, 0x8d, 0x0e, //0x00000574 cmpq $244140625, %rax
0x0f, 0x82, 0x62, 0x00, 0x00, 0x00, //0x0000057a jb LBB0_18
0x4c, 0x89, 0xc0, //0x00000580 movq %r8, %rax
0x48, 0xc1, 0xe8, 0x0d, //0x00000583 shrq $13, %rax
0x41, 0xb9, 0x0d, 0x00, 0x00, 0x00, //0x00000587 movl $13, %r9d
0x48, 0x3d, 0x95, 0x73, 0xc2, 0x48, //0x0000058d cmpq $1220703125, %rax
0x0f, 0x82, 0x49, 0x00, 0x00, 0x00, //0x00000593 jb LBB0_18
0x41, 0xb9, 0x0e, 0x00, 0x00, 0x00, //0x00000599 movl $14, %r9d
0x48, 0xb8, 0x00, 0x40, 0x7a, 0x10, 0xf3, 0x5a, 0x00, 0x00, //0x0000059f movabsq $100000000000000, %rax
0x49, 0x39, 0xc0, //0x000005a9 cmpq %rax, %r8
0x0f, 0x82, 0x30, 0x00, 0x00, 0x00, //0x000005ac jb LBB0_18
0x41, 0xb9, 0x0f, 0x00, 0x00, 0x00, //0x000005b2 movl $15, %r9d
0x48, 0xb8, 0x00, 0x80, 0xc6, 0xa4, 0x7e, 0x8d, 0x03, 0x00, //0x000005b8 movabsq $1000000000000000, %rax
0x49, 0x39, 0xc0, //0x000005c2 cmpq %rax, %r8
0x0f, 0x82, 0x17, 0x00, 0x00, 0x00, //0x000005c5 jb LBB0_18
0x48, 0xb8, 0x00, 0x00, 0xc1, 0x6f, 0xf2, 0x86, 0x23, 0x00, //0x000005cb movabsq $10000000000000000, %rax
0x49, 0x39, 0xc0, //0x000005d5 cmpq %rax, %r8
0x41, 0xb9, 0x11, 0x00, 0x00, 0x00, //0x000005d8 movl $17, %r9d
0x49, 0x83, 0xd9, 0x00, //0x000005de sbbq $0, %r9
//0x000005e2 LBB0_18
0x4c, 0x03, 0x4d, 0xc8, //0x000005e2 addq $-56(%rbp), %r9
//0x000005e6 LBB0_19
0x48, 0xba, 0xfd, 0xce, 0x61, 0x84, 0x11, 0x77, 0xcc, 0xab, //0x000005e6 movabsq $-6067343680855748867, %rdx
0x4c, 0x89, 0xc0, //0x000005f0 movq %r8, %rax
0x48, 0xf7, 0xe2, //0x000005f3 mulq %rdx
0x48, 0xc1, 0xea, 0x1a, //0x000005f6 shrq $26, %rdx
0x44, 0x69, 0xd2, 0x00, 0x1f, 0x0a, 0xfa, //0x000005fa imull $-100000000, %edx, %r10d
0x45, 0x01, 0xc2, //0x00000601 addl %r8d, %r10d
0xbe, 0x59, 0x17, 0xb7, 0xd1, //0x00000604 movl $3518437209, %esi
0x4c, 0x89, 0xd1, //0x00000609 movq %r10, %rcx
0x48, 0x0f, 0xaf, 0xce, //0x0000060c imulq %rsi, %rcx
0x48, 0xc1, 0xe9, 0x2d, //0x00000610 shrq $45, %rcx
0x69, 0xd9, 0x10, 0x27, 0x00, 0x00, //0x00000614 imull $10000, %ecx, %ebx
0x41, 0x29, 0xda, //0x0000061a subl %ebx, %r10d
0x48, 0x89, 0xc8, //0x0000061d movq %rcx, %rax
0x48, 0x0f, 0xaf, 0xc6, //0x00000620 imulq %rsi, %rax
0x48, 0xc1, 0xe8, 0x2d, //0x00000624 shrq $45, %rax
0x69, 0xc0, 0x10, 0x27, 0x00, 0x00, //0x00000628 imull $10000, %eax, %eax
0x29, 0xc1, //0x0000062e subl %eax, %ecx
0x41, 0x0f, 0xb7, 0xc2, //0x00000630 movzwl %r10w, %eax
0xc1, 0xe8, 0x02, //0x00000634 shrl $2, %eax
0x69, 0xc0, 0x7b, 0x14, 0x00, 0x00, //0x00000637 imull $5243, %eax, %eax
0xc1, 0xe8, 0x11, //0x0000063d shrl $17, %eax
0x6b, 0xf0, 0x64, //0x00000640 imull $100, %eax, %esi
0x41, 0x29, 0xf2, //0x00000643 subl %esi, %r10d
0x45, 0x0f, 0xb7, 0xd2, //0x00000646 movzwl %r10w, %r10d
0x0f, 0xb7, 0xf1, //0x0000064a movzwl %cx, %esi
0xc1, 0xee, 0x02, //0x0000064d shrl $2, %esi
0x69, 0xf6, 0x7b, 0x14, 0x00, 0x00, //0x00000650 imull $5243, %esi, %esi
0xc1, 0xee, 0x11, //0x00000656 shrl $17, %esi
0x6b, 0xde, 0x64, //0x00000659 imull $100, %esi, %ebx
0x29, 0xd9, //0x0000065c subl %ebx, %ecx
0x44, 0x0f, 0xb7, 0xd9, //0x0000065e movzwl %cx, %r11d
0x48, 0x8d, 0x1d, 0xa7, 0x0d, 0x00, 0x00, //0x00000662 leaq $3495(%rip), %rbx /* _Digits+0(%rip) */
0x42, 0x0f, 0xb7, 0x0c, 0x53, //0x00000669 movzwl (%rbx,%r10,2), %ecx
0x66, 0x41, 0x89, 0x49, 0xfe, //0x0000066e movw %cx, $-2(%r9)
0x0f, 0xb7, 0x04, 0x43, //0x00000673 movzwl (%rbx,%rax,2), %eax
0x66, 0x41, 0x89, 0x41, 0xfc, //0x00000677 movw %ax, $-4(%r9)
0x42, 0x0f, 0xb7, 0x04, 0x5b, //0x0000067c movzwl (%rbx,%r11,2), %eax
0x66, 0x41, 0x89, 0x41, 0xfa, //0x00000681 movw %ax, $-6(%r9)
0x49, 0x8d, 0x41, 0xf8, //0x00000686 leaq $-8(%r9), %rax
0x0f, 0xb7, 0x0c, 0x73, //0x0000068a movzwl (%rbx,%rsi,2), %ecx
0x66, 0x41, 0x89, 0x49, 0xf8, //0x0000068e movw %cx, $-8(%r9)
0x49, 0x89, 0xd0, //0x00000693 movq %rdx, %r8
0x41, 0x81, 0xf8, 0x10, 0x27, 0x00, 0x00, //0x00000696 cmpl $10000, %r8d
0x0f, 0x82, 0x70, 0x03, 0x00, 0x00, //0x0000069d jb LBB0_32
//0x000006a3 LBB0_33
0x41, 0xba, 0x59, 0x17, 0xb7, 0xd1, //0x000006a3 movl $3518437209, %r10d
0x4c, 0x8d, 0x1d, 0x60, 0x0d, 0x00, 0x00, //0x000006a9 leaq $3424(%rip), %r11 /* _Digits+0(%rip) */
//0x000006b0 .p2align 4, 0x90
//0x000006b0 LBB0_34
0x44, 0x89, 0xc2, //0x000006b0 movl %r8d, %edx
0x49, 0x0f, 0xaf, 0xd2, //0x000006b3 imulq %r10, %rdx
0x48, 0xc1, 0xea, 0x2d, //0x000006b7 shrq $45, %rdx
0x69, 0xca, 0xf0, 0xd8, 0xff, 0xff, //0x000006bb imull $-10000, %edx, %ecx
0x44, 0x01, 0xc1, //0x000006c1 addl %r8d, %ecx
0x48, 0x69, 0xf1, 0x1f, 0x85, 0xeb, 0x51, //0x000006c4 imulq $1374389535, %rcx, %rsi
0x48, 0xc1, 0xee, 0x25, //0x000006cb shrq $37, %rsi
0x6b, 0xde, 0x64, //0x000006cf imull $100, %esi, %ebx
0x29, 0xd9, //0x000006d2 subl %ebx, %ecx
0x41, 0x0f, 0xb7, 0x0c, 0x4b, //0x000006d4 movzwl (%r11,%rcx,2), %ecx
0x66, 0x89, 0x48, 0xfe, //0x000006d9 movw %cx, $-2(%rax)
0x41, 0x0f, 0xb7, 0x0c, 0x73, //0x000006dd movzwl (%r11,%rsi,2), %ecx
0x66, 0x89, 0x48, 0xfc, //0x000006e2 movw %cx, $-4(%rax)
0x48, 0x83, 0xc0, 0xfc, //0x000006e6 addq $-4, %rax
0x41, 0x81, 0xf8, 0xff, 0xe0, 0xf5, 0x05, //0x000006ea cmpl $99999999, %r8d
0x41, 0x89, 0xd0, //0x000006f1 movl %edx, %r8d
0x0f, 0x87, 0xb6, 0xff, 0xff, 0xff, //0x000006f4 ja LBB0_34
0x83, 0xfa, 0x64, //0x000006fa cmpl $100, %edx
0x0f, 0x82, 0x2c, 0x00, 0x00, 0x00, //0x000006fd jb LBB0_37
//0x00000703 LBB0_36
0x0f, 0xb7, 0xca, //0x00000703 movzwl %dx, %ecx
0xc1, 0xe9, 0x02, //0x00000706 shrl $2, %ecx
0x69, 0xc9, 0x7b, 0x14, 0x00, 0x00, //0x00000709 imull $5243, %ecx, %ecx
0xc1, 0xe9, 0x11, //0x0000070f shrl $17, %ecx
0x6b, 0xf1, 0x64, //0x00000712 imull $100, %ecx, %esi
0x29, 0xf2, //0x00000715 subl %esi, %edx
0x0f, 0xb7, 0xd2, //0x00000717 movzwl %dx, %edx
0x48, 0x8d, 0x35, 0xef, 0x0c, 0x00, 0x00, //0x0000071a leaq $3311(%rip), %rsi /* _Digits+0(%rip) */
0x0f, 0xb7, 0x14, 0x56, //0x00000721 movzwl (%rsi,%rdx,2), %edx
0x66, 0x89, 0x50, 0xfe, //0x00000725 movw %dx, $-2(%rax)
0x48, 0x83, 0xc0, 0xfe, //0x00000729 addq $-2, %rax
0x89, 0xca, //0x0000072d movl %ecx, %edx
//0x0000072f LBB0_37
0x48, 0x8b, 0x4d, 0xc8, //0x0000072f movq $-56(%rbp), %rcx
0x83, 0xfa, 0x0a, //0x00000733 cmpl $10, %edx
0x0f, 0x82, 0xe8, 0x02, 0x00, 0x00, //0x00000736 jb LBB0_39
0x89, 0xd1, //0x0000073c movl %edx, %ecx
0x48, 0x8d, 0x15, 0xcb, 0x0c, 0x00, 0x00, //0x0000073e leaq $3275(%rip), %rdx /* _Digits+0(%rip) */
0x0f, 0xb7, 0x0c, 0x4a, //0x00000745 movzwl (%rdx,%rcx,2), %ecx
0x66, 0x89, 0x48, 0xfe, //0x00000749 movw %cx, $-2(%rax)
0xe9, 0xd7, 0x02, 0x00, 0x00, //0x0000074d jmp LBB0_40
//0x00000752 LBB0_94
0x45, 0x85, 0xc9, //0x00000752 testl %r9d, %r9d
0x0f, 0x8f, 0x96, 0x07, 0x00, 0x00, //0x00000755 jg LBB0_107
0x66, 0x41, 0xc7, 0x00, 0x30, 0x2e, //0x0000075b movw $11824, (%r8)
0x49, 0x83, 0xc0, 0x02, //0x00000761 addq $2, %r8
0x45, 0x85, 0xc9, //0x00000765 testl %r9d, %r9d
0x0f, 0x89, 0x83, 0x07, 0x00, 0x00, //0x00000768 jns LBB0_107
0x45, 0x89, 0xdf, //0x0000076e movl %r11d, %r15d
0x41, 0xf7, 0xd7, //0x00000771 notl %r15d
0x45, 0x29, 0xd7, //0x00000774 subl %r10d, %r15d
0x31, 0xc0, //0x00000777 xorl %eax, %eax
0x41, 0x83, 0xff, 0x7f, //0x00000779 cmpl $127, %r15d
0x0f, 0x82, 0x50, 0x07, 0x00, 0x00, //0x0000077d jb LBB0_105
0x49, 0x83, 0xc7, 0x01, //0x00000783 addq $1, %r15
0x4c, 0x89, 0xf8, //0x00000787 movq %r15, %rax
0x48, 0x21, 0xd0, //0x0000078a andq %rdx, %rax
0x48, 0x8d, 0x50, 0x80, //0x0000078d leaq $-128(%rax), %rdx
0x48, 0x89, 0xd3, //0x00000791 movq %rdx, %rbx
0x48, 0xc1, 0xeb, 0x07, //0x00000794 shrq $7, %rbx
0x48, 0x83, 0xc3, 0x01, //0x00000798 addq $1, %rbx
0x41, 0x89, 0xdc, //0x0000079c movl %ebx, %r12d
0x41, 0x83, 0xe4, 0x03, //0x0000079f andl $3, %r12d
0x48, 0x81, 0xfa, 0x80, 0x01, 0x00, 0x00, //0x000007a3 cmpq $384, %rdx
0x0f, 0x83, 0x1d, 0x06, 0x00, 0x00, //0x000007aa jae LBB0_99
0x31, 0xd2, //0x000007b0 xorl %edx, %edx
0xe9, 0xc7, 0x06, 0x00, 0x00, //0x000007b2 jmp LBB0_101
//0x000007b7 LBB0_151
0x48, 0xba, 0xfd, 0xce, 0x61, 0x84, 0x11, 0x77, 0xcc, 0xab, //0x000007b7 movabsq $-6067343680855748867, %rdx
0x48, 0x89, 0xc8, //0x000007c1 movq %rcx, %rax
0x48, 0xf7, 0xe2, //0x000007c4 mulq %rdx
0x48, 0xc1, 0xea, 0x1a, //0x000007c7 shrq $26, %rdx
0x69, 0xf2, 0x00, 0x1f, 0x0a, 0xfa, //0x000007cb imull $-100000000, %edx, %esi
0x01, 0xce, //0x000007d1 addl %ecx, %esi
0xb9, 0x59, 0x17, 0xb7, 0xd1, //0x000007d3 movl $3518437209, %ecx
0x48, 0x89, 0xf0, //0x000007d8 movq %rsi, %rax
0x48, 0x0f, 0xaf, 0xc1, //0x000007db imulq %rcx, %rax
0x48, 0xc1, 0xe8, 0x2d, //0x000007df shrq $45, %rax
0x69, 0xf8, 0x10, 0x27, 0x00, 0x00, //0x000007e3 imull $10000, %eax, %edi
0x29, 0xfe, //0x000007e9 subl %edi, %esi
0x48, 0x89, 0xc7, //0x000007eb movq %rax, %rdi
0x48, 0x0f, 0xaf, 0xf9, //0x000007ee imulq %rcx, %rdi
0x48, 0xc1, 0xef, 0x2d, //0x000007f2 shrq $45, %rdi
0x69, 0xcf, 0x10, 0x27, 0x00, 0x00, //0x000007f6 imull $10000, %edi, %ecx
0x29, 0xc8, //0x000007fc subl %ecx, %eax
0x0f, 0xb7, 0xce, //0x000007fe movzwl %si, %ecx
0xc1, 0xe9, 0x02, //0x00000801 shrl $2, %ecx
0x69, 0xc9, 0x7b, 0x14, 0x00, 0x00, //0x00000804 imull $5243, %ecx, %ecx
0xc1, 0xe9, 0x11, //0x0000080a shrl $17, %ecx
0x6b, 0xf9, 0x64, //0x0000080d imull $100, %ecx, %edi
0x29, 0xfe, //0x00000810 subl %edi, %esi
0x0f, 0xb7, 0xf6, //0x00000812 movzwl %si, %esi
0x0f, 0xb7, 0xf8, //0x00000815 movzwl %ax, %edi
0xc1, 0xef, 0x02, //0x00000818 shrl $2, %edi
0x69, 0xff, 0x7b, 0x14, 0x00, 0x00, //0x0000081b imull $5243, %edi, %edi
0xc1, 0xef, 0x11, //0x00000821 shrl $17, %edi
0x6b, 0xdf, 0x64, //0x00000824 imull $100, %edi, %ebx
0x29, 0xd8, //0x00000827 subl %ebx, %eax
0x0f, 0xb7, 0xc0, //0x00000829 movzwl %ax, %eax
0x48, 0x8d, 0x1d, 0xdd, 0x0b, 0x00, 0x00, //0x0000082c leaq $3037(%rip), %rbx /* _Digits+0(%rip) */
0x0f, 0xb7, 0x34, 0x73, //0x00000833 movzwl (%rbx,%rsi,2), %esi
0x66, 0x41, 0x89, 0x72, 0xfe, //0x00000837 movw %si, $-2(%r10)
0x0f, 0xb7, 0x0c, 0x4b, //0x0000083c movzwl (%rbx,%rcx,2), %ecx
0x66, 0x41, 0x89, 0x4a, 0xfc, //0x00000840 movw %cx, $-4(%r10)
0x0f, 0xb7, 0x04, 0x43, //0x00000845 movzwl (%rbx,%rax,2), %eax
0x66, 0x41, 0x89, 0x42, 0xfa, //0x00000849 movw %ax, $-6(%r10)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/vsigned.go | vendor/github.com/bytedance/sonic/internal/native/avx2/vsigned.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package avx2
import (
`unsafe`
`github.com/bytedance/sonic/internal/native/types`
`github.com/bytedance/sonic/internal/rt`
)
var F_vsigned func(s unsafe.Pointer, p unsafe.Pointer, v unsafe.Pointer)
var S_vsigned uintptr
//go:nosplit
func vsigned(s *string, p *int, v *types.JsonState) {
F_vsigned(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(v)))
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/skip_one_fast_text_amd64.go | vendor/github.com/bytedance/sonic/internal/native/avx2/skip_one_fast_text_amd64.go | // +build amd64
// Code generated by asm2asm, DO NOT EDIT.
package avx2
var _text_skip_one_fast = []byte{
// .p2align 5, 0x00
// LCPI0_0
0x20, // .byte 32
0x00, //0x00000001 .byte 0
0x00, //0x00000002 .byte 0
0x00, //0x00000003 .byte 0
0x00, //0x00000004 .byte 0
0x00, //0x00000005 .byte 0
0x00, //0x00000006 .byte 0
0x00, //0x00000007 .byte 0
0x00, //0x00000008 .byte 0
0x09, //0x00000009 .byte 9
0x0a, //0x0000000a .byte 10
0x00, //0x0000000b .byte 0
0x00, //0x0000000c .byte 0
0x0d, //0x0000000d .byte 13
0x00, //0x0000000e .byte 0
0x00, //0x0000000f .byte 0
0x20, //0x00000010 .byte 32
0x00, //0x00000011 .byte 0
0x00, //0x00000012 .byte 0
0x00, //0x00000013 .byte 0
0x00, //0x00000014 .byte 0
0x00, //0x00000015 .byte 0
0x00, //0x00000016 .byte 0
0x00, //0x00000017 .byte 0
0x00, //0x00000018 .byte 0
0x09, //0x00000019 .byte 9
0x0a, //0x0000001a .byte 10
0x00, //0x0000001b .byte 0
0x00, //0x0000001c .byte 0
0x0d, //0x0000001d .byte 13
0x00, //0x0000001e .byte 0
0x00, //0x0000001f .byte 0
//0x00000020 LCPI0_1
0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, //0x00000020 QUAD $0x2c2c2c2c2c2c2c2c; QUAD $0x2c2c2c2c2c2c2c2c // .space 16, ',,,,,,,,,,,,,,,,'
0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, //0x00000030 QUAD $0x2c2c2c2c2c2c2c2c; QUAD $0x2c2c2c2c2c2c2c2c // .space 16, ',,,,,,,,,,,,,,,,'
//0x00000040 LCPI0_2
0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, //0x00000040 QUAD $0xdfdfdfdfdfdfdfdf; QUAD $0xdfdfdfdfdfdfdfdf // .space 16, '\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf'
0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, //0x00000050 QUAD $0xdfdfdfdfdfdfdfdf; QUAD $0xdfdfdfdfdfdfdfdf // .space 16, '\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf'
//0x00000060 LCPI0_3
0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, //0x00000060 QUAD $0x5d5d5d5d5d5d5d5d; QUAD $0x5d5d5d5d5d5d5d5d // .space 16, ']]]]]]]]]]]]]]]]'
0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, //0x00000070 QUAD $0x5d5d5d5d5d5d5d5d; QUAD $0x5d5d5d5d5d5d5d5d // .space 16, ']]]]]]]]]]]]]]]]'
//0x00000080 LCPI0_7
0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, //0x00000080 QUAD $0x2222222222222222; QUAD $0x2222222222222222 // .space 16, '""""""""""""""""'
0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, //0x00000090 QUAD $0x2222222222222222; QUAD $0x2222222222222222 // .space 16, '""""""""""""""""'
//0x000000a0 LCPI0_8
0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, //0x000000a0 QUAD $0x5c5c5c5c5c5c5c5c; QUAD $0x5c5c5c5c5c5c5c5c // .space 16, '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, //0x000000b0 QUAD $0x5c5c5c5c5c5c5c5c; QUAD $0x5c5c5c5c5c5c5c5c // .space 16, '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
//0x000000c0 LCPI0_9
0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, //0x000000c0 QUAD $0x7b7b7b7b7b7b7b7b; QUAD $0x7b7b7b7b7b7b7b7b // .space 16, '{{{{{{{{{{{{{{{{'
0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, //0x000000d0 QUAD $0x7b7b7b7b7b7b7b7b; QUAD $0x7b7b7b7b7b7b7b7b // .space 16, '{{{{{{{{{{{{{{{{'
//0x000000e0 LCPI0_10
0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, //0x000000e0 QUAD $0x7d7d7d7d7d7d7d7d; QUAD $0x7d7d7d7d7d7d7d7d // .space 16, '}}}}}}}}}}}}}}}}'
0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, //0x000000f0 QUAD $0x7d7d7d7d7d7d7d7d; QUAD $0x7d7d7d7d7d7d7d7d // .space 16, '}}}}}}}}}}}}}}}}'
//0x00000100 LCPI0_11
0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, //0x00000100 QUAD $0x5b5b5b5b5b5b5b5b; QUAD $0x5b5b5b5b5b5b5b5b // .space 16, '[[[[[[[[[[[[[[[['
0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, 0x5b, //0x00000110 QUAD $0x5b5b5b5b5b5b5b5b; QUAD $0x5b5b5b5b5b5b5b5b // .space 16, '[[[[[[[[[[[[[[[['
//0x00000120 .p2align 4, 0x00
//0x00000120 LCPI0_4
0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, //0x00000120 QUAD $0x2c2c2c2c2c2c2c2c; QUAD $0x2c2c2c2c2c2c2c2c // .space 16, ',,,,,,,,,,,,,,,,'
//0x00000130 LCPI0_5
0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, //0x00000130 QUAD $0xdfdfdfdfdfdfdfdf; QUAD $0xdfdfdfdfdfdfdfdf // .space 16, '\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf\xdf'
//0x00000140 LCPI0_6
0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, //0x00000140 QUAD $0x5d5d5d5d5d5d5d5d; QUAD $0x5d5d5d5d5d5d5d5d // .space 16, ']]]]]]]]]]]]]]]]'
//0x00000150 .p2align 4, 0x90
//0x00000150 _skip_one_fast
0x55, //0x00000150 pushq %rbp
0x48, 0x89, 0xe5, //0x00000151 movq %rsp, %rbp
0x41, 0x57, //0x00000154 pushq %r15
0x41, 0x56, //0x00000156 pushq %r14
0x41, 0x55, //0x00000158 pushq %r13
0x41, 0x54, //0x0000015a pushq %r12
0x53, //0x0000015c pushq %rbx
0x48, 0x81, 0xec, 0x80, 0x00, 0x00, 0x00, //0x0000015d subq $128, %rsp
0x4c, 0x8b, 0x37, //0x00000164 movq (%rdi), %r14
0x48, 0x8b, 0x5f, 0x08, //0x00000167 movq $8(%rdi), %rbx
0x48, 0x8b, 0x06, //0x0000016b movq (%rsi), %rax
0x48, 0x39, 0xd8, //0x0000016e cmpq %rbx, %rax
0x0f, 0x83, 0x2a, 0x00, 0x00, 0x00, //0x00000171 jae LBB0_5
0x41, 0x8a, 0x0c, 0x06, //0x00000177 movb (%r14,%rax), %cl
0x80, 0xf9, 0x0d, //0x0000017b cmpb $13, %cl
0x0f, 0x84, 0x1d, 0x00, 0x00, 0x00, //0x0000017e je LBB0_5
0x80, 0xf9, 0x20, //0x00000184 cmpb $32, %cl
0x0f, 0x84, 0x14, 0x00, 0x00, 0x00, //0x00000187 je LBB0_5
0x80, 0xc1, 0xf7, //0x0000018d addb $-9, %cl
0x80, 0xf9, 0x01, //0x00000190 cmpb $1, %cl
0x0f, 0x86, 0x08, 0x00, 0x00, 0x00, //0x00000193 jbe LBB0_5
0x48, 0x89, 0xc1, //0x00000199 movq %rax, %rcx
0xe9, 0x7f, 0x01, 0x00, 0x00, //0x0000019c jmp LBB0_35
//0x000001a1 LBB0_5
0x48, 0x8d, 0x48, 0x01, //0x000001a1 leaq $1(%rax), %rcx
0x48, 0x39, 0xd9, //0x000001a5 cmpq %rbx, %rcx
0x0f, 0x83, 0x22, 0x00, 0x00, 0x00, //0x000001a8 jae LBB0_9
0x41, 0x8a, 0x14, 0x0e, //0x000001ae movb (%r14,%rcx), %dl
0x80, 0xfa, 0x0d, //0x000001b2 cmpb $13, %dl
0x0f, 0x84, 0x15, 0x00, 0x00, 0x00, //0x000001b5 je LBB0_9
0x80, 0xfa, 0x20, //0x000001bb cmpb $32, %dl
0x0f, 0x84, 0x0c, 0x00, 0x00, 0x00, //0x000001be je LBB0_9
0x80, 0xc2, 0xf7, //0x000001c4 addb $-9, %dl
0x80, 0xfa, 0x01, //0x000001c7 cmpb $1, %dl
0x0f, 0x87, 0x50, 0x01, 0x00, 0x00, //0x000001ca ja LBB0_35
//0x000001d0 LBB0_9
0x48, 0x8d, 0x48, 0x02, //0x000001d0 leaq $2(%rax), %rcx
0x48, 0x39, 0xd9, //0x000001d4 cmpq %rbx, %rcx
0x0f, 0x83, 0x22, 0x00, 0x00, 0x00, //0x000001d7 jae LBB0_13
0x41, 0x8a, 0x14, 0x0e, //0x000001dd movb (%r14,%rcx), %dl
0x80, 0xfa, 0x0d, //0x000001e1 cmpb $13, %dl
0x0f, 0x84, 0x15, 0x00, 0x00, 0x00, //0x000001e4 je LBB0_13
0x80, 0xfa, 0x20, //0x000001ea cmpb $32, %dl
0x0f, 0x84, 0x0c, 0x00, 0x00, 0x00, //0x000001ed je LBB0_13
0x80, 0xc2, 0xf7, //0x000001f3 addb $-9, %dl
0x80, 0xfa, 0x01, //0x000001f6 cmpb $1, %dl
0x0f, 0x87, 0x21, 0x01, 0x00, 0x00, //0x000001f9 ja LBB0_35
//0x000001ff LBB0_13
0x48, 0x8d, 0x48, 0x03, //0x000001ff leaq $3(%rax), %rcx
0x48, 0x39, 0xd9, //0x00000203 cmpq %rbx, %rcx
0x0f, 0x83, 0x22, 0x00, 0x00, 0x00, //0x00000206 jae LBB0_17
0x41, 0x8a, 0x14, 0x0e, //0x0000020c movb (%r14,%rcx), %dl
0x80, 0xfa, 0x0d, //0x00000210 cmpb $13, %dl
0x0f, 0x84, 0x15, 0x00, 0x00, 0x00, //0x00000213 je LBB0_17
0x80, 0xfa, 0x20, //0x00000219 cmpb $32, %dl
0x0f, 0x84, 0x0c, 0x00, 0x00, 0x00, //0x0000021c je LBB0_17
0x80, 0xc2, 0xf7, //0x00000222 addb $-9, %dl
0x80, 0xfa, 0x01, //0x00000225 cmpb $1, %dl
0x0f, 0x87, 0xf2, 0x00, 0x00, 0x00, //0x00000228 ja LBB0_35
//0x0000022e LBB0_17
0x48, 0x8d, 0x48, 0x04, //0x0000022e leaq $4(%rax), %rcx
0x48, 0x89, 0xda, //0x00000232 movq %rbx, %rdx
0x48, 0x29, 0xca, //0x00000235 subq %rcx, %rdx
0x0f, 0x86, 0xbb, 0x00, 0x00, 0x00, //0x00000238 jbe LBB0_18
0x48, 0x83, 0xfa, 0x20, //0x0000023e cmpq $32, %rdx
0x0f, 0x82, 0xa8, 0x09, 0x00, 0x00, //0x00000242 jb LBB0_20
0x48, 0xc7, 0xc2, 0xfc, 0xff, 0xff, 0xff, //0x00000248 movq $-4, %rdx
0x48, 0x29, 0xc2, //0x0000024f subq %rax, %rdx
0xc5, 0xfe, 0x6f, 0x05, 0xa6, 0xfd, 0xff, 0xff, //0x00000252 vmovdqu $-602(%rip), %ymm0 /* LCPI0_0+0(%rip) */
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x0000025a .p2align 4, 0x90
//0x00000260 LBB0_29
0xc4, 0xc1, 0x7e, 0x6f, 0x0c, 0x0e, //0x00000260 vmovdqu (%r14,%rcx), %ymm1
0xc4, 0xe2, 0x7d, 0x00, 0xd1, //0x00000266 vpshufb %ymm1, %ymm0, %ymm2
0xc5, 0xf5, 0x74, 0xca, //0x0000026b vpcmpeqb %ymm2, %ymm1, %ymm1
0xc5, 0xfd, 0xd7, 0xc1, //0x0000026f vpmovmskb %ymm1, %eax
0x83, 0xf8, 0xff, //0x00000273 cmpl $-1, %eax
0x0f, 0x85, 0x8c, 0x00, 0x00, 0x00, //0x00000276 jne LBB0_30
0x48, 0x83, 0xc1, 0x20, //0x0000027c addq $32, %rcx
0x48, 0x8d, 0x04, 0x13, //0x00000280 leaq (%rbx,%rdx), %rax
0x48, 0x83, 0xc0, 0xe0, //0x00000284 addq $-32, %rax
0x48, 0x83, 0xc2, 0xe0, //0x00000288 addq $-32, %rdx
0x48, 0x83, 0xf8, 0x1f, //0x0000028c cmpq $31, %rax
0x0f, 0x87, 0xca, 0xff, 0xff, 0xff, //0x00000290 ja LBB0_29
0x4c, 0x89, 0xf1, //0x00000296 movq %r14, %rcx
0x48, 0x29, 0xd1, //0x00000299 subq %rdx, %rcx
0x48, 0x01, 0xda, //0x0000029c addq %rbx, %rdx
0x48, 0x85, 0xd2, //0x0000029f testq %rdx, %rdx
0x0f, 0x84, 0x39, 0x00, 0x00, 0x00, //0x000002a2 je LBB0_33
//0x000002a8 LBB0_24
0x4c, 0x8d, 0x04, 0x11, //0x000002a8 leaq (%rcx,%rdx), %r8
0x45, 0x31, 0xd2, //0x000002ac xorl %r10d, %r10d
0x49, 0xb9, 0x00, 0x26, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, //0x000002af movabsq $4294977024, %r9
//0x000002b9 LBB0_25
0x42, 0x0f, 0xbe, 0x04, 0x11, //0x000002b9 movsbl (%rcx,%r10), %eax
0x83, 0xf8, 0x20, //0x000002be cmpl $32, %eax
0x0f, 0x87, 0x02, 0x09, 0x00, 0x00, //0x000002c1 ja LBB0_27
0x49, 0x0f, 0xa3, 0xc1, //0x000002c7 btq %rax, %r9
0x0f, 0x83, 0xf8, 0x08, 0x00, 0x00, //0x000002cb jae LBB0_27
0x49, 0x83, 0xc2, 0x01, //0x000002d1 addq $1, %r10
0x4c, 0x39, 0xd2, //0x000002d5 cmpq %r10, %rdx
0x0f, 0x85, 0xdb, 0xff, 0xff, 0xff, //0x000002d8 jne LBB0_25
0x4c, 0x89, 0xc1, //0x000002de movq %r8, %rcx
//0x000002e1 LBB0_33
0x4c, 0x29, 0xf1, //0x000002e1 subq %r14, %rcx
0x48, 0xc7, 0xc0, 0xff, 0xff, 0xff, 0xff, //0x000002e4 movq $-1, %rax
0x48, 0x39, 0xd9, //0x000002eb cmpq %rbx, %rcx
0x0f, 0x82, 0x2c, 0x00, 0x00, 0x00, //0x000002ee jb LBB0_35
0xe9, 0x7f, 0x01, 0x00, 0x00, //0x000002f4 jmp LBB0_138
//0x000002f9 LBB0_18
0x48, 0x89, 0x0e, //0x000002f9 movq %rcx, (%rsi)
0x48, 0xc7, 0xc0, 0xff, 0xff, 0xff, 0xff, //0x000002fc movq $-1, %rax
0xe9, 0x70, 0x01, 0x00, 0x00, //0x00000303 jmp LBB0_138
//0x00000308 LBB0_30
0xf7, 0xd0, //0x00000308 notl %eax
0x0f, 0xbc, 0xc8, //0x0000030a bsfl %eax, %ecx
0x48, 0x29, 0xd1, //0x0000030d subq %rdx, %rcx
0x48, 0xc7, 0xc0, 0xff, 0xff, 0xff, 0xff, //0x00000310 movq $-1, %rax
0x48, 0x39, 0xd9, //0x00000317 cmpq %rbx, %rcx
0x0f, 0x83, 0x58, 0x01, 0x00, 0x00, //0x0000031a jae LBB0_138
//0x00000320 LBB0_35
0x48, 0x8d, 0x51, 0x01, //0x00000320 leaq $1(%rcx), %rdx
0x48, 0x89, 0x16, //0x00000324 movq %rdx, (%rsi)
0x41, 0x0f, 0xbe, 0x1c, 0x0e, //0x00000327 movsbl (%r14,%rcx), %ebx
0x83, 0xfb, 0x7b, //0x0000032c cmpl $123, %ebx
0x0f, 0x87, 0x68, 0x01, 0x00, 0x00, //0x0000032f ja LBB0_134
0x48, 0xc7, 0xc0, 0xff, 0xff, 0xff, 0xff, //0x00000335 movq $-1, %rax
0x4c, 0x8d, 0x05, 0x15, 0x09, 0x00, 0x00, //0x0000033c leaq $2325(%rip), %r8 /* LJTI0_0+0(%rip) */
0x49, 0x63, 0x1c, 0x98, //0x00000343 movslq (%r8,%rbx,4), %rbx
0x4c, 0x01, 0xc3, //0x00000347 addq %r8, %rbx
0xff, 0xe3, //0x0000034a jmpq *%rbx
//0x0000034c LBB0_110
0x48, 0x8b, 0x7f, 0x08, //0x0000034c movq $8(%rdi), %rdi
0x48, 0x89, 0xf8, //0x00000350 movq %rdi, %rax
0x48, 0x29, 0xd0, //0x00000353 subq %rdx, %rax
0x48, 0x83, 0xf8, 0x20, //0x00000356 cmpq $32, %rax
0x0f, 0x82, 0xa1, 0x08, 0x00, 0x00, //0x0000035a jb LBB0_111
0x48, 0x89, 0xc8, //0x00000360 movq %rcx, %rax
0x48, 0xf7, 0xd0, //0x00000363 notq %rax
0xc5, 0xfe, 0x6f, 0x05, 0xb2, 0xfc, 0xff, 0xff, //0x00000366 vmovdqu $-846(%rip), %ymm0 /* LCPI0_1+0(%rip) */
0xc5, 0xfe, 0x6f, 0x0d, 0xca, 0xfc, 0xff, 0xff, //0x0000036e vmovdqu $-822(%rip), %ymm1 /* LCPI0_2+0(%rip) */
0xc5, 0xfe, 0x6f, 0x15, 0xe2, 0xfc, 0xff, 0xff, //0x00000376 vmovdqu $-798(%rip), %ymm2 /* LCPI0_3+0(%rip) */
0x90, 0x90, //0x0000037e .p2align 4, 0x90
//0x00000380 LBB0_119
0xc4, 0xc1, 0x7e, 0x6f, 0x1c, 0x16, //0x00000380 vmovdqu (%r14,%rdx), %ymm3
0xc5, 0xe5, 0x74, 0xe0, //0x00000386 vpcmpeqb %ymm0, %ymm3, %ymm4
0xc5, 0xe5, 0xdb, 0xd9, //0x0000038a vpand %ymm1, %ymm3, %ymm3
0xc5, 0xe5, 0x74, 0xda, //0x0000038e vpcmpeqb %ymm2, %ymm3, %ymm3
0xc5, 0xe5, 0xeb, 0xdc, //0x00000392 vpor %ymm4, %ymm3, %ymm3
0xc5, 0xfd, 0xd7, 0xdb, //0x00000396 vpmovmskb %ymm3, %ebx
0x85, 0xdb, //0x0000039a testl %ebx, %ebx
0x0f, 0x85, 0xca, 0x00, 0x00, 0x00, //0x0000039c jne LBB0_120
0x48, 0x83, 0xc2, 0x20, //0x000003a2 addq $32, %rdx
0x48, 0x8d, 0x1c, 0x07, //0x000003a6 leaq (%rdi,%rax), %rbx
0x48, 0x83, 0xc3, 0xe0, //0x000003aa addq $-32, %rbx
0x48, 0x83, 0xc0, 0xe0, //0x000003ae addq $-32, %rax
0x48, 0x83, 0xfb, 0x1f, //0x000003b2 cmpq $31, %rbx
0x0f, 0x87, 0xc4, 0xff, 0xff, 0xff, //0x000003b6 ja LBB0_119
0x4c, 0x89, 0xf2, //0x000003bc movq %r14, %rdx
0x48, 0x29, 0xc2, //0x000003bf subq %rax, %rdx
0x48, 0x01, 0xc7, //0x000003c2 addq %rax, %rdi
0x48, 0x89, 0xf8, //0x000003c5 movq %rdi, %rax
0x48, 0x83, 0xf8, 0x10, //0x000003c8 cmpq $16, %rax
0x0f, 0x82, 0x54, 0x00, 0x00, 0x00, //0x000003cc jb LBB0_122
//0x000003d2 LBB0_115
0x4c, 0x89, 0xf7, //0x000003d2 movq %r14, %rdi
0x48, 0x29, 0xd7, //0x000003d5 subq %rdx, %rdi
0xc5, 0xfa, 0x6f, 0x05, 0x40, 0xfd, 0xff, 0xff, //0x000003d8 vmovdqu $-704(%rip), %xmm0 /* LCPI0_4+0(%rip) */
0xc5, 0xfa, 0x6f, 0x0d, 0x48, 0xfd, 0xff, 0xff, //0x000003e0 vmovdqu $-696(%rip), %xmm1 /* LCPI0_5+0(%rip) */
0xc5, 0xfa, 0x6f, 0x15, 0x50, 0xfd, 0xff, 0xff, //0x000003e8 vmovdqu $-688(%rip), %xmm2 /* LCPI0_6+0(%rip) */
//0x000003f0 LBB0_116
0xc5, 0xfa, 0x6f, 0x1a, //0x000003f0 vmovdqu (%rdx), %xmm3
0xc5, 0xe1, 0x74, 0xe0, //0x000003f4 vpcmpeqb %xmm0, %xmm3, %xmm4
0xc5, 0xe1, 0xdb, 0xd9, //0x000003f8 vpand %xmm1, %xmm3, %xmm3
0xc5, 0xe1, 0x74, 0xda, //0x000003fc vpcmpeqb %xmm2, %xmm3, %xmm3
0xc5, 0xe1, 0xeb, 0xdc, //0x00000400 vpor %xmm4, %xmm3, %xmm3
0xc5, 0xf9, 0xd7, 0xdb, //0x00000404 vpmovmskb %xmm3, %ebx
0x85, 0xdb, //0x00000408 testl %ebx, %ebx
0x0f, 0x85, 0xa7, 0x07, 0x00, 0x00, //0x0000040a jne LBB0_117
0x48, 0x83, 0xc2, 0x10, //0x00000410 addq $16, %rdx
0x48, 0x83, 0xc0, 0xf0, //0x00000414 addq $-16, %rax
0x48, 0x83, 0xc7, 0xf0, //0x00000418 addq $-16, %rdi
0x48, 0x83, 0xf8, 0x0f, //0x0000041c cmpq $15, %rax
0x0f, 0x87, 0xca, 0xff, 0xff, 0xff, //0x00000420 ja LBB0_116
//0x00000426 LBB0_122
0x48, 0x85, 0xc0, //0x00000426 testq %rax, %rax
0x0f, 0x84, 0x35, 0x00, 0x00, 0x00, //0x00000429 je LBB0_130
0x4c, 0x8d, 0x04, 0x02, //0x0000042f leaq (%rdx,%rax), %r8
0x31, 0xff, //0x00000433 xorl %edi, %edi
//0x00000435 LBB0_124
0x0f, 0xb6, 0x1c, 0x3a, //0x00000435 movzbl (%rdx,%rdi), %ebx
0x80, 0xfb, 0x2c, //0x00000439 cmpb $44, %bl
0x0f, 0x84, 0xd1, 0x07, 0x00, 0x00, //0x0000043c je LBB0_127
0x80, 0xfb, 0x7d, //0x00000442 cmpb $125, %bl
0x0f, 0x84, 0xc8, 0x07, 0x00, 0x00, //0x00000445 je LBB0_127
0x80, 0xfb, 0x5d, //0x0000044b cmpb $93, %bl
0x0f, 0x84, 0xbf, 0x07, 0x00, 0x00, //0x0000044e je LBB0_127
0x48, 0x83, 0xc7, 0x01, //0x00000454 addq $1, %rdi
0x48, 0x39, 0xf8, //0x00000458 cmpq %rdi, %rax
0x0f, 0x85, 0xd4, 0xff, 0xff, 0xff, //0x0000045b jne LBB0_124
0x4c, 0x89, 0xc2, //0x00000461 movq %r8, %rdx
//0x00000464 LBB0_130
0x4c, 0x29, 0xf2, //0x00000464 subq %r14, %rdx
0xe9, 0x06, 0x00, 0x00, 0x00, //0x00000467 jmp LBB0_136
//0x0000046c LBB0_120
0x0f, 0xbc, 0xd3, //0x0000046c bsfl %ebx, %edx
0x48, 0x29, 0xc2, //0x0000046f subq %rax, %rdx
//0x00000472 LBB0_136
0x48, 0x89, 0x16, //0x00000472 movq %rdx, (%rsi)
//0x00000475 LBB0_137
0x48, 0x89, 0xc8, //0x00000475 movq %rcx, %rax
//0x00000478 LBB0_138
0x48, 0x8d, 0x65, 0xd8, //0x00000478 leaq $-40(%rbp), %rsp
0x5b, //0x0000047c popq %rbx
0x41, 0x5c, //0x0000047d popq %r12
0x41, 0x5d, //0x0000047f popq %r13
0x41, 0x5e, //0x00000481 popq %r14
0x41, 0x5f, //0x00000483 popq %r15
0x5d, //0x00000485 popq %rbp
0xc5, 0xf8, 0x77, //0x00000486 vzeroupper
0xc3, //0x00000489 retq
//0x0000048a LBB0_131
0x48, 0x8d, 0x51, 0x04, //0x0000048a leaq $4(%rcx), %rdx
0x48, 0x3b, 0x57, 0x08, //0x0000048e cmpq $8(%rdi), %rdx
0x0f, 0x86, 0xda, 0xff, 0xff, 0xff, //0x00000492 jbe LBB0_136
0xe9, 0xdb, 0xff, 0xff, 0xff, //0x00000498 jmp LBB0_138
//0x0000049d LBB0_134
0x48, 0x89, 0x0e, //0x0000049d movq %rcx, (%rsi)
0x48, 0xc7, 0xc0, 0xfe, 0xff, 0xff, 0xff, //0x000004a0 movq $-2, %rax
0xe9, 0xcc, 0xff, 0xff, 0xff, //0x000004a7 jmp LBB0_138
//0x000004ac LBB0_89
0x4c, 0x8b, 0x47, 0x08, //0x000004ac movq $8(%rdi), %r8
0x4d, 0x89, 0xc3, //0x000004b0 movq %r8, %r11
0x49, 0x29, 0xd3, //0x000004b3 subq %rdx, %r11
0x49, 0x83, 0xfb, 0x20, //0x000004b6 cmpq $32, %r11
0x0f, 0x8c, 0x5e, 0x07, 0x00, 0x00, //0x000004ba jl LBB0_90
0x4d, 0x8d, 0x0c, 0x0e, //0x000004c0 leaq (%r14,%rcx), %r9
0x49, 0x29, 0xc8, //0x000004c4 subq %rcx, %r8
0x41, 0xbd, 0x1f, 0x00, 0x00, 0x00, //0x000004c7 movl $31, %r13d
0x45, 0x31, 0xdb, //0x000004cd xorl %r11d, %r11d
0xc5, 0xfe, 0x6f, 0x05, 0xa8, 0xfb, 0xff, 0xff, //0x000004d0 vmovdqu $-1112(%rip), %ymm0 /* LCPI0_7+0(%rip) */
0xc5, 0xfe, 0x6f, 0x0d, 0xc0, 0xfb, 0xff, 0xff, //0x000004d8 vmovdqu $-1088(%rip), %ymm1 /* LCPI0_8+0(%rip) */
0x45, 0x31, 0xff, //0x000004e0 xorl %r15d, %r15d
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x000004e3 .p2align 4, 0x90
//0x000004f0 LBB0_92
0xc4, 0x81, 0x7e, 0x6f, 0x54, 0x19, 0x01, //0x000004f0 vmovdqu $1(%r9,%r11), %ymm2
0xc5, 0xed, 0x74, 0xd8, //0x000004f7 vpcmpeqb %ymm0, %ymm2, %ymm3
0xc5, 0x7d, 0xd7, 0xd3, //0x000004fb vpmovmskb %ymm3, %r10d
0xc5, 0xed, 0x74, 0xd1, //0x000004ff vpcmpeqb %ymm1, %ymm2, %ymm2
0xc5, 0xfd, 0xd7, 0xfa, //0x00000503 vpmovmskb %ymm2, %edi
0x85, 0xff, //0x00000507 testl %edi, %edi
0x0f, 0x85, 0x11, 0x00, 0x00, 0x00, //0x00000509 jne LBB0_95
0x4d, 0x85, 0xff, //0x0000050f testq %r15, %r15
0x0f, 0x85, 0x08, 0x00, 0x00, 0x00, //0x00000512 jne LBB0_95
0x45, 0x31, 0xff, //0x00000518 xorl %r15d, %r15d
0xe9, 0x34, 0x00, 0x00, 0x00, //0x0000051b jmp LBB0_96
//0x00000520 .p2align 4, 0x90
//0x00000520 LBB0_95
0x44, 0x89, 0xfb, //0x00000520 movl %r15d, %ebx
0xf7, 0xd3, //0x00000523 notl %ebx
0x21, 0xfb, //0x00000525 andl %edi, %ebx
0x44, 0x8d, 0x24, 0x1b, //0x00000527 leal (%rbx,%rbx), %r12d
0x45, 0x09, 0xfc, //0x0000052b orl %r15d, %r12d
0x44, 0x89, 0xe2, //0x0000052e movl %r12d, %edx
0xf7, 0xd2, //0x00000531 notl %edx
0x21, 0xfa, //0x00000533 andl %edi, %edx
0x81, 0xe2, 0xaa, 0xaa, 0xaa, 0xaa, //0x00000535 andl $-1431655766, %edx
0x45, 0x31, 0xff, //0x0000053b xorl %r15d, %r15d
0x01, 0xda, //0x0000053e addl %ebx, %edx
0x41, 0x0f, 0x92, 0xc7, //0x00000540 setb %r15b
0x01, 0xd2, //0x00000544 addl %edx, %edx
0x81, 0xf2, 0x55, 0x55, 0x55, 0x55, //0x00000546 xorl $1431655765, %edx
0x44, 0x21, 0xe2, //0x0000054c andl %r12d, %edx
0xf7, 0xd2, //0x0000054f notl %edx
0x41, 0x21, 0xd2, //0x00000551 andl %edx, %r10d
//0x00000554 LBB0_96
0x4d, 0x85, 0xd2, //0x00000554 testq %r10, %r10
0x0f, 0x85, 0x01, 0x06, 0x00, 0x00, //0x00000557 jne LBB0_97
0x49, 0x83, 0xc3, 0x20, //0x0000055d addq $32, %r11
0x4b, 0x8d, 0x14, 0x28, //0x00000561 leaq (%r8,%r13), %rdx
0x48, 0x83, 0xc2, 0xe0, //0x00000565 addq $-32, %rdx
0x49, 0x83, 0xc5, 0xe0, //0x00000569 addq $-32, %r13
0x48, 0x83, 0xfa, 0x3f, //0x0000056d cmpq $63, %rdx
0x0f, 0x8f, 0x79, 0xff, 0xff, 0xff, //0x00000571 jg LBB0_92
0x4d, 0x85, 0xff, //0x00000577 testq %r15, %r15
0x0f, 0x85, 0xb2, 0x06, 0x00, 0x00, //0x0000057a jne LBB0_102
0x4b, 0x8d, 0x14, 0x0b, //0x00000580 leaq (%r11,%r9), %rdx
0x48, 0x83, 0xc2, 0x01, //0x00000584 addq $1, %rdx
0x49, 0xf7, 0xd3, //0x00000588 notq %r11
0x4d, 0x01, 0xc3, //0x0000058b addq %r8, %r11
//0x0000058e LBB0_104
0x4d, 0x85, 0xdb, //0x0000058e testq %r11, %r11
0x0f, 0x8f, 0xfc, 0x05, 0x00, 0x00, //0x00000591 jg LBB0_105
0xe9, 0xdc, 0xfe, 0xff, 0xff, //0x00000597 jmp LBB0_138
//0x0000059c LBB0_37
0x48, 0x8b, 0x5f, 0x08, //0x0000059c movq $8(%rdi), %rbx
0x48, 0x29, 0xd3, //0x000005a0 subq %rdx, %rbx
0x49, 0x01, 0xd6, //0x000005a3 addq %rdx, %r14
0x45, 0x31, 0xdb, //0x000005a6 xorl %r11d, %r11d
0xc5, 0xfe, 0x6f, 0x05, 0xef, 0xfa, 0xff, 0xff, //0x000005a9 vmovdqu $-1297(%rip), %ymm0 /* LCPI0_8+0(%rip) */
0xc5, 0xfe, 0x6f, 0x0d, 0xc7, 0xfa, 0xff, 0xff, //0x000005b1 vmovdqu $-1337(%rip), %ymm1 /* LCPI0_7+0(%rip) */
0xc5, 0xe9, 0x76, 0xd2, //0x000005b9 vpcmpeqd %xmm2, %xmm2, %xmm2
0xc5, 0xfe, 0x6f, 0x1d, 0x3b, 0xfb, 0xff, 0xff, //0x000005bd vmovdqu $-1221(%rip), %ymm3 /* LCPI0_11+0(%rip) */
0xc5, 0xfe, 0x6f, 0x25, 0x93, 0xfa, 0xff, 0xff, //0x000005c5 vmovdqu $-1389(%rip), %ymm4 /* LCPI0_3+0(%rip) */
0xc4, 0x41, 0x30, 0x57, 0xc9, //0x000005cd vxorps %xmm9, %xmm9, %xmm9
0x45, 0x31, 0xe4, //0x000005d2 xorl %r12d, %r12d
0x45, 0x31, 0xff, //0x000005d5 xorl %r15d, %r15d
0x45, 0x31, 0xc0, //0x000005d8 xorl %r8d, %r8d
0xe9, 0x1c, 0x00, 0x00, 0x00, //0x000005db jmp LBB0_38
//0x000005e0 LBB0_47
0x49, 0xc1, 0xfd, 0x3f, //0x000005e0 sarq $63, %r13
0xf3, 0x49, 0x0f, 0xb8, 0xd3, //0x000005e4 popcntq %r11, %rdx
0x49, 0x01, 0xd7, //0x000005e9 addq %rdx, %r15
0x49, 0x83, 0xc6, 0x40, //0x000005ec addq $64, %r14
0x48, 0x8b, 0x5c, 0x24, 0x18, //0x000005f0 movq $24(%rsp), %rbx
0x48, 0x83, 0xc3, 0xc0, //0x000005f5 addq $-64, %rbx
0x4d, 0x89, 0xeb, //0x000005f9 movq %r13, %r11
//0x000005fc LBB0_38
0x48, 0x83, 0xfb, 0x40, //0x000005fc cmpq $64, %rbx
0x48, 0x89, 0x5c, 0x24, 0x18, //0x00000600 movq %rbx, $24(%rsp)
0x0f, 0x8c, 0x22, 0x01, 0x00, 0x00, //0x00000605 jl LBB0_48
//0x0000060b LBB0_39
0xc4, 0xc1, 0x7e, 0x6f, 0x3e, //0x0000060b vmovdqu (%r14), %ymm7
0xc4, 0xc1, 0x7e, 0x6f, 0x76, 0x20, //0x00000610 vmovdqu $32(%r14), %ymm6
0xc5, 0x45, 0x74, 0xc0, //0x00000616 vpcmpeqb %ymm0, %ymm7, %ymm8
0xc4, 0x41, 0x7d, 0xd7, 0xc8, //0x0000061a vpmovmskb %ymm8, %r9d
0xc5, 0x4d, 0x74, 0xc0, //0x0000061f vpcmpeqb %ymm0, %ymm6, %ymm8
0xc4, 0xc1, 0x7d, 0xd7, 0xd8, //0x00000623 vpmovmskb %ymm8, %ebx
0x48, 0xc1, 0xe3, 0x20, //0x00000628 shlq $32, %rbx
0x49, 0x09, 0xd9, //0x0000062c orq %rbx, %r9
0x4c, 0x89, 0xcb, //0x0000062f movq %r9, %rbx
0x4c, 0x09, 0xe3, //0x00000632 orq %r12, %rbx
0x0f, 0x85, 0x0f, 0x00, 0x00, 0x00, //0x00000635 jne LBB0_41
0x49, 0xc7, 0xc1, 0xff, 0xff, 0xff, 0xff, //0x0000063b movq $-1, %r9
0x45, 0x31, 0xe4, //0x00000642 xorl %r12d, %r12d
0xe9, 0x46, 0x00, 0x00, 0x00, //0x00000645 jmp LBB0_42
//0x0000064a LBB0_41
0x4c, 0x89, 0xe3, //0x0000064a movq %r12, %rbx
0x48, 0xf7, 0xd3, //0x0000064d notq %rbx
0x4c, 0x21, 0xcb, //0x00000650 andq %r9, %rbx
0x4c, 0x8d, 0x2c, 0x1b, //0x00000653 leaq (%rbx,%rbx), %r13
0x4d, 0x09, 0xe5, //0x00000657 orq %r12, %r13
0x4d, 0x89, 0xec, //0x0000065a movq %r13, %r12
0x49, 0xf7, 0xd4, //0x0000065d notq %r12
0x48, 0xba, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, //0x00000660 movabsq $-6148914691236517206, %rdx
0x49, 0x21, 0xd1, //0x0000066a andq %rdx, %r9
0x4d, 0x21, 0xe1, //0x0000066d andq %r12, %r9
0x45, 0x31, 0xe4, //0x00000670 xorl %r12d, %r12d
0x49, 0x01, 0xd9, //0x00000673 addq %rbx, %r9
0x41, 0x0f, 0x92, 0xc4, //0x00000676 setb %r12b
0x4d, 0x01, 0xc9, //0x0000067a addq %r9, %r9
0x48, 0xba, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, //0x0000067d movabsq $6148914691236517205, %rdx
0x49, 0x31, 0xd1, //0x00000687 xorq %rdx, %r9
0x4d, 0x21, 0xe9, //0x0000068a andq %r13, %r9
0x49, 0xf7, 0xd1, //0x0000068d notq %r9
//0x00000690 LBB0_42
0xc5, 0x4d, 0x74, 0xc1, //0x00000690 vpcmpeqb %ymm1, %ymm6, %ymm8
0xc4, 0x41, 0x7d, 0xd7, 0xe8, //0x00000694 vpmovmskb %ymm8, %r13d
0x49, 0xc1, 0xe5, 0x20, //0x00000699 shlq $32, %r13
0xc5, 0x45, 0x74, 0xc1, //0x0000069d vpcmpeqb %ymm1, %ymm7, %ymm8
0xc4, 0xc1, 0x7d, 0xd7, 0xd8, //0x000006a1 vpmovmskb %ymm8, %ebx
0x4c, 0x09, 0xeb, //0x000006a6 orq %r13, %rbx
0x4c, 0x21, 0xcb, //0x000006a9 andq %r9, %rbx
0xc4, 0xe1, 0xf9, 0x6e, 0xeb, //0x000006ac vmovq %rbx, %xmm5
0xc4, 0xe3, 0x51, 0x44, 0xea, 0x00, //0x000006b1 vpclmulqdq $0, %xmm2, %xmm5, %xmm5
0xc4, 0xc1, 0xf9, 0x7e, 0xed, //0x000006b7 vmovq %xmm5, %r13
0x4d, 0x31, 0xdd, //0x000006bc xorq %r11, %r13
0xc5, 0xc5, 0x74, 0xeb, //0x000006bf vpcmpeqb %ymm3, %ymm7, %ymm5
0xc5, 0x7d, 0xd7, 0xdd, //0x000006c3 vpmovmskb %ymm5, %r11d
0xc5, 0xcd, 0x74, 0xeb, //0x000006c7 vpcmpeqb %ymm3, %ymm6, %ymm5
0xc5, 0xfd, 0xd7, 0xdd, //0x000006cb vpmovmskb %ymm5, %ebx
0x48, 0xc1, 0xe3, 0x20, //0x000006cf shlq $32, %rbx
0x49, 0x09, 0xdb, //0x000006d3 orq %rbx, %r11
0x4d, 0x89, 0xe9, //0x000006d6 movq %r13, %r9
0x49, 0xf7, 0xd1, //0x000006d9 notq %r9
0x4d, 0x21, 0xcb, //0x000006dc andq %r9, %r11
0xc5, 0xc5, 0x74, 0xec, //0x000006df vpcmpeqb %ymm4, %ymm7, %ymm5
0xc5, 0xfd, 0xd7, 0xdd, //0x000006e3 vpmovmskb %ymm5, %ebx
0xc5, 0xcd, 0x74, 0xec, //0x000006e7 vpcmpeqb %ymm4, %ymm6, %ymm5
0xc5, 0x7d, 0xd7, 0xd5, //0x000006eb vpmovmskb %ymm5, %r10d
0x49, 0xc1, 0xe2, 0x20, //0x000006ef shlq $32, %r10
0x4c, 0x09, 0xd3, //0x000006f3 orq %r10, %rbx
0x4c, 0x21, 0xcb, //0x000006f6 andq %r9, %rbx
0x0f, 0x84, 0xe1, 0xfe, 0xff, 0xff, //0x000006f9 je LBB0_47
0x90, //0x000006ff .p2align 4, 0x90
//0x00000700 LBB0_44
0x4c, 0x8d, 0x4b, 0xff, //0x00000700 leaq $-1(%rbx), %r9
0x4c, 0x89, 0xca, //0x00000704 movq %r9, %rdx
0x4c, 0x21, 0xda, //0x00000707 andq %r11, %rdx
0xf3, 0x48, 0x0f, 0xb8, 0xd2, //0x0000070a popcntq %rdx, %rdx
0x4c, 0x01, 0xfa, //0x0000070f addq %r15, %rdx
0x4c, 0x39, 0xc2, //0x00000712 cmpq %r8, %rdx
0x0f, 0x86, 0x0e, 0x04, 0x00, 0x00, //0x00000715 jbe LBB0_45
0x49, 0x83, 0xc0, 0x01, //0x0000071b addq $1, %r8
0x4c, 0x21, 0xcb, //0x0000071f andq %r9, %rbx
0x0f, 0x85, 0xd8, 0xff, 0xff, 0xff, //0x00000722 jne LBB0_44
0xe9, 0xb3, 0xfe, 0xff, 0xff, //0x00000728 jmp LBB0_47
//0x0000072d LBB0_48
0x48, 0x85, 0xdb, //0x0000072d testq %rbx, %rbx
0x0f, 0x8e, 0xf0, 0x04, 0x00, 0x00, //0x00000730 jle LBB0_49
0xc5, 0x7c, 0x11, 0x4c, 0x24, 0x40, //0x00000736 vmovups %ymm9, $64(%rsp)
0xc5, 0x7c, 0x11, 0x4c, 0x24, 0x20, //0x0000073c vmovups %ymm9, $32(%rsp)
0x44, 0x89, 0xf2, //0x00000742 movl %r14d, %edx
0x81, 0xe2, 0xff, 0x0f, 0x00, 0x00, //0x00000745 andl $4095, %edx
0x81, 0xfa, 0xc1, 0x0f, 0x00, 0x00, //0x0000074b cmpl $4033, %edx
0x0f, 0x82, 0xb4, 0xfe, 0xff, 0xff, //0x00000751 jb LBB0_39
0x48, 0x83, 0x7c, 0x24, 0x18, 0x20, //0x00000757 cmpq $32, $24(%rsp)
0x0f, 0x82, 0x22, 0x00, 0x00, 0x00, //0x0000075d jb LBB0_52
0xc4, 0xc1, 0x7c, 0x10, 0x2e, //0x00000763 vmovups (%r14), %ymm5
0xc5, 0xfc, 0x11, 0x6c, 0x24, 0x20, //0x00000768 vmovups %ymm5, $32(%rsp)
0x49, 0x83, 0xc6, 0x20, //0x0000076e addq $32, %r14
0x48, 0x8b, 0x54, 0x24, 0x18, //0x00000772 movq $24(%rsp), %rdx
0x48, 0x8d, 0x5a, 0xe0, //0x00000777 leaq $-32(%rdx), %rbx
0x4c, 0x8d, 0x4c, 0x24, 0x40, //0x0000077b leaq $64(%rsp), %r9
0xe9, 0x0a, 0x00, 0x00, 0x00, //0x00000780 jmp LBB0_54
//0x00000785 LBB0_52
0x4c, 0x8d, 0x4c, 0x24, 0x20, //0x00000785 leaq $32(%rsp), %r9
0x48, 0x8b, 0x5c, 0x24, 0x18, //0x0000078a movq $24(%rsp), %rbx
//0x0000078f LBB0_54
0x48, 0x83, 0xfb, 0x10, //0x0000078f cmpq $16, %rbx
0x0f, 0x83, 0x34, 0x00, 0x00, 0x00, //0x00000793 jae LBB0_55
0x48, 0x83, 0xfb, 0x08, //0x00000799 cmpq $8, %rbx
0x0f, 0x83, 0x4a, 0x00, 0x00, 0x00, //0x0000079d jae LBB0_57
//0x000007a3 LBB0_58
0x48, 0x83, 0xfb, 0x04, //0x000007a3 cmpq $4, %rbx
0x0f, 0x8d, 0x5c, 0x00, 0x00, 0x00, //0x000007a7 jge LBB0_59
//0x000007ad LBB0_60
0x48, 0x83, 0xfb, 0x02, //0x000007ad cmpq $2, %rbx
0x0f, 0x83, 0x6e, 0x00, 0x00, 0x00, //0x000007b1 jae LBB0_61
//0x000007b7 LBB0_62
0x4c, 0x89, 0xf2, //0x000007b7 movq %r14, %rdx
0x4c, 0x8d, 0x74, 0x24, 0x20, //0x000007ba leaq $32(%rsp), %r14
0x48, 0x85, 0xdb, //0x000007bf testq %rbx, %rbx
0x0f, 0x85, 0x82, 0x00, 0x00, 0x00, //0x000007c2 jne LBB0_63
0xe9, 0x3e, 0xfe, 0xff, 0xff, //0x000007c8 jmp LBB0_39
//0x000007cd LBB0_55
0xc4, 0xc1, 0x78, 0x10, 0x2e, //0x000007cd vmovups (%r14), %xmm5
0xc4, 0xc1, 0x78, 0x11, 0x29, //0x000007d2 vmovups %xmm5, (%r9)
0x49, 0x83, 0xc6, 0x10, //0x000007d7 addq $16, %r14
0x49, 0x83, 0xc1, 0x10, //0x000007db addq $16, %r9
0x48, 0x83, 0xc3, 0xf0, //0x000007df addq $-16, %rbx
0x48, 0x83, 0xfb, 0x08, //0x000007e3 cmpq $8, %rbx
0x0f, 0x82, 0xb6, 0xff, 0xff, 0xff, //0x000007e7 jb LBB0_58
//0x000007ed LBB0_57
0x49, 0x8b, 0x16, //0x000007ed movq (%r14), %rdx
0x49, 0x89, 0x11, //0x000007f0 movq %rdx, (%r9)
0x49, 0x83, 0xc6, 0x08, //0x000007f3 addq $8, %r14
0x49, 0x83, 0xc1, 0x08, //0x000007f7 addq $8, %r9
0x48, 0x83, 0xc3, 0xf8, //0x000007fb addq $-8, %rbx
0x48, 0x83, 0xfb, 0x04, //0x000007ff cmpq $4, %rbx
0x0f, 0x8c, 0xa4, 0xff, 0xff, 0xff, //0x00000803 jl LBB0_60
//0x00000809 LBB0_59
0x41, 0x8b, 0x16, //0x00000809 movl (%r14), %edx
0x41, 0x89, 0x11, //0x0000080c movl %edx, (%r9)
0x49, 0x83, 0xc6, 0x04, //0x0000080f addq $4, %r14
0x49, 0x83, 0xc1, 0x04, //0x00000813 addq $4, %r9
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/lspace.go | vendor/github.com/bytedance/sonic/internal/native/avx2/lspace.go | // Code generated by Makefile, DO NOT EDIT.
/*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package avx2
import (
`unsafe`
`github.com/bytedance/sonic/internal/rt`
)
var F_lspace func(sp unsafe.Pointer, nb int, off int) (ret int)
var S_lspace uintptr
//go:nosplit
func lspace(sp *byte, nb int, off int) (ret int) {
return F_lspace(rt.NoEscape(unsafe.Pointer(sp)), nb, off)
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/skip_array_subr.go | vendor/github.com/bytedance/sonic/internal/native/avx2/skip_array_subr.go | // +build !noasm !appengine
// Code generated by asm2asm, DO NOT EDIT.
package avx2
import (
`github.com/bytedance/sonic/loader`
)
const (
_entry__skip_array = 704
)
const (
_stack__skip_array = 208
)
const (
_size__skip_array = 15136
)
var (
_pcsp__skip_array = [][2]uint32{
{0x1, 0},
{0x6, 8},
{0x8, 16},
{0xa, 24},
{0xc, 32},
{0xd, 40},
{0x14, 48},
{0x38dd, 208},
{0x38de, 48},
{0x38e0, 40},
{0x38e2, 32},
{0x38e4, 24},
{0x38e6, 16},
{0x38e7, 8},
{0x38eb, 0},
{0x3b20, 208},
}
)
var _cfunc_skip_array = []loader.CFunc{
{"_skip_array_entry", 0, _entry__skip_array, 0, nil},
{"_skip_array", _entry__skip_array, _size__skip_array, _stack__skip_array, _pcsp__skip_array},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/f64toa.go | vendor/github.com/bytedance/sonic/internal/native/avx2/f64toa.go | // Code generated by Makefile, DO NOT EDIT.
/*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package avx2
import (
`unsafe`
`github.com/bytedance/sonic/internal/rt`
)
var F_f64toa func(out unsafe.Pointer, val float64) (ret int)
var S_f64toa uintptr
//go:nosplit
func f64toa(out *byte, val float64) (ret int) {
return F_f64toa((rt.NoEscape(unsafe.Pointer(out))), val)
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/vnumber.go | vendor/github.com/bytedance/sonic/internal/native/avx2/vnumber.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package avx2
import (
`unsafe`
`github.com/bytedance/sonic/internal/native/types`
`github.com/bytedance/sonic/internal/rt`
)
var F_vnumber func(s unsafe.Pointer, p unsafe.Pointer, v unsafe.Pointer)
var S_vnumber uintptr
//go:nosplit
func vnumber(s *string, p *int, v *types.JsonState) {
F_vnumber(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(v)))
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/html_escape_subr.go | vendor/github.com/bytedance/sonic/internal/native/avx2/html_escape_subr.go | // +build !noasm !appengine
// Code generated by asm2asm, DO NOT EDIT.
package avx2
import (
`github.com/bytedance/sonic/loader`
)
const (
_entry__html_escape = 192
)
const (
_stack__html_escape = 72
)
const (
_size__html_escape = 2048
)
var (
_pcsp__html_escape = [][2]uint32{
{0x1, 0},
{0x6, 8},
{0x8, 16},
{0xa, 24},
{0xc, 32},
{0xd, 40},
{0x11, 48},
{0x7e5, 72},
{0x7e6, 48},
{0x7e8, 40},
{0x7ea, 32},
{0x7ec, 24},
{0x7ee, 16},
{0x7ef, 8},
{0x800, 0},
}
)
var _cfunc_html_escape = []loader.CFunc{
{"_html_escape_entry", 0, _entry__html_escape, 0, nil},
{"_html_escape", _entry__html_escape, _size__html_escape, _stack__html_escape, _pcsp__html_escape},
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/u64toa.go | vendor/github.com/bytedance/sonic/internal/native/avx2/u64toa.go | // Code generated by Makefile, DO NOT EDIT.
/*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package avx2
import (
`unsafe`
`github.com/bytedance/sonic/internal/rt`
)
var F_u64toa func(out unsafe.Pointer, val uint64) (ret int)
var S_u64toa uintptr
//go:nosplit
func u64toa(out *byte, val uint64) (ret int) {
return F_u64toa(rt.NoEscape(unsafe.Pointer(out)), val)
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/native/avx2/quote_text_amd64.go | vendor/github.com/bytedance/sonic/internal/native/avx2/quote_text_amd64.go | // +build amd64
// Code generated by asm2asm, DO NOT EDIT.
package avx2
var _text_quote = []byte{
// .p2align 5, 0x00
// LCPI0_0
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, // QUAD $0x2020202020202020; QUAD $0x2020202020202020 // .space 16, ' '
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, //0x00000010 QUAD $0x2020202020202020; QUAD $0x2020202020202020 // .space 16, ' '
//0x00000020 LCPI0_1
0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, //0x00000020 QUAD $0x2222222222222222; QUAD $0x2222222222222222 // .space 16, '""""""""""""""""'
0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, //0x00000030 QUAD $0x2222222222222222; QUAD $0x2222222222222222 // .space 16, '""""""""""""""""'
//0x00000040 LCPI0_2
0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, //0x00000040 QUAD $0x5c5c5c5c5c5c5c5c; QUAD $0x5c5c5c5c5c5c5c5c // .space 16, '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, //0x00000050 QUAD $0x5c5c5c5c5c5c5c5c; QUAD $0x5c5c5c5c5c5c5c5c // .space 16, '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
//0x00000060 .p2align 4, 0x00
//0x00000060 LCPI0_3
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, //0x00000060 QUAD $0x2020202020202020; QUAD $0x2020202020202020 // .space 16, ' '
//0x00000070 LCPI0_4
0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, //0x00000070 QUAD $0x2222222222222222; QUAD $0x2222222222222222 // .space 16, '""""""""""""""""'
//0x00000080 LCPI0_5
0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, //0x00000080 QUAD $0x5c5c5c5c5c5c5c5c; QUAD $0x5c5c5c5c5c5c5c5c // .space 16, '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
//0x00000090 .p2align 4, 0x90
//0x00000090 _quote
0x55, //0x00000090 pushq %rbp
0x48, 0x89, 0xe5, //0x00000091 movq %rsp, %rbp
0x41, 0x57, //0x00000094 pushq %r15
0x41, 0x56, //0x00000096 pushq %r14
0x41, 0x55, //0x00000098 pushq %r13
0x41, 0x54, //0x0000009a pushq %r12
0x53, //0x0000009c pushq %rbx
0x48, 0x83, 0xec, 0x18, //0x0000009d subq $24, %rsp
0x49, 0x89, 0xcf, //0x000000a1 movq %rcx, %r15
0x49, 0x89, 0xf6, //0x000000a4 movq %rsi, %r14
0x4c, 0x8b, 0x11, //0x000000a7 movq (%rcx), %r10
0x41, 0xf6, 0xc0, 0x01, //0x000000aa testb $1, %r8b
0x48, 0x8d, 0x05, 0x1b, 0x0b, 0x00, 0x00, //0x000000ae leaq $2843(%rip), %rax /* __SingleQuoteTab+0(%rip) */
0x4c, 0x8d, 0x05, 0x14, 0x1b, 0x00, 0x00, //0x000000b5 leaq $6932(%rip), %r8 /* __DoubleQuoteTab+0(%rip) */
0x4c, 0x0f, 0x44, 0xc0, //0x000000bc cmoveq %rax, %r8
0x48, 0x8d, 0x04, 0xf5, 0x00, 0x00, 0x00, 0x00, //0x000000c0 leaq (,%rsi,8), %rax
0x49, 0x39, 0xc2, //0x000000c8 cmpq %rax, %r10
0x0f, 0x8d, 0x52, 0x07, 0x00, 0x00, //0x000000cb jge LBB0_93
0x49, 0x89, 0xd1, //0x000000d1 movq %rdx, %r9
0x49, 0x89, 0xfb, //0x000000d4 movq %rdi, %r11
0x4d, 0x85, 0xf6, //0x000000d7 testq %r14, %r14
0x0f, 0x84, 0x95, 0x0a, 0x00, 0x00, //0x000000da je LBB0_125
0xc5, 0xfe, 0x6f, 0x25, 0x18, 0xff, 0xff, 0xff, //0x000000e0 vmovdqu $-232(%rip), %ymm4 /* LCPI0_0+0(%rip) */
0xc5, 0xfe, 0x6f, 0x2d, 0x30, 0xff, 0xff, 0xff, //0x000000e8 vmovdqu $-208(%rip), %ymm5 /* LCPI0_1+0(%rip) */
0xc5, 0xfe, 0x6f, 0x35, 0x48, 0xff, 0xff, 0xff, //0x000000f0 vmovdqu $-184(%rip), %ymm6 /* LCPI0_2+0(%rip) */
0xc4, 0x41, 0x3d, 0x76, 0xc0, //0x000000f8 vpcmpeqd %ymm8, %ymm8, %ymm8
0x48, 0x89, 0xf9, //0x000000fd movq %rdi, %rcx
0x48, 0x89, 0x55, 0xc0, //0x00000100 movq %rdx, $-64(%rbp)
0x49, 0x89, 0xd1, //0x00000104 movq %rdx, %r9
//0x00000107 LBB0_3
0x49, 0x89, 0xcd, //0x00000107 movq %rcx, %r13
0x49, 0x83, 0xfe, 0x20, //0x0000010a cmpq $32, %r14
0x0f, 0x9d, 0xc1, //0x0000010e setge %cl
0x4c, 0x89, 0xe8, //0x00000111 movq %r13, %rax
0x4c, 0x89, 0xd3, //0x00000114 movq %r10, %rbx
0x4d, 0x89, 0xcc, //0x00000117 movq %r9, %r12
0x4d, 0x89, 0xf3, //0x0000011a movq %r14, %r11
0x0f, 0x8c, 0x82, 0x00, 0x00, 0x00, //0x0000011d jl LBB0_10
0x49, 0x83, 0xfa, 0x20, //0x00000123 cmpq $32, %r10
0x0f, 0x8c, 0x78, 0x00, 0x00, 0x00, //0x00000127 jl LBB0_10
0x45, 0x31, 0xe4, //0x0000012d xorl %r12d, %r12d
0x4c, 0x89, 0xf6, //0x00000130 movq %r14, %rsi
0x4c, 0x89, 0xd2, //0x00000133 movq %r10, %rdx
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000136 .p2align 4, 0x90
//0x00000140 LBB0_6
0xc4, 0xa1, 0x7e, 0x6f, 0x04, 0x20, //0x00000140 vmovdqu (%rax,%r12), %ymm0
0xc5, 0xdd, 0x64, 0xc8, //0x00000146 vpcmpgtb %ymm0, %ymm4, %ymm1
0xc5, 0xfd, 0x74, 0xd5, //0x0000014a vpcmpeqb %ymm5, %ymm0, %ymm2
0xc5, 0xfd, 0x74, 0xde, //0x0000014e vpcmpeqb %ymm6, %ymm0, %ymm3
0xc5, 0xe5, 0xeb, 0xd2, //0x00000152 vpor %ymm2, %ymm3, %ymm2
0xc4, 0x81, 0x7e, 0x7f, 0x04, 0x21, //0x00000156 vmovdqu %ymm0, (%r9,%r12)
0xc4, 0xc1, 0x7d, 0x64, 0xc0, //0x0000015c vpcmpgtb %ymm8, %ymm0, %ymm0
0xc5, 0xf5, 0xdb, 0xc0, //0x00000161 vpand %ymm0, %ymm1, %ymm0
0xc5, 0xed, 0xeb, 0xc0, //0x00000165 vpor %ymm0, %ymm2, %ymm0
0xc5, 0xfd, 0xd7, 0xc8, //0x00000169 vpmovmskb %ymm0, %ecx
0x85, 0xc9, //0x0000016d testl %ecx, %ecx
0x0f, 0x85, 0xfd, 0x01, 0x00, 0x00, //0x0000016f jne LBB0_20
0x4c, 0x8d, 0x5e, 0xe0, //0x00000175 leaq $-32(%rsi), %r11
0x48, 0x8d, 0x5a, 0xe0, //0x00000179 leaq $-32(%rdx), %rbx
0x49, 0x83, 0xc4, 0x20, //0x0000017d addq $32, %r12
0x48, 0x83, 0xfe, 0x40, //0x00000181 cmpq $64, %rsi
0x0f, 0x9d, 0xc1, //0x00000185 setge %cl
0x0f, 0x8c, 0x10, 0x00, 0x00, 0x00, //0x00000188 jl LBB0_9
0x4c, 0x89, 0xde, //0x0000018e movq %r11, %rsi
0x48, 0x83, 0xfa, 0x3f, //0x00000191 cmpq $63, %rdx
0x48, 0x89, 0xda, //0x00000195 movq %rbx, %rdx
0x0f, 0x8f, 0xa2, 0xff, 0xff, 0xff, //0x00000198 jg LBB0_6
//0x0000019e LBB0_9
0x4e, 0x8d, 0x2c, 0x20, //0x0000019e leaq (%rax,%r12), %r13
0x4d, 0x01, 0xcc, //0x000001a2 addq %r9, %r12
//0x000001a5 LBB0_10
0x84, 0xc9, //0x000001a5 testb %cl, %cl
0x0f, 0x84, 0x89, 0x00, 0x00, 0x00, //0x000001a7 je LBB0_14
0x4c, 0x89, 0xf6, //0x000001ad movq %r14, %rsi
0xc4, 0xc1, 0x7e, 0x6f, 0x45, 0x00, //0x000001b0 vmovdqu (%r13), %ymm0
0xc5, 0xdd, 0x64, 0xc8, //0x000001b6 vpcmpgtb %ymm0, %ymm4, %ymm1
0xc5, 0xfd, 0x74, 0xd5, //0x000001ba vpcmpeqb %ymm5, %ymm0, %ymm2
0xc5, 0xfd, 0x74, 0xde, //0x000001be vpcmpeqb %ymm6, %ymm0, %ymm3
0xc5, 0xe5, 0xeb, 0xd2, //0x000001c2 vpor %ymm2, %ymm3, %ymm2
0xc4, 0xc1, 0x7d, 0x64, 0xc0, //0x000001c6 vpcmpgtb %ymm8, %ymm0, %ymm0
0xc5, 0xf5, 0xdb, 0xc0, //0x000001cb vpand %ymm0, %ymm1, %ymm0
0xc5, 0xed, 0xeb, 0xc0, //0x000001cf vpor %ymm0, %ymm2, %ymm0
0xc5, 0xfd, 0xd7, 0xc8, //0x000001d3 vpmovmskb %ymm0, %ecx
0x48, 0xba, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, //0x000001d7 movabsq $4294967296, %rdx
0x48, 0x09, 0xd1, //0x000001e1 orq %rdx, %rcx
0x4c, 0x0f, 0xbc, 0xf1, //0x000001e4 bsfq %rcx, %r14
0xc4, 0xc1, 0x7a, 0x6f, 0x45, 0x00, //0x000001e8 vmovdqu (%r13), %xmm0
0xc4, 0xe3, 0xf9, 0x16, 0xc1, 0x01, //0x000001ee vpextrq $1, %xmm0, %rcx
0xc4, 0xe1, 0xf9, 0x7e, 0xc2, //0x000001f4 vmovq %xmm0, %rdx
0x49, 0x39, 0xde, //0x000001f9 cmpq %rbx, %r14
0x0f, 0x8e, 0x7f, 0x01, 0x00, 0x00, //0x000001fc jle LBB0_21
0x48, 0x83, 0xfb, 0x10, //0x00000202 cmpq $16, %rbx
0x49, 0x89, 0xc3, //0x00000206 movq %rax, %r11
0x0f, 0x82, 0xbe, 0x01, 0x00, 0x00, //0x00000209 jb LBB0_24
0x49, 0x89, 0x14, 0x24, //0x0000020f movq %rdx, (%r12)
0x49, 0x89, 0x4c, 0x24, 0x08, //0x00000213 movq %rcx, $8(%r12)
0x49, 0x8d, 0x4d, 0x10, //0x00000218 leaq $16(%r13), %rcx
0x49, 0x83, 0xc4, 0x10, //0x0000021c addq $16, %r12
0x48, 0x8d, 0x53, 0xf0, //0x00000220 leaq $-16(%rbx), %rdx
0x49, 0x89, 0xf6, //0x00000224 movq %rsi, %r14
0x48, 0x83, 0xfa, 0x08, //0x00000227 cmpq $8, %rdx
0x0f, 0x83, 0xaf, 0x01, 0x00, 0x00, //0x0000022b jae LBB0_25
0xe9, 0xbd, 0x01, 0x00, 0x00, //0x00000231 jmp LBB0_26
//0x00000236 LBB0_14
0xc5, 0xf8, 0x77, //0x00000236 vzeroupper
0x49, 0x83, 0xfb, 0x10, //0x00000239 cmpq $16, %r11
0x0f, 0x9d, 0xc2, //0x0000023d setge %dl
0x4c, 0x89, 0x7d, 0xc8, //0x00000240 movq %r15, $-56(%rbp)
0x4c, 0x89, 0x75, 0xd0, //0x00000244 movq %r14, $-48(%rbp)
0x0f, 0x8c, 0x17, 0x02, 0x00, 0x00, //0x00000248 jl LBB0_31
0x48, 0x83, 0xfb, 0x10, //0x0000024e cmpq $16, %rbx
0xc5, 0xfa, 0x6f, 0x3d, 0x06, 0xfe, 0xff, 0xff, //0x00000252 vmovdqu $-506(%rip), %xmm7 /* LCPI0_3+0(%rip) */
0xc5, 0x7a, 0x6f, 0x0d, 0x0e, 0xfe, 0xff, 0xff, //0x0000025a vmovdqu $-498(%rip), %xmm9 /* LCPI0_4+0(%rip) */
0xc5, 0x7a, 0x6f, 0x15, 0x16, 0xfe, 0xff, 0xff, //0x00000262 vmovdqu $-490(%rip), %xmm10 /* LCPI0_5+0(%rip) */
0xc4, 0x41, 0x21, 0x76, 0xdb, //0x0000026a vpcmpeqd %xmm11, %xmm11, %xmm11
0x0f, 0x8c, 0x3d, 0x02, 0x00, 0x00, //0x0000026f jl LBB0_36
0x48, 0x89, 0xc1, //0x00000275 movq %rax, %rcx
0x4c, 0x29, 0xe9, //0x00000278 subq %r13, %rcx
0xc5, 0xfe, 0x6f, 0x25, 0x7d, 0xfd, 0xff, 0xff, //0x0000027b vmovdqu $-643(%rip), %ymm4 /* LCPI0_0+0(%rip) */
0xc5, 0xfe, 0x6f, 0x2d, 0x95, 0xfd, 0xff, 0xff, //0x00000283 vmovdqu $-619(%rip), %ymm5 /* LCPI0_1+0(%rip) */
0xc5, 0xfe, 0x6f, 0x35, 0xad, 0xfd, 0xff, 0xff, //0x0000028b vmovdqu $-595(%rip), %ymm6 /* LCPI0_2+0(%rip) */
0xc4, 0x41, 0x3d, 0x76, 0xc0, //0x00000293 vpcmpeqd %ymm8, %ymm8, %ymm8
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000298 .p2align 4, 0x90
//0x000002a0 LBB0_17
0xc4, 0xc1, 0x7a, 0x6f, 0x45, 0x00, //0x000002a0 vmovdqu (%r13), %xmm0
0xc5, 0xc1, 0x64, 0xc8, //0x000002a6 vpcmpgtb %xmm0, %xmm7, %xmm1
0xc5, 0xb1, 0x74, 0xd0, //0x000002aa vpcmpeqb %xmm0, %xmm9, %xmm2
0xc5, 0xa9, 0x74, 0xd8, //0x000002ae vpcmpeqb %xmm0, %xmm10, %xmm3
0xc5, 0xe1, 0xeb, 0xd2, //0x000002b2 vpor %xmm2, %xmm3, %xmm2
0xc4, 0xc1, 0x7a, 0x7f, 0x04, 0x24, //0x000002b6 vmovdqu %xmm0, (%r12)
0xc4, 0xc1, 0x79, 0x64, 0xc3, //0x000002bc vpcmpgtb %xmm11, %xmm0, %xmm0
0xc5, 0xf1, 0xdb, 0xc0, //0x000002c1 vpand %xmm0, %xmm1, %xmm0
0xc5, 0xe9, 0xeb, 0xc0, //0x000002c5 vpor %xmm0, %xmm2, %xmm0
0xc5, 0xf9, 0xd7, 0xd0, //0x000002c9 vpmovmskb %xmm0, %edx
0x85, 0xd2, //0x000002cd testl %edx, %edx
0x0f, 0x85, 0xdd, 0x00, 0x00, 0x00, //0x000002cf jne LBB0_23
0x49, 0x83, 0xc5, 0x10, //0x000002d5 addq $16, %r13
0x49, 0x83, 0xc4, 0x10, //0x000002d9 addq $16, %r12
0x4d, 0x8d, 0x7b, 0xf0, //0x000002dd leaq $-16(%r11), %r15
0x4c, 0x8d, 0x73, 0xf0, //0x000002e1 leaq $-16(%rbx), %r14
0x49, 0x83, 0xfb, 0x20, //0x000002e5 cmpq $32, %r11
0x0f, 0x9d, 0xc2, //0x000002e9 setge %dl
0x0f, 0x8c, 0x14, 0x00, 0x00, 0x00, //0x000002ec jl LBB0_32
0x48, 0x83, 0xc1, 0xf0, //0x000002f2 addq $-16, %rcx
0x4d, 0x89, 0xfb, //0x000002f6 movq %r15, %r11
0x48, 0x83, 0xfb, 0x1f, //0x000002f9 cmpq $31, %rbx
0x4c, 0x89, 0xf3, //0x000002fd movq %r14, %rbx
0x0f, 0x8f, 0x9a, 0xff, 0xff, 0xff, //0x00000300 jg LBB0_17
//0x00000306 LBB0_32
0x84, 0xd2, //0x00000306 testb %dl, %dl
0x0f, 0x84, 0xcf, 0x01, 0x00, 0x00, //0x00000308 je LBB0_37
//0x0000030e LBB0_33
0xc4, 0xc1, 0x7a, 0x6f, 0x45, 0x00, //0x0000030e vmovdqu (%r13), %xmm0
0xc5, 0xc1, 0x64, 0xc8, //0x00000314 vpcmpgtb %xmm0, %xmm7, %xmm1
0xc5, 0xb1, 0x74, 0xd0, //0x00000318 vpcmpeqb %xmm0, %xmm9, %xmm2
0xc5, 0xa9, 0x74, 0xd8, //0x0000031c vpcmpeqb %xmm0, %xmm10, %xmm3
0xc5, 0xe1, 0xeb, 0xd2, //0x00000320 vpor %xmm2, %xmm3, %xmm2
0xc4, 0xc1, 0x79, 0x64, 0xdb, //0x00000324 vpcmpgtb %xmm11, %xmm0, %xmm3
0xc5, 0xf1, 0xdb, 0xcb, //0x00000329 vpand %xmm3, %xmm1, %xmm1
0xc5, 0xe9, 0xeb, 0xc9, //0x0000032d vpor %xmm1, %xmm2, %xmm1
0xc5, 0xf9, 0xd7, 0xc9, //0x00000331 vpmovmskb %xmm1, %ecx
0x81, 0xc9, 0x00, 0x00, 0x01, 0x00, //0x00000335 orl $65536, %ecx
0x0f, 0xbc, 0xd9, //0x0000033b bsfl %ecx, %ebx
0xc4, 0xe1, 0xf9, 0x7e, 0xc1, //0x0000033e vmovq %xmm0, %rcx
0x49, 0x39, 0xde, //0x00000343 cmpq %rbx, %r14
0x49, 0x89, 0xc3, //0x00000346 movq %rax, %r11
0x0f, 0x8d, 0xb4, 0x02, 0x00, 0x00, //0x00000349 jge LBB0_57
0x49, 0x83, 0xfe, 0x08, //0x0000034f cmpq $8, %r14
0x4c, 0x8b, 0x7d, 0xc8, //0x00000353 movq $-56(%rbp), %r15
0x0f, 0x82, 0xe3, 0x02, 0x00, 0x00, //0x00000357 jb LBB0_62
0x49, 0x89, 0x0c, 0x24, //0x0000035d movq %rcx, (%r12)
0x49, 0x8d, 0x4d, 0x08, //0x00000361 leaq $8(%r13), %rcx
0x49, 0x83, 0xc4, 0x08, //0x00000365 addq $8, %r12
0x49, 0x8d, 0x56, 0xf8, //0x00000369 leaq $-8(%r14), %rdx
0xe9, 0xd4, 0x02, 0x00, 0x00, //0x0000036d jmp LBB0_63
//0x00000372 LBB0_20
0x49, 0x89, 0xc3, //0x00000372 movq %rax, %r11
0x44, 0x0f, 0xbc, 0xe9, //0x00000375 bsfl %ecx, %r13d
0x4d, 0x01, 0xe5, //0x00000379 addq %r12, %r13
0xe9, 0x8f, 0x03, 0x00, 0x00, //0x0000037c jmp LBB0_75
//0x00000381 LBB0_21
0x41, 0x83, 0xfe, 0x10, //0x00000381 cmpl $16, %r14d
0x49, 0x89, 0xc3, //0x00000385 movq %rax, %r11
0x0f, 0x82, 0xe3, 0x01, 0x00, 0x00, //0x00000388 jb LBB0_46
0x49, 0x89, 0x14, 0x24, //0x0000038e movq %rdx, (%r12)
0x49, 0x89, 0x4c, 0x24, 0x08, //0x00000392 movq %rcx, $8(%r12)
0x49, 0x8d, 0x5d, 0x10, //0x00000397 leaq $16(%r13), %rbx
0x49, 0x83, 0xc4, 0x10, //0x0000039b addq $16, %r12
0x49, 0x8d, 0x4e, 0xf0, //0x0000039f leaq $-16(%r14), %rcx
0x48, 0x83, 0xf9, 0x08, //0x000003a3 cmpq $8, %rcx
0x0f, 0x83, 0xd4, 0x01, 0x00, 0x00, //0x000003a7 jae LBB0_47
0xe9, 0xe2, 0x01, 0x00, 0x00, //0x000003ad jmp LBB0_48
//0x000003b2 LBB0_23
0x66, 0x0f, 0xbc, 0xd2, //0x000003b2 bsfw %dx, %dx
0x44, 0x0f, 0xb7, 0xea, //0x000003b6 movzwl %dx, %r13d
0x49, 0x29, 0xcd, //0x000003ba subq %rcx, %r13
0x4c, 0x8b, 0x7d, 0xc8, //0x000003bd movq $-56(%rbp), %r15
0x4c, 0x8b, 0x75, 0xd0, //0x000003c1 movq $-48(%rbp), %r14
0x49, 0x89, 0xc3, //0x000003c5 movq %rax, %r11
0xe9, 0x43, 0x03, 0x00, 0x00, //0x000003c8 jmp LBB0_75
//0x000003cd LBB0_24
0x4c, 0x89, 0xe9, //0x000003cd movq %r13, %rcx
0x48, 0x89, 0xda, //0x000003d0 movq %rbx, %rdx
0x49, 0x89, 0xf6, //0x000003d3 movq %rsi, %r14
0x48, 0x83, 0xfa, 0x08, //0x000003d6 cmpq $8, %rdx
0x0f, 0x82, 0x13, 0x00, 0x00, 0x00, //0x000003da jb LBB0_26
//0x000003e0 LBB0_25
0x48, 0x8b, 0x31, //0x000003e0 movq (%rcx), %rsi
0x49, 0x89, 0x34, 0x24, //0x000003e3 movq %rsi, (%r12)
0x48, 0x83, 0xc1, 0x08, //0x000003e7 addq $8, %rcx
0x49, 0x83, 0xc4, 0x08, //0x000003eb addq $8, %r12
0x48, 0x83, 0xc2, 0xf8, //0x000003ef addq $-8, %rdx
//0x000003f3 LBB0_26
0x48, 0x83, 0xfa, 0x04, //0x000003f3 cmpq $4, %rdx
0x0f, 0x8c, 0x3c, 0x00, 0x00, 0x00, //0x000003f7 jl LBB0_27
0x8b, 0x31, //0x000003fd movl (%rcx), %esi
0x41, 0x89, 0x34, 0x24, //0x000003ff movl %esi, (%r12)
0x48, 0x83, 0xc1, 0x04, //0x00000403 addq $4, %rcx
0x49, 0x83, 0xc4, 0x04, //0x00000407 addq $4, %r12
0x48, 0x83, 0xc2, 0xfc, //0x0000040b addq $-4, %rdx
0x48, 0x83, 0xfa, 0x02, //0x0000040f cmpq $2, %rdx
0x0f, 0x83, 0x2a, 0x00, 0x00, 0x00, //0x00000413 jae LBB0_54
//0x00000419 LBB0_28
0x48, 0x85, 0xd2, //0x00000419 testq %rdx, %rdx
0x0f, 0x84, 0x06, 0x00, 0x00, 0x00, //0x0000041c je LBB0_30
//0x00000422 LBB0_29
0x8a, 0x09, //0x00000422 movb (%rcx), %cl
0x41, 0x88, 0x0c, 0x24, //0x00000424 movb %cl, (%r12)
//0x00000428 LBB0_30
0x4c, 0x01, 0xeb, //0x00000428 addq %r13, %rbx
0x48, 0xf7, 0xd3, //0x0000042b notq %rbx
0x4c, 0x01, 0xdb, //0x0000042e addq %r11, %rbx
0x49, 0x89, 0xdd, //0x00000431 movq %rbx, %r13
0xe9, 0xd7, 0x02, 0x00, 0x00, //0x00000434 jmp LBB0_75
//0x00000439 LBB0_27
0x48, 0x83, 0xfa, 0x02, //0x00000439 cmpq $2, %rdx
0x0f, 0x82, 0xd6, 0xff, 0xff, 0xff, //0x0000043d jb LBB0_28
//0x00000443 LBB0_54
0x0f, 0xb7, 0x31, //0x00000443 movzwl (%rcx), %esi
0x66, 0x41, 0x89, 0x34, 0x24, //0x00000446 movw %si, (%r12)
0x48, 0x83, 0xc1, 0x02, //0x0000044b addq $2, %rcx
0x49, 0x83, 0xc4, 0x02, //0x0000044f addq $2, %r12
0x48, 0x83, 0xc2, 0xfe, //0x00000453 addq $-2, %rdx
0x48, 0x85, 0xd2, //0x00000457 testq %rdx, %rdx
0x0f, 0x85, 0xc2, 0xff, 0xff, 0xff, //0x0000045a jne LBB0_29
0xe9, 0xc3, 0xff, 0xff, 0xff, //0x00000460 jmp LBB0_30
//0x00000465 LBB0_31
0x49, 0x89, 0xde, //0x00000465 movq %rbx, %r14
0x4d, 0x89, 0xdf, //0x00000468 movq %r11, %r15
0xc5, 0xfe, 0x6f, 0x25, 0x8d, 0xfb, 0xff, 0xff, //0x0000046b vmovdqu $-1139(%rip), %ymm4 /* LCPI0_0+0(%rip) */
0xc5, 0xfe, 0x6f, 0x2d, 0xa5, 0xfb, 0xff, 0xff, //0x00000473 vmovdqu $-1115(%rip), %ymm5 /* LCPI0_1+0(%rip) */
0xc5, 0xfe, 0x6f, 0x35, 0xbd, 0xfb, 0xff, 0xff, //0x0000047b vmovdqu $-1091(%rip), %ymm6 /* LCPI0_2+0(%rip) */
0xc4, 0x41, 0x3d, 0x76, 0xc0, //0x00000483 vpcmpeqd %ymm8, %ymm8, %ymm8
0xc5, 0xfa, 0x6f, 0x3d, 0xd0, 0xfb, 0xff, 0xff, //0x00000488 vmovdqu $-1072(%rip), %xmm7 /* LCPI0_3+0(%rip) */
0xc5, 0x7a, 0x6f, 0x0d, 0xd8, 0xfb, 0xff, 0xff, //0x00000490 vmovdqu $-1064(%rip), %xmm9 /* LCPI0_4+0(%rip) */
0xc5, 0x7a, 0x6f, 0x15, 0xe0, 0xfb, 0xff, 0xff, //0x00000498 vmovdqu $-1056(%rip), %xmm10 /* LCPI0_5+0(%rip) */
0xc4, 0x41, 0x21, 0x76, 0xdb, //0x000004a0 vpcmpeqd %xmm11, %xmm11, %xmm11
0x84, 0xd2, //0x000004a5 testb %dl, %dl
0x0f, 0x84, 0x30, 0x00, 0x00, 0x00, //0x000004a7 je LBB0_37
0xe9, 0x5c, 0xfe, 0xff, 0xff, //0x000004ad jmp LBB0_33
//0x000004b2 LBB0_36
0x49, 0x89, 0xde, //0x000004b2 movq %rbx, %r14
0x4d, 0x89, 0xdf, //0x000004b5 movq %r11, %r15
0xc5, 0xfe, 0x6f, 0x25, 0x40, 0xfb, 0xff, 0xff, //0x000004b8 vmovdqu $-1216(%rip), %ymm4 /* LCPI0_0+0(%rip) */
0xc5, 0xfe, 0x6f, 0x2d, 0x58, 0xfb, 0xff, 0xff, //0x000004c0 vmovdqu $-1192(%rip), %ymm5 /* LCPI0_1+0(%rip) */
0xc5, 0xfe, 0x6f, 0x35, 0x70, 0xfb, 0xff, 0xff, //0x000004c8 vmovdqu $-1168(%rip), %ymm6 /* LCPI0_2+0(%rip) */
0xc4, 0x41, 0x3d, 0x76, 0xc0, //0x000004d0 vpcmpeqd %ymm8, %ymm8, %ymm8
0x84, 0xd2, //0x000004d5 testb %dl, %dl
0x0f, 0x85, 0x31, 0xfe, 0xff, 0xff, //0x000004d7 jne LBB0_33
//0x000004dd LBB0_37
0x4d, 0x85, 0xff, //0x000004dd testq %r15, %r15
0x49, 0x89, 0xc3, //0x000004e0 movq %rax, %r11
0x0f, 0x8e, 0x66, 0x00, 0x00, 0x00, //0x000004e3 jle LBB0_44
0x4d, 0x85, 0xf6, //0x000004e9 testq %r14, %r14
0x0f, 0x8e, 0x5d, 0x00, 0x00, 0x00, //0x000004ec jle LBB0_44
0x31, 0xd2, //0x000004f2 xorl %edx, %edx
0x31, 0xc9, //0x000004f4 xorl %ecx, %ecx
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x000004f6 .p2align 4, 0x90
//0x00000500 LBB0_40
0x41, 0x0f, 0xb6, 0x5c, 0x15, 0x00, //0x00000500 movzbl (%r13,%rdx), %ebx
0x48, 0x89, 0xde, //0x00000506 movq %rbx, %rsi
0x48, 0xc1, 0xe6, 0x04, //0x00000509 shlq $4, %rsi
0x48, 0x8d, 0x05, 0xbc, 0x06, 0x00, 0x00, //0x0000050d leaq $1724(%rip), %rax /* __SingleQuoteTab+0(%rip) */
0x48, 0x83, 0x3c, 0x06, 0x00, //0x00000514 cmpq $0, (%rsi,%rax)
0x0f, 0x85, 0x12, 0x01, 0x00, 0x00, //0x00000519 jne LBB0_61
0x49, 0x8d, 0x04, 0x0f, //0x0000051f leaq (%r15,%rcx), %rax
0x41, 0x88, 0x1c, 0x14, //0x00000523 movb %bl, (%r12,%rdx)
0x48, 0x8d, 0x71, 0xff, //0x00000527 leaq $-1(%rcx), %rsi
0x48, 0x83, 0xf8, 0x02, //0x0000052b cmpq $2, %rax
0x0f, 0x8c, 0x14, 0x00, 0x00, 0x00, //0x0000052f jl LBB0_43
0x4c, 0x01, 0xf1, //0x00000535 addq %r14, %rcx
0x48, 0x83, 0xc2, 0x01, //0x00000538 addq $1, %rdx
0x48, 0x83, 0xf9, 0x01, //0x0000053c cmpq $1, %rcx
0x48, 0x89, 0xf1, //0x00000540 movq %rsi, %rcx
0x0f, 0x8f, 0xb7, 0xff, 0xff, 0xff, //0x00000543 jg LBB0_40
//0x00000549 LBB0_43
0x49, 0x29, 0xf5, //0x00000549 subq %rsi, %r13
0x49, 0x01, 0xf7, //0x0000054c addq %rsi, %r15
//0x0000054f LBB0_44
0x4d, 0x85, 0xff, //0x0000054f testq %r15, %r15
0x4c, 0x8b, 0x75, 0xd0, //0x00000552 movq $-48(%rbp), %r14
0x49, 0xbc, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, //0x00000556 movabsq $12884901889, %r12
0x0f, 0x84, 0xbf, 0x00, 0x00, 0x00, //0x00000560 je LBB0_59
0x49, 0xf7, 0xd5, //0x00000566 notq %r13
0x4d, 0x01, 0xdd, //0x00000569 addq %r11, %r13
0xe9, 0xb7, 0x00, 0x00, 0x00, //0x0000056c jmp LBB0_60
//0x00000571 LBB0_46
0x4c, 0x89, 0xeb, //0x00000571 movq %r13, %rbx
0x4c, 0x89, 0xf1, //0x00000574 movq %r14, %rcx
0x48, 0x83, 0xf9, 0x08, //0x00000577 cmpq $8, %rcx
0x0f, 0x82, 0x13, 0x00, 0x00, 0x00, //0x0000057b jb LBB0_48
//0x00000581 LBB0_47
0x48, 0x8b, 0x13, //0x00000581 movq (%rbx), %rdx
0x49, 0x89, 0x14, 0x24, //0x00000584 movq %rdx, (%r12)
0x48, 0x83, 0xc3, 0x08, //0x00000588 addq $8, %rbx
0x49, 0x83, 0xc4, 0x08, //0x0000058c addq $8, %r12
0x48, 0x83, 0xc1, 0xf8, //0x00000590 addq $-8, %rcx
//0x00000594 LBB0_48
0x48, 0x83, 0xf9, 0x04, //0x00000594 cmpq $4, %rcx
0x0f, 0x8c, 0x39, 0x00, 0x00, 0x00, //0x00000598 jl LBB0_49
0x8b, 0x13, //0x0000059e movl (%rbx), %edx
0x41, 0x89, 0x14, 0x24, //0x000005a0 movl %edx, (%r12)
0x48, 0x83, 0xc3, 0x04, //0x000005a4 addq $4, %rbx
0x49, 0x83, 0xc4, 0x04, //0x000005a8 addq $4, %r12
0x48, 0x83, 0xc1, 0xfc, //0x000005ac addq $-4, %rcx
0x48, 0x83, 0xf9, 0x02, //0x000005b0 cmpq $2, %rcx
0x0f, 0x83, 0x27, 0x00, 0x00, 0x00, //0x000005b4 jae LBB0_56
//0x000005ba LBB0_50
0x48, 0x85, 0xc9, //0x000005ba testq %rcx, %rcx
0x0f, 0x84, 0x06, 0x00, 0x00, 0x00, //0x000005bd je LBB0_52
//0x000005c3 LBB0_51
0x8a, 0x0b, //0x000005c3 movb (%rbx), %cl
0x41, 0x88, 0x0c, 0x24, //0x000005c5 movb %cl, (%r12)
//0x000005c9 LBB0_52
0x4d, 0x29, 0xdd, //0x000005c9 subq %r11, %r13
0x4d, 0x01, 0xf5, //0x000005cc addq %r14, %r13
0x49, 0x89, 0xf6, //0x000005cf movq %rsi, %r14
0xe9, 0x39, 0x01, 0x00, 0x00, //0x000005d2 jmp LBB0_75
//0x000005d7 LBB0_49
0x48, 0x83, 0xf9, 0x02, //0x000005d7 cmpq $2, %rcx
0x0f, 0x82, 0xd9, 0xff, 0xff, 0xff, //0x000005db jb LBB0_50
//0x000005e1 LBB0_56
0x0f, 0xb7, 0x13, //0x000005e1 movzwl (%rbx), %edx
0x66, 0x41, 0x89, 0x14, 0x24, //0x000005e4 movw %dx, (%r12)
0x48, 0x83, 0xc3, 0x02, //0x000005e9 addq $2, %rbx
0x49, 0x83, 0xc4, 0x02, //0x000005ed addq $2, %r12
0x48, 0x83, 0xc1, 0xfe, //0x000005f1 addq $-2, %rcx
0x48, 0x85, 0xc9, //0x000005f5 testq %rcx, %rcx
0x0f, 0x85, 0xc5, 0xff, 0xff, 0xff, //0x000005f8 jne LBB0_51
0xe9, 0xc6, 0xff, 0xff, 0xff, //0x000005fe jmp LBB0_52
//0x00000603 LBB0_57
0x83, 0xfb, 0x08, //0x00000603 cmpl $8, %ebx
0x4c, 0x8b, 0x7d, 0xc8, //0x00000606 movq $-56(%rbp), %r15
0x0f, 0x82, 0xac, 0x00, 0x00, 0x00, //0x0000060a jb LBB0_69
0x49, 0x89, 0x0c, 0x24, //0x00000610 movq %rcx, (%r12)
0x49, 0x8d, 0x55, 0x08, //0x00000614 leaq $8(%r13), %rdx
0x49, 0x83, 0xc4, 0x08, //0x00000618 addq $8, %r12
0x48, 0x8d, 0x4b, 0xf8, //0x0000061c leaq $-8(%rbx), %rcx
0xe9, 0x9d, 0x00, 0x00, 0x00, //0x00000620 jmp LBB0_70
//0x00000625 LBB0_59
0x4d, 0x29, 0xdd, //0x00000625 subq %r11, %r13
//0x00000628 LBB0_60
0x4c, 0x8b, 0x7d, 0xc8, //0x00000628 movq $-56(%rbp), %r15
0xe9, 0xe9, 0x00, 0x00, 0x00, //0x0000062c jmp LBB0_76
//0x00000631 LBB0_61
0x4d, 0x29, 0xdd, //0x00000631 subq %r11, %r13
0x49, 0x29, 0xcd, //0x00000634 subq %rcx, %r13
0x4c, 0x8b, 0x7d, 0xc8, //0x00000637 movq $-56(%rbp), %r15
0xe9, 0x47, 0x00, 0x00, 0x00, //0x0000063b jmp LBB0_68
//0x00000640 LBB0_62
0x4c, 0x89, 0xe9, //0x00000640 movq %r13, %rcx
0x4c, 0x89, 0xf2, //0x00000643 movq %r14, %rdx
//0x00000646 LBB0_63
0x48, 0x83, 0xfa, 0x04, //0x00000646 cmpq $4, %rdx
0x0f, 0x8c, 0x40, 0x00, 0x00, 0x00, //0x0000064a jl LBB0_64
0x8b, 0x31, //0x00000650 movl (%rcx), %esi
0x41, 0x89, 0x34, 0x24, //0x00000652 movl %esi, (%r12)
0x48, 0x83, 0xc1, 0x04, //0x00000656 addq $4, %rcx
0x49, 0x83, 0xc4, 0x04, //0x0000065a addq $4, %r12
0x48, 0x83, 0xc2, 0xfc, //0x0000065e addq $-4, %rdx
0x48, 0x83, 0xfa, 0x02, //0x00000662 cmpq $2, %rdx
0x0f, 0x83, 0x2e, 0x00, 0x00, 0x00, //0x00000666 jae LBB0_90
//0x0000066c LBB0_65
0x48, 0x85, 0xd2, //0x0000066c testq %rdx, %rdx
0x0f, 0x84, 0x06, 0x00, 0x00, 0x00, //0x0000066f je LBB0_67
//0x00000675 LBB0_66
0x8a, 0x09, //0x00000675 movb (%rcx), %cl
0x41, 0x88, 0x0c, 0x24, //0x00000677 movb %cl, (%r12)
//0x0000067b LBB0_67
0x4d, 0x01, 0xee, //0x0000067b addq %r13, %r14
0x49, 0xf7, 0xd6, //0x0000067e notq %r14
0x4d, 0x01, 0xde, //0x00000681 addq %r11, %r14
0x4d, 0x89, 0xf5, //0x00000684 movq %r14, %r13
//0x00000687 LBB0_68
0x4c, 0x8b, 0x75, 0xd0, //0x00000687 movq $-48(%rbp), %r14
0xe9, 0x80, 0x00, 0x00, 0x00, //0x0000068b jmp LBB0_75
//0x00000690 LBB0_64
0x48, 0x83, 0xfa, 0x02, //0x00000690 cmpq $2, %rdx
0x0f, 0x82, 0xd2, 0xff, 0xff, 0xff, //0x00000694 jb LBB0_65
//0x0000069a LBB0_90
0x0f, 0xb7, 0x31, //0x0000069a movzwl (%rcx), %esi
0x66, 0x41, 0x89, 0x34, 0x24, //0x0000069d movw %si, (%r12)
0x48, 0x83, 0xc1, 0x02, //0x000006a2 addq $2, %rcx
0x49, 0x83, 0xc4, 0x02, //0x000006a6 addq $2, %r12
0x48, 0x83, 0xc2, 0xfe, //0x000006aa addq $-2, %rdx
0x48, 0x85, 0xd2, //0x000006ae testq %rdx, %rdx
0x0f, 0x85, 0xbe, 0xff, 0xff, 0xff, //0x000006b1 jne LBB0_66
0xe9, 0xbf, 0xff, 0xff, 0xff, //0x000006b7 jmp LBB0_67
//0x000006bc LBB0_69
0x4c, 0x89, 0xea, //0x000006bc movq %r13, %rdx
0x48, 0x89, 0xd9, //0x000006bf movq %rbx, %rcx
//0x000006c2 LBB0_70
0x4c, 0x8b, 0x75, 0xd0, //0x000006c2 movq $-48(%rbp), %r14
0x48, 0x83, 0xf9, 0x04, //0x000006c6 cmpq $4, %rcx
0x0f, 0x8c, 0x27, 0x01, 0x00, 0x00, //0x000006ca jl LBB0_71
0x8b, 0x32, //0x000006d0 movl (%rdx), %esi
0x41, 0x89, 0x34, 0x24, //0x000006d2 movl %esi, (%r12)
0x48, 0x83, 0xc2, 0x04, //0x000006d6 addq $4, %rdx
0x49, 0x83, 0xc4, 0x04, //0x000006da addq $4, %r12
0x48, 0x83, 0xc1, 0xfc, //0x000006de addq $-4, %rcx
0x48, 0x83, 0xf9, 0x02, //0x000006e2 cmpq $2, %rcx
0x0f, 0x83, 0x15, 0x01, 0x00, 0x00, //0x000006e6 jae LBB0_92
//0x000006ec LBB0_72
0x48, 0x85, 0xc9, //0x000006ec testq %rcx, %rcx
0x0f, 0x84, 0x06, 0x00, 0x00, 0x00, //0x000006ef je LBB0_74
//0x000006f5 LBB0_73
0x8a, 0x0a, //0x000006f5 movb (%rdx), %cl
0x41, 0x88, 0x0c, 0x24, //0x000006f7 movb %cl, (%r12)
//0x000006fb LBB0_74
0x4d, 0x29, 0xdd, //0x000006fb subq %r11, %r13
0x49, 0x01, 0xdd, //0x000006fe addq %rbx, %r13
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000701 .p2align 4, 0x90
//0x00000710 LBB0_75
0x49, 0xbc, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, //0x00000710 movabsq $12884901889, %r12
//0x0000071a LBB0_76
0x4d, 0x85, 0xed, //0x0000071a testq %r13, %r13
0x0f, 0x88, 0x8b, 0x04, 0x00, 0x00, //0x0000071d js LBB0_128
0x4d, 0x01, 0xe9, //0x00000723 addq %r13, %r9
0x4d, 0x39, 0xee, //0x00000726 cmpq %r13, %r14
0x0f, 0x84, 0x3f, 0x04, 0x00, 0x00, //0x00000729 je LBB0_124
0x4d, 0x29, 0xea, //0x0000072f subq %r13, %r10
0xe9, 0x19, 0x00, 0x00, 0x00, //0x00000732 jmp LBB0_80
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x00000737 .p2align 4, 0x90
//0x00000740 LBB0_79
0x49, 0x01, 0xc9, //0x00000740 addq %rcx, %r9
0x49, 0x83, 0xc5, 0x01, //0x00000743 addq $1, %r13
0x4d, 0x39, 0xee, //0x00000747 cmpq %r13, %r14
0x0f, 0x84, 0x1e, 0x04, 0x00, 0x00, //0x0000074a je LBB0_124
//0x00000750 LBB0_80
0x43, 0x0f, 0xb6, 0x34, 0x2b, //0x00000750 movzbl (%r11,%r13), %esi
0x48, 0xc1, 0xe6, 0x04, //0x00000755 shlq $4, %rsi
0x49, 0x8b, 0x1c, 0x30, //0x00000759 movq (%r8,%rsi), %rbx
0x85, 0xdb, //0x0000075d testl %ebx, %ebx
0x0f, 0x84, 0x80, 0x00, 0x00, 0x00, //0x0000075f je LBB0_88
0x48, 0x63, 0xcb, //0x00000765 movslq %ebx, %rcx
0x49, 0x29, 0xca, //0x00000768 subq %rcx, %r10
0x0f, 0x8c, 0x15, 0x04, 0x00, 0x00, //0x0000076b jl LBB0_126
0x48, 0xc1, 0xe3, 0x20, //0x00000771 shlq $32, %rbx
0x49, 0x8d, 0x14, 0x30, //0x00000775 leaq (%r8,%rsi), %rdx
0x48, 0x83, 0xc2, 0x08, //0x00000779 addq $8, %rdx
0x4c, 0x39, 0xe3, //0x0000077d cmpq %r12, %rbx
0x0f, 0x8c, 0x2a, 0x00, 0x00, 0x00, //0x00000780 jl LBB0_84
0x8b, 0x02, //0x00000786 movl (%rdx), %eax
0x41, 0x89, 0x01, //0x00000788 movl %eax, (%r9)
0x49, 0x8d, 0x14, 0x30, //0x0000078b leaq (%r8,%rsi), %rdx
0x48, 0x83, 0xc2, 0x0c, //0x0000078f addq $12, %rdx
0x49, 0x8d, 0x71, 0x04, //0x00000793 leaq $4(%r9), %rsi
0x48, 0x8d, 0x59, 0xfc, //0x00000797 leaq $-4(%rcx), %rbx
0x48, 0x83, 0xfb, 0x02, //0x0000079b cmpq $2, %rbx
0x0f, 0x83, 0x1b, 0x00, 0x00, 0x00, //0x0000079f jae LBB0_85
0xe9, 0x28, 0x00, 0x00, 0x00, //0x000007a5 jmp LBB0_86
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, //0x000007aa .p2align 4, 0x90
//0x000007b0 LBB0_84
0x4c, 0x89, 0xce, //0x000007b0 movq %r9, %rsi
0x48, 0x89, 0xcb, //0x000007b3 movq %rcx, %rbx
0x48, 0x83, 0xfb, 0x02, //0x000007b6 cmpq $2, %rbx
0x0f, 0x82, 0x12, 0x00, 0x00, 0x00, //0x000007ba jb LBB0_86
//0x000007c0 LBB0_85
0x0f, 0xb7, 0x02, //0x000007c0 movzwl (%rdx), %eax
0x66, 0x89, 0x06, //0x000007c3 movw %ax, (%rsi)
0x48, 0x83, 0xc2, 0x02, //0x000007c6 addq $2, %rdx
0x48, 0x83, 0xc6, 0x02, //0x000007ca addq $2, %rsi
0x48, 0x83, 0xc3, 0xfe, //0x000007ce addq $-2, %rbx
//0x000007d2 LBB0_86
0x48, 0x85, 0xdb, //0x000007d2 testq %rbx, %rbx
0x0f, 0x84, 0x65, 0xff, 0xff, 0xff, //0x000007d5 je LBB0_79
0x0f, 0xb6, 0x02, //0x000007db movzbl (%rdx), %eax
0x88, 0x06, //0x000007de movb %al, (%rsi)
0xe9, 0x5b, 0xff, 0xff, 0xff, //0x000007e0 jmp LBB0_79
//0x000007e5 LBB0_88
0x4b, 0x8d, 0x0c, 0x2b, //0x000007e5 leaq (%r11,%r13), %rcx
0x4d, 0x29, 0xee, //0x000007e9 subq %r13, %r14
0x0f, 0x85, 0x15, 0xf9, 0xff, 0xff, //0x000007ec jne LBB0_3
0xe9, 0x77, 0x03, 0x00, 0x00, //0x000007f2 jmp LBB0_124
//0x000007f7 LBB0_71
0x48, 0x83, 0xf9, 0x02, //0x000007f7 cmpq $2, %rcx
0x0f, 0x82, 0xeb, 0xfe, 0xff, 0xff, //0x000007fb jb LBB0_72
//0x00000801 LBB0_92
0x0f, 0xb7, 0x32, //0x00000801 movzwl (%rdx), %esi
0x66, 0x41, 0x89, 0x34, 0x24, //0x00000804 movw %si, (%r12)
0x48, 0x83, 0xc2, 0x02, //0x00000809 addq $2, %rdx
0x49, 0x83, 0xc4, 0x02, //0x0000080d addq $2, %r12
0x48, 0x83, 0xc1, 0xfe, //0x00000811 addq $-2, %rcx
0x48, 0x85, 0xc9, //0x00000815 testq %rcx, %rcx
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/jit/arch_amd64.go | vendor/github.com/bytedance/sonic/internal/jit/arch_amd64.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jit
import (
"unsafe"
"github.com/twitchyliquid64/golang-asm/asm/arch"
"github.com/twitchyliquid64/golang-asm/obj"
)
var (
_AC = arch.Set("amd64")
)
func As(op string) obj.As {
if ret, ok := _AC.Instructions[op]; ok {
return ret
} else {
panic("invalid instruction: " + op)
}
}
func ImmPtr(imm unsafe.Pointer) obj.Addr {
return obj.Addr {
Type : obj.TYPE_CONST,
Offset : int64(uintptr(imm)),
}
}
func Imm(imm int64) obj.Addr {
return obj.Addr {
Type : obj.TYPE_CONST,
Offset : imm,
}
}
func Reg(reg string) obj.Addr {
if ret, ok := _AC.Register[reg]; ok {
return obj.Addr{Reg: ret, Type: obj.TYPE_REG}
} else {
panic("invalid register name: " + reg)
}
}
func Ptr(reg obj.Addr, offs int64) obj.Addr {
return obj.Addr {
Reg : reg.Reg,
Type : obj.TYPE_MEM,
Offset : offs,
}
}
func Sib(reg obj.Addr, idx obj.Addr, scale int16, offs int64) obj.Addr {
return obj.Addr {
Reg : reg.Reg,
Index : idx.Reg,
Scale : scale,
Type : obj.TYPE_MEM,
Offset : offs,
}
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/jit/backend.go | vendor/github.com/bytedance/sonic/internal/jit/backend.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jit
import (
`fmt`
`sync`
_ `unsafe`
`github.com/bytedance/sonic/internal/rt`
`github.com/twitchyliquid64/golang-asm/asm/arch`
`github.com/twitchyliquid64/golang-asm/obj`
`github.com/twitchyliquid64/golang-asm/objabi`
)
type Backend struct {
Ctxt *obj.Link
Arch *arch.Arch
Head *obj.Prog
Tail *obj.Prog
Prog []*obj.Prog
}
var (
_progPool sync.Pool
)
func newProg() *obj.Prog {
if val := _progPool.Get(); val == nil {
return new(obj.Prog)
} else {
return remProg(val.(*obj.Prog))
}
}
func remProg(p *obj.Prog) *obj.Prog {
*p = obj.Prog{}
return p
}
func newBackend(name string) (ret *Backend) {
ret = new(Backend)
ret.Arch = arch.Set(name)
ret.Ctxt = newLinkContext(ret.Arch.LinkArch)
ret.Arch.Init(ret.Ctxt)
return
}
func newLinkContext(arch *obj.LinkArch) (ret *obj.Link) {
ret = obj.Linknew(arch)
ret.Headtype = objabi.Hlinux
ret.DiagFunc = diagLinkContext
return
}
func diagLinkContext(str string, args ...interface{}) {
rt.Throw(fmt.Sprintf(str, args...))
}
func (self *Backend) New() (ret *obj.Prog) {
ret = newProg()
ret.Ctxt = self.Ctxt
self.Prog = append(self.Prog, ret)
return
}
func (self *Backend) Append(p *obj.Prog) {
if self.Head == nil {
self.Head = p
self.Tail = p
} else {
self.Tail.Link = p
self.Tail = p
}
}
func (self *Backend) Release() {
self.Arch = nil
self.Ctxt = nil
/* return all the progs into pool */
for _, p := range self.Prog {
_progPool.Put(p)
}
/* clear all the references */
self.Head = nil
self.Tail = nil
self.Prog = nil
}
func (self *Backend) Assemble() []byte {
var sym obj.LSym
var fnv obj.FuncInfo
/* construct the function */
sym.Func = &fnv
fnv.Text = self.Head
/* call the assembler */
self.Arch.Assemble(self.Ctxt, &sym, self.New)
return sym.P
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/jit/runtime.go | vendor/github.com/bytedance/sonic/internal/jit/runtime.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jit
import (
`reflect`
`unsafe`
`github.com/bytedance/sonic/internal/rt`
`github.com/twitchyliquid64/golang-asm/obj`
)
func Func(f interface{}) obj.Addr {
if p := rt.UnpackEface(f); p.Type.Kind() != reflect.Func {
panic("f is not a function")
} else {
return Imm(*(*int64)(p.Value))
}
}
func Type(t reflect.Type) obj.Addr {
return Gtype(rt.UnpackType(t))
}
func Itab(i *rt.GoType, t reflect.Type) obj.Addr {
return Imm(int64(uintptr(unsafe.Pointer(rt.GetItab(rt.IfaceType(i), rt.UnpackType(t), false)))))
}
func Gitab(i *rt.GoItab) obj.Addr {
return Imm(int64(uintptr(unsafe.Pointer(i))))
}
func Gtype(t *rt.GoType) obj.Addr {
return Imm(int64(uintptr(unsafe.Pointer(t))))
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/jit/assembler_amd64.go | vendor/github.com/bytedance/sonic/internal/jit/assembler_amd64.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jit
import (
`encoding/binary`
`strconv`
`strings`
`sync`
`github.com/bytedance/sonic/loader`
`github.com/bytedance/sonic/internal/rt`
`github.com/twitchyliquid64/golang-asm/obj`
`github.com/twitchyliquid64/golang-asm/obj/x86`
)
const (
_LB_jump_pc = "_jump_pc_"
)
type BaseAssembler struct {
i int
f func()
c []byte
o sync.Once
pb *Backend
xrefs map[string][]*obj.Prog
labels map[string]*obj.Prog
pendings map[string][]*obj.Prog
}
/** Instruction Encoders **/
var _NOPS = [][16]byte {
{0x90}, // NOP
{0x66, 0x90}, // 66 NOP
{0x0f, 0x1f, 0x00}, // NOP DWORD ptr [EAX]
{0x0f, 0x1f, 0x40, 0x00}, // NOP DWORD ptr [EAX + 00H]
{0x0f, 0x1f, 0x44, 0x00, 0x00}, // NOP DWORD ptr [EAX + EAX*1 + 00H]
{0x66, 0x0f, 0x1f, 0x44, 0x00, 0x00}, // 66 NOP DWORD ptr [EAX + EAX*1 + 00H]
{0x0f, 0x1f, 0x80, 0x00, 0x00, 0x00, 0x00}, // NOP DWORD ptr [EAX + 00000000H]
{0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00}, // NOP DWORD ptr [EAX + EAX*1 + 00000000H]
{0x66, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00}, // 66 NOP DWORD ptr [EAX + EAX*1 + 00000000H]
}
func (self *BaseAssembler) NOP() *obj.Prog {
p := self.pb.New()
p.As = obj.ANOP
self.pb.Append(p)
return p
}
func (self *BaseAssembler) NOPn(n int) {
for i := len(_NOPS); i > 0 && n > 0; i-- {
for ; n >= i; n -= i {
self.Byte(_NOPS[i - 1][:i]...)
}
}
}
func (self *BaseAssembler) Byte(v ...byte) {
for ; len(v) >= 8; v = v[8:] { self.From("QUAD", Imm(rt.Get64(v))) }
for ; len(v) >= 4; v = v[4:] { self.From("LONG", Imm(int64(rt.Get32(v)))) }
for ; len(v) >= 2; v = v[2:] { self.From("WORD", Imm(int64(rt.Get16(v)))) }
for ; len(v) >= 1; v = v[1:] { self.From("BYTE", Imm(int64(v[0]))) }
}
func (self *BaseAssembler) Mark(pc int) {
self.i++
self.Link(_LB_jump_pc + strconv.Itoa(pc))
}
func (self *BaseAssembler) Link(to string) {
var p *obj.Prog
var v []*obj.Prog
/* placeholder substitution */
if strings.Contains(to, "{n}") {
to = strings.ReplaceAll(to, "{n}", strconv.Itoa(self.i))
}
/* check for duplications */
if _, ok := self.labels[to]; ok {
panic("label " + to + " has already been linked")
}
/* get the pending links */
p = self.NOP()
v = self.pendings[to]
/* patch all the pending jumps */
for _, q := range v {
q.To.Val = p
}
/* mark the label as resolved */
self.labels[to] = p
delete(self.pendings, to)
}
func (self *BaseAssembler) Xref(pc int, d int64) {
self.Sref(_LB_jump_pc + strconv.Itoa(pc), d)
}
func (self *BaseAssembler) Sref(to string, d int64) {
p := self.pb.New()
p.As = x86.ALONG
p.From = Imm(-d)
/* placeholder substitution */
if strings.Contains(to, "{n}") {
to = strings.ReplaceAll(to, "{n}", strconv.Itoa(self.i))
}
/* record the patch point */
self.pb.Append(p)
self.xrefs[to] = append(self.xrefs[to], p)
}
func (self *BaseAssembler) Xjmp(op string, to int) {
self.Sjmp(op, _LB_jump_pc + strconv.Itoa(to))
}
func (self *BaseAssembler) Sjmp(op string, to string) {
p := self.pb.New()
p.As = As(op)
/* placeholder substitution */
if strings.Contains(to, "{n}") {
to = strings.ReplaceAll(to, "{n}", strconv.Itoa(self.i))
}
/* check for backward jumps */
if v, ok := self.labels[to]; ok {
p.To.Val = v
} else {
self.pendings[to] = append(self.pendings[to], p)
}
/* mark as a branch, and add to instruction buffer */
p.To.Type = obj.TYPE_BRANCH
self.pb.Append(p)
}
func (self *BaseAssembler) Rjmp(op string, to obj.Addr) {
p := self.pb.New()
p.To = to
p.As = As(op)
self.pb.Append(p)
}
func (self *BaseAssembler) From(op string, val obj.Addr) {
p := self.pb.New()
p.As = As(op)
p.From = val
self.pb.Append(p)
}
func (self *BaseAssembler) Emit(op string, args ...obj.Addr) {
p := self.pb.New()
p.As = As(op)
self.assignOperands(p, args)
self.pb.Append(p)
}
func (self *BaseAssembler) assignOperands(p *obj.Prog, args []obj.Addr) {
switch len(args) {
case 0 :
case 1 : p.To = args[0]
case 2 : p.To, p.From = args[1], args[0]
case 3 : p.To, p.From, p.RestArgs = args[2], args[0], args[1:2]
case 4 : p.To, p.From, p.RestArgs = args[2], args[3], args[:2]
default : panic("invalid operands")
}
}
/** Assembler Helpers **/
func (self *BaseAssembler) Size() int {
self.build()
return len(self.c)
}
func (self *BaseAssembler) Init(f func()) {
self.i = 0
self.f = f
self.c = nil
self.o = sync.Once{}
}
var jitLoader = loader.Loader{
Name: "sonic.jit.",
File: "github.com/bytedance/sonic/jit.go",
Options: loader.Options{
NoPreempt: true,
},
}
func (self *BaseAssembler) Load(name string, frameSize int, argSize int, argStackmap []bool, localStackmap []bool) loader.Function {
self.build()
return jitLoader.LoadOne(self.c, name, frameSize, argSize, argStackmap, localStackmap)
}
/** Assembler Stages **/
func (self *BaseAssembler) init() {
self.pb = newBackend("amd64")
self.xrefs = map[string][]*obj.Prog{}
self.labels = map[string]*obj.Prog{}
self.pendings = map[string][]*obj.Prog{}
}
func (self *BaseAssembler) build() {
self.o.Do(func() {
self.init()
self.f()
self.validate()
self.assemble()
self.resolve()
self.release()
})
}
func (self *BaseAssembler) release() {
self.pb.Release()
self.pb = nil
self.xrefs = nil
self.labels = nil
self.pendings = nil
}
func (self *BaseAssembler) resolve() {
for s, v := range self.xrefs {
for _, prog := range v {
if prog.As != x86.ALONG {
panic("invalid RIP relative reference")
} else if p, ok := self.labels[s]; !ok {
panic("links are not fully resolved: " + s)
} else {
off := prog.From.Offset + p.Pc - prog.Pc
binary.LittleEndian.PutUint32(self.c[prog.Pc:], uint32(off))
}
}
}
}
func (self *BaseAssembler) validate() {
for key := range self.pendings {
panic("links are not fully resolved: " + key)
}
}
func (self *BaseAssembler) assemble() {
self.c = self.pb.Assemble()
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/envs/decode.go | vendor/github.com/bytedance/sonic/internal/envs/decode.go | package envs
import (
"os"
)
var UseOptDec = os.Getenv("SONIC_USE_OPTDEC") == "1"
var UseFastMap = os.Getenv("SONIC_USE_FASTMAP") == "1"
func EnableOptDec() {
UseOptDec = true
}
func DisableOptDec() {
UseOptDec = false
}
func EnableFastMap() {
UseFastMap = true
}
func DisableFastMap() {
UseFastMap = false
} | go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/cpu/features.go | vendor/github.com/bytedance/sonic/internal/cpu/features.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cpu
import (
`fmt`
`os`
`github.com/klauspost/cpuid/v2`
)
var (
HasAVX2 = cpuid.CPU.Has(cpuid.AVX2)
HasSSE = cpuid.CPU.Has(cpuid.SSE)
)
func init() {
switch v := os.Getenv("SONIC_MODE"); v {
case "" : break
case "auto" : break
case "noavx" : HasAVX2 = false
// will also disable avx, act as `noavx`, we remain it to make sure forward compatibility
case "noavx2" : HasAVX2 = false
default : panic(fmt.Sprintf("invalid mode: '%s', should be one of 'auto', 'noavx', 'noavx2'", v))
}
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/encode_norace.go | vendor/github.com/bytedance/sonic/internal/encoder/encode_norace.go | //go:build !race
// +build !race
/*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package encoder
func encodeIntoCheckRace(buf *[]byte, val interface{}, opts Options) error {
return encodeInto(buf, val, opts)
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/stream.go | vendor/github.com/bytedance/sonic/internal/encoder/stream.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package encoder
import (
"encoding/json"
"io"
"github.com/bytedance/sonic/internal/encoder/vars"
)
// StreamEncoder uses io.Writer as input.
type StreamEncoder struct {
w io.Writer
Encoder
}
// NewStreamEncoder adapts to encoding/json.NewDecoder API.
//
// NewStreamEncoder returns a new encoder that write to w.
func NewStreamEncoder(w io.Writer) *StreamEncoder {
return &StreamEncoder{w: w}
}
// Encode encodes interface{} as JSON to io.Writer
func (enc *StreamEncoder) Encode(val interface{}) (err error) {
out := vars.NewBytes()
/* encode into the buffer */
err = EncodeInto(out, val, enc.Opts)
if err != nil {
goto free_bytes
}
if enc.indent != "" || enc.prefix != "" {
/* indent the JSON */
buf := vars.NewBuffer()
err = json.Indent(buf, *out, enc.prefix, enc.indent)
if err != nil {
vars.FreeBuffer(buf)
goto free_bytes
}
// according to standard library, terminate each value with a newline...
if enc.Opts & NoEncoderNewline == 0 {
buf.WriteByte('\n')
}
/* copy into io.Writer */
_, err = io.Copy(enc.w, buf)
if err != nil {
vars.FreeBuffer(buf)
goto free_bytes
}
} else {
/* copy into io.Writer */
var n int
buf := *out
for len(buf) > 0 {
n, err = enc.w.Write(buf)
buf = buf[n:]
if err != nil {
goto free_bytes
}
}
// according to standard library, terminate each value with a newline...
if enc.Opts & NoEncoderNewline == 0 {
enc.w.Write([]byte{'\n'})
}
}
free_bytes:
vars.FreeBytes(out)
return err
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/encode_race.go | vendor/github.com/bytedance/sonic/internal/encoder/encode_race.go | //go:build race
// +build race
/*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package encoder
import (
`encoding/json`
`github.com/bytedance/sonic/internal/rt`
)
func helpDetectDataRace(val interface{}) {
var out []byte
defer func() {
if v := recover(); v != nil {
// NOTICE: help user to locate where panic occurs
println("panic when encoding on: ", truncate(out))
panic(v)
}
}()
out, _ = json.Marshal(val)
}
func encodeIntoCheckRace(buf *[]byte, val interface{}, opts Options) error {
err := encodeInto(buf, val, opts)
/* put last to make the panic from sonic will always be caught at first */
helpDetectDataRace(val)
return err
}
func truncate(json []byte) string {
if len(json) <= 256 {
return rt.Mem2Str(json)
} else {
return rt.Mem2Str(json[len(json)-256:])
}
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/compiler.go | vendor/github.com/bytedance/sonic/internal/encoder/compiler.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package encoder
import (
"reflect"
"unsafe"
"github.com/bytedance/sonic/internal/encoder/ir"
"github.com/bytedance/sonic/internal/encoder/vars"
"github.com/bytedance/sonic/internal/encoder/vm"
"github.com/bytedance/sonic/internal/resolver"
"github.com/bytedance/sonic/internal/rt"
"github.com/bytedance/sonic/option"
)
func ForceUseVM() {
vm.SetCompiler(makeEncoderVM)
pretouchType = pretouchTypeVM
encodeTypedPointer = vm.EncodeTypedPointer
vars.UseVM = true
}
var encodeTypedPointer func(buf *[]byte, vt *rt.GoType, vp *unsafe.Pointer, sb *vars.Stack, fv uint64) error
func makeEncoderVM(vt *rt.GoType, ex ...interface{}) (interface{}, error) {
pp, err := NewCompiler().Compile(vt.Pack(), ex[0].(bool))
if err != nil {
return nil, err
}
return &pp, nil
}
var pretouchType func(_vt reflect.Type, opts option.CompileOptions, v uint8) (map[reflect.Type]uint8, error)
func pretouchTypeVM(_vt reflect.Type, opts option.CompileOptions, v uint8) (map[reflect.Type]uint8, error) {
/* compile function */
compiler := NewCompiler().apply(opts)
/* find or compile */
vt := rt.UnpackType(_vt)
if val := vars.GetProgram(vt); val != nil {
return nil, nil
} else if _, err := vars.ComputeProgram(vt, makeEncoderVM, v == 1); err == nil {
return compiler.rec, nil
} else {
return nil, err
}
}
func pretouchRec(vtm map[reflect.Type]uint8, opts option.CompileOptions) error {
if opts.RecursiveDepth < 0 || len(vtm) == 0 {
return nil
}
next := make(map[reflect.Type]uint8)
for vt, v := range vtm {
sub, err := pretouchType(vt, opts, v)
if err != nil {
return err
}
for svt, v := range sub {
next[svt] = v
}
}
opts.RecursiveDepth -= 1
return pretouchRec(next, opts)
}
type Compiler struct {
opts option.CompileOptions
pv bool
tab map[reflect.Type]bool
rec map[reflect.Type]uint8
}
func NewCompiler() *Compiler {
return &Compiler{
opts: option.DefaultCompileOptions(),
tab: map[reflect.Type]bool{},
rec: map[reflect.Type]uint8{},
}
}
func (self *Compiler) apply(opts option.CompileOptions) *Compiler {
self.opts = opts
if self.opts.RecursiveDepth > 0 {
self.rec = map[reflect.Type]uint8{}
}
return self
}
func (self *Compiler) rescue(ep *error) {
if val := recover(); val != nil {
if err, ok := val.(error); ok {
*ep = err
} else {
panic(val)
}
}
}
func (self *Compiler) Compile(vt reflect.Type, pv bool) (ret ir.Program, err error) {
defer self.rescue(&err)
self.compileOne(&ret, 0, vt, pv)
return
}
func (self *Compiler) compileOne(p *ir.Program, sp int, vt reflect.Type, pv bool) {
if self.tab[vt] {
p.Vp(ir.OP_recurse, vt, pv)
} else {
self.compileRec(p, sp, vt, pv)
}
}
func (self *Compiler) tryCompileMarshaler(p *ir.Program, vt reflect.Type, pv bool) bool {
pt := reflect.PtrTo(vt)
/* check for addressable `json.Marshaler` with pointer receiver */
if pv && pt.Implements(vars.JsonMarshalerType) {
addMarshalerOp(p, ir.OP_marshal_p, pt, vars.JsonMarshalerType)
return true
}
/* check for `json.Marshaler` */
if vt.Implements(vars.JsonMarshalerType) {
self.compileMarshaler(p, ir.OP_marshal, vt, vars.JsonMarshalerType)
return true
}
/* check for addressable `encoding.TextMarshaler` with pointer receiver */
if pv && pt.Implements(vars.EncodingTextMarshalerType) {
addMarshalerOp(p, ir.OP_marshal_text_p, pt, vars.EncodingTextMarshalerType)
return true
}
/* check for `encoding.TextMarshaler` */
if vt.Implements(vars.EncodingTextMarshalerType) {
self.compileMarshaler(p, ir.OP_marshal_text, vt, vars.EncodingTextMarshalerType)
return true
}
return false
}
func (self *Compiler) compileRec(p *ir.Program, sp int, vt reflect.Type, pv bool) {
pr := self.pv
if self.tryCompileMarshaler(p, vt, pv) {
return
}
/* enter the recursion, and compile the type */
self.pv = pv
self.tab[vt] = true
self.compileOps(p, sp, vt)
/* exit the recursion */
self.pv = pr
delete(self.tab, vt)
}
func (self *Compiler) compileOps(p *ir.Program, sp int, vt reflect.Type) {
switch vt.Kind() {
case reflect.Bool:
p.Add(ir.OP_bool)
case reflect.Int:
p.Add(ir.OP_int())
case reflect.Int8:
p.Add(ir.OP_i8)
case reflect.Int16:
p.Add(ir.OP_i16)
case reflect.Int32:
p.Add(ir.OP_i32)
case reflect.Int64:
p.Add(ir.OP_i64)
case reflect.Uint:
p.Add(ir.OP_uint())
case reflect.Uint8:
p.Add(ir.OP_u8)
case reflect.Uint16:
p.Add(ir.OP_u16)
case reflect.Uint32:
p.Add(ir.OP_u32)
case reflect.Uint64:
p.Add(ir.OP_u64)
case reflect.Uintptr:
p.Add(ir.OP_uintptr())
case reflect.Float32:
p.Add(ir.OP_f32)
case reflect.Float64:
p.Add(ir.OP_f64)
case reflect.String:
self.compileString(p, vt)
case reflect.Array:
self.compileArray(p, sp, vt.Elem(), vt.Len())
case reflect.Interface:
self.compileInterface(p, vt)
case reflect.Map:
self.compileMap(p, sp, vt)
case reflect.Ptr:
self.compilePtr(p, sp, vt.Elem())
case reflect.Slice:
self.compileSlice(p, sp, vt.Elem())
case reflect.Struct:
self.compileStruct(p, sp, vt)
default:
self.compileUnsupportedType(p, vt)
}
}
func (self *Compiler) compileNil(p *ir.Program, sp int, vt reflect.Type, nil_op ir.Op, fn func(*ir.Program, int, reflect.Type)) {
x := p.PC()
p.Add(ir.OP_is_nil)
fn(p, sp, vt)
e := p.PC()
p.Add(ir.OP_goto)
p.Pin(x)
p.Add(nil_op)
p.Pin(e)
}
func (self *Compiler) compilePtr(p *ir.Program, sp int, vt reflect.Type) {
self.compileNil(p, sp, vt, ir.OP_null, self.compilePtrBody)
}
func (self *Compiler) compilePtrBody(p *ir.Program, sp int, vt reflect.Type) {
p.Tag(sp)
p.Add(ir.OP_save)
p.Add(ir.OP_deref)
self.compileOne(p, sp+1, vt, true)
p.Add(ir.OP_drop)
}
func (self *Compiler) compileMap(p *ir.Program, sp int, vt reflect.Type) {
self.compileNil(p, sp, vt, ir.OP_empty_obj, self.compileMapBody)
}
func (self *Compiler) compileMapBody(p *ir.Program, sp int, vt reflect.Type) {
p.Tag(sp + 1)
p.Int(ir.OP_byte, '{')
e := p.PC()
p.Add(ir.OP_is_zero_map)
p.Add(ir.OP_save)
p.Rtt(ir.OP_map_iter, vt)
p.Add(ir.OP_save)
i := p.PC()
p.Add(ir.OP_map_check_key)
u := p.PC()
p.Add(ir.OP_map_write_key)
self.compileMapBodyKey(p, vt.Key())
p.Pin(u)
p.Int(ir.OP_byte, ':')
p.Add(ir.OP_map_value_next)
self.compileOne(p, sp+2, vt.Elem(), false)
j := p.PC()
p.Add(ir.OP_map_check_key)
p.Int(ir.OP_byte, ',')
v := p.PC()
p.Add(ir.OP_map_write_key)
self.compileMapBodyKey(p, vt.Key())
p.Pin(v)
p.Int(ir.OP_byte, ':')
p.Add(ir.OP_map_value_next)
self.compileOne(p, sp+2, vt.Elem(), false)
p.Int(ir.OP_goto, j)
p.Pin(i)
p.Pin(j)
p.Add(ir.OP_map_stop)
p.Add(ir.OP_drop_2)
p.Pin(e)
p.Int(ir.OP_byte, '}')
}
func (self *Compiler) compileMapBodyKey(p *ir.Program, vk reflect.Type) {
if !vk.Implements(vars.EncodingTextMarshalerType) {
self.compileMapBodyTextKey(p, vk)
} else {
self.compileMapBodyUtextKey(p, vk)
}
}
func (self *Compiler) compileMapBodyTextKey(p *ir.Program, vk reflect.Type) {
switch vk.Kind() {
case reflect.Invalid:
panic("map key is nil")
case reflect.Bool:
p.Key(ir.OP_bool)
case reflect.Int:
p.Key(ir.OP_int())
case reflect.Int8:
p.Key(ir.OP_i8)
case reflect.Int16:
p.Key(ir.OP_i16)
case reflect.Int32:
p.Key(ir.OP_i32)
case reflect.Int64:
p.Key(ir.OP_i64)
case reflect.Uint:
p.Key(ir.OP_uint())
case reflect.Uint8:
p.Key(ir.OP_u8)
case reflect.Uint16:
p.Key(ir.OP_u16)
case reflect.Uint32:
p.Key(ir.OP_u32)
case reflect.Uint64:
p.Key(ir.OP_u64)
case reflect.Uintptr:
p.Key(ir.OP_uintptr())
case reflect.Float32:
p.Key(ir.OP_f32)
case reflect.Float64:
p.Key(ir.OP_f64)
case reflect.String:
self.compileString(p, vk)
default:
panic(vars.Error_type(vk))
}
}
func (self *Compiler) compileMapBodyUtextKey(p *ir.Program, vk reflect.Type) {
if vk.Kind() != reflect.Ptr {
addMarshalerOp(p, ir.OP_marshal_text, vk, vars.EncodingTextMarshalerType)
} else {
self.compileMapBodyUtextPtr(p, vk)
}
}
func (self *Compiler) compileMapBodyUtextPtr(p *ir.Program, vk reflect.Type) {
i := p.PC()
p.Add(ir.OP_is_nil)
addMarshalerOp(p, ir.OP_marshal_text, vk, vars.EncodingTextMarshalerType)
j := p.PC()
p.Add(ir.OP_goto)
p.Pin(i)
p.Str(ir.OP_text, "\"\"")
p.Pin(j)
}
func (self *Compiler) compileSlice(p *ir.Program, sp int, vt reflect.Type) {
self.compileNil(p, sp, vt, ir.OP_empty_arr, self.compileSliceBody)
}
func (self *Compiler) compileSliceBody(p *ir.Program, sp int, vt reflect.Type) {
if vars.IsSimpleByte(vt) {
p.Add(ir.OP_bin)
} else {
self.compileSliceArray(p, sp, vt)
}
}
func (self *Compiler) compileSliceArray(p *ir.Program, sp int, vt reflect.Type) {
p.Tag(sp)
p.Int(ir.OP_byte, '[')
e := p.PC()
p.Add(ir.OP_is_nil)
p.Add(ir.OP_save)
p.Add(ir.OP_slice_len)
i := p.PC()
p.Rtt(ir.OP_slice_next, vt)
self.compileOne(p, sp+1, vt, true)
j := p.PC()
p.Rtt(ir.OP_slice_next, vt)
p.Int(ir.OP_byte, ',')
self.compileOne(p, sp+1, vt, true)
p.Int(ir.OP_goto, j)
p.Pin(i)
p.Pin(j)
p.Add(ir.OP_drop)
p.Pin(e)
p.Int(ir.OP_byte, ']')
}
func (self *Compiler) compileArray(p *ir.Program, sp int, vt reflect.Type, nb int) {
p.Tag(sp)
p.Int(ir.OP_byte, '[')
p.Add(ir.OP_save)
/* first item */
if nb != 0 {
self.compileOne(p, sp+1, vt, self.pv)
p.Add(ir.OP_load)
}
/* remaining items */
for i := 1; i < nb; i++ {
p.Int(ir.OP_byte, ',')
p.Int(ir.OP_index, i*int(vt.Size()))
self.compileOne(p, sp+1, vt, self.pv)
p.Add(ir.OP_load)
}
/* end of array */
p.Add(ir.OP_drop)
p.Int(ir.OP_byte, ']')
}
func (self *Compiler) compileString(p *ir.Program, vt reflect.Type) {
if vt != vars.JsonNumberType {
p.Add(ir.OP_str)
} else {
p.Add(ir.OP_number)
}
}
func (self *Compiler) compileStruct(p *ir.Program, sp int, vt reflect.Type) {
if sp >= self.opts.MaxInlineDepth || p.PC() >= vars.MAX_ILBUF || (sp > 0 && vt.NumField() >= vars.MAX_FIELDS) {
p.Vp(ir.OP_recurse, vt, self.pv)
if self.opts.RecursiveDepth > 0 {
if self.pv {
self.rec[vt] = 1
} else {
self.rec[vt] = 0
}
}
} else {
self.compileStructBody(p, sp, vt)
}
}
func (self *Compiler) compileStructBody(p *ir.Program, sp int, vt reflect.Type) {
p.Tag(sp)
p.Int(ir.OP_byte, '{')
p.Add(ir.OP_save)
p.Add(ir.OP_cond_set)
/* compile each field */
fvs := resolver.ResolveStruct(vt)
for i, fv := range fvs {
var s []int
var o resolver.Offset
/* "omitempty" for arrays */
if fv.Type.Kind() == reflect.Array {
if fv.Type.Len() == 0 && (fv.Opts&resolver.F_omitempty) != 0 {
continue
}
}
/* index to the field */
for _, o = range fv.Path {
if p.Int(ir.OP_index, int(o.Size)); o.Kind == resolver.F_deref {
s = append(s, p.PC())
p.Add(ir.OP_is_nil)
p.Add(ir.OP_deref)
}
}
/* check for "omitempty" option */
if fv.Type.Kind() != reflect.Struct && fv.Type.Kind() != reflect.Array && (fv.Opts&resolver.F_omitempty) != 0 {
s = append(s, p.PC())
self.compileStructFieldEmpty(p, fv.Type)
}
/* check for "omitzero" option */
if fv.Opts&resolver.F_omitzero != 0 {
s = append(s, p.PC())
p.VField(ir.OP_is_zero, &fvs[i])
}
/* add the comma if not the first element */
i := p.PC()
p.Add(ir.OP_cond_testc)
p.Int(ir.OP_byte, ',')
p.Pin(i)
/* compile the key and value */
ft := fv.Type
p.Str(ir.OP_text, Quote(fv.Name)+":")
/* check for "stringnize" option */
if (fv.Opts & resolver.F_stringize) == 0 {
self.compileOne(p, sp+1, ft, self.pv)
} else {
self.compileStructFieldStr(p, sp+1, ft)
}
/* patch the skipping jumps and reload the struct pointer */
p.Rel(s)
p.Add(ir.OP_load)
}
/* end of object */
p.Add(ir.OP_drop)
p.Int(ir.OP_byte, '}')
}
func (self *Compiler) compileStructFieldStr(p *ir.Program, sp int, vt reflect.Type) {
// NOTICE: according to encoding/json, Marshaler type has higher priority than string option
// see issue:
if self.tryCompileMarshaler(p, vt, self.pv) {
return
}
pc := -1
ft := vt
sv := false
/* dereference the pointer if needed */
if ft.Kind() == reflect.Ptr {
ft = ft.Elem()
}
/* check if it can be stringized */
switch ft.Kind() {
case reflect.Bool:
sv = true
case reflect.Int:
sv = true
case reflect.Int8:
sv = true
case reflect.Int16:
sv = true
case reflect.Int32:
sv = true
case reflect.Int64:
sv = true
case reflect.Uint:
sv = true
case reflect.Uint8:
sv = true
case reflect.Uint16:
sv = true
case reflect.Uint32:
sv = true
case reflect.Uint64:
sv = true
case reflect.Uintptr:
sv = true
case reflect.Float32:
sv = true
case reflect.Float64:
sv = true
case reflect.String:
sv = true
}
/* if it's not, ignore the "string" and follow the regular path */
if !sv {
self.compileOne(p, sp, vt, self.pv)
return
}
/* dereference the pointer */
if vt.Kind() == reflect.Ptr {
pc = p.PC()
vt = vt.Elem()
p.Add(ir.OP_is_nil)
p.Add(ir.OP_deref)
}
/* special case of a double-quoted string */
if ft != vars.JsonNumberType && ft.Kind() == reflect.String {
p.Add(ir.OP_quote)
} else {
self.compileStructFieldQuoted(p, sp, vt)
}
/* the "null" case of the pointer */
if pc != -1 {
e := p.PC()
p.Add(ir.OP_goto)
p.Pin(pc)
p.Add(ir.OP_null)
p.Pin(e)
}
}
func (self *Compiler) compileStructFieldEmpty(p *ir.Program, vt reflect.Type) {
switch vt.Kind() {
case reflect.Bool:
p.Add(ir.OP_is_zero_1)
case reflect.Int:
p.Add(ir.OP_is_zero_ints())
case reflect.Int8:
p.Add(ir.OP_is_zero_1)
case reflect.Int16:
p.Add(ir.OP_is_zero_2)
case reflect.Int32:
p.Add(ir.OP_is_zero_4)
case reflect.Int64:
p.Add(ir.OP_is_zero_8)
case reflect.Uint:
p.Add(ir.OP_is_zero_ints())
case reflect.Uint8:
p.Add(ir.OP_is_zero_1)
case reflect.Uint16:
p.Add(ir.OP_is_zero_2)
case reflect.Uint32:
p.Add(ir.OP_is_zero_4)
case reflect.Uint64:
p.Add(ir.OP_is_zero_8)
case reflect.Uintptr:
p.Add(ir.OP_is_nil)
case reflect.Float32:
p.Add(ir.OP_is_zero_4)
case reflect.Float64:
p.Add(ir.OP_is_zero_8)
case reflect.String:
p.Add(ir.OP_is_nil_p1)
case reflect.Interface:
p.Add(ir.OP_is_nil)
case reflect.Map:
p.Add(ir.OP_is_zero_map)
case reflect.Ptr:
p.Add(ir.OP_is_nil)
case reflect.Slice:
p.Add(ir.OP_is_nil_p1)
default:
panic(vars.Error_type(vt))
}
}
func (self *Compiler) compileStructFieldQuoted(p *ir.Program, sp int, vt reflect.Type) {
p.Int(ir.OP_byte, '"')
self.compileOne(p, sp, vt, self.pv)
p.Int(ir.OP_byte, '"')
}
func (self *Compiler) compileInterface(p *ir.Program, vt reflect.Type) {
/* iface and efaces are different */
if vt.NumMethod() == 0 {
p.Add(ir.OP_eface)
return
}
x := p.PC()
p.Add(ir.OP_is_nil_p1)
p.Add(ir.OP_iface)
/* the "null" value */
e := p.PC()
p.Add(ir.OP_goto)
p.Pin(x)
p.Add(ir.OP_null)
p.Pin(e)
}
func (self *Compiler) compileUnsupportedType(p *ir.Program, vt reflect.Type) {
p.Rtt(ir.OP_unsupported, vt)
}
func (self *Compiler) compileMarshaler(p *ir.Program, op ir.Op, vt reflect.Type, mt reflect.Type) {
pc := p.PC()
vk := vt.Kind()
/* direct receiver */
if vk != reflect.Ptr {
addMarshalerOp(p, op, vt, mt)
return
}
/* value receiver with a pointer type, check for nil before calling the marshaler */
p.Add(ir.OP_is_nil)
addMarshalerOp(p, op, vt, mt)
i := p.PC()
p.Add(ir.OP_goto)
p.Pin(pc)
p.Add(ir.OP_null)
p.Pin(i)
}
func addMarshalerOp(p *ir.Program, op ir.Op, vt reflect.Type, mt reflect.Type) {
if vars.UseVM {
itab := rt.GetItab(rt.IfaceType(rt.UnpackType(mt)), rt.UnpackType(vt), true)
p.Vtab(op, vt, itab)
} else {
// OPT: get itab here
p.Rtt(op, vt)
}
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/pools_amd64.go | vendor/github.com/bytedance/sonic/internal/encoder/pools_amd64.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package encoder
import (
"reflect"
"unsafe"
"github.com/bytedance/sonic/internal/encoder/vars"
"github.com/bytedance/sonic/internal/encoder/x86"
"github.com/bytedance/sonic/internal/rt"
"github.com/bytedance/sonic/option"
)
func ForceUseJit() {
x86.SetCompiler(makeEncoderX86)
pretouchType = pretouchTypeX86
encodeTypedPointer = x86.EncodeTypedPointer
vars.UseVM = false
}
func init() {
if vars.UseVM {
ForceUseVM()
} else {
ForceUseJit()
}
}
var _KeepAlive struct {
rb *[]byte
vp unsafe.Pointer
sb *vars.Stack
fv uint64
err error
frame [x86.FP_offs]byte
}
func makeEncoderX86(vt *rt.GoType, ex ...interface{}) (interface{}, error) {
pp, err := NewCompiler().Compile(vt.Pack(), ex[0].(bool))
if err != nil {
return nil, err
}
as := x86.NewAssembler(pp)
as.Name = vt.String()
return as.Load(), nil
}
func pretouchTypeX86(_vt reflect.Type, opts option.CompileOptions, v uint8) (map[reflect.Type]uint8, error) {
/* compile function */
compiler := NewCompiler().apply(opts)
/* find or compile */
vt := rt.UnpackType(_vt)
if val := vars.GetProgram(vt); val != nil {
return nil, nil
} else if _, err := vars.ComputeProgram(vt, makeEncoderX86, v == 1); err == nil {
return compiler.rec, nil
} else {
return nil, err
}
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/pools_compt.go | vendor/github.com/bytedance/sonic/internal/encoder/pools_compt.go | //go:build !amd64
// +build !amd64
/*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package encoder
func init() {
ForceUseVM()
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/encoder.go | vendor/github.com/bytedance/sonic/internal/encoder/encoder.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package encoder
import (
"bytes"
"encoding/json"
"reflect"
"runtime"
"unsafe"
"github.com/bytedance/sonic/utf8"
"github.com/bytedance/sonic/internal/encoder/alg"
"github.com/bytedance/sonic/internal/encoder/vars"
"github.com/bytedance/sonic/internal/rt"
"github.com/bytedance/sonic/option"
)
// Options is a set of encoding options.
type Options uint64
const (
// SortMapKeys indicates that the keys of a map needs to be sorted
// before serializing into JSON.
// WARNING: This hurts performance A LOT, USE WITH CARE.
SortMapKeys Options = 1 << alg.BitSortMapKeys
// EscapeHTML indicates encoder to escape all HTML characters
// after serializing into JSON (see https://pkg.go.dev/encoding/json#HTMLEscape).
// WARNING: This hurts performance A LOT, USE WITH CARE.
EscapeHTML Options = 1 << alg.BitEscapeHTML
// CompactMarshaler indicates that the output JSON from json.Marshaler
// is always compact and needs no validation
CompactMarshaler Options = 1 << alg.BitCompactMarshaler
// NoQuoteTextMarshaler indicates that the output text from encoding.TextMarshaler
// is always escaped string and needs no quoting
NoQuoteTextMarshaler Options = 1 << alg.BitNoQuoteTextMarshaler
// NoNullSliceOrMap indicates all empty Array or Object are encoded as '[]' or '{}',
// instead of 'null'.
// NOTE: The priority of this option is lower than json tag `omitempty`.
NoNullSliceOrMap Options = 1 << alg.BitNoNullSliceOrMap
// ValidateString indicates that encoder should validate the input string
// before encoding it into JSON.
ValidateString Options = 1 << alg.BitValidateString
// NoValidateJSONMarshaler indicates that the encoder should not validate the output string
// after encoding the JSONMarshaler to JSON.
NoValidateJSONMarshaler Options = 1 << alg.BitNoValidateJSONMarshaler
// NoEncoderNewline indicates that the encoder should not add a newline after every message
NoEncoderNewline Options = 1 << alg.BitNoEncoderNewline
// CompatibleWithStd is used to be compatible with std encoder.
CompatibleWithStd Options = SortMapKeys | EscapeHTML | CompactMarshaler
// Encode Infinity or Nan float into `null`, instead of returning an error.
EncodeNullForInfOrNan Options = 1 << alg.BitEncodeNullForInfOrNan
)
// Encoder represents a specific set of encoder configurations.
type Encoder struct {
Opts Options
prefix string
indent string
}
// Encode returns the JSON encoding of v.
func (self *Encoder) Encode(v interface{}) ([]byte, error) {
if self.indent != "" || self.prefix != "" {
return EncodeIndented(v, self.prefix, self.indent, self.Opts)
}
return Encode(v, self.Opts)
}
// SortKeys enables the SortMapKeys option.
func (self *Encoder) SortKeys() *Encoder {
self.Opts |= SortMapKeys
return self
}
// SetEscapeHTML specifies if option EscapeHTML opens
func (self *Encoder) SetEscapeHTML(f bool) {
if f {
self.Opts |= EscapeHTML
} else {
self.Opts &= ^EscapeHTML
}
}
// SetValidateString specifies if option ValidateString opens
func (self *Encoder) SetValidateString(f bool) {
if f {
self.Opts |= ValidateString
} else {
self.Opts &= ^ValidateString
}
}
// SetNoValidateJSONMarshaler specifies if option NoValidateJSONMarshaler opens
func (self *Encoder) SetNoValidateJSONMarshaler(f bool) {
if f {
self.Opts |= NoValidateJSONMarshaler
} else {
self.Opts &= ^NoValidateJSONMarshaler
}
}
// SetNoEncoderNewline specifies if option NoEncoderNewline opens
func (self *Encoder) SetNoEncoderNewline(f bool) {
if f {
self.Opts |= NoEncoderNewline
} else {
self.Opts &= ^NoEncoderNewline
}
}
// SetCompactMarshaler specifies if option CompactMarshaler opens
func (self *Encoder) SetCompactMarshaler(f bool) {
if f {
self.Opts |= CompactMarshaler
} else {
self.Opts &= ^CompactMarshaler
}
}
// SetNoQuoteTextMarshaler specifies if option NoQuoteTextMarshaler opens
func (self *Encoder) SetNoQuoteTextMarshaler(f bool) {
if f {
self.Opts |= NoQuoteTextMarshaler
} else {
self.Opts &= ^NoQuoteTextMarshaler
}
}
// SetIndent instructs the encoder to format each subsequent encoded
// value as if indented by the package-level function EncodeIndent().
// Calling SetIndent("", "") disables indentation.
func (enc *Encoder) SetIndent(prefix, indent string) {
enc.prefix = prefix
enc.indent = indent
}
// Quote returns the JSON-quoted version of s.
func Quote(s string) string {
buf := make([]byte, 0, len(s)+2)
buf = alg.Quote(buf, s, false)
return rt.Mem2Str(buf)
}
// Encode returns the JSON encoding of val, encoded with opts.
func Encode(val interface{}, opts Options) ([]byte, error) {
var ret []byte
buf := vars.NewBytes()
err := encodeIntoCheckRace(buf, val, opts)
/* check for errors */
if err != nil {
vars.FreeBytes(buf)
return nil, err
}
/* htmlescape or correct UTF-8 if opts enable */
old := buf
*buf = encodeFinish(*old, opts)
pbuf := ((*rt.GoSlice)(unsafe.Pointer(buf))).Ptr
pold := ((*rt.GoSlice)(unsafe.Pointer(old))).Ptr
/* return when allocated a new buffer */
if pbuf != pold {
vars.FreeBytes(old)
return *buf, nil
}
/* make a copy of the result */
if rt.CanSizeResue(cap(*buf)) {
ret = make([]byte, len(*buf))
copy(ret, *buf)
vars.FreeBytes(buf)
} else {
ret = *buf
}
/* return the buffer into pool */
return ret, nil
}
// EncodeInto is like Encode but uses a user-supplied buffer instead of allocating
// a new one.
func EncodeInto(buf *[]byte, val interface{}, opts Options) error {
err := encodeIntoCheckRace(buf, val, opts)
if err != nil {
return err
}
*buf = encodeFinish(*buf, opts)
return err
}
func encodeInto(buf *[]byte, val interface{}, opts Options) error {
stk := vars.NewStack()
efv := rt.UnpackEface(val)
err := encodeTypedPointer(buf, efv.Type, &efv.Value, stk, uint64(opts))
/* return the stack into pool */
if err != nil {
vars.ResetStack(stk)
}
vars.FreeStack(stk)
/* avoid GC ahead */
runtime.KeepAlive(buf)
runtime.KeepAlive(efv)
return err
}
func encodeFinish(buf []byte, opts Options) []byte {
if opts & EscapeHTML != 0 {
buf = HTMLEscape(nil, buf)
}
if (opts & ValidateString != 0) && !utf8.Validate(buf) {
buf = utf8.CorrectWith(nil, buf, `\ufffd`)
}
return buf
}
// HTMLEscape appends to dst the JSON-encoded src with <, >, &, U+2028 and U+2029
// characters inside string literals changed to \u003c, \u003e, \u0026, \u2028, \u2029
// so that the JSON will be safe to embed inside HTML <script> tags.
// For historical reasons, web browsers don't honor standard HTML
// escaping within <script> tags, so an alternative JSON encoding must
// be used.
func HTMLEscape(dst []byte, src []byte) []byte {
return alg.HtmlEscape(dst, src)
}
// EncodeIndented is like Encode but applies Indent to format the output.
// Each JSON element in the output will begin on a new line beginning with prefix
// followed by one or more copies of indent according to the indentation nesting.
func EncodeIndented(val interface{}, prefix string, indent string, opts Options) ([]byte, error) {
var err error
var buf *bytes.Buffer
/* encode into the buffer */
out := vars.NewBytes()
err = EncodeInto(out, val, opts)
/* check for errors */
if err != nil {
vars.FreeBytes(out)
return nil, err
}
/* indent the JSON */
buf = vars.NewBuffer()
err = json.Indent(buf, *out, prefix, indent)
vars.FreeBytes(out)
/* check for errors */
if err != nil {
vars.FreeBuffer(buf)
return nil, err
}
/* copy to the result buffer */
var ret []byte
if rt.CanSizeResue(cap(buf.Bytes())) {
ret = make([]byte, buf.Len())
copy(ret, buf.Bytes())
/* return the buffers into pool */
vars.FreeBuffer(buf)
} else {
ret = buf.Bytes()
}
return ret, nil
}
// Pretouch compiles vt ahead-of-time to avoid JIT compilation on-the-fly, in
// order to reduce the first-hit latency.
//
// Opts are the compile options, for example, "option.WithCompileRecursiveDepth" is
// a compile option to set the depth of recursive compile for the nested struct type.
func Pretouch(vt reflect.Type, opts ...option.CompileOption) error {
cfg := option.DefaultCompileOptions()
for _, opt := range opts {
opt(&cfg)
}
return pretouchRec(map[reflect.Type]uint8{vt: 0}, cfg)
}
// Valid validates json and returns first non-blank character position,
// if it is only one valid json value.
// Otherwise returns invalid character position using start.
//
// Note: it does not check for the invalid UTF-8 characters.
func Valid(data []byte) (ok bool, start int) {
return alg.Valid(data)
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/ir/op.go | vendor/github.com/bytedance/sonic/internal/encoder/ir/op.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ir
import (
"fmt"
"reflect"
"strconv"
"strings"
"unsafe"
"github.com/bytedance/sonic/internal/encoder/vars"
"github.com/bytedance/sonic/internal/resolver"
"github.com/bytedance/sonic/internal/rt"
)
type Op uint8
const (
OP_null Op = iota + 1
OP_empty_arr
OP_empty_obj
OP_bool
OP_i8
OP_i16
OP_i32
OP_i64
OP_u8
OP_u16
OP_u32
OP_u64
OP_f32
OP_f64
OP_str
OP_bin
OP_quote
OP_number
OP_eface
OP_iface
OP_byte
OP_text
OP_deref
OP_index
OP_load
OP_save
OP_drop
OP_drop_2
OP_recurse
OP_is_nil
OP_is_nil_p1
OP_is_zero_1
OP_is_zero_2
OP_is_zero_4
OP_is_zero_8
OP_is_zero_map
OP_goto
OP_map_iter
OP_map_stop
OP_map_check_key
OP_map_write_key
OP_map_value_next
OP_slice_len
OP_slice_next
OP_marshal
OP_marshal_p
OP_marshal_text
OP_marshal_text_p
OP_cond_set
OP_cond_testc
OP_unsupported
OP_is_zero
)
const (
_INT_SIZE = 32 << (^uint(0) >> 63)
_PTR_SIZE = 32 << (^uintptr(0) >> 63)
_PTR_BYTE = unsafe.Sizeof(uintptr(0))
)
const OpSize = unsafe.Sizeof(NewInsOp(0))
var OpNames = [256]string{
OP_null: "null",
OP_empty_arr: "empty_arr",
OP_empty_obj: "empty_obj",
OP_bool: "bool",
OP_i8: "i8",
OP_i16: "i16",
OP_i32: "i32",
OP_i64: "i64",
OP_u8: "u8",
OP_u16: "u16",
OP_u32: "u32",
OP_u64: "u64",
OP_f32: "f32",
OP_f64: "f64",
OP_str: "str",
OP_bin: "bin",
OP_quote: "quote",
OP_number: "number",
OP_eface: "eface",
OP_iface: "iface",
OP_byte: "byte",
OP_text: "text",
OP_deref: "deref",
OP_index: "index",
OP_load: "load",
OP_save: "save",
OP_drop: "drop",
OP_drop_2: "drop_2",
OP_recurse: "recurse",
OP_is_nil: "is_nil",
OP_is_nil_p1: "is_nil_p1",
OP_is_zero_1: "is_zero_1",
OP_is_zero_2: "is_zero_2",
OP_is_zero_4: "is_zero_4",
OP_is_zero_8: "is_zero_8",
OP_is_zero_map: "is_zero_map",
OP_goto: "goto",
OP_map_iter: "map_iter",
OP_map_stop: "map_stop",
OP_map_check_key: "map_check_key",
OP_map_write_key: "map_write_key",
OP_map_value_next: "map_value_next",
OP_slice_len: "slice_len",
OP_slice_next: "slice_next",
OP_marshal: "marshal",
OP_marshal_p: "marshal_p",
OP_marshal_text: "marshal_text",
OP_marshal_text_p: "marshal_text_p",
OP_cond_set: "cond_set",
OP_cond_testc: "cond_testc",
OP_unsupported: "unsupported type",
}
func (self Op) String() string {
if ret := OpNames[self]; ret != "" {
return ret
} else {
return "<invalid>"
}
}
func OP_int() Op {
switch _INT_SIZE {
case 32:
return OP_i32
case 64:
return OP_i64
default:
panic("unsupported int size")
}
}
func OP_uint() Op {
switch _INT_SIZE {
case 32:
return OP_u32
case 64:
return OP_u64
default:
panic("unsupported uint size")
}
}
func OP_uintptr() Op {
switch _PTR_SIZE {
case 32:
return OP_u32
case 64:
return OP_u64
default:
panic("unsupported pointer size")
}
}
func OP_is_zero_ints() Op {
switch _INT_SIZE {
case 32:
return OP_is_zero_4
case 64:
return OP_is_zero_8
default:
panic("unsupported integer size")
}
}
type Instr struct {
o Op
u int // union {op: 8, _: 8, vi: 48}, vi maybe int or len(str)
p unsafe.Pointer // maybe GoString.Ptr, or *GoType
}
func NewInsOp(op Op) Instr {
return Instr{o: op}
}
func NewInsVi(op Op, vi int) Instr {
return Instr{o: op, u: vi}
}
func NewInsVs(op Op, vs string) Instr {
return Instr{
o: op,
u: len(vs),
p: (*rt.GoString)(unsafe.Pointer(&vs)).Ptr,
}
}
func NewInsVt(op Op, vt reflect.Type) Instr {
return Instr{
o: op,
p: unsafe.Pointer(rt.UnpackType(vt)),
}
}
type typAndTab struct {
vt *rt.GoType
itab *rt.GoItab
}
type typAndField struct {
vt reflect.Type
fv *resolver.FieldMeta
}
func NewInsVtab(op Op, vt reflect.Type, itab *rt.GoItab) Instr {
return Instr{
o: op,
p: unsafe.Pointer(&typAndTab{
vt: rt.UnpackType(vt),
itab: itab,
}),
}
}
func NewInsField(op Op, fv *resolver.FieldMeta) Instr {
return Instr{
o: op,
p: unsafe.Pointer(fv),
}
}
func NewInsVp(op Op, vt reflect.Type, pv bool) Instr {
i := 0
if pv {
i = 1
}
return Instr{
o: op,
u: i,
p: unsafe.Pointer(rt.UnpackType(vt)),
}
}
func (self Instr) Op() Op {
return Op(self.o)
}
func (self Instr) Vi() int {
return self.u
}
func (self Instr) Vf() uint8 {
return (*rt.GoType)(self.p).KindFlags
}
func (self Instr) VField() (*resolver.FieldMeta) {
return (*resolver.FieldMeta)(self.p)
}
func (self Instr) Vs() (v string) {
(*rt.GoString)(unsafe.Pointer(&v)).Ptr = self.p
(*rt.GoString)(unsafe.Pointer(&v)).Len = self.Vi()
return
}
func (self Instr) Vk() reflect.Kind {
return (*rt.GoType)(self.p).Kind()
}
func (self Instr) GoType() *rt.GoType {
return (*rt.GoType)(self.p)
}
func (self Instr) Vt() reflect.Type {
return (*rt.GoType)(self.p).Pack()
}
func (self Instr) Vr() *rt.GoType {
return (*rt.GoType)(self.p)
}
func (self Instr) Vp() (vt reflect.Type, pv bool) {
return (*rt.GoType)(self.p).Pack(), self.u == 1
}
func (self Instr) Vtab() (vt *rt.GoType, itab *rt.GoItab) {
tt := (*typAndTab)(self.p)
return tt.vt, tt.itab
}
func (self Instr) Vp2() (vt *rt.GoType, pv bool) {
return (*rt.GoType)(self.p), self.u == 1
}
func (self Instr) I64() int64 {
return int64(self.Vi())
}
func (self Instr) Byte() byte {
return byte(self.Vi())
}
func (self Instr) Vlen() int {
return int((*rt.GoType)(self.p).Size)
}
func (self Instr) isBranch() bool {
switch self.Op() {
case OP_goto:
fallthrough
case OP_is_nil:
fallthrough
case OP_is_nil_p1:
fallthrough
case OP_is_zero_1:
fallthrough
case OP_is_zero_2:
fallthrough
case OP_is_zero_4:
fallthrough
case OP_is_zero_8:
fallthrough
case OP_map_check_key:
fallthrough
case OP_map_write_key:
fallthrough
case OP_slice_next:
fallthrough
case OP_cond_testc:
return true
default:
return false
}
}
func (self Instr) Disassemble() string {
switch self.Op() {
case OP_byte:
return fmt.Sprintf("%-18s%s", self.Op().String(), strconv.QuoteRune(rune(self.Vi())))
case OP_text:
return fmt.Sprintf("%-18s%s", self.Op().String(), strconv.Quote(self.Vs()))
case OP_index:
return fmt.Sprintf("%-18s%d", self.Op().String(), self.Vi())
case OP_recurse:
fallthrough
case OP_map_iter:
return fmt.Sprintf("%-18s%s", self.Op().String(), self.Vt())
case OP_marshal:
fallthrough
case OP_marshal_p:
fallthrough
case OP_marshal_text:
fallthrough
case OP_marshal_text_p:
vt, _ := self.Vtab()
return fmt.Sprintf("%-18s%s", self.Op().String(), vt.Pack())
case OP_goto:
fallthrough
case OP_is_nil:
fallthrough
case OP_is_nil_p1:
fallthrough
case OP_is_zero_1:
fallthrough
case OP_is_zero_2:
fallthrough
case OP_is_zero_4:
fallthrough
case OP_is_zero_8:
fallthrough
case OP_is_zero_map:
fallthrough
case OP_cond_testc:
fallthrough
case OP_map_check_key:
fallthrough
case OP_map_write_key:
return fmt.Sprintf("%-18sL_%d", self.Op().String(), self.Vi())
case OP_slice_next:
return fmt.Sprintf("%-18sL_%d, %s", self.Op().String(), self.Vi(), self.Vt())
default:
return fmt.Sprintf("%#v", self)
}
}
type (
Program []Instr
)
func (self Program) PC() int {
return len(self)
}
func (self Program) Tag(n int) {
if n >= vars.MaxStack {
panic("type nesting too deep")
}
}
func (self Program) Pin(i int) {
v := &self[i]
v.u = self.PC()
}
func (self Program) Rel(v []int) {
for _, i := range v {
self.Pin(i)
}
}
func (self *Program) Add(op Op) {
*self = append(*self, NewInsOp(op))
}
func (self *Program) Key(op Op) {
*self = append(*self,
NewInsVi(OP_byte, '"'),
NewInsOp(op),
NewInsVi(OP_byte, '"'),
)
}
func (self *Program) Int(op Op, vi int) {
*self = append(*self, NewInsVi(op, vi))
}
func (self *Program) Str(op Op, vs string) {
*self = append(*self, NewInsVs(op, vs))
}
func (self *Program) Rtt(op Op, vt reflect.Type) {
*self = append(*self, NewInsVt(op, vt))
}
func (self *Program) Vp(op Op, vt reflect.Type, pv bool) {
*self = append(*self, NewInsVp(op, vt, pv))
}
func (self *Program) Vtab(op Op, vt reflect.Type, itab *rt.GoItab) {
*self = append(*self, NewInsVtab(op, vt, itab))
}
func (self *Program) VField(op Op, fv *resolver.FieldMeta) {
*self = append(*self, NewInsField(op, fv))
}
func (self Program) Disassemble() string {
nb := len(self)
tab := make([]bool, nb+1)
ret := make([]string, 0, nb+1)
/* prescan to get all the labels */
for _, ins := range self {
if ins.isBranch() {
tab[ins.Vi()] = true
}
}
/* disassemble each instruction */
for i, ins := range self {
if !tab[i] {
ret = append(ret, "\t"+ins.Disassemble())
} else {
ret = append(ret, fmt.Sprintf("L_%d:\n\t%s", i, ins.Disassemble()))
}
}
/* add the last label, if needed */
if tab[nb] {
ret = append(ret, fmt.Sprintf("L_%d:", nb))
}
/* add an "end" indicator, and join all the strings */
return strings.Join(append(ret, "\tend"), "\n")
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/alg/sort.go | vendor/github.com/bytedance/sonic/internal/encoder/alg/sort.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package alg
// Algorithm 3-way Radix Quicksort, d means the radix.
// Reference: https://algs4.cs.princeton.edu/51radix/Quick3string.java.html
func radixQsort(kvs []_MapPair, d, maxDepth int) {
for len(kvs) > 11 {
// To avoid the worst case of quickSort (time: O(n^2)), use introsort here.
// Reference: https://en.wikipedia.org/wiki/Introsort and
// https://github.com/golang/go/issues/467
if maxDepth == 0 {
heapSort(kvs, 0, len(kvs))
return
}
maxDepth--
p := pivot(kvs, d)
lt, i, gt := 0, 0, len(kvs)
for i < gt {
c := byteAt(kvs[i].k, d)
if c < p {
swap(kvs, lt, i)
i++
lt++
} else if c > p {
gt--
swap(kvs, i, gt)
} else {
i++
}
}
// kvs[0:lt] < v = kvs[lt:gt] < kvs[gt:len(kvs)]
// Native implementation:
// radixQsort(kvs[:lt], d, maxDepth)
// if p > -1 {
// radixQsort(kvs[lt:gt], d+1, maxDepth)
// }
// radixQsort(kvs[gt:], d, maxDepth)
// Optimize as follows: make recursive calls only for the smaller parts.
// Reference: https://www.geeksforgeeks.org/quicksort-tail-call-optimization-reducing-worst-case-space-log-n/
if p == -1 {
if lt > len(kvs) - gt {
radixQsort(kvs[gt:], d, maxDepth)
kvs = kvs[:lt]
} else {
radixQsort(kvs[:lt], d, maxDepth)
kvs = kvs[gt:]
}
} else {
ml := maxThree(lt, gt-lt, len(kvs)-gt)
if ml == lt {
radixQsort(kvs[lt:gt], d+1, maxDepth)
radixQsort(kvs[gt:], d, maxDepth)
kvs = kvs[:lt]
} else if ml == gt-lt {
radixQsort(kvs[:lt], d, maxDepth)
radixQsort(kvs[gt:], d, maxDepth)
kvs = kvs[lt:gt]
d += 1
} else {
radixQsort(kvs[:lt], d, maxDepth)
radixQsort(kvs[lt:gt], d+1, maxDepth)
kvs = kvs[gt:]
}
}
}
insertRadixSort(kvs, d)
}
func insertRadixSort(kvs []_MapPair, d int) {
for i := 1; i < len(kvs); i++ {
for j := i; j > 0 && lessFrom(kvs[j].k, kvs[j-1].k, d); j-- {
swap(kvs, j, j-1)
}
}
}
func pivot(kvs []_MapPair, d int) int {
m := len(kvs) >> 1
if len(kvs) > 40 {
// Tukey's ``Ninther,'' median of three mediankvs of three.
t := len(kvs) / 8
return medianThree(
medianThree(byteAt(kvs[0].k, d), byteAt(kvs[t].k, d), byteAt(kvs[2*t].k, d)),
medianThree(byteAt(kvs[m].k, d), byteAt(kvs[m-t].k, d), byteAt(kvs[m+t].k, d)),
medianThree(byteAt(kvs[len(kvs)-1].k, d),
byteAt(kvs[len(kvs)-1-t].k, d),
byteAt(kvs[len(kvs)-1-2*t].k, d)))
}
return medianThree(byteAt(kvs[0].k, d), byteAt(kvs[m].k, d), byteAt(kvs[len(kvs)-1].k, d))
}
func medianThree(i, j, k int) int {
if i > j {
i, j = j, i
} // i < j
if k < i {
return i
}
if k > j {
return j
}
return k
}
func maxThree(i, j, k int) int {
max := i
if max < j {
max = j
}
if max < k {
max = k
}
return max
}
// maxDepth returns a threshold at which quicksort should switch
// to heapsort. It returnkvs 2*ceil(lg(n+1)).
func maxDepth(n int) int {
var depth int
for i := n; i > 0; i >>= 1 {
depth++
}
return depth * 2
}
// siftDown implements the heap property on kvs[lo:hi].
// first is an offset into the array where the root of the heap lies.
func siftDown(kvs []_MapPair, lo, hi, first int) {
root := lo
for {
child := 2*root + 1
if child >= hi {
break
}
if child+1 < hi && kvs[first+child].k < kvs[first+child+1].k {
child++
}
if kvs[first+root].k >= kvs[first+child].k {
return
}
swap(kvs, first+root, first+child)
root = child
}
}
func heapSort(kvs []_MapPair, a, b int) {
first := a
lo := 0
hi := b - a
// Build heap with the greatest element at top.
for i := (hi - 1) / 2; i >= 0; i-- {
siftDown(kvs, i, hi, first)
}
// Pop elements, the largest first, into end of kvs.
for i := hi - 1; i >= 0; i-- {
swap(kvs, first, first+i)
siftDown(kvs, lo, i, first)
}
}
// Note that _MapPair.k is NOT pointed to _MapPair.m when map key is integer after swap
func swap(kvs []_MapPair, a, b int) {
kvs[a].k, kvs[b].k = kvs[b].k, kvs[a].k
kvs[a].v, kvs[b].v = kvs[b].v, kvs[a].v
}
// Compare two strings from the pos d.
func lessFrom(a, b string, d int) bool {
l := len(a)
if l > len(b) {
l = len(b)
}
for i := d; i < l; i++ {
if a[i] == b[i] {
continue
}
return a[i] < b[i]
}
return len(a) < len(b)
}
func byteAt(b string, p int) int {
if p < len(b) {
return int(b[p])
}
return -1
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/alg/spec_compat.go | vendor/github.com/bytedance/sonic/internal/encoder/alg/spec_compat.go | // +build !amd64,!arm64 go1.25 !go1.16 arm64,!go1.20
/**
* Copyright 2024 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package alg
import (
_ "unsafe"
"unicode/utf8"
"strconv"
"bytes"
"encoding/json"
"github.com/bytedance/sonic/internal/rt"
)
// Valid validates json and returns first non-blank character position,
// if it is only one valid json value.
// Otherwise returns invalid character position using start.
//
// Note: it does not check for the invalid UTF-8 characters.
func Valid(data []byte) (ok bool, start int) {
ok = json.Valid(data)
return ok, 0
}
var typeByte = rt.UnpackEface(byte(0)).Type
func Quote(e []byte, s string, double bool) []byte {
if len(s) == 0 {
if double {
return append(e, `"\"\""`...)
}
return append(e, `""`...)
}
b := e
ss := len(e)
e = append(e, '"')
start := 0
for i := 0; i < len(s); {
if b := s[i]; b < utf8.RuneSelf {
if rt.SafeSet[b] {
i++
continue
}
if start < i {
e = append(e, s[start:i]...)
}
e = append(e, '\\')
switch b {
case '\\', '"':
e = append(e, b)
case '\n':
e = append(e, 'n')
case '\r':
e = append(e, 'r')
case '\t':
e = append(e, 't')
default:
// This encodes bytes < 0x20 except for \t, \n and \r.
// If escapeHTML is set, it also escapes <, >, and &
// because they can lead to security holes when
// user-controlled strings are rendered into JSON
// and served to some browsers.
e = append(e, `u00`...)
e = append(e, rt.Hex[b>>4])
e = append(e, rt.Hex[b&0xF])
}
i++
start = i
continue
}
c, size := utf8.DecodeRuneInString(s[i:])
// if correct && c == utf8.RuneError && size == 1 {
// if start < i {
// e = append(e, s[start:i]...)
// }
// e = append(e, `\ufffd`...)
// i += size
// start = i
// continue
// }
if c == '\u2028' || c == '\u2029' {
if start < i {
e = append(e, s[start:i]...)
}
e = append(e, `\u202`...)
e = append(e, rt.Hex[c&0xF])
i += size
start = i
continue
}
i += size
}
if start < len(s) {
e = append(e, s[start:]...)
}
e = append(e, '"')
if double {
return strconv.AppendQuote(b, string(e[ss:]))
} else {
return e
}
}
func HtmlEscape(dst []byte, src []byte) []byte {
buf := bytes.NewBuffer(dst)
json.HTMLEscape(buf, src)
return buf.Bytes()
}
func F64toa(buf []byte, v float64) ([]byte) {
bs := bytes.NewBuffer(buf)
_ = json.NewEncoder(bs).Encode(v)
return bs.Bytes()
}
func F32toa(buf []byte, v float32) ([]byte) {
bs := bytes.NewBuffer(buf)
_ = json.NewEncoder(bs).Encode(v)
return bs.Bytes()
}
func I64toa(buf []byte, v int64) ([]byte) {
return strconv.AppendInt(buf, int64(v), 10)
}
func U64toa(buf []byte, v uint64) ([]byte) {
return strconv.AppendUint(buf, v, 10)
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/alg/opts.go | vendor/github.com/bytedance/sonic/internal/encoder/alg/opts.go | /**
* Copyright 2024 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package alg
const (
BitSortMapKeys = iota
BitEscapeHTML
BitCompactMarshaler
BitNoQuoteTextMarshaler
BitNoNullSliceOrMap
BitValidateString
BitNoValidateJSONMarshaler
BitNoEncoderNewline
BitEncodeNullForInfOrNan
BitPointerValue = 63
)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/alg/spec.go | vendor/github.com/bytedance/sonic/internal/encoder/alg/spec.go | //go:build (amd64 && go1.16 && !go1.25) || (arm64 && go1.20 && !go1.25)
// +build amd64,go1.16,!go1.25 arm64,go1.20,!go1.25
/**
* Copyright 2024 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package alg
import (
"runtime"
"unsafe"
"github.com/bytedance/sonic/internal/native"
"github.com/bytedance/sonic/internal/native/types"
"github.com/bytedance/sonic/internal/rt"
)
// Valid validates json and returns first non-blank character position,
// if it is only one valid json value.
// Otherwise returns invalid character position using start.
//
// Note: it does not check for the invalid UTF-8 characters.
func Valid(data []byte) (ok bool, start int) {
n := len(data)
if n == 0 {
return false, -1
}
s := rt.Mem2Str(data)
p := 0
m := types.NewStateMachine()
ret := native.ValidateOne(&s, &p, m, 0)
types.FreeStateMachine(m)
if ret < 0 {
return false, p-1
}
/* check for trailing spaces */
for ;p < n; p++ {
if (types.SPACE_MASK & (1 << data[p])) == 0 {
return false, p
}
}
return true, ret
}
var typeByte = rt.UnpackEface(byte(0)).Type
//go:nocheckptr
func Quote(buf []byte, val string, double bool) []byte {
if len(val) == 0 {
if double {
return append(buf, `"\"\""`...)
}
return append(buf, `""`...)
}
if double {
buf = append(buf, `"\"`...)
} else {
buf = append(buf, `"`...)
}
sp := rt.IndexChar(val, 0)
nb := len(val)
b := (*rt.GoSlice)(unsafe.Pointer(&buf))
// input buffer
for nb > 0 {
// output buffer
dp := unsafe.Pointer(uintptr(b.Ptr) + uintptr(b.Len))
dn := b.Cap - b.Len
// call native.Quote, dn is byte count it outputs
opts := uint64(0)
if double {
opts = types.F_DOUBLE_UNQUOTE
}
ret := native.Quote(sp, nb, dp, &dn, opts)
// update *buf length
b.Len += dn
// no need more output
if ret >= 0 {
break
}
// double buf size
*b = rt.GrowSlice(typeByte, *b, b.Cap*2)
// ret is the complement of consumed input
ret = ^ret
// update input buffer
nb -= ret
sp = unsafe.Pointer(uintptr(sp) + uintptr(ret))
}
runtime.KeepAlive(buf)
runtime.KeepAlive(sp)
if double {
buf = append(buf, `\""`...)
} else {
buf = append(buf, `"`...)
}
return buf
}
func HtmlEscape(dst []byte, src []byte) []byte {
var sidx int
dst = append(dst, src[:0]...) // avoid check nil dst
sbuf := (*rt.GoSlice)(unsafe.Pointer(&src))
dbuf := (*rt.GoSlice)(unsafe.Pointer(&dst))
/* grow dst if it is shorter */
if cap(dst)-len(dst) < len(src)+types.BufPaddingSize {
cap := len(src)*3/2 + types.BufPaddingSize
*dbuf = rt.GrowSlice(typeByte, *dbuf, cap)
}
for sidx < sbuf.Len {
sp := rt.Add(sbuf.Ptr, uintptr(sidx))
dp := rt.Add(dbuf.Ptr, uintptr(dbuf.Len))
sn := sbuf.Len - sidx
dn := dbuf.Cap - dbuf.Len
nb := native.HTMLEscape(sp, sn, dp, &dn)
/* check for errors */
if dbuf.Len += dn; nb >= 0 {
break
}
/* not enough space, grow the slice and try again */
sidx += ^nb
*dbuf = rt.GrowSlice(typeByte, *dbuf, dbuf.Cap*2)
}
return dst
}
func F64toa(buf []byte, v float64) ([]byte) {
if v == 0 {
return append(buf, '0')
}
buf = rt.GuardSlice2(buf, 64)
ret := native.F64toa((*byte)(rt.IndexByte(buf, len(buf))), v)
if ret > 0 {
return buf[:len(buf)+ret]
} else {
return buf
}
}
func F32toa(buf []byte, v float32) ([]byte) {
if v == 0 {
return append(buf, '0')
}
buf = rt.GuardSlice2(buf, 64)
ret := native.F32toa((*byte)(rt.IndexByte(buf, len(buf))), v)
if ret > 0 {
return buf[:len(buf)+ret]
} else {
return buf
}
}
func I64toa(buf []byte, v int64) ([]byte) {
buf = rt.GuardSlice2(buf, 32)
ret := native.I64toa((*byte)(rt.IndexByte(buf, len(buf))), v)
if ret > 0 {
return buf[:len(buf)+ret]
} else {
return buf
}
}
func U64toa(buf []byte, v uint64) ([]byte) {
buf = rt.GuardSlice2(buf, 32)
ret := native.U64toa((*byte)(rt.IndexByte(buf, len(buf))), v)
if ret > 0 {
return buf[:len(buf)+ret]
} else {
return buf
}
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/alg/mapiter.go | vendor/github.com/bytedance/sonic/internal/encoder/alg/mapiter.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package alg
import (
"encoding"
"reflect"
"strconv"
"sync"
"unsafe"
"github.com/bytedance/sonic/internal/encoder/vars"
"github.com/bytedance/sonic/internal/rt"
)
type _MapPair struct {
k string // when the map key is integer, k is pointed to m
v unsafe.Pointer
m [32]byte
}
type MapIterator struct {
It rt.GoMapIterator // must be the first field
kv rt.GoSlice // slice of _MapPair
ki int
}
var (
iteratorPool = sync.Pool{}
iteratorPair = rt.UnpackType(reflect.TypeOf(_MapPair{}))
)
func init() {
if unsafe.Offsetof(MapIterator{}.It) != 0 {
panic("_MapIterator.it is not the first field")
}
}
func newIterator() *MapIterator {
if v := iteratorPool.Get(); v == nil {
return new(MapIterator)
} else {
return resetIterator(v.(*MapIterator))
}
}
func resetIterator(p *MapIterator) *MapIterator {
p.ki = 0
p.It = rt.GoMapIterator{}
p.kv.Len = 0
return p
}
func (self *MapIterator) at(i int) *_MapPair {
return (*_MapPair)(unsafe.Pointer(uintptr(self.kv.Ptr) + uintptr(i) * unsafe.Sizeof(_MapPair{})))
}
func (self *MapIterator) add() (p *_MapPair) {
p = self.at(self.kv.Len)
self.kv.Len++
return
}
func (self *MapIterator) data() (p []_MapPair) {
*(*rt.GoSlice)(unsafe.Pointer(&p)) = self.kv
return
}
func (self *MapIterator) append(t *rt.GoType, k unsafe.Pointer, v unsafe.Pointer) (err error) {
p := self.add()
p.v = v
/* check for strings */
if tk := t.Kind(); tk != reflect.String {
return self.appendGeneric(p, t, tk, k)
}
/* fast path for strings */
p.k = *(*string)(k)
return nil
}
func (self *MapIterator) appendGeneric(p *_MapPair, t *rt.GoType, v reflect.Kind, k unsafe.Pointer) error {
switch v {
case reflect.Int : p.k = rt.Mem2Str(strconv.AppendInt(p.m[:0], int64(*(*int)(k)), 10)) ; return nil
case reflect.Int8 : p.k = rt.Mem2Str(strconv.AppendInt(p.m[:0], int64(*(*int8)(k)), 10)) ; return nil
case reflect.Int16 : p.k = rt.Mem2Str(strconv.AppendInt(p.m[:0], int64(*(*int16)(k)), 10)) ; return nil
case reflect.Int32 : p.k = rt.Mem2Str(strconv.AppendInt(p.m[:0], int64(*(*int32)(k)), 10)) ; return nil
case reflect.Int64 : p.k = rt.Mem2Str(strconv.AppendInt(p.m[:0], int64(*(*int64)(k)), 10)) ; return nil
case reflect.Uint : p.k = rt.Mem2Str(strconv.AppendUint(p.m[:0], uint64(*(*uint)(k)), 10)) ; return nil
case reflect.Uint8 : p.k = rt.Mem2Str(strconv.AppendUint(p.m[:0], uint64(*(*uint8)(k)), 10)) ; return nil
case reflect.Uint16 : p.k = rt.Mem2Str(strconv.AppendUint(p.m[:0], uint64(*(*uint16)(k)), 10)) ; return nil
case reflect.Uint32 : p.k = rt.Mem2Str(strconv.AppendUint(p.m[:0], uint64(*(*uint32)(k)), 10)) ; return nil
case reflect.Uint64 : p.k = rt.Mem2Str(strconv.AppendUint(p.m[:0], uint64(*(*uint64)(k)), 10)) ; return nil
case reflect.Uintptr : p.k = rt.Mem2Str(strconv.AppendUint(p.m[:0], uint64(*(*uintptr)(k)), 10)) ; return nil
case reflect.Interface : return self.appendInterface(p, t, k)
case reflect.Struct, reflect.Ptr : return self.appendConcrete(p, t, k)
default : panic("unexpected map key type")
}
}
func (self *MapIterator) appendConcrete(p *_MapPair, t *rt.GoType, k unsafe.Pointer) (err error) {
// compiler has already checked that the type implements the encoding.MarshalText interface
if !t.Indirect() {
k = *(*unsafe.Pointer)(k)
}
eface := rt.GoEface{Value: k, Type: t}.Pack()
out, err := eface.(encoding.TextMarshaler).MarshalText()
if err != nil {
return err
}
p.k = rt.Mem2Str(out)
return
}
func (self *MapIterator) appendInterface(p *_MapPair, t *rt.GoType, k unsafe.Pointer) (err error) {
if len(rt.IfaceType(t).Methods) == 0 {
panic("unexpected map key type")
} else if p.k, err = asText(k); err == nil {
return nil
} else {
return
}
}
func IteratorStop(p *MapIterator) {
iteratorPool.Put(p)
}
func IteratorNext(p *MapIterator) {
i := p.ki
t := &p.It
/* check for unordered iteration */
if i < 0 {
rt.Mapiternext(t)
return
}
/* check for end of iteration */
if p.ki >= p.kv.Len {
t.K = nil
t.V = nil
return
}
/* update the key-value pair, and increase the pointer */
t.K = unsafe.Pointer(&p.at(p.ki).k)
t.V = p.at(p.ki).v
p.ki++
}
func IteratorStart(t *rt.GoMapType, m unsafe.Pointer, fv uint64) (*MapIterator, error) {
it := newIterator()
rt.Mapiterinit(t, m, &it.It)
count := rt.Maplen(m)
/* check for key-sorting, empty map don't need sorting */
if count == 0 || (fv & (1<<BitSortMapKeys)) == 0 {
it.ki = -1
return it, nil
}
/* pre-allocate space if needed */
if count > it.kv.Cap {
it.kv = rt.GrowSlice(iteratorPair, it.kv, count)
}
/* dump all the key-value pairs */
for ; it.It.K != nil; rt.Mapiternext(&it.It) {
if err := it.append(t.Key, it.It.K, it.It.V); err != nil {
IteratorStop(it)
return nil, err
}
}
/* sort the keys, map with only 1 item don't need sorting */
if it.ki = 1; count > 1 {
radixQsort(it.data(), 0, maxDepth(it.kv.Len))
}
/* load the first pair into iterator */
it.It.V = it.at(0).v
it.It.K = unsafe.Pointer(&it.at(0).k)
return it, nil
}
func asText(v unsafe.Pointer) (string, error) {
text := rt.AssertI2I(rt.UnpackType(vars.EncodingTextMarshalerType), *(*rt.GoIface)(v))
r, e := (*(*encoding.TextMarshaler)(unsafe.Pointer(&text))).MarshalText()
return rt.Mem2Str(r), e
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/alg/primitives.go | vendor/github.com/bytedance/sonic/internal/encoder/alg/primitives.go | /**
* Copyright 2024 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package alg
import (
"encoding"
"encoding/json"
"reflect"
"unsafe"
"github.com/bytedance/sonic/internal/encoder/vars"
"github.com/bytedance/sonic/internal/resolver"
"github.com/bytedance/sonic/internal/rt"
)
func Compact(p *[]byte, v []byte) error {
buf := vars.NewBuffer()
err := json.Compact(buf, v)
/* check for errors */
if err != nil {
return err
}
/* add to result */
v = buf.Bytes()
*p = append(*p, v...)
/* return the buffer into pool */
vars.FreeBuffer(buf)
return nil
}
func EncodeNil(rb *[]byte) error {
*rb = append(*rb, 'n', 'u', 'l', 'l')
return nil
}
// func Make_EncodeTypedPointer(computor func(*rt.GoType, ...interface{}) (interface{}, error)) func(*[]byte, *rt.GoType, *unsafe.Pointer, *vars.Stack, uint64) error {
// return func(buf *[]byte, vt *rt.GoType, vp *unsafe.Pointer, sb *vars.Stack, fv uint64) error {
// if vt == nil {
// return EncodeNil(buf)
// } else if fn, err := vars.FindOrCompile(vt, (fv&(1<<BitPointerValue)) != 0, computor); err != nil {
// return err
// } else if vt.Indirect() {
// err := fn(buf, *vp, sb, fv)
// return err
// } else {
// err := fn(buf, unsafe.Pointer(vp), sb, fv)
// return err
// }
// }
// }
func EncodeJsonMarshaler(buf *[]byte, val json.Marshaler, opt uint64) error {
if ret, err := val.MarshalJSON(); err != nil {
return err
} else {
if opt&(1<<BitCompactMarshaler) != 0 {
return Compact(buf, ret)
}
if opt&(1<<BitNoValidateJSONMarshaler) == 0 {
if ok, s := Valid(ret); !ok {
return vars.Error_marshaler(ret, s)
}
}
*buf = append(*buf, ret...)
return nil
}
}
func EncodeTextMarshaler(buf *[]byte, val encoding.TextMarshaler, opt uint64) error {
if ret, err := val.MarshalText(); err != nil {
return err
} else {
if opt&(1<<BitNoQuoteTextMarshaler) != 0 {
*buf = append(*buf, ret...)
return nil
}
*buf = Quote(*buf, rt.Mem2Str(ret), false)
return nil
}
}
func IsZero(val unsafe.Pointer, fv *resolver.FieldMeta) bool {
rv := reflect.NewAt(fv.Type, val).Elem()
b1 := fv.IsZero == nil && rv.IsZero()
b2 := fv.IsZero != nil && fv.IsZero(rv)
return b1 || b2
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/vm/vm.go | vendor/github.com/bytedance/sonic/internal/encoder/vm/vm.go | // Copyright 2024 CloudWeGo Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package vm
import (
"encoding"
"encoding/json"
"fmt"
"math"
"reflect"
"unsafe"
"github.com/bytedance/sonic/internal/encoder/alg"
"github.com/bytedance/sonic/internal/encoder/ir"
"github.com/bytedance/sonic/internal/encoder/vars"
"github.com/bytedance/sonic/internal/rt"
)
const (
_S_cond = iota
_S_init
)
var (
_T_json_Marshaler = rt.UnpackType(vars.JsonMarshalerType)
_T_encoding_TextMarshaler = rt.UnpackType(vars.EncodingTextMarshalerType)
)
func print_instr(buf []byte, pc int, op ir.Op, ins *ir.Instr, p unsafe.Pointer) {
if len(buf) > 20 {
fmt.Println(string(buf[len(buf)-20:]))
} else {
fmt.Println(string(buf))
}
fmt.Printf("pc %04d, op %v, ins %#v, ptr: %x\n", pc, op, ins.Disassemble(), p)
}
func Execute(b *[]byte, p unsafe.Pointer, s *vars.Stack, flags uint64, prog *ir.Program) (error) {
pl := len(*prog)
if pl <= 0 {
return nil
}
var buf = *b
var x int
var q unsafe.Pointer
var f uint64
var pro = &(*prog)[0]
for pc := 0; pc < pl; {
ins := (*ir.Instr)(rt.Add(unsafe.Pointer(pro), ir.OpSize*uintptr(pc)))
pc++
op := ins.Op()
switch op {
case ir.OP_goto:
pc = ins.Vi()
continue
case ir.OP_byte:
v := ins.Byte()
buf = append(buf, v)
case ir.OP_text:
v := ins.Vs()
buf = append(buf, v...)
case ir.OP_deref:
p = *(*unsafe.Pointer)(p)
case ir.OP_index:
p = rt.Add(p, uintptr(ins.I64()))
case ir.OP_load:
// NOTICE: load CANNOT change f!
x, _, p, q = s.Load()
case ir.OP_save:
if !s.Save(x, f, p, q) {
return vars.ERR_too_deep
}
case ir.OP_drop:
x, f, p, q = s.Drop()
case ir.OP_drop_2:
s.Drop()
x, f, p, q = s.Drop()
case ir.OP_recurse:
vt, pv := ins.Vp2()
f := flags
if pv {
f |= (1 << alg.BitPointerValue)
}
*b = buf
if vt.Indirect() {
if err := EncodeTypedPointer(b, vt, (*unsafe.Pointer)(rt.NoEscape(unsafe.Pointer(&p))), s, f); err != nil {
return err
}
} else {
vp := (*unsafe.Pointer)(p)
if err := EncodeTypedPointer(b, vt, vp, s, f); err != nil {
return err
}
}
buf = *b
case ir.OP_is_nil:
if is_nil(p) {
pc = ins.Vi()
continue
}
case ir.OP_is_nil_p1:
if (*rt.GoEface)(p).Value == nil {
pc = ins.Vi()
continue
}
case ir.OP_null:
buf = append(buf, 'n', 'u', 'l', 'l')
case ir.OP_str:
v := *(*string)(p)
buf = alg.Quote(buf, v, false)
case ir.OP_bool:
if *(*bool)(p) {
buf = append(buf, 't', 'r', 'u', 'e')
} else {
buf = append(buf, 'f', 'a', 'l', 's', 'e')
}
case ir.OP_i8:
v := *(*int8)(p)
buf = alg.I64toa(buf, int64(v))
case ir.OP_i16:
v := *(*int16)(p)
buf = alg.I64toa(buf, int64(v))
case ir.OP_i32:
v := *(*int32)(p)
buf = alg.I64toa(buf, int64(v))
case ir.OP_i64:
v := *(*int64)(p)
buf = alg.I64toa(buf, int64(v))
case ir.OP_u8:
v := *(*uint8)(p)
buf = alg.U64toa(buf, uint64(v))
case ir.OP_u16:
v := *(*uint16)(p)
buf = alg.U64toa(buf, uint64(v))
case ir.OP_u32:
v := *(*uint32)(p)
buf = alg.U64toa(buf, uint64(v))
case ir.OP_u64:
v := *(*uint64)(p)
buf = alg.U64toa(buf, uint64(v))
case ir.OP_f32:
v := *(*float32)(p)
if math.IsNaN(float64(v)) || math.IsInf(float64(v), 0) {
if flags&(1<<alg.BitEncodeNullForInfOrNan) != 0 {
buf = append(buf, 'n', 'u', 'l', 'l')
continue
}
return vars.ERR_nan_or_infinite
}
buf = alg.F32toa(buf, v)
case ir.OP_f64:
v := *(*float64)(p)
if math.IsNaN(v) || math.IsInf(v, 0) {
if flags&(1<<alg.BitEncodeNullForInfOrNan) != 0 {
buf = append(buf, 'n', 'u', 'l', 'l')
continue
}
return vars.ERR_nan_or_infinite
}
buf = alg.F64toa(buf, v)
case ir.OP_bin:
v := *(*[]byte)(p)
buf = rt.EncodeBase64(buf, v)
case ir.OP_quote:
v := *(*string)(p)
buf = alg.Quote(buf, v, true)
case ir.OP_number:
v := *(*json.Number)(p)
if v == "" {
buf = append(buf, '0')
} else if !rt.IsValidNumber(string(v)) {
return vars.Error_number(v)
} else {
buf = append(buf, v...)
}
case ir.OP_eface:
*b = buf
if err := EncodeTypedPointer(b, *(**rt.GoType)(p), (*unsafe.Pointer)(rt.Add(p, 8)), s, flags); err != nil {
return err
}
buf = *b
case ir.OP_iface:
*b = buf
if err := EncodeTypedPointer(b, (*(**rt.GoItab)(p)).Vt, (*unsafe.Pointer)(rt.Add(p, 8)), s, flags); err != nil {
return err
}
buf = *b
case ir.OP_is_zero_map:
v := *(*unsafe.Pointer)(p)
if v == nil || rt.Maplen(v) == 0 {
pc = ins.Vi()
continue
}
case ir.OP_map_iter:
v := *(*unsafe.Pointer)(p)
vt := ins.Vr()
it, err := alg.IteratorStart(rt.MapType(vt), v, flags)
if err != nil {
return err
}
q = unsafe.Pointer(it)
case ir.OP_map_stop:
it := (*alg.MapIterator)(q)
alg.IteratorStop(it)
q = nil
case ir.OP_map_value_next:
it := (*alg.MapIterator)(q)
p = it.It.V
alg.IteratorNext(it)
case ir.OP_map_check_key:
it := (*alg.MapIterator)(q)
if it.It.K == nil {
pc = ins.Vi()
continue
}
p = it.It.K
case ir.OP_marshal_text:
vt, itab := ins.Vtab()
var it rt.GoIface
switch vt.Kind() {
case reflect.Interface :
if is_nil(p) {
buf = append(buf, 'n', 'u', 'l', 'l')
continue
}
it = rt.AssertI2I(_T_encoding_TextMarshaler, *(*rt.GoIface)(p))
case reflect.Ptr, reflect.Map : it = convT2I(p, true, itab)
default : it = convT2I(p, !vt.Indirect(), itab)
}
if err := alg.EncodeTextMarshaler(&buf, *(*encoding.TextMarshaler)(unsafe.Pointer(&it)), (flags)); err != nil {
return err
}
case ir.OP_marshal_text_p:
_, itab := ins.Vtab()
it := convT2I(p, false, itab)
if err := alg.EncodeTextMarshaler(&buf, *(*encoding.TextMarshaler)(unsafe.Pointer(&it)), (flags)); err != nil {
return err
}
case ir.OP_map_write_key:
if has_opts(flags, alg.BitSortMapKeys) {
v := *(*string)(p)
buf = alg.Quote(buf, v, false)
pc = ins.Vi()
continue
}
case ir.OP_slice_len:
v := (*rt.GoSlice)(p)
x = v.Len
p = v.Ptr
//TODO: why?
f |= 1<<_S_init
case ir.OP_slice_next:
if x == 0 {
pc = ins.Vi()
continue
}
x--
if has_opts(f, _S_init) {
f &= ^uint64(1 << _S_init)
} else {
p = rt.Add(p, uintptr(ins.Vlen()))
}
case ir.OP_cond_set:
f |= 1<<_S_cond
case ir.OP_cond_testc:
if has_opts(f, _S_cond) {
f &= ^uint64(1 << _S_cond)
pc = ins.Vi()
continue
}
case ir.OP_is_zero:
fv := ins.VField()
if alg.IsZero(p, fv) {
pc = ins.Vi()
continue
}
case ir.OP_is_zero_1:
if *(*uint8)(p) == 0 {
pc = ins.Vi()
continue
}
case ir.OP_is_zero_2:
if *(*uint16)(p) == 0 {
pc = ins.Vi()
continue
}
case ir.OP_is_zero_4:
if *(*uint32)(p) == 0 {
pc = ins.Vi()
continue
}
case ir.OP_is_zero_8:
if *(*uint64)(p) == 0 {
pc = ins.Vi()
continue
}
case ir.OP_empty_arr:
if has_opts(flags, alg.BitNoNullSliceOrMap) {
buf = append(buf, '[', ']')
} else {
buf = append(buf, 'n', 'u', 'l', 'l')
}
case ir.OP_empty_obj:
if has_opts(flags, alg.BitNoNullSliceOrMap) {
buf = append(buf, '{', '}')
} else {
buf = append(buf, 'n', 'u', 'l', 'l')
}
case ir.OP_marshal:
vt, itab := ins.Vtab()
var it rt.GoIface
switch vt.Kind() {
case reflect.Interface :
if is_nil(p) {
buf = append(buf, 'n', 'u', 'l', 'l')
continue
}
it = rt.AssertI2I(_T_json_Marshaler, *(*rt.GoIface)(p))
case reflect.Ptr, reflect.Map : it = convT2I(p, true, itab)
default : it = convT2I(p, !vt.Indirect(), itab)
}
if err := alg.EncodeJsonMarshaler(&buf, *(*json.Marshaler)(unsafe.Pointer(&it)), (flags)); err != nil {
return err
}
case ir.OP_marshal_p:
_, itab := ins.Vtab()
it := convT2I(p, false, itab)
if err := alg.EncodeJsonMarshaler(&buf, *(*json.Marshaler)(unsafe.Pointer(&it)), (flags)); err != nil {
return err
}
case ir.OP_unsupported:
return vars.Error_unsuppoted(ins.GoType())
default:
panic(fmt.Sprintf("not implement %s at %d", ins.Op().String(), pc))
}
}
*b = buf
return nil
}
func has_opts(opts uint64, bit int) bool {
return opts & (1<<bit) != 0
}
func is_nil(p unsafe.Pointer) bool {
return *(*unsafe.Pointer)(p) == nil
}
func convT2I(ptr unsafe.Pointer, deref bool, itab *rt.GoItab) (rt.GoIface) {
if deref {
ptr = *(*unsafe.Pointer)(ptr)
}
return rt.GoIface{
Itab: itab,
Value: ptr,
}
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/vm/stbus.go | vendor/github.com/bytedance/sonic/internal/encoder/vm/stbus.go | /**
* Copyright 2024 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package vm
import (
"unsafe"
_ "unsafe"
"github.com/bytedance/sonic/internal/encoder/alg"
"github.com/bytedance/sonic/internal/encoder/ir"
"github.com/bytedance/sonic/internal/encoder/vars"
"github.com/bytedance/sonic/internal/rt"
)
func EncodeTypedPointer(buf *[]byte, vt *rt.GoType, vp *unsafe.Pointer, sb *vars.Stack, fv uint64) error {
if vt == nil {
return alg.EncodeNil(buf)
} else if pp, err := vars.FindOrCompile(vt, (fv&(1<<alg.BitPointerValue)) != 0, compiler); err != nil {
return err
} else if vt.Indirect() {
return Execute(buf, *vp, sb, fv, pp.(*ir.Program))
} else {
return Execute(buf, unsafe.Pointer(vp), sb, fv, pp.(*ir.Program))
}
}
var compiler func(*rt.GoType, ... interface{}) (interface{}, error)
func SetCompiler(c func(*rt.GoType, ... interface{}) (interface{}, error)) {
compiler = c
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/x86/asm_stubs_amd64_go117.go | vendor/github.com/bytedance/sonic/internal/encoder/x86/asm_stubs_amd64_go117.go | //go:build go1.17 && !go1.21
// +build go1.17,!go1.21
// Copyright 2023 CloudWeGo Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package x86
import (
"strconv"
"unsafe"
"github.com/bytedance/sonic/internal/jit"
"github.com/bytedance/sonic/internal/rt"
"github.com/twitchyliquid64/golang-asm/obj"
"github.com/twitchyliquid64/golang-asm/obj/x86"
)
var (
_V_writeBarrier = jit.Imm(int64(uintptr(unsafe.Pointer(&rt.RuntimeWriteBarrier))))
_F_gcWriteBarrierAX = jit.Func(rt.GcWriteBarrierAX)
)
func (self *Assembler) WritePtr(i int, ptr obj.Addr, rec obj.Addr) {
if rec.Reg == x86.REG_AX || rec.Index == x86.REG_AX {
panic("rec contains AX!")
}
self.Emit("MOVQ", _V_writeBarrier, _BX)
self.Emit("CMPL", jit.Ptr(_BX, 0), jit.Imm(0))
self.Sjmp("JE", "_no_writeBarrier" + strconv.Itoa(i) + "_{n}")
self.xsave(_DI)
self.Emit("MOVQ", ptr, _AX)
self.Emit("LEAQ", rec, _DI)
self.Emit("MOVQ", _F_gcWriteBarrierAX, _BX) // MOVQ ${fn}, AX
self.Rjmp("CALL", _BX)
self.xload(_DI)
self.Sjmp("JMP", "_end_writeBarrier" + strconv.Itoa(i) + "_{n}")
self.Link("_no_writeBarrier" + strconv.Itoa(i) + "_{n}")
self.Emit("MOVQ", ptr, rec)
self.Link("_end_writeBarrier" + strconv.Itoa(i) + "_{n}")
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/x86/debug_go116.go | vendor/github.com/bytedance/sonic/internal/encoder/x86/debug_go116.go | // +build go1.17,!go1.17
/*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package x86
import (
`os`
`strings`
`runtime`
`runtime/debug`
`github.com/bytedance/sonic/internal/jit`
)
var (
debugSyncGC = os.Getenv("SONIC_SYNC_GC") != ""
debugAsyncGC = os.Getenv("SONIC_NO_ASYNC_GC") == ""
)
var (
_Instr_End _Instr = newInsOp(_OP_null)
_F_gc = jit.Func(runtime.GC)
_F_force_gc = jit.Func(debug.FreeOSMemory)
_F_println = jit.Func(println_wrapper)
)
func println_wrapper(i int, op1 int, op2 int){
println(i, " Intrs ", op1, _OpNames[op1], "next: ", op2, _OpNames[op2])
}
func (self *_Assembler) force_gc() {
self.call_go(_F_gc)
self.call_go(_F_force_gc)
}
func (self *_Assembler) debug_instr(i int, v *_Instr) {
if debugSyncGC {
if (i+1 == len(self.p)) {
self.print_gc(i, v, &_Instr_End)
} else {
next := &(self.p[i+1])
self.print_gc(i, v, next)
name := _OpNames[next.op()]
if strings.Contains(name, "save") {
return
}
}
self.force_gc()
}
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/x86/stbus.go | vendor/github.com/bytedance/sonic/internal/encoder/x86/stbus.go | /**
* Copyright 2024 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package x86
import (
"unsafe"
_ "unsafe"
"github.com/bytedance/sonic/internal/encoder/alg"
"github.com/bytedance/sonic/internal/encoder/vars"
"github.com/bytedance/sonic/internal/rt"
"github.com/bytedance/sonic/loader"
_ "github.com/cloudwego/base64x"
)
var compiler func(*rt.GoType, ... interface{}) (interface{}, error)
func SetCompiler(c func(*rt.GoType, ... interface{}) (interface{}, error)) {
compiler = c
}
func ptoenc(p loader.Function) vars.Encoder {
return *(*vars.Encoder)(unsafe.Pointer(&p))
}
func EncodeTypedPointer(buf *[]byte, vt *rt.GoType, vp *unsafe.Pointer, sb *vars.Stack, fv uint64) error {
if vt == nil {
return alg.EncodeNil(buf)
} else if fn, err := vars.FindOrCompile(vt, (fv&(1<<alg.BitPointerValue)) != 0, compiler); err != nil {
return err
} else if vt.Indirect() {
return fn.(vars.Encoder)(buf, *vp, sb, fv)
} else {
return fn.(vars.Encoder)(buf, unsafe.Pointer(vp), sb, fv)
}
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/x86/asm_stubs_amd64_go121.go | vendor/github.com/bytedance/sonic/internal/encoder/x86/asm_stubs_amd64_go121.go | //go:build go1.21 && !go1.25
// +build go1.21,!go1.25
// Copyright 2023 CloudWeGo Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package x86
import (
"strconv"
"unsafe"
"github.com/bytedance/sonic/internal/jit"
"github.com/bytedance/sonic/internal/rt"
"github.com/twitchyliquid64/golang-asm/obj"
"github.com/twitchyliquid64/golang-asm/obj/x86"
)
var (
_V_writeBarrier = jit.Imm(int64(uintptr(unsafe.Pointer(&rt.RuntimeWriteBarrier))))
_F_gcWriteBarrier2 = jit.Func(rt.GcWriteBarrier2)
)
func (self *Assembler) WritePtr(i int, ptr obj.Addr, old obj.Addr) {
if old.Reg == x86.REG_AX || old.Index == x86.REG_AX {
panic("rec contains AX!")
}
self.Emit("MOVQ", _V_writeBarrier, _BX)
self.Emit("CMPL", jit.Ptr(_BX, 0), jit.Imm(0))
self.Sjmp("JE", "_no_writeBarrier" + strconv.Itoa(i) + "_{n}")
self.xsave(_SP_q)
self.Emit("MOVQ", _F_gcWriteBarrier2, _BX) // MOVQ ${fn}, AX
self.Rjmp("CALL", _BX)
self.Emit("MOVQ", ptr, jit.Ptr(_SP_q, 0))
self.Emit("MOVQ", old, _AX)
self.Emit("MOVQ", _AX, jit.Ptr(_SP_q, 8))
self.xload(_SP_q)
self.Link("_no_writeBarrier" + strconv.Itoa(i) + "_{n}")
self.Emit("MOVQ", ptr, old)
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/x86/debug_go117.go | vendor/github.com/bytedance/sonic/internal/encoder/x86/debug_go117.go | //go:build go1.17 && !go1.25
// +build go1.17,!go1.25
/*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package x86
import (
"fmt"
"runtime"
"strings"
"unsafe"
"github.com/bytedance/sonic/internal/encoder/ir"
"github.com/bytedance/sonic/internal/encoder/vars"
"github.com/bytedance/sonic/internal/jit"
"github.com/twitchyliquid64/golang-asm/obj"
)
const _FP_debug = 128
var (
_Instr_End = ir.NewInsOp(ir.OP_is_nil)
_F_gc = jit.Func(gc)
_F_println = jit.Func(println_wrapper)
_F_print = jit.Func(print)
)
func (self *Assembler) dsave(r ...obj.Addr) {
for i, v := range r {
if i > _FP_debug/8-1 {
panic("too many registers to save")
} else {
self.Emit("MOVQ", v, jit.Ptr(_SP, _FP_fargs+_FP_saves+_FP_locals+int64(i)*8))
}
}
}
func (self *Assembler) dload(r ...obj.Addr) {
for i, v := range r {
if i > _FP_debug/8-1 {
panic("too many registers to load")
} else {
self.Emit("MOVQ", jit.Ptr(_SP, _FP_fargs+_FP_saves+_FP_locals+int64(i)*8), v)
}
}
}
func println_wrapper(i int, op1 int, op2 int) {
println(i, " Intrs ", op1, ir.OpNames[op1], "next: ", op2, ir.OpNames[op2])
}
func print(i int) {
println(i)
}
func gc() {
if !vars.DebugSyncGC {
return
}
runtime.GC()
// debug.FreeOSMemory()
}
func (self *Assembler) dcall(fn obj.Addr) {
self.Emit("MOVQ", fn, _R10) // MOVQ ${fn}, R10
self.Rjmp("CALL", _R10) // CALL R10
}
func (self *Assembler) debug_gc() {
if !vars.DebugSyncGC {
return
}
self.dsave(_REG_debug...)
self.dcall(_F_gc)
self.dload(_REG_debug...)
}
func (self *Assembler) debug_instr(i int, v *ir.Instr) {
if vars.DebugSyncGC {
if i+1 == len(self.p) {
self.print_gc(i, v, &_Instr_End)
} else {
next := &(self.p[i+1])
self.print_gc(i, v, next)
name := ir.OpNames[next.Op()]
if strings.Contains(name, "save") {
return
}
}
// self.debug_gc()
}
}
//go:noescape
//go:linkname checkptrBase runtime.checkptrBase
func checkptrBase(p unsafe.Pointer) uintptr
//go:noescape
//go:linkname findObject runtime.findObject
func findObject(p, refBase, refOff uintptr) (base uintptr, s unsafe.Pointer, objIndex uintptr)
var (
_F_checkptr = jit.Func(checkptr)
_F_printptr = jit.Func(printptr)
)
var (
_R10 = jit.Reg("R10")
)
var _REG_debug = []obj.Addr{
jit.Reg("AX"),
jit.Reg("BX"),
jit.Reg("CX"),
jit.Reg("DX"),
jit.Reg("DI"),
jit.Reg("SI"),
jit.Reg("BP"),
jit.Reg("SP"),
jit.Reg("R8"),
jit.Reg("R9"),
jit.Reg("R10"),
jit.Reg("R11"),
jit.Reg("R12"),
jit.Reg("R13"),
jit.Reg("R14"),
jit.Reg("R15"),
}
func checkptr(ptr uintptr) {
if ptr == 0 {
return
}
fmt.Printf("pointer: %x\n", ptr)
f := checkptrBase(unsafe.Pointer(uintptr(ptr)))
if f == 0 {
fmt.Printf("! unknown-based pointer: %x\n", ptr)
} else if f == 1 {
fmt.Printf("! stack pointer: %x\n", ptr)
} else {
fmt.Printf("base: %x\n", f)
}
findobj(ptr)
}
func findobj(ptr uintptr) {
base, s, objIndex := findObject(ptr, 0, 0)
if s != nil && base == 0 {
fmt.Printf("! invalid pointer: %x\n", ptr)
}
fmt.Printf("objIndex: %d\n", objIndex)
}
func (self *Assembler) check_ptr(ptr obj.Addr, lea bool) {
if !vars.DebugCheckPtr {
return
}
self.dsave(_REG_debug...)
if lea {
self.Emit("LEAQ", ptr, _R10)
} else {
self.Emit("MOVQ", ptr, _R10)
}
self.Emit("MOVQ", _R10, jit.Ptr(_SP, 0))
self.dcall(_F_checkptr)
self.dload(_REG_debug...)
}
func printptr(i int, ptr uintptr) {
fmt.Printf("[%d] ptr: %x\n", i, ptr)
}
func (self *Assembler) print_ptr(i int, ptr obj.Addr, lea bool) {
self.dsave(_REG_debug...)
if lea {
self.Emit("LEAQ", ptr, _R10)
} else {
self.Emit("MOVQ", ptr, _R10)
}
self.Emit("MOVQ", jit.Imm(int64(i)), _AX)
self.Emit("MOVQ", _R10, _BX)
self.dcall(_F_printptr)
self.dload(_REG_debug...)
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/x86/assembler_regabi_amd64.go | vendor/github.com/bytedance/sonic/internal/encoder/x86/assembler_regabi_amd64.go | //go:build go1.17 && !go1.25
// +build go1.17,!go1.25
/*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package x86
import (
"fmt"
"reflect"
"strconv"
"unsafe"
"github.com/bytedance/sonic/internal/cpu"
"github.com/bytedance/sonic/internal/encoder/alg"
"github.com/bytedance/sonic/internal/encoder/ir"
"github.com/bytedance/sonic/internal/encoder/vars"
"github.com/bytedance/sonic/internal/jit"
"github.com/bytedance/sonic/internal/native/types"
"github.com/twitchyliquid64/golang-asm/obj"
"github.com/twitchyliquid64/golang-asm/obj/x86"
"github.com/bytedance/sonic/internal/native"
"github.com/bytedance/sonic/internal/rt"
)
/** Register Allocations
*
* State Registers:
*
* %rbx : stack base
* %rdi : result pointer
* %rsi : result length
* %rdx : result capacity
* %r12 : sp->p
* %r13 : sp->q
* %r14 : sp->x
* %r15 : sp->f
*
* Error Registers:
*
* %r10 : error type register
* %r11 : error pointer register
*/
/** Function Prototype & Stack Map
*
* func (buf *[]byte, p unsafe.Pointer, sb *_Stack, fv uint64) (err error)
*
* buf : (FP)
* p : 8(FP)
* sb : 16(FP)
* fv : 24(FP)
* err.vt : 32(FP)
* err.vp : 40(FP)
*/
const (
_S_cond = iota
_S_init
)
const (
_FP_args = 32 // 32 bytes for spill registers of arguments
_FP_fargs = 40 // 40 bytes for passing arguments to other Go functions
_FP_saves = 64 // 64 bytes for saving the registers before CALL instructions
_FP_locals = 24 // 24 bytes for local variables
)
const (
_FP_loffs = _FP_fargs + _FP_saves
FP_offs = _FP_loffs + _FP_locals
// _FP_offs = _FP_loffs + _FP_locals + _FP_debug
_FP_size = FP_offs + 8 // 8 bytes for the parent frame pointer
_FP_base = _FP_size + 8 // 8 bytes for the return address
)
const (
_FM_exp32 = 0x7f800000
_FM_exp64 = 0x7ff0000000000000
)
const (
_IM_null = 0x6c6c756e // 'null'
_IM_true = 0x65757274 // 'true'
_IM_fals = 0x736c6166 // 'fals' ('false' without the 'e')
_IM_open = 0x00225c22 // '"\"∅'
_IM_array = 0x5d5b // '[]'
_IM_object = 0x7d7b // '{}'
_IM_mulv = -0x5555555555555555
)
const (
_LB_more_space = "_more_space"
_LB_more_space_return = "_more_space_return_"
)
const (
_LB_error = "_error"
_LB_error_too_deep = "_error_too_deep"
_LB_error_invalid_number = "_error_invalid_number"
_LB_error_nan_or_infinite = "_error_nan_or_infinite"
_LB_panic = "_panic"
)
var (
_AX = jit.Reg("AX")
_BX = jit.Reg("BX")
_CX = jit.Reg("CX")
_DX = jit.Reg("DX")
_DI = jit.Reg("DI")
_SI = jit.Reg("SI")
_BP = jit.Reg("BP")
_SP = jit.Reg("SP")
_R8 = jit.Reg("R8")
_R9 = jit.Reg("R9")
)
var (
_X0 = jit.Reg("X0")
_Y0 = jit.Reg("Y0")
)
var (
_ST = jit.Reg("R15") // can't use R14 since it's always scratched by Go...
_RP = jit.Reg("DI")
_RL = jit.Reg("SI")
_RC = jit.Reg("DX")
)
var (
_LR = jit.Reg("R9")
_ET = jit.Reg("AX")
_EP = jit.Reg("BX")
)
var (
_SP_p = jit.Reg("R10") // saved on BX when call_c
_SP_q = jit.Reg("R11") // saved on BP when call_c
_SP_x = jit.Reg("R12")
_SP_f = jit.Reg("R13")
)
var (
_ARG_rb = jit.Ptr(_SP, _FP_base)
_ARG_vp = jit.Ptr(_SP, _FP_base+8)
_ARG_sb = jit.Ptr(_SP, _FP_base+16)
_ARG_fv = jit.Ptr(_SP, _FP_base+24)
)
var (
_RET_et = _ET
_RET_ep = _EP
)
var (
_VAR_sp = jit.Ptr(_SP, _FP_fargs+_FP_saves)
_VAR_dn = jit.Ptr(_SP, _FP_fargs+_FP_saves+8)
_VAR_vp = jit.Ptr(_SP, _FP_fargs+_FP_saves+16)
)
var (
_REG_ffi = []obj.Addr{_RP, _RL, _RC, _SP_q}
_REG_b64 = []obj.Addr{_SP_p, _SP_q}
_REG_all = []obj.Addr{_ST, _SP_x, _SP_f, _SP_p, _SP_q, _RP, _RL, _RC}
_REG_ms = []obj.Addr{_ST, _SP_x, _SP_f, _SP_p, _SP_q, _LR}
_REG_enc = []obj.Addr{_ST, _SP_x, _SP_f, _SP_p, _SP_q, _RL}
)
type Assembler struct {
Name string
jit.BaseAssembler
p ir.Program
x int
}
func NewAssembler(p ir.Program) *Assembler {
return new(Assembler).Init(p)
}
/** Assembler Interface **/
func (self *Assembler) Load() vars.Encoder {
return ptoenc(self.BaseAssembler.Load("encode_"+self.Name, _FP_size, _FP_args, vars.ArgPtrs, vars.LocalPtrs))
}
func (self *Assembler) Init(p ir.Program) *Assembler {
self.p = p
self.BaseAssembler.Init(self.compile)
return self
}
func (self *Assembler) compile() {
self.prologue()
self.instrs()
self.epilogue()
self.builtins()
}
/** Assembler Stages **/
var _OpFuncTab = [256]func(*Assembler, *ir.Instr){
ir.OP_null: (*Assembler)._asm_OP_null,
ir.OP_empty_arr: (*Assembler)._asm_OP_empty_arr,
ir.OP_empty_obj: (*Assembler)._asm_OP_empty_obj,
ir.OP_bool: (*Assembler)._asm_OP_bool,
ir.OP_i8: (*Assembler)._asm_OP_i8,
ir.OP_i16: (*Assembler)._asm_OP_i16,
ir.OP_i32: (*Assembler)._asm_OP_i32,
ir.OP_i64: (*Assembler)._asm_OP_i64,
ir.OP_u8: (*Assembler)._asm_OP_u8,
ir.OP_u16: (*Assembler)._asm_OP_u16,
ir.OP_u32: (*Assembler)._asm_OP_u32,
ir.OP_u64: (*Assembler)._asm_OP_u64,
ir.OP_f32: (*Assembler)._asm_OP_f32,
ir.OP_f64: (*Assembler)._asm_OP_f64,
ir.OP_str: (*Assembler)._asm_OP_str,
ir.OP_bin: (*Assembler)._asm_OP_bin,
ir.OP_quote: (*Assembler)._asm_OP_quote,
ir.OP_number: (*Assembler)._asm_OP_number,
ir.OP_eface: (*Assembler)._asm_OP_eface,
ir.OP_iface: (*Assembler)._asm_OP_iface,
ir.OP_byte: (*Assembler)._asm_OP_byte,
ir.OP_text: (*Assembler)._asm_OP_text,
ir.OP_deref: (*Assembler)._asm_OP_deref,
ir.OP_index: (*Assembler)._asm_OP_index,
ir.OP_load: (*Assembler)._asm_OP_load,
ir.OP_save: (*Assembler)._asm_OP_save,
ir.OP_drop: (*Assembler)._asm_OP_drop,
ir.OP_drop_2: (*Assembler)._asm_OP_drop_2,
ir.OP_recurse: (*Assembler)._asm_OP_recurse,
ir.OP_is_nil: (*Assembler)._asm_OP_is_nil,
ir.OP_is_nil_p1: (*Assembler)._asm_OP_is_nil_p1,
ir.OP_is_zero_1: (*Assembler)._asm_OP_is_zero_1,
ir.OP_is_zero_2: (*Assembler)._asm_OP_is_zero_2,
ir.OP_is_zero_4: (*Assembler)._asm_OP_is_zero_4,
ir.OP_is_zero_8: (*Assembler)._asm_OP_is_zero_8,
ir.OP_is_zero_map: (*Assembler)._asm_OP_is_zero_map,
ir.OP_goto: (*Assembler)._asm_OP_goto,
ir.OP_map_iter: (*Assembler)._asm_OP_map_iter,
ir.OP_map_stop: (*Assembler)._asm_OP_map_stop,
ir.OP_map_check_key: (*Assembler)._asm_OP_map_check_key,
ir.OP_map_write_key: (*Assembler)._asm_OP_map_write_key,
ir.OP_map_value_next: (*Assembler)._asm_OP_map_value_next,
ir.OP_slice_len: (*Assembler)._asm_OP_slice_len,
ir.OP_slice_next: (*Assembler)._asm_OP_slice_next,
ir.OP_marshal: (*Assembler)._asm_OP_marshal,
ir.OP_marshal_p: (*Assembler)._asm_OP_marshal_p,
ir.OP_marshal_text: (*Assembler)._asm_OP_marshal_text,
ir.OP_marshal_text_p: (*Assembler)._asm_OP_marshal_text_p,
ir.OP_cond_set: (*Assembler)._asm_OP_cond_set,
ir.OP_cond_testc: (*Assembler)._asm_OP_cond_testc,
ir.OP_unsupported: (*Assembler)._asm_OP_unsupported,
ir.OP_is_zero: (*Assembler)._asm_OP_is_zero,
}
func (self *Assembler) instr(v *ir.Instr) {
if fn := _OpFuncTab[v.Op()]; fn != nil {
fn(self, v)
} else {
panic(fmt.Sprintf("invalid opcode: %d", v.Op()))
}
}
func (self *Assembler) instrs() {
for i, v := range self.p {
self.Mark(i)
self.instr(&v)
self.debug_instr(i, &v)
}
}
func (self *Assembler) builtins() {
self.more_space()
self.error_too_deep()
self.error_invalid_number()
self.error_nan_or_infinite()
self.go_panic()
}
func (self *Assembler) epilogue() {
self.Mark(len(self.p))
self.Emit("XORL", _ET, _ET)
self.Emit("XORL", _EP, _EP)
self.Link(_LB_error)
self.Emit("MOVQ", _ARG_rb, _CX) // MOVQ rb<>+0(FP), CX
self.Emit("MOVQ", _RL, jit.Ptr(_CX, 8)) // MOVQ RL, 8(CX)
self.Emit("MOVQ", jit.Imm(0), _ARG_rb) // MOVQ AX, rb<>+0(FP)
self.Emit("MOVQ", jit.Imm(0), _ARG_vp) // MOVQ BX, vp<>+8(FP)
self.Emit("MOVQ", jit.Imm(0), _ARG_sb) // MOVQ CX, sb<>+16(FP)
self.Emit("MOVQ", jit.Ptr(_SP, FP_offs), _BP) // MOVQ _FP_offs(SP), BP
self.Emit("ADDQ", jit.Imm(_FP_size), _SP) // ADDQ $_FP_size, SP
self.Emit("RET") // RET
}
func (self *Assembler) prologue() {
self.Emit("SUBQ", jit.Imm(_FP_size), _SP) // SUBQ $_FP_size, SP
self.Emit("MOVQ", _BP, jit.Ptr(_SP, FP_offs)) // MOVQ BP, _FP_offs(SP)
self.Emit("LEAQ", jit.Ptr(_SP, FP_offs), _BP) // LEAQ _FP_offs(SP), BP
self.Emit("MOVQ", _AX, _ARG_rb) // MOVQ AX, rb<>+0(FP)
self.Emit("MOVQ", _BX, _ARG_vp) // MOVQ BX, vp<>+8(FP)
self.Emit("MOVQ", _CX, _ARG_sb) // MOVQ CX, sb<>+16(FP)
self.Emit("MOVQ", _DI, _ARG_fv) // MOVQ DI, rb<>+24(FP)
self.Emit("MOVQ", jit.Ptr(_AX, 0), _RP) // MOVQ (AX) , DI
self.Emit("MOVQ", jit.Ptr(_AX, 8), _RL) // MOVQ 8(AX) , SI
self.Emit("MOVQ", jit.Ptr(_AX, 16), _RC) // MOVQ 16(AX), DX
self.Emit("MOVQ", _BX, _SP_p) // MOVQ BX, R10
self.Emit("MOVQ", _CX, _ST) // MOVQ CX, R8
self.Emit("XORL", _SP_x, _SP_x) // XORL R10, R12
self.Emit("XORL", _SP_f, _SP_f) // XORL R11, R13
self.Emit("XORL", _SP_q, _SP_q) // XORL R13, R11
}
/** Assembler Inline Functions **/
func (self *Assembler) xsave(reg ...obj.Addr) {
for i, v := range reg {
if i > _FP_saves/8-1 {
panic("too many registers to save")
} else {
self.Emit("MOVQ", v, jit.Ptr(_SP, _FP_fargs+int64(i)*8))
}
}
}
func (self *Assembler) xload(reg ...obj.Addr) {
for i, v := range reg {
if i > _FP_saves/8-1 {
panic("too many registers to load")
} else {
self.Emit("MOVQ", jit.Ptr(_SP, _FP_fargs+int64(i)*8), v)
}
}
}
func (self *Assembler) rbuf_di() {
if _RP.Reg != x86.REG_DI {
panic("register allocation messed up: RP != DI")
} else {
self.Emit("ADDQ", _RL, _RP)
}
}
func (self *Assembler) store_int(nd int, fn obj.Addr, ins string) {
self.check_size(nd)
self.save_c() // SAVE $C_regs
self.rbuf_di() // MOVQ RP, DI
self.Emit(ins, jit.Ptr(_SP_p, 0), _SI) // $ins (SP.p), SI
self.call_c(fn) // CALL_C $fn
self.Emit("ADDQ", _AX, _RL) // ADDQ AX, RL
}
func (self *Assembler) store_str(s string) {
i := 0
m := rt.Str2Mem(s)
/* 8-byte stores */
for i <= len(m)-8 {
self.Emit("MOVQ", jit.Imm(rt.Get64(m[i:])), _AX) // MOVQ $s[i:], AX
self.Emit("MOVQ", _AX, jit.Sib(_RP, _RL, 1, int64(i))) // MOVQ AX, i(RP)(RL)
i += 8
}
/* 4-byte stores */
if i <= len(m)-4 {
self.Emit("MOVL", jit.Imm(int64(rt.Get32(m[i:]))), jit.Sib(_RP, _RL, 1, int64(i))) // MOVL $s[i:], i(RP)(RL)
i += 4
}
/* 2-byte stores */
if i <= len(m)-2 {
self.Emit("MOVW", jit.Imm(int64(rt.Get16(m[i:]))), jit.Sib(_RP, _RL, 1, int64(i))) // MOVW $s[i:], i(RP)(RL)
i += 2
}
/* last byte */
if i < len(m) {
self.Emit("MOVB", jit.Imm(int64(m[i])), jit.Sib(_RP, _RL, 1, int64(i))) // MOVB $s[i:], i(RP)(RL)
}
}
func (self *Assembler) check_size(n int) {
self.check_size_rl(jit.Ptr(_RL, int64(n)))
}
func (self *Assembler) check_size_r(r obj.Addr, d int) {
self.check_size_rl(jit.Sib(_RL, r, 1, int64(d)))
}
func (self *Assembler) check_size_rl(v obj.Addr) {
idx := self.x
key := _LB_more_space_return + strconv.Itoa(idx)
/* the following code relies on LR == R9 to work */
if _LR.Reg != x86.REG_R9 {
panic("register allocation messed up: LR != R9")
}
/* check for buffer capacity */
self.x++
self.Emit("LEAQ", v, _AX) // LEAQ $v, AX
self.Emit("CMPQ", _AX, _RC) // CMPQ AX, RC
self.Sjmp("JBE", key) // JBE _more_space_return_{n}
self.slice_grow_ax(key) // GROW $key
self.Link(key) // _more_space_return_{n}:
}
func (self *Assembler) slice_grow_ax(ret string) {
self.Byte(0x4c, 0x8d, 0x0d) // LEAQ ?(PC), R9
self.Sref(ret, 4) // .... &ret
self.Sjmp("JMP", _LB_more_space) // JMP _more_space
}
/** State Stack Helpers **/
func (self *Assembler) save_state() {
self.Emit("MOVQ", jit.Ptr(_ST, 0), _CX) // MOVQ (ST), CX
self.Emit("LEAQ", jit.Ptr(_CX, vars.StateSize), _R9) // LEAQ vars.StateSize(CX), R9
self.Emit("CMPQ", _R9, jit.Imm(vars.StackLimit)) // CMPQ R9, $vars.StackLimit
self.Sjmp("JAE", _LB_error_too_deep) // JA _error_too_deep
self.Emit("MOVQ", _SP_x, jit.Sib(_ST, _CX, 1, 8)) // MOVQ SP.x, 8(ST)(CX)
self.Emit("MOVQ", _SP_f, jit.Sib(_ST, _CX, 1, 16)) // MOVQ SP.f, 16(ST)(CX)
self.WritePtr(0, _SP_p, jit.Sib(_ST, _CX, 1, 24)) // MOVQ SP.p, 24(ST)(CX)
self.WritePtr(1, _SP_q, jit.Sib(_ST, _CX, 1, 32)) // MOVQ SP.q, 32(ST)(CX)
self.Emit("MOVQ", _R9, jit.Ptr(_ST, 0)) // MOVQ R9, (ST)
}
func (self *Assembler) drop_state(decr int64) {
self.Emit("MOVQ", jit.Ptr(_ST, 0), _AX) // MOVQ (ST), AX
self.Emit("SUBQ", jit.Imm(decr), _AX) // SUBQ $decr, AX
self.Emit("MOVQ", _AX, jit.Ptr(_ST, 0)) // MOVQ AX, (ST)
self.Emit("MOVQ", jit.Sib(_ST, _AX, 1, 8), _SP_x) // MOVQ 8(ST)(AX), SP.x
self.Emit("MOVQ", jit.Sib(_ST, _AX, 1, 16), _SP_f) // MOVQ 16(ST)(AX), SP.f
self.Emit("MOVQ", jit.Sib(_ST, _AX, 1, 24), _SP_p) // MOVQ 24(ST)(AX), SP.p
self.Emit("MOVQ", jit.Sib(_ST, _AX, 1, 32), _SP_q) // MOVQ 32(ST)(AX), SP.q
self.Emit("PXOR", _X0, _X0) // PXOR X0, X0
self.Emit("MOVOU", _X0, jit.Sib(_ST, _AX, 1, 8)) // MOVOU X0, 8(ST)(AX)
self.Emit("MOVOU", _X0, jit.Sib(_ST, _AX, 1, 24)) // MOVOU X0, 24(ST)(AX)
}
/** Buffer Helpers **/
func (self *Assembler) add_char(ch byte) {
self.Emit("MOVB", jit.Imm(int64(ch)), jit.Sib(_RP, _RL, 1, 0)) // MOVB $ch, (RP)(RL)
self.Emit("ADDQ", jit.Imm(1), _RL) // ADDQ $1, RL
}
func (self *Assembler) add_long(ch uint32, n int64) {
self.Emit("MOVL", jit.Imm(int64(ch)), jit.Sib(_RP, _RL, 1, 0)) // MOVL $ch, (RP)(RL)
self.Emit("ADDQ", jit.Imm(n), _RL) // ADDQ $n, RL
}
func (self *Assembler) add_text(ss string) {
self.store_str(ss) // TEXT $ss
self.Emit("ADDQ", jit.Imm(int64(len(ss))), _RL) // ADDQ ${len(ss)}, RL
}
// get *buf at AX
func (self *Assembler) prep_buffer_AX() {
self.Emit("MOVQ", _ARG_rb, _AX) // MOVQ rb<>+0(FP), AX
self.Emit("MOVQ", _RL, jit.Ptr(_AX, 8)) // MOVQ RL, 8(AX)
}
func (self *Assembler) save_buffer() {
self.Emit("MOVQ", _ARG_rb, _CX) // MOVQ rb<>+0(FP), CX
self.Emit("MOVQ", _RP, jit.Ptr(_CX, 0)) // MOVQ RP, (CX)
self.Emit("MOVQ", _RL, jit.Ptr(_CX, 8)) // MOVQ RL, 8(CX)
self.Emit("MOVQ", _RC, jit.Ptr(_CX, 16)) // MOVQ RC, 16(CX)
}
// get *buf at AX
func (self *Assembler) load_buffer_AX() {
self.Emit("MOVQ", _ARG_rb, _AX) // MOVQ rb<>+0(FP), AX
self.Emit("MOVQ", jit.Ptr(_AX, 0), _RP) // MOVQ (AX), RP
self.Emit("MOVQ", jit.Ptr(_AX, 8), _RL) // MOVQ 8(AX), RL
self.Emit("MOVQ", jit.Ptr(_AX, 16), _RC) // MOVQ 16(AX), RC
}
/** Function Interface Helpers **/
func (self *Assembler) call(pc obj.Addr) {
self.Emit("MOVQ", pc, _LR) // MOVQ $pc, AX
self.Rjmp("CALL", _LR) // CALL AX
}
func (self *Assembler) save_c() {
self.xsave(_REG_ffi...) // SAVE $REG_ffi
}
func (self *Assembler) call_b64(pc obj.Addr) {
self.xsave(_REG_b64...) // SAVE $REG_all
self.call(pc) // CALL $pc
self.xload(_REG_b64...) // LOAD $REG_ffi
}
func (self *Assembler) call_c(pc obj.Addr) {
self.Emit("XCHGQ", _SP_p, _BX)
self.call(pc) // CALL $pc
self.xload(_REG_ffi...) // LOAD $REG_ffi
self.Emit("XCHGQ", _SP_p, _BX)
}
func (self *Assembler) call_go(pc obj.Addr) {
self.xsave(_REG_all...) // SAVE $REG_all
self.call(pc) // CALL $pc
self.xload(_REG_all...) // LOAD $REG_all
}
func (self *Assembler) call_more_space(pc obj.Addr) {
self.xsave(_REG_ms...) // SAVE $REG_all
self.call(pc) // CALL $pc
self.xload(_REG_ms...) // LOAD $REG_all
}
func (self *Assembler) call_encoder(pc obj.Addr) {
self.xsave(_REG_enc...) // SAVE $REG_all
self.call(pc) // CALL $pc
self.xload(_REG_enc...) // LOAD $REG_all
}
func (self *Assembler) call_marshaler(fn obj.Addr, it *rt.GoType, vt reflect.Type) {
switch vt.Kind() {
case reflect.Interface:
self.call_marshaler_i(fn, it)
case reflect.Ptr, reflect.Map:
self.call_marshaler_v(fn, it, vt, true)
// struct/array of 1 direct iface type can be direct
default:
self.call_marshaler_v(fn, it, vt, !rt.UnpackType(vt).Indirect())
}
}
var (
_F_assertI2I = jit.Func(rt.AssertI2I)
)
func (self *Assembler) call_marshaler_i(fn obj.Addr, it *rt.GoType) {
self.Emit("MOVQ", jit.Ptr(_SP_p, 0), _AX) // MOVQ (SP.p), AX
self.Emit("TESTQ", _AX, _AX) // TESTQ AX, AX
self.Sjmp("JZ", "_null_{n}") // JZ _null_{n}
self.Emit("MOVQ", _AX, _BX) // MOVQ AX, BX
self.Emit("MOVQ", jit.Ptr(_SP_p, 8), _CX) // MOVQ 8(SP.p), CX
self.Emit("MOVQ", jit.Gtype(it), _AX) // MOVQ $it, AX
self.call_go(_F_assertI2I) // CALL_GO assertI2I
self.Emit("TESTQ", _AX, _AX) // TESTQ AX, AX
self.Sjmp("JZ", "_null_{n}") // JZ _null_{n}
self.Emit("MOVQ", _BX, _CX) // MOVQ BX, CX
self.Emit("MOVQ", _AX, _BX) // MOVQ AX, BX
self.prep_buffer_AX()
self.Emit("MOVQ", _ARG_fv, _DI) // MOVQ ARG.fv, DI
self.call_go(fn) // CALL $fn
self.Emit("TESTQ", _ET, _ET) // TESTQ ET, ET
self.Sjmp("JNZ", _LB_error) // JNZ _error
self.load_buffer_AX()
self.Sjmp("JMP", "_done_{n}") // JMP _done_{n}
self.Link("_null_{n}") // _null_{n}:
self.check_size(4) // SIZE $4
self.Emit("MOVL", jit.Imm(_IM_null), jit.Sib(_RP, _RL, 1, 0)) // MOVL $'null', (RP)(RL*1)
self.Emit("ADDQ", jit.Imm(4), _RL) // ADDQ $4, RL
self.Link("_done_{n}") // _done_{n}:
}
func (self *Assembler) call_marshaler_v(fn obj.Addr, it *rt.GoType, vt reflect.Type, deref bool) {
self.prep_buffer_AX() // MOVE {buf}, (SP)
self.Emit("MOVQ", jit.Itab(it, vt), _BX) // MOVQ $(itab(it, vt)), BX
/* dereference the pointer if needed */
if !deref {
self.Emit("MOVQ", _SP_p, _CX) // MOVQ SP.p, CX
} else {
self.Emit("MOVQ", jit.Ptr(_SP_p, 0), _CX) // MOVQ 0(SP.p), CX
}
/* call the encoder, and perform error checks */
self.Emit("MOVQ", _ARG_fv, _DI) // MOVQ ARG.fv, DI
self.call_go(fn) // CALL $fn
self.Emit("TESTQ", _ET, _ET) // TESTQ ET, ET
self.Sjmp("JNZ", _LB_error) // JNZ _error
self.load_buffer_AX()
}
/** Builtin: _more_space **/
var (
_T_byte = jit.Type(vars.ByteType)
_F_growslice = jit.Func(rt.GrowSlice)
_T_json_Marshaler = rt.UnpackType(vars.JsonMarshalerType)
_T_encoding_TextMarshaler = rt.UnpackType(vars.EncodingTextMarshalerType)
)
// AX must saving n
func (self *Assembler) more_space() {
self.Link(_LB_more_space)
self.Emit("MOVQ", _RP, _BX) // MOVQ DI, BX
self.Emit("MOVQ", _RL, _CX) // MOVQ SI, CX
self.Emit("MOVQ", _RC, _DI) // MOVQ DX, DI
self.Emit("MOVQ", _AX, _SI) // MOVQ AX, SI
self.Emit("MOVQ", _T_byte, _AX) // MOVQ $_T_byte, AX
self.call_more_space(_F_growslice) // CALL $pc
self.Emit("MOVQ", _AX, _RP) // MOVQ AX, DI
self.Emit("MOVQ", _BX, _RL) // MOVQ BX, SI
self.Emit("MOVQ", _CX, _RC) // MOVQ CX, DX
self.save_buffer() // SAVE {buf}
self.Rjmp("JMP", _LR) // JMP LR
}
/** Builtin Errors **/
var (
_V_ERR_too_deep = jit.Imm(int64(uintptr(unsafe.Pointer(vars.ERR_too_deep))))
_V_ERR_nan_or_infinite = jit.Imm(int64(uintptr(unsafe.Pointer(vars.ERR_nan_or_infinite))))
_I_json_UnsupportedValueError = jit.Itab(rt.UnpackType(vars.ErrorType), vars.JsonUnsupportedValueType)
)
func (self *Assembler) error_too_deep() {
self.Link(_LB_error_too_deep)
self.Emit("MOVQ", _V_ERR_too_deep, _EP) // MOVQ $_V_ERR_too_deep, EP
self.Emit("MOVQ", _I_json_UnsupportedValueError, _ET) // MOVQ $_I_json_UnsupportedValuError, ET
self.Sjmp("JMP", _LB_error) // JMP _error
}
func (self *Assembler) error_invalid_number() {
self.Link(_LB_error_invalid_number)
self.Emit("MOVQ", jit.Ptr(_SP_p, 0), _AX) // MOVQ 0(SP), AX
self.Emit("MOVQ", jit.Ptr(_SP_p, 8), _BX) // MOVQ 8(SP), BX
self.call_go(_F_error_number) // CALL_GO error_number
self.Sjmp("JMP", _LB_error) // JMP _error
}
func (self *Assembler) error_nan_or_infinite() {
self.Link(_LB_error_nan_or_infinite)
self.Emit("MOVQ", _V_ERR_nan_or_infinite, _EP) // MOVQ $_V_ERR_nan_or_infinite, EP
self.Emit("MOVQ", _I_json_UnsupportedValueError, _ET) // MOVQ $_I_json_UnsupportedValuError, ET
self.Sjmp("JMP", _LB_error) // JMP _error
}
/** String Encoding Routine **/
var (
_F_quote = jit.Imm(int64(native.S_quote))
_F_panic = jit.Func(vars.GoPanic)
)
func (self *Assembler) go_panic() {
self.Link(_LB_panic)
self.Emit("MOVQ", _SP_p, _BX)
self.call_go(_F_panic)
}
func (self *Assembler) encode_string(doubleQuote bool) {
self.Emit("MOVQ", jit.Ptr(_SP_p, 8), _AX) // MOVQ 8(SP.p), AX
self.Emit("TESTQ", _AX, _AX) // TESTQ AX, AX
self.Sjmp("JZ", "_str_empty_{n}") // JZ _str_empty_{n}
self.Emit("CMPQ", jit.Ptr(_SP_p, 0), jit.Imm(0))
self.Sjmp("JNE", "_str_next_{n}")
self.Emit("MOVQ", jit.Imm(int64(vars.PanicNilPointerOfNonEmptyString)), _AX)
self.Sjmp("JMP", _LB_panic)
self.Link("_str_next_{n}")
/* opening quote, check for double quote */
if !doubleQuote {
self.check_size_r(_AX, 2) // SIZE $2
self.add_char('"') // CHAR $'"'
} else {
self.check_size_r(_AX, 6) // SIZE $6
self.add_long(_IM_open, 3) // TEXT $`"\"`
}
/* quoting loop */
self.Emit("XORL", _AX, _AX) // XORL AX, AX
self.Emit("MOVQ", _AX, _VAR_sp) // MOVQ AX, sp
self.Link("_str_loop_{n}") // _str_loop_{n}:
self.save_c() // SAVE $REG_ffi
/* load the output buffer first, and then input buffer,
* because the parameter registers collide with RP / RL / RC */
self.Emit("MOVQ", _RC, _CX) // MOVQ RC, CX
self.Emit("SUBQ", _RL, _CX) // SUBQ RL, CX
self.Emit("MOVQ", _CX, _VAR_dn) // MOVQ CX, dn
self.Emit("LEAQ", jit.Sib(_RP, _RL, 1, 0), _DX) // LEAQ (RP)(RL), DX
self.Emit("LEAQ", _VAR_dn, _CX) // LEAQ dn, CX
self.Emit("MOVQ", _VAR_sp, _AX) // MOVQ sp, AX
self.Emit("MOVQ", jit.Ptr(_SP_p, 0), _DI) // MOVQ (SP.p), DI
self.Emit("MOVQ", jit.Ptr(_SP_p, 8), _SI) // MOVQ 8(SP.p), SI
self.Emit("ADDQ", _AX, _DI) // ADDQ AX, DI
self.Emit("SUBQ", _AX, _SI) // SUBQ AX, SI
/* set the flags based on `doubleQuote` */
if !doubleQuote {
self.Emit("XORL", _R8, _R8) // XORL R8, R8
} else {
self.Emit("MOVL", jit.Imm(types.F_DOUBLE_UNQUOTE), _R8) // MOVL ${types.F_DOUBLE_UNQUOTE}, R8
}
/* call the native quoter */
self.call_c(_F_quote) // CALL quote
self.Emit("ADDQ", _VAR_dn, _RL) // ADDQ dn, RL
self.Emit("TESTQ", _AX, _AX) // TESTQ AX, AX
self.Sjmp("JS", "_str_space_{n}") // JS _str_space_{n}
/* close the string, check for double quote */
if !doubleQuote {
self.check_size(1) // SIZE $1
self.add_char('"') // CHAR $'"'
self.Sjmp("JMP", "_str_end_{n}") // JMP _str_end_{n}
} else {
self.check_size(3) // SIZE $3
self.add_text("\\\"\"") // TEXT $'\""'
self.Sjmp("JMP", "_str_end_{n}") // JMP _str_end_{n}
}
/* not enough space to contain the quoted string */
self.Link("_str_space_{n}") // _str_space_{n}:
self.Emit("NOTQ", _AX) // NOTQ AX
self.Emit("ADDQ", _AX, _VAR_sp) // ADDQ AX, sp
self.Emit("LEAQ", jit.Sib(_RC, _RC, 1, 0), _AX) // LEAQ (RC)(RC), AX
self.slice_grow_ax("_str_loop_{n}") // GROW _str_loop_{n}
/* empty string, check for double quote */
if !doubleQuote {
self.Link("_str_empty_{n}") // _str_empty_{n}:
self.check_size(2) // SIZE $2
self.add_text("\"\"") // TEXT $'""'
self.Link("_str_end_{n}") // _str_end_{n}:
} else {
self.Link("_str_empty_{n}") // _str_empty_{n}:
self.check_size(6) // SIZE $6
self.add_text("\"\\\"\\\"\"") // TEXT $'"\"\""'
self.Link("_str_end_{n}") // _str_end_{n}:
}
}
/** OpCode Assembler Functions **/
var (
_F_f64toa = jit.Imm(int64(native.S_f64toa))
_F_f32toa = jit.Imm(int64(native.S_f32toa))
_F_i64toa = jit.Imm(int64(native.S_i64toa))
_F_u64toa = jit.Imm(int64(native.S_u64toa))
_F_b64encode = jit.Imm(int64(rt.SubrB64Encode))
)
var (
_F_memmove = jit.Func(rt.Memmove)
_F_error_number = jit.Func(vars.Error_number)
_F_isValidNumber = jit.Func(rt.IsValidNumber)
)
var (
_F_iteratorStop = jit.Func(alg.IteratorStop)
_F_iteratorNext = jit.Func(alg.IteratorNext)
_F_iteratorStart = jit.Func(alg.IteratorStart)
)
var (
_F_encodeTypedPointer obj.Addr
_F_encodeJsonMarshaler obj.Addr
_F_encodeTextMarshaler obj.Addr
)
const (
_MODE_AVX2 = 1 << 2
)
func init() {
_F_encodeJsonMarshaler = jit.Func(alg.EncodeJsonMarshaler)
_F_encodeTextMarshaler = jit.Func(alg.EncodeTextMarshaler)
_F_encodeTypedPointer = jit.Func(EncodeTypedPointer)
}
func (self *Assembler) _asm_OP_null(_ *ir.Instr) {
self.check_size(4)
self.Emit("MOVL", jit.Imm(_IM_null), jit.Sib(_RP, _RL, 1, 0)) // MOVL $'null', (RP)(RL*1)
self.Emit("ADDQ", jit.Imm(4), _RL) // ADDQ $4, RL
}
func (self *Assembler) _asm_OP_empty_arr(_ *ir.Instr) {
self.Emit("BTQ", jit.Imm(int64(alg.BitNoNullSliceOrMap)), _ARG_fv)
self.Sjmp("JC", "_empty_arr_{n}")
self._asm_OP_null(nil)
self.Sjmp("JMP", "_empty_arr_end_{n}")
self.Link("_empty_arr_{n}")
self.check_size(2)
self.Emit("MOVW", jit.Imm(_IM_array), jit.Sib(_RP, _RL, 1, 0))
self.Emit("ADDQ", jit.Imm(2), _RL)
self.Link("_empty_arr_end_{n}")
}
func (self *Assembler) _asm_OP_empty_obj(_ *ir.Instr) {
self.Emit("BTQ", jit.Imm(int64(alg.BitNoNullSliceOrMap)), _ARG_fv)
self.Sjmp("JC", "_empty_obj_{n}")
self._asm_OP_null(nil)
self.Sjmp("JMP", "_empty_obj_end_{n}")
self.Link("_empty_obj_{n}")
self.check_size(2)
self.Emit("MOVW", jit.Imm(_IM_object), jit.Sib(_RP, _RL, 1, 0))
self.Emit("ADDQ", jit.Imm(2), _RL)
self.Link("_empty_obj_end_{n}")
}
func (self *Assembler) _asm_OP_bool(_ *ir.Instr) {
self.Emit("CMPB", jit.Ptr(_SP_p, 0), jit.Imm(0)) // CMPB (SP.p), $0
self.Sjmp("JE", "_false_{n}") // JE _false_{n}
self.check_size(4) // SIZE $4
self.Emit("MOVL", jit.Imm(_IM_true), jit.Sib(_RP, _RL, 1, 0)) // MOVL $'true', (RP)(RL*1)
self.Emit("ADDQ", jit.Imm(4), _RL) // ADDQ $4, RL
self.Sjmp("JMP", "_end_{n}") // JMP _end_{n}
self.Link("_false_{n}") // _false_{n}:
self.check_size(5) // SIZE $5
self.Emit("MOVL", jit.Imm(_IM_fals), jit.Sib(_RP, _RL, 1, 0)) // MOVL $'fals', (RP)(RL*1)
self.Emit("MOVB", jit.Imm('e'), jit.Sib(_RP, _RL, 1, 4)) // MOVB $'e', 4(RP)(RL*1)
self.Emit("ADDQ", jit.Imm(5), _RL) // ADDQ $5, RL
self.Link("_end_{n}") // _end_{n}:
}
func (self *Assembler) _asm_OP_i8(_ *ir.Instr) {
self.store_int(4, _F_i64toa, "MOVBQSX")
}
func (self *Assembler) _asm_OP_i16(_ *ir.Instr) {
self.store_int(6, _F_i64toa, "MOVWQSX")
}
func (self *Assembler) _asm_OP_i32(_ *ir.Instr) {
self.store_int(17, _F_i64toa, "MOVLQSX")
}
func (self *Assembler) _asm_OP_i64(_ *ir.Instr) {
self.store_int(21, _F_i64toa, "MOVQ")
}
func (self *Assembler) _asm_OP_u8(_ *ir.Instr) {
self.store_int(3, _F_u64toa, "MOVBQZX")
}
func (self *Assembler) _asm_OP_u16(_ *ir.Instr) {
self.store_int(5, _F_u64toa, "MOVWQZX")
}
func (self *Assembler) _asm_OP_u32(_ *ir.Instr) {
self.store_int(16, _F_u64toa, "MOVLQZX")
}
func (self *Assembler) _asm_OP_u64(_ *ir.Instr) {
self.store_int(20, _F_u64toa, "MOVQ")
}
func (self *Assembler) _asm_OP_f32(_ *ir.Instr) {
self.check_size(32)
self.Emit("MOVL", jit.Ptr(_SP_p, 0), _AX) // MOVL (SP.p), AX
self.Emit("ANDL", jit.Imm(_FM_exp32), _AX) // ANDL $_FM_exp32, AX
self.Emit("XORL", jit.Imm(_FM_exp32), _AX) // XORL $_FM_exp32, AX
self.Sjmp("JNZ", "_encode_normal_f32_{n}")// JNZ _encode_normal_f32_{n}
self.Emit("BTQ", jit.Imm(alg.BitEncodeNullForInfOrNan), _ARG_fv) // BTQ ${BitEncodeNullForInfOrNan}, fv
self.Sjmp("JNC", _LB_error_nan_or_infinite) // JNC _error_nan_or_infinite
self._asm_OP_null(nil)
self.Sjmp("JMP", "_encode_f32_end_{n}") // JMP _encode_f32_end_{n}
self.Link("_encode_normal_f32_{n}")
self.save_c() // SAVE $C_regs
self.rbuf_di() // MOVQ RP, DI
self.Emit("MOVSS", jit.Ptr(_SP_p, 0), _X0) // MOVSS (SP.p), X0
self.call_c(_F_f32toa) // CALL_C f32toa
self.Emit("ADDQ", _AX, _RL) // ADDQ AX, RL
self.Link("_encode_f32_end_{n}")
}
func (self *Assembler) _asm_OP_f64(_ *ir.Instr) {
self.check_size(32)
self.Emit("MOVQ", jit.Ptr(_SP_p, 0), _AX) // MOVQ (SP.p), AX
self.Emit("MOVQ", jit.Imm(_FM_exp64), _CX) // MOVQ $_FM_exp64, CX
self.Emit("ANDQ", _CX, _AX) // ANDQ CX, AX
self.Emit("XORQ", _CX, _AX) // XORQ CX, AX
self.Sjmp("JNZ", "_encode_normal_f64_{n}")// JNZ _encode_normal_f64_{n}
self.Emit("BTQ", jit.Imm(alg.BitEncodeNullForInfOrNan), _ARG_fv) // BTQ ${BitEncodeNullForInfOrNan}, fv
self.Sjmp("JNC", _LB_error_nan_or_infinite)// JNC _error_nan_or_infinite
self._asm_OP_null(nil)
self.Sjmp("JMP", "_encode_f64_end_{n}") // JMP _encode_f64_end_{n}
self.Link("_encode_normal_f64_{n}")
self.save_c() // SAVE $C_regs
self.rbuf_di() // MOVQ RP, DI
self.Emit("MOVSD", jit.Ptr(_SP_p, 0), _X0) // MOVSD (SP.p), X0
self.call_c(_F_f64toa) // CALL_C f64toa
self.Emit("ADDQ", _AX, _RL) // ADDQ AX, RL
self.Link("_encode_f64_end_{n}")
}
func (self *Assembler) _asm_OP_str(_ *ir.Instr) {
self.encode_string(false)
}
func (self *Assembler) _asm_OP_bin(_ *ir.Instr) {
self.Emit("MOVQ", jit.Ptr(_SP_p, 8), _AX) // MOVQ 8(SP.p), AX
self.Emit("ADDQ", jit.Imm(2), _AX) // ADDQ $2, AX
self.Emit("MOVQ", jit.Imm(_IM_mulv), _CX) // MOVQ $_MF_mulv, CX
self.Emit("MOVQ", _DX, _BX) // MOVQ DX, BX
self.From("MULQ", _CX) // MULQ CX
self.Emit("LEAQ", jit.Sib(_DX, _DX, 1, 1), _AX) // LEAQ 1(DX)(DX), AX
self.Emit("ORQ", jit.Imm(2), _AX) // ORQ $2, AX
self.Emit("MOVQ", _BX, _DX) // MOVQ BX, DX
self.check_size_r(_AX, 0) // SIZE AX
self.add_char('"') // CHAR $'"'
self.Emit("MOVQ", _ARG_rb, _DI) // MOVQ rb<>+0(FP), DI
self.Emit("MOVQ", _RL, jit.Ptr(_DI, 8)) // MOVQ SI, 8(DI)
self.Emit("MOVQ", _SP_p, _SI) // MOVQ SP.p, SI
/* check for AVX2 support */
if !cpu.HasAVX2 {
self.Emit("XORL", _DX, _DX) // XORL DX, DX
} else {
self.Emit("MOVL", jit.Imm(_MODE_AVX2), _DX) // MOVL $_MODE_AVX2, DX
}
/* call the encoder */
self.call_b64(_F_b64encode) // CALL b64encode
self.load_buffer_AX() // LOAD {buf}
self.add_char('"') // CHAR $'"'
}
func (self *Assembler) _asm_OP_quote(_ *ir.Instr) {
self.encode_string(true)
}
func (self *Assembler) _asm_OP_number(_ *ir.Instr) {
self.Emit("MOVQ", jit.Ptr(_SP_p, 8), _BX) // MOVQ (SP.p), BX
self.Emit("TESTQ", _BX, _BX) // TESTQ BX, BX
self.Sjmp("JZ", "_empty_{n}")
self.Emit("MOVQ", jit.Ptr(_SP_p, 0), _AX) // MOVQ (SP.p), AX
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/vars/types.go | vendor/github.com/bytedance/sonic/internal/encoder/vars/types.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package vars
import (
`encoding`
`encoding/json`
`reflect`
)
var (
ByteType = reflect.TypeOf(byte(0))
JsonNumberType = reflect.TypeOf(json.Number(""))
JsonUnsupportedValueType = reflect.TypeOf(new(json.UnsupportedValueError))
)
var (
ErrorType = reflect.TypeOf((*error)(nil)).Elem()
JsonMarshalerType = reflect.TypeOf((*json.Marshaler)(nil)).Elem()
EncodingTextMarshalerType = reflect.TypeOf((*encoding.TextMarshaler)(nil)).Elem()
)
func IsSimpleByte(vt reflect.Type) bool {
if vt.Kind() != ByteType.Kind() {
return false
} else {
return !isEitherMarshaler(vt) && !isEitherMarshaler(reflect.PtrTo(vt))
}
}
func isEitherMarshaler(vt reflect.Type) bool {
return vt.Implements(JsonMarshalerType) || vt.Implements(EncodingTextMarshalerType)
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/vars/cache.go | vendor/github.com/bytedance/sonic/internal/encoder/vars/cache.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package vars
import (
"unsafe"
"github.com/bytedance/sonic/internal/rt"
)
type Encoder func(
rb *[]byte,
vp unsafe.Pointer,
sb *Stack,
fv uint64,
) error
func FindOrCompile(vt *rt.GoType, pv bool, compiler func(*rt.GoType, ... interface{}) (interface{}, error)) (interface{}, error) {
if val := programCache.Get(vt); val != nil {
return val, nil
} else if ret, err := programCache.Compute(vt, compiler, pv); err == nil {
return ret, nil
} else {
return nil, err
}
}
func GetProgram(vt *rt.GoType) (interface{}) {
return programCache.Get(vt)
}
func ComputeProgram(vt *rt.GoType, compute func(*rt.GoType, ... interface{}) (interface{}, error), pv bool) (interface{}, error) {
return programCache.Compute(vt, compute, pv)
} | go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/vars/errors.go | vendor/github.com/bytedance/sonic/internal/encoder/vars/errors.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package vars
import (
`encoding/json`
`fmt`
`reflect`
`strconv`
`unsafe`
`github.com/bytedance/sonic/internal/rt`
)
var ERR_too_deep = &json.UnsupportedValueError {
Str : "Value nesting too deep",
Value : reflect.ValueOf("..."),
}
var ERR_nan_or_infinite = &json.UnsupportedValueError {
Str : "NaN or ±Infinite",
Value : reflect.ValueOf("NaN or ±Infinite"),
}
func Error_type(vtype reflect.Type) error {
return &json.UnsupportedTypeError{Type: vtype}
}
func Error_number(number json.Number) error {
return &json.UnsupportedValueError {
Str : "invalid number literal: " + strconv.Quote(string(number)),
Value : reflect.ValueOf(number),
}
}
func Error_unsuppoted(typ *rt.GoType) error {
return &json.UnsupportedTypeError{Type: typ.Pack() }
}
func Error_marshaler(ret []byte, pos int) error {
return fmt.Errorf("invalid Marshaler output json syntax at %d: %q", pos, ret)
}
const (
PanicNilPointerOfNonEmptyString int = 1 + iota
)
func GoPanic(code int, val unsafe.Pointer) {
switch(code){
case PanicNilPointerOfNonEmptyString:
panic(fmt.Sprintf("val: %#v has nil pointer while its length is not zero!\nThis is a nil pointer exception (NPE) problem. There might be a data race issue. It is recommended to execute the tests related to the code with the `-race` compile flag to detect the problem.", (*rt.GoString)(val)))
default:
panic("encoder error!")
}
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/vars/stack.go | vendor/github.com/bytedance/sonic/internal/encoder/vars/stack.go | /**
* Copyright 2024 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package vars
import (
"bytes"
"sync"
"unsafe"
"github.com/bytedance/sonic/internal/caching"
"github.com/bytedance/sonic/internal/rt"
"github.com/bytedance/sonic/option"
)
type State struct {
x int
f uint64
p unsafe.Pointer
q unsafe.Pointer
}
type Stack struct {
sp uintptr
sb [MaxStack]State
}
var (
bytesPool = sync.Pool{}
stackPool = sync.Pool{
New: func() interface{} {
return &Stack{}
},
}
bufferPool = sync.Pool{}
programCache = caching.CreateProgramCache()
)
func NewBytes() *[]byte {
if ret := bytesPool.Get(); ret != nil {
return ret.(*[]byte)
} else {
ret := make([]byte, 0, option.DefaultEncoderBufferSize)
return &ret
}
}
func NewStack() *Stack {
ret := stackPool.Get().(*Stack)
ret.sp = 0
return ret
}
func ResetStack(p *Stack) {
rt.MemclrNoHeapPointers(unsafe.Pointer(p), StackSize)
}
func (s *Stack) Top() *State {
return (*State)(rt.Add(unsafe.Pointer(&s.sb[0]), s.sp))
}
func (s *Stack) Cur() *State {
return (*State)(rt.Add(unsafe.Pointer(&s.sb[0]), s.sp - uintptr(StateSize)))
}
const _MaxStackSP = uintptr(MaxStack * StateSize)
func (s *Stack) Push(v State) bool {
if uintptr(s.sp) >= _MaxStackSP {
return false
}
st := s.Top()
*st = v
s.sp += uintptr(StateSize)
return true
}
func (s *Stack) Pop() State {
s.sp -= uintptr(StateSize)
st := s.Top()
ret := *st
*st = State{}
return ret
}
func (s *Stack) Load() (int, uint64, unsafe.Pointer, unsafe.Pointer) {
st := s.Cur()
return st.x, st.f, st.p, st.q
}
func (s *Stack) Save(x int, f uint64, p unsafe.Pointer, q unsafe.Pointer) bool {
return s.Push(State{x: x, f:f, p: p, q: q})
}
func (s *Stack) Drop() (int, uint64, unsafe.Pointer, unsafe.Pointer) {
st := s.Pop()
return st.x, st.f, st.p, st.q
}
func NewBuffer() *bytes.Buffer {
if ret := bufferPool.Get(); ret != nil {
return ret.(*bytes.Buffer)
} else {
return bytes.NewBuffer(make([]byte, 0, option.DefaultEncoderBufferSize))
}
}
func FreeBytes(p *[]byte) {
if rt.CanSizeResue(cap(*p)) {
(*p) = (*p)[:0]
bytesPool.Put(p)
}
}
func FreeStack(p *Stack) {
p.sp = 0
stackPool.Put(p)
}
func FreeBuffer(p *bytes.Buffer) {
if rt.CanSizeResue(cap(p.Bytes())) {
p.Reset()
bufferPool.Put(p)
}
}
var (
ArgPtrs = []bool{true, true, true, false}
LocalPtrs = []bool{}
ArgPtrs_generic = []bool{true}
LocalPtrs_generic = []bool{}
) | go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/encoder/vars/const.go | vendor/github.com/bytedance/sonic/internal/encoder/vars/const.go | /**
* Copyright 2024 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package vars
import (
"os"
"unsafe"
)
const (
MaxStack = 4096 // 4k states
StackSize = unsafe.Sizeof(Stack{})
StateSize = int64(unsafe.Sizeof(State{}))
StackLimit = MaxStack * StateSize
)
const (
MAX_ILBUF = 100000 // cutoff at 100k of IL instructions
MAX_FIELDS = 50 // cutoff at 50 fields struct
)
var (
DebugSyncGC = os.Getenv("SONIC_SYNC_GC") != ""
DebugAsyncGC = os.Getenv("SONIC_NO_ASYNC_GC") == ""
DebugCheckPtr = os.Getenv("SONIC_CHECK_POINTER") != ""
)
var UseVM = os.Getenv("SONIC_ENCODER_USE_VM") != ""
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/utils/skip.go | vendor/github.com/bytedance/sonic/internal/utils/skip.go |
package utils
import (
`runtime`
`unsafe`
`github.com/bytedance/sonic/internal/native/types`
`github.com/bytedance/sonic/internal/rt`
)
func isDigit(c byte) bool {
return c >= '0' && c <= '9'
}
//go:nocheckptr
func SkipNumber(src string, pos int) (ret int) {
sp := uintptr(rt.IndexChar(src, pos))
se := uintptr(rt.IndexChar(src, len(src)))
if uintptr(sp) >= se {
return -int(types.ERR_EOF)
}
if c := *(*byte)(unsafe.Pointer(sp)); c == '-' {
sp += 1
}
ss := sp
var pointer bool
var exponent bool
var lastIsDigit bool
var nextNeedDigit = true
for ; sp < se; sp += uintptr(1) {
c := *(*byte)(unsafe.Pointer(sp))
if isDigit(c) {
lastIsDigit = true
nextNeedDigit = false
continue
} else if nextNeedDigit {
return -int(types.ERR_INVALID_CHAR)
} else if c == '.' {
if !lastIsDigit || pointer || exponent || sp == ss {
return -int(types.ERR_INVALID_CHAR)
}
pointer = true
lastIsDigit = false
nextNeedDigit = true
continue
} else if c == 'e' || c == 'E' {
if !lastIsDigit || exponent {
return -int(types.ERR_INVALID_CHAR)
}
if sp == se-1 {
return -int(types.ERR_EOF)
}
exponent = true
lastIsDigit = false
nextNeedDigit = false
continue
} else if c == '-' || c == '+' {
if prev := *(*byte)(unsafe.Pointer(sp - 1)); prev != 'e' && prev != 'E' {
return -int(types.ERR_INVALID_CHAR)
}
lastIsDigit = false
nextNeedDigit = true
continue
} else {
break
}
}
if nextNeedDigit {
return -int(types.ERR_EOF)
}
runtime.KeepAlive(src)
return int(uintptr(sp) - uintptr((*rt.GoString)(unsafe.Pointer(&src)).Ptr))
} | go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/optcaching/fcache.go | vendor/github.com/bytedance/sonic/internal/optcaching/fcache.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package caching
import (
"strings"
"unicode"
"unsafe"
"github.com/bytedance/sonic/internal/envs"
"github.com/bytedance/sonic/internal/native"
"github.com/bytedance/sonic/internal/resolver"
"github.com/bytedance/sonic/internal/rt"
)
const _AlignSize = 32
const _PaddingSize = 32
type FieldLookup interface {
Set(fields []resolver.FieldMeta)
Get(name string, caseSensitive bool) int
}
func isAscii(s string) bool {
for i :=0; i < len(s); i++ {
if s[i] > unicode.MaxASCII {
return false
}
}
return true
}
func NewFieldLookup(fields []resolver.FieldMeta) FieldLookup {
var f FieldLookup
isAsc := true
n := len(fields)
// when field name has non-ascii, use the fallback methods to use strings.ToLower
for _, f := range fields {
if !isAscii(f.Name) {
isAsc = false
break
}
}
if n <= 8 {
f = NewSmallFieldMap(n)
} else if envs.UseFastMap && n <= 128 && isAsc {
f = NewNormalFieldMap(n)
} else {
f = NewFallbackFieldMap(n)
}
f.Set(fields)
return f
}
// Map for keys nums max 8, idx is in [0, 8)
type SmallFieldMap struct {
keys []string
lowerKeys []string
}
func NewSmallFieldMap (hint int) *SmallFieldMap {
return &SmallFieldMap{
keys: make([]string, hint, hint),
lowerKeys: make([]string, hint, hint),
}
}
func (self *SmallFieldMap) Set(fields []resolver.FieldMeta) {
if len(fields) > 8 {
panic("small field map should use in small struct")
}
for i, f := range fields {
self.keys[i] = f.Name
self.lowerKeys[i] = strings.ToLower(f.Name)
}
}
func (self *SmallFieldMap) Get(name string, caseSensitive bool) int {
for i, k := range self.keys {
if len(k) == len(name) && k == name {
return i
}
}
if caseSensitive {
return -1
}
name = strings.ToLower(name)
for i, k := range self.lowerKeys {
if len(k) == len(name) && k == name {
return i
}
}
return -1
}
/*
1. select by the length: 0 ~ 32 and larger lengths
2. simd match the aligned prefix of the keys: 4/8/16/32 bytes or larger keys
3. check the key with strict match
4. check the key with case-insensitive match
5. find the index
Mem Layout:
fixed 33 * 5 bytes 165 bytes ||| variable keys ||| variable lowerkeys
| length metadata array[33] ||| key0.0 | u8 | key0.1 | u8 | ... || key1.0 | u8 | key1.1 | u8 | ... ||| lowerkeys info ...
*/
// Map for keys nums max 255, idx is in [0, 255), idx 255 means not found.
// keysoffset
// | metadata | aligned key0 | aligned key1 | ... |
// 1 ~ 8
// 8 ~ 16
// 16 ~ 32
// > 32 keys use the long keys entry lists
// use bytes to reduce GC
type NormalFieldMap struct {
keys []byte
longKeys []keyEntry
// offset for lower
lowOffset int
}
type keyEntry struct {
key string
lowerKey string
index uint
}
func NewNormalFieldMap(n int) *NormalFieldMap {
return &NormalFieldMap{
}
}
const _HdrSlot = 33
const _HdrSize = _HdrSlot * 5
// use native SIMD to accelerate it
func (self *NormalFieldMap) Get(name string, caseSensitive bool) int {
// small keys use native C
if len(name) <= 32 {
_ = native.LookupSmallKey
lowOffset := self.lowOffset
if caseSensitive {
lowOffset = -1
}
return native.LookupSmallKey(&name, &self.keys, lowOffset);
}
return self.getLongKey(name, caseSensitive)
}
func (self *NormalFieldMap) getLongKey(name string, caseSensitive bool) int {
for _, k := range self.longKeys {
if len(k.key) != len(name) {
continue;
}
if k.key == name {
return int(k.index)
}
}
if caseSensitive {
return -1
}
lower := strings.ToLower(name)
for _, k := range self.longKeys {
if len(k.key) != len(name) {
continue;
}
if k.lowerKey == lower {
return int(k.index)
}
}
return -1
}
func (self *NormalFieldMap) Getdouble(name string) int {
if len(name) > 32 {
for _, k := range self.longKeys {
if len(k.key) != len(name) {
continue;
}
if k.key == name {
return int(k.index)
}
}
return self.getCaseInsensitive(name)
}
// check the fixed length keys, not found the target length
cnt := int(self.keys[5 * len(name)])
if cnt == 0 {
return -1
}
p := ((*rt.GoSlice)(unsafe.Pointer(&self.keys))).Ptr
offset := int(*(*int32)(unsafe.Pointer(uintptr(p) + uintptr(5 * len(name) + 1)))) + _HdrSize
for i := 0; i < cnt; i++ {
key := rt.Mem2Str(self.keys[offset: offset + len(name)])
if key == name {
return int(self.keys[offset + len(name)])
}
offset += len(name) + 1
}
return self.getCaseInsensitive(name)
}
func (self *NormalFieldMap) getCaseInsensitive(name string) int {
lower := strings.ToLower(name)
if len(name) > 32 {
for _, k := range self.longKeys {
if len(k.key) != len(name) {
continue;
}
if k.lowerKey == lower {
return int(k.index)
}
}
return -1
}
cnt := int(self.keys[5 * len(name)])
p := ((*rt.GoSlice)(unsafe.Pointer(&self.keys))).Ptr
offset := int(*(*int32)(unsafe.Pointer(uintptr(p) + uintptr(5 * len(name) + 1)))) + self.lowOffset
for i := 0; i < cnt; i++ {
key := rt.Mem2Str(self.keys[offset: offset + len(name)])
if key == lower {
return int(self.keys[offset + len(name)])
}
offset += len(name) + 1
}
return -1
}
type keysInfo struct {
counts int
lenSum int
offset int
cur int
}
func (self *NormalFieldMap) Set(fields []resolver.FieldMeta) {
if len(fields) <=8 || len(fields) > 128 {
panic("normal field map should use in small struct")
}
// allocate the flat map in []byte
var keyLenSum [_HdrSlot]keysInfo
for i := 0; i < _HdrSlot; i++ {
keyLenSum[i].offset = 0
keyLenSum[i].counts = 0
keyLenSum[i].lenSum = 0
keyLenSum[i].cur = 0
}
kvLen := 0
for _, f := range(fields) {
len := len(f.Name)
if len <= 32 {
kvLen += len + 1 // key + index
keyLenSum[len].counts++
keyLenSum[len].lenSum += len + 1
}
}
// add a padding size at last to make it friendly for SIMD.
self.keys = make([]byte, _HdrSize + 2 * kvLen, _HdrSize + 2 * kvLen + _PaddingSize)
self.lowOffset = _HdrSize + kvLen
// initialize all keys offset
self.keys[0] = byte(keyLenSum[0].counts)
// self.keys[1:5] = 0 // offset is always zero here.
i := 1
p := ((*rt.GoSlice)(unsafe.Pointer(&self.keys))).Ptr
for i < _HdrSlot {
keyLenSum[i].offset = keyLenSum[i-1].offset + keyLenSum[i-1].lenSum
self.keys[i * 5] = byte(keyLenSum[i].counts)
// write the offset into []byte
*(*int32)(unsafe.Pointer(uintptr(p) + uintptr(i * 5 + 1))) = int32(keyLenSum[i].offset)
i += 1
}
// fill the key into bytes
for i, f := range(fields) {
len := len(f.Name)
if len <= 32 {
offset := keyLenSum[len].offset + keyLenSum[len].cur
copy(self.keys[_HdrSize + offset: ], f.Name)
copy(self.keys[self.lowOffset + offset: ], strings.ToLower(f.Name))
self.keys[_HdrSize + offset + len] = byte(i)
self.keys[self.lowOffset + offset + len] = byte(i)
keyLenSum[len].cur += len + 1
} else {
self.longKeys = append(self.longKeys, keyEntry{f.Name, strings.ToLower(f.Name), uint(i)})
}
}
}
// use hashnap
type FallbackFieldMap struct {
oders []string
inner map[string]int
backup map[string]int
}
func NewFallbackFieldMap(n int) *FallbackFieldMap {
return &FallbackFieldMap{
oders: make([]string, n, n),
inner: make(map[string]int, n*2),
backup: make(map[string]int, n*2),
}
}
func (self *FallbackFieldMap) Get(name string, caseSensitive bool) int {
if i, ok := self.inner[name]; ok {
return i
} else if !caseSensitive {
return self.getCaseInsensitive(name)
} else {
return -1
}
}
func (self *FallbackFieldMap) Set(fields []resolver.FieldMeta) {
for i, f := range(fields) {
name := f.Name
self.oders[i] = name
self.inner[name] = i
/* add the case-insensitive version, prefer the one with smaller field ID */
key := strings.ToLower(name)
if v, ok := self.backup[key]; !ok || i < v {
self.backup[key] = i
}
}
}
func (self *FallbackFieldMap) getCaseInsensitive(name string) int {
if i, ok := self.backup[strings.ToLower(name)]; ok {
return i
} else {
return -1
}
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/resolver/resolver.go | vendor/github.com/bytedance/sonic/internal/resolver/resolver.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package resolver
import (
"fmt"
"reflect"
"strings"
"sync"
)
type FieldOpts int
type OffsetType int
const (
F_omitempty FieldOpts = 1 << iota
F_stringize
F_omitzero
)
const (
F_offset OffsetType = iota
F_deref
)
type Offset struct {
Size uintptr
Kind OffsetType
Type reflect.Type
}
type FieldMeta struct {
Name string
Path []Offset
Opts FieldOpts
Type reflect.Type
IsZero func(reflect.Value) bool
}
func (self *FieldMeta) String() string {
var path []string
var opts []string
/* dump the field path */
for _, off := range self.Path {
if off.Kind == F_offset {
path = append(path, fmt.Sprintf("%d", off.Size))
} else {
path = append(path, fmt.Sprintf("%d.(*%s)", off.Size, off.Type))
}
}
/* check for "string" */
if (self.Opts & F_stringize) != 0 {
opts = append(opts, "string")
}
/* check for "omitempty" */
if (self.Opts & F_omitempty) != 0 {
opts = append(opts, "omitempty")
}
/* format the field */
return fmt.Sprintf(
"{Field \"%s\" @ %s, opts=%s, type=%s}",
self.Name,
strings.Join(path, "."),
strings.Join(opts, ","),
self.Type,
)
}
func (self *FieldMeta) optimize() {
var n int
var v uintptr
/* merge adjacent offsets */
for _, o := range self.Path {
if v += o.Size; o.Kind == F_deref {
self.Path[n].Size = v
self.Path[n].Type, v = o.Type, 0
self.Path[n].Kind, n = F_deref, n + 1
}
}
/* last offset value */
if v != 0 {
self.Path[n].Size = v
self.Path[n].Type = nil
self.Path[n].Kind = F_offset
n++
}
/* must be at least 1 offset */
if n != 0 {
self.Path = self.Path[:n]
} else {
self.Path = []Offset{{Kind: F_offset}}
}
}
func resolveFields(vt reflect.Type) []FieldMeta {
tfv := typeFields(vt)
ret := []FieldMeta(nil)
/* convert each field */
for _, fv := range tfv.list {
/* add to result */
ret = append(ret, FieldMeta{})
fm := &ret[len(ret)-1]
item := vt
path := []Offset(nil)
/* check for "string" */
if fv.quoted {
fm.Opts |= F_stringize
}
/* check for "omitempty" */
if fv.omitEmpty {
fm.Opts |= F_omitempty
}
/* handle the "omitzero" */
handleOmitZero(fv, fm)
/* dump the field path */
for _, i := range fv.index {
kind := F_offset
fval := item.Field(i)
item = fval.Type
/* deref the pointer if needed */
if item.Kind() == reflect.Ptr {
kind = F_deref
item = item.Elem()
}
/* add to path */
path = append(path, Offset {
Kind: kind,
Type: item,
Size: fval.Offset,
})
}
/* get the index to the last offset */
idx := len(path) - 1
fvt := path[idx].Type
/* do not dereference into fields */
if path[idx].Kind == F_deref {
fvt = reflect.PtrTo(fvt)
path[idx].Kind = F_offset
}
fm.Type = fvt
fm.Path = path
fm.Name = fv.name
}
/* optimize the offsets */
for i := range ret {
ret[i].optimize()
}
/* all done */
return ret
}
var (
fieldLock = sync.RWMutex{}
fieldCache = map[reflect.Type][]FieldMeta{}
)
func ResolveStruct(vt reflect.Type) []FieldMeta {
var ok bool
var fm []FieldMeta
/* attempt to read from cache */
fieldLock.RLock()
fm, ok = fieldCache[vt]
fieldLock.RUnlock()
/* check if it was cached */
if ok {
return fm
}
/* otherwise use write-lock */
fieldLock.Lock()
defer fieldLock.Unlock()
/* double check */
if fm, ok = fieldCache[vt]; ok {
return fm
}
/* resolve the field */
fm = resolveFields(vt)
fieldCache[vt] = fm
return fm
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/resolver/stubs_go123.go | vendor/github.com/bytedance/sonic/internal/resolver/stubs_go123.go | //go:build go1.21 && !go1.24
// +build go1.21,!go1.24
/*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package resolver
import (
_ `encoding/json`
`reflect`
_ `unsafe`
)
type StdField struct {
name string
nameBytes []byte
nameNonEsc string
nameEscHTML string
tag bool
index []int
typ reflect.Type
omitEmpty bool
quoted bool
encoder func()
}
type StdStructFields struct {
list []StdField
nameIndex map[string]*StdField
byFoldedName map[string]*StdField
}
//go:noescape
//go:linkname typeFields encoding/json.typeFields
func typeFields(_ reflect.Type) StdStructFields
func handleOmitZero(f StdField, fv *FieldMeta) {}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/resolver/stubs_go120.go | vendor/github.com/bytedance/sonic/internal/resolver/stubs_go120.go | //go:build !go1.21
// +build !go1.21
/*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package resolver
import (
_ `encoding/json`
`reflect`
_ `unsafe`
)
type StdField struct {
name string
nameBytes []byte
equalFold func()
nameNonEsc string
nameEscHTML string
tag bool
index []int
typ reflect.Type
omitEmpty bool
quoted bool
encoder func()
}
type StdStructFields struct {
list []StdField
nameIndex map[string]int
}
//go:noescape
//go:linkname typeFields encoding/json.typeFields
func typeFields(_ reflect.Type) StdStructFields
func handleOmitZero(f StdField, fv *FieldMeta) {}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/resolver/stubs_latest.go | vendor/github.com/bytedance/sonic/internal/resolver/stubs_latest.go | //go:build go1.24
// +build go1.24
/*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package resolver
import (
_ `encoding/json`
`reflect`
_ `unsafe`
)
type StdField struct {
name string
nameBytes []byte
nameNonEsc string
nameEscHTML string
tag bool
index []int
typ reflect.Type
omitEmpty bool
omitZero bool
isZero func(reflect.Value) bool
quoted bool
encoder func()
}
type StdStructFields struct {
list []StdField
nameIndex map[string]*StdField
byFoldedName map[string]*StdField
}
//go:noescape
//go:linkname typeFields encoding/json.typeFields
func typeFields(_ reflect.Type) StdStructFields
func handleOmitZero(fv StdField, fm *FieldMeta) {
if fv.omitZero {
fm.Opts |= F_omitzero
fm.IsZero = fv.isZero
}
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/decoder/jitdec/asm_stubs_amd64_go117.go | vendor/github.com/bytedance/sonic/internal/decoder/jitdec/asm_stubs_amd64_go117.go | // +build go1.17,!go1.21
// Copyright 2023 CloudWeGo Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package jitdec
import (
`strconv`
`unsafe`
`github.com/bytedance/sonic/internal/rt`
`github.com/bytedance/sonic/internal/jit`
`github.com/twitchyliquid64/golang-asm/obj`
`github.com/twitchyliquid64/golang-asm/obj/x86`
)
var (
_V_writeBarrier = jit.Imm(int64(uintptr(unsafe.Pointer(&rt.RuntimeWriteBarrier))))
_F_gcWriteBarrierAX = jit.Func(rt.GcWriteBarrierAX)
)
func (self *_Assembler) WritePtrAX(i int, rec obj.Addr, saveDI bool) {
self.Emit("MOVQ", _V_writeBarrier, _R9)
self.Emit("CMPL", jit.Ptr(_R9, 0), jit.Imm(0))
self.Sjmp("JE", "_no_writeBarrier" + strconv.Itoa(i) + "_{n}")
if saveDI {
self.save(_DI)
}
self.Emit("LEAQ", rec, _DI)
self.call(_F_gcWriteBarrierAX)
if saveDI {
self.load(_DI)
}
self.Sjmp("JMP", "_end_writeBarrier" + strconv.Itoa(i) + "_{n}")
self.Link("_no_writeBarrier" + strconv.Itoa(i) + "_{n}")
self.Emit("MOVQ", _AX, rec)
self.Link("_end_writeBarrier" + strconv.Itoa(i) + "_{n}")
}
func (self *_Assembler) WriteRecNotAX(i int, ptr obj.Addr, rec obj.Addr, saveDI bool, saveAX bool) {
if rec.Reg == x86.REG_AX || rec.Index == x86.REG_AX {
panic("rec contains AX!")
}
self.Emit("MOVQ", _V_writeBarrier, _R9)
self.Emit("CMPL", jit.Ptr(_R9, 0), jit.Imm(0))
self.Sjmp("JE", "_no_writeBarrier" + strconv.Itoa(i) + "_{n}")
if saveAX {
self.Emit("XCHGQ", ptr, _AX)
} else {
self.Emit("MOVQ", ptr, _AX)
}
if saveDI {
self.save(_DI)
}
self.Emit("LEAQ", rec, _DI)
self.call(_F_gcWriteBarrierAX)
if saveDI {
self.load(_DI)
}
if saveAX {
self.Emit("XCHGQ", ptr, _AX)
}
self.Sjmp("JMP", "_end_writeBarrier" + strconv.Itoa(i) + "_{n}")
self.Link("_no_writeBarrier" + strconv.Itoa(i) + "_{n}")
self.Emit("MOVQ", ptr, rec)
self.Link("_end_writeBarrier" + strconv.Itoa(i) + "_{n}")
}
func (self *_ValueDecoder) WritePtrAX(i int, rec obj.Addr, saveDI bool) {
self.Emit("MOVQ", _V_writeBarrier, _R9)
self.Emit("CMPL", jit.Ptr(_R9, 0), jit.Imm(0))
self.Sjmp("JE", "_no_writeBarrier" + strconv.Itoa(i) + "_{n}")
if saveDI {
self.save(_DI)
}
self.Emit("LEAQ", rec, _DI)
self.call(_F_gcWriteBarrierAX)
if saveDI {
self.load(_DI)
}
self.Sjmp("JMP", "_end_writeBarrier" + strconv.Itoa(i) + "_{n}")
self.Link("_no_writeBarrier" + strconv.Itoa(i) + "_{n}")
self.Emit("MOVQ", _AX, rec)
self.Link("_end_writeBarrier" + strconv.Itoa(i) + "_{n}")
}
func (self *_ValueDecoder) WriteRecNotAX(i int, ptr obj.Addr, rec obj.Addr, saveDI bool) {
if rec.Reg == x86.REG_AX || rec.Index == x86.REG_AX {
panic("rec contains AX!")
}
self.Emit("MOVQ", _V_writeBarrier, _AX)
self.Emit("CMPL", jit.Ptr(_AX, 0), jit.Imm(0))
self.Sjmp("JE", "_no_writeBarrier" + strconv.Itoa(i) + "_{n}")
self.Emit("MOVQ", ptr, _AX)
if saveDI {
self.save(_DI)
}
self.Emit("LEAQ", rec, _DI)
self.call(_F_gcWriteBarrierAX)
if saveDI {
self.load(_DI)
}
self.Sjmp("JMP", "_end_writeBarrier" + strconv.Itoa(i) + "_{n}")
self.Link("_no_writeBarrier" + strconv.Itoa(i) + "_{n}")
self.Emit("MOVQ", ptr, rec)
self.Link("_end_writeBarrier" + strconv.Itoa(i) + "_{n}")
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/decoder/jitdec/types.go | vendor/github.com/bytedance/sonic/internal/decoder/jitdec/types.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jitdec
import (
`encoding`
`encoding/base64`
`encoding/json`
`reflect`
`unsafe`
`github.com/bytedance/sonic/internal/rt`
)
var (
byteType = reflect.TypeOf(byte(0))
intType = reflect.TypeOf(int(0))
int8Type = reflect.TypeOf(int8(0))
int16Type = reflect.TypeOf(int16(0))
int32Type = reflect.TypeOf(int32(0))
int64Type = reflect.TypeOf(int64(0))
uintType = reflect.TypeOf(uint(0))
uint8Type = reflect.TypeOf(uint8(0))
uint16Type = reflect.TypeOf(uint16(0))
uint32Type = reflect.TypeOf(uint32(0))
uint64Type = reflect.TypeOf(uint64(0))
float32Type = reflect.TypeOf(float32(0))
float64Type = reflect.TypeOf(float64(0))
stringType = reflect.TypeOf("")
bytesType = reflect.TypeOf([]byte(nil))
jsonNumberType = reflect.TypeOf(json.Number(""))
base64CorruptInputError = reflect.TypeOf(base64.CorruptInputError(0))
)
var (
errorType = reflect.TypeOf((*error)(nil)).Elem()
jsonUnmarshalerType = reflect.TypeOf((*json.Unmarshaler)(nil)).Elem()
encodingTextUnmarshalerType = reflect.TypeOf((*encoding.TextUnmarshaler)(nil)).Elem()
)
func rtype(t reflect.Type) (*rt.GoItab, *rt.GoType) {
p := (*rt.GoIface)(unsafe.Pointer(&t))
return p.Itab, (*rt.GoType)(p.Value)
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/decoder/jitdec/utils.go | vendor/github.com/bytedance/sonic/internal/decoder/jitdec/utils.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jitdec
import (
`unsafe`
`github.com/bytedance/sonic/loader`
)
//go:nosplit
func pbool(v bool) uintptr {
return freezeValue(unsafe.Pointer(&v))
}
//go:nosplit
func ptodec(p loader.Function) _Decoder {
return *(*_Decoder)(unsafe.Pointer(&p))
}
func assert_eq(v int64, exp int64, msg string) {
if v != exp {
panic(msg)
}
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/decoder/jitdec/decoder.go | vendor/github.com/bytedance/sonic/internal/decoder/jitdec/decoder.go | package jitdec
import (
`unsafe`
`encoding/json`
`reflect`
`runtime`
`github.com/bytedance/sonic/internal/decoder/consts`
`github.com/bytedance/sonic/internal/decoder/errors`
`github.com/bytedance/sonic/internal/rt`
`github.com/bytedance/sonic/utf8`
`github.com/bytedance/sonic/option`
)
type (
MismatchTypeError = errors.MismatchTypeError
SyntaxError = errors.SyntaxError
)
const (
_F_allow_control = consts.F_allow_control
_F_copy_string = consts.F_copy_string
_F_disable_unknown = consts.F_disable_unknown
_F_disable_urc = consts.F_disable_urc
_F_use_int64 = consts.F_use_int64
_F_use_number = consts.F_use_number
_F_no_validate_json = consts.F_no_validate_json
_F_validate_string = consts.F_validate_string
_F_case_sensitive = consts.F_case_sensitive
)
var (
error_wrap = errors.ErrorWrap
error_type = errors.ErrorType
error_field = errors.ErrorField
error_value = errors.ErrorValue
error_mismatch = errors.ErrorMismatch
stackOverflow = errors.StackOverflow
)
// Decode parses the JSON-encoded data from current position and stores the result
// in the value pointed to by val.
func Decode(s *string, i *int, f uint64, val interface{}) error {
/* validate json if needed */
if (f & (1 << _F_validate_string)) != 0 && !utf8.ValidateString(*s){
dbuf := utf8.CorrectWith(nil, rt.Str2Mem(*s), "\ufffd")
*s = rt.Mem2Str(dbuf)
}
vv := rt.UnpackEface(val)
vp := vv.Value
/* check for nil type */
if vv.Type == nil {
return &json.InvalidUnmarshalError{}
}
/* must be a non-nil pointer */
if vp == nil || vv.Type.Kind() != reflect.Ptr {
return &json.InvalidUnmarshalError{Type: vv.Type.Pack()}
}
etp := rt.PtrElem(vv.Type)
/* check the defined pointer type for issue 379 */
if vv.Type.IsNamed() {
newp := vp
etp = vv.Type
vp = unsafe.Pointer(&newp)
}
/* create a new stack, and call the decoder */
sb := newStack()
nb, err := decodeTypedPointer(*s, *i, etp, vp, sb, f)
/* return the stack back */
*i = nb
freeStack(sb)
/* avoid GC ahead */
runtime.KeepAlive(vv)
return err
}
// Pretouch compiles vt ahead-of-time to avoid JIT compilation on-the-fly, in
// order to reduce the first-hit latency.
//
// Opts are the compile options, for example, "option.WithCompileRecursiveDepth" is
// a compile option to set the depth of recursive compile for the nested struct type.
func Pretouch(vt reflect.Type, opts ...option.CompileOption) error {
cfg := option.DefaultCompileOptions()
for _, opt := range opts {
opt(&cfg)
}
return pretouchRec(map[reflect.Type]bool{vt:true}, cfg)
}
func pretouchType(_vt reflect.Type, opts option.CompileOptions) (map[reflect.Type]bool, error) {
/* compile function */
compiler := newCompiler().apply(opts)
decoder := func(vt *rt.GoType, _ ...interface{}) (interface{}, error) {
if pp, err := compiler.compile(_vt); err != nil {
return nil, err
} else {
as := newAssembler(pp)
as.name = _vt.String()
return as.Load(), nil
}
}
/* find or compile */
vt := rt.UnpackType(_vt)
if val := programCache.Get(vt); val != nil {
return nil, nil
} else if _, err := programCache.Compute(vt, decoder); err == nil {
return compiler.rec, nil
} else {
return nil, err
}
}
func pretouchRec(vtm map[reflect.Type]bool, opts option.CompileOptions) error {
if opts.RecursiveDepth < 0 || len(vtm) == 0 {
return nil
}
next := make(map[reflect.Type]bool)
for vt := range(vtm) {
sub, err := pretouchType(vt, opts)
if err != nil {
return err
}
for svt := range(sub) {
next[svt] = true
}
}
opts.RecursiveDepth -= 1
return pretouchRec(next, opts)
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/decoder/jitdec/compiler.go | vendor/github.com/bytedance/sonic/internal/decoder/jitdec/compiler.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jitdec
import (
`encoding/json`
`fmt`
`reflect`
`sort`
`strconv`
`strings`
`unsafe`
`github.com/bytedance/sonic/internal/caching`
`github.com/bytedance/sonic/internal/resolver`
`github.com/bytedance/sonic/internal/rt`
`github.com/bytedance/sonic/option`
)
type _Op uint8
const (
_OP_any _Op = iota + 1
_OP_dyn
_OP_str
_OP_bin
_OP_bool
_OP_num
_OP_i8
_OP_i16
_OP_i32
_OP_i64
_OP_u8
_OP_u16
_OP_u32
_OP_u64
_OP_f32
_OP_f64
_OP_unquote
_OP_nil_1
_OP_nil_2
_OP_nil_3
_OP_empty_bytes
_OP_deref
_OP_index
_OP_is_null
_OP_is_null_quote
_OP_map_init
_OP_map_key_i8
_OP_map_key_i16
_OP_map_key_i32
_OP_map_key_i64
_OP_map_key_u8
_OP_map_key_u16
_OP_map_key_u32
_OP_map_key_u64
_OP_map_key_f32
_OP_map_key_f64
_OP_map_key_str
_OP_map_key_utext
_OP_map_key_utext_p
_OP_array_skip
_OP_array_clear
_OP_array_clear_p
_OP_slice_init
_OP_slice_append
_OP_object_next
_OP_struct_field
_OP_unmarshal
_OP_unmarshal_p
_OP_unmarshal_text
_OP_unmarshal_text_p
_OP_lspace
_OP_match_char
_OP_check_char
_OP_load
_OP_save
_OP_drop
_OP_drop_2
_OP_recurse
_OP_goto
_OP_switch
_OP_check_char_0
_OP_dismatch_err
_OP_go_skip
_OP_skip_emtpy
_OP_add
_OP_check_empty
_OP_unsupported
_OP_debug
)
const (
_INT_SIZE = 32 << (^uint(0) >> 63)
_PTR_SIZE = 32 << (^uintptr(0) >> 63)
_PTR_BYTE = unsafe.Sizeof(uintptr(0))
)
const (
_MAX_ILBUF = 100000 // cutoff at 100k of IL instructions
_MAX_FIELDS = 50 // cutoff at 50 fields struct
)
var _OpNames = [256]string {
_OP_any : "any",
_OP_dyn : "dyn",
_OP_str : "str",
_OP_bin : "bin",
_OP_bool : "bool",
_OP_num : "num",
_OP_i8 : "i8",
_OP_i16 : "i16",
_OP_i32 : "i32",
_OP_i64 : "i64",
_OP_u8 : "u8",
_OP_u16 : "u16",
_OP_u32 : "u32",
_OP_u64 : "u64",
_OP_f32 : "f32",
_OP_f64 : "f64",
_OP_unquote : "unquote",
_OP_nil_1 : "nil_1",
_OP_nil_2 : "nil_2",
_OP_nil_3 : "nil_3",
_OP_empty_bytes : "empty bytes",
_OP_deref : "deref",
_OP_index : "index",
_OP_is_null : "is_null",
_OP_is_null_quote : "is_null_quote",
_OP_map_init : "map_init",
_OP_map_key_i8 : "map_key_i8",
_OP_map_key_i16 : "map_key_i16",
_OP_map_key_i32 : "map_key_i32",
_OP_map_key_i64 : "map_key_i64",
_OP_map_key_u8 : "map_key_u8",
_OP_map_key_u16 : "map_key_u16",
_OP_map_key_u32 : "map_key_u32",
_OP_map_key_u64 : "map_key_u64",
_OP_map_key_f32 : "map_key_f32",
_OP_map_key_f64 : "map_key_f64",
_OP_map_key_str : "map_key_str",
_OP_map_key_utext : "map_key_utext",
_OP_map_key_utext_p : "map_key_utext_p",
_OP_array_skip : "array_skip",
_OP_slice_init : "slice_init",
_OP_slice_append : "slice_append",
_OP_object_next : "object_next",
_OP_struct_field : "struct_field",
_OP_unmarshal : "unmarshal",
_OP_unmarshal_p : "unmarshal_p",
_OP_unmarshal_text : "unmarshal_text",
_OP_unmarshal_text_p : "unmarshal_text_p",
_OP_lspace : "lspace",
_OP_match_char : "match_char",
_OP_check_char : "check_char",
_OP_load : "load",
_OP_save : "save",
_OP_drop : "drop",
_OP_drop_2 : "drop_2",
_OP_recurse : "recurse",
_OP_goto : "goto",
_OP_switch : "switch",
_OP_check_char_0 : "check_char_0",
_OP_dismatch_err : "dismatch_err",
_OP_add : "add",
_OP_go_skip : "go_skip",
_OP_check_empty : "check_empty",
_OP_unsupported : "unsupported type",
_OP_debug : "debug",
}
func (self _Op) String() string {
if ret := _OpNames[self]; ret != "" {
return ret
} else {
return "<invalid>"
}
}
func _OP_int() _Op {
switch _INT_SIZE {
case 32: return _OP_i32
case 64: return _OP_i64
default: panic("unsupported int size")
}
}
func _OP_uint() _Op {
switch _INT_SIZE {
case 32: return _OP_u32
case 64: return _OP_u64
default: panic("unsupported uint size")
}
}
func _OP_uintptr() _Op {
switch _PTR_SIZE {
case 32: return _OP_u32
case 64: return _OP_u64
default: panic("unsupported pointer size")
}
}
func _OP_map_key_int() _Op {
switch _INT_SIZE {
case 32: return _OP_map_key_i32
case 64: return _OP_map_key_i64
default: panic("unsupported int size")
}
}
func _OP_map_key_uint() _Op {
switch _INT_SIZE {
case 32: return _OP_map_key_u32
case 64: return _OP_map_key_u64
default: panic("unsupported uint size")
}
}
func _OP_map_key_uintptr() _Op {
switch _PTR_SIZE {
case 32: return _OP_map_key_u32
case 64: return _OP_map_key_u64
default: panic("unsupported pointer size")
}
}
type _Instr struct {
u uint64 // union {op: 8, vb: 8, vi: 48}, iv maybe int or len([]int)
p unsafe.Pointer // maybe GoSlice.Data, *GoType or *caching.FieldMap
}
func packOp(op _Op) uint64 {
return uint64(op) << 56
}
func newInsOp(op _Op) _Instr {
return _Instr{u: packOp(op)}
}
func newInsVi(op _Op, vi int) _Instr {
return _Instr{u: packOp(op) | rt.PackInt(vi)}
}
func newInsVb(op _Op, vb byte) _Instr {
return _Instr{u: packOp(op) | (uint64(vb) << 48)}
}
func newInsVs(op _Op, vs []int) _Instr {
return _Instr {
u: packOp(op) | rt.PackInt(len(vs)),
p: (*rt.GoSlice)(unsafe.Pointer(&vs)).Ptr,
}
}
func newInsVt(op _Op, vt reflect.Type) _Instr {
return _Instr {
u: packOp(op),
p: unsafe.Pointer(rt.UnpackType(vt)),
}
}
func newInsVtI(op _Op, vt reflect.Type, iv int) _Instr {
return _Instr {
u: packOp(op) | rt.PackInt(iv),
p: unsafe.Pointer(rt.UnpackType(vt)),
}
}
func newInsVf(op _Op, vf *caching.FieldMap) _Instr {
return _Instr {
u: packOp(op),
p: unsafe.Pointer(vf),
}
}
func (self _Instr) op() _Op {
return _Op(self.u >> 56)
}
func (self _Instr) vi() int {
return rt.UnpackInt(self.u)
}
func (self _Instr) vb() byte {
return byte(self.u >> 48)
}
func (self _Instr) vs() (v []int) {
(*rt.GoSlice)(unsafe.Pointer(&v)).Ptr = self.p
(*rt.GoSlice)(unsafe.Pointer(&v)).Cap = self.vi()
(*rt.GoSlice)(unsafe.Pointer(&v)).Len = self.vi()
return
}
func (self _Instr) vf() *caching.FieldMap {
return (*caching.FieldMap)(self.p)
}
func (self _Instr) vk() reflect.Kind {
return (*rt.GoType)(self.p).Kind()
}
func (self _Instr) vt() reflect.Type {
return (*rt.GoType)(self.p).Pack()
}
func (self _Instr) i64() int64 {
return int64(self.vi())
}
func (self _Instr) vlen() int {
return int((*rt.GoType)(self.p).Size)
}
func (self _Instr) isBranch() bool {
switch self.op() {
case _OP_goto : fallthrough
case _OP_switch : fallthrough
case _OP_is_null : fallthrough
case _OP_is_null_quote : fallthrough
case _OP_check_char : return true
default : return false
}
}
func (self _Instr) disassemble() string {
switch self.op() {
case _OP_dyn : fallthrough
case _OP_deref : fallthrough
case _OP_map_key_i8 : fallthrough
case _OP_map_key_i16 : fallthrough
case _OP_map_key_i32 : fallthrough
case _OP_map_key_i64 : fallthrough
case _OP_map_key_u8 : fallthrough
case _OP_map_key_u16 : fallthrough
case _OP_map_key_u32 : fallthrough
case _OP_map_key_u64 : fallthrough
case _OP_map_key_f32 : fallthrough
case _OP_map_key_f64 : fallthrough
case _OP_map_key_str : fallthrough
case _OP_map_key_utext : fallthrough
case _OP_map_key_utext_p : fallthrough
case _OP_slice_init : fallthrough
case _OP_slice_append : fallthrough
case _OP_unmarshal : fallthrough
case _OP_unmarshal_p : fallthrough
case _OP_unmarshal_text : fallthrough
case _OP_unmarshal_text_p : fallthrough
case _OP_recurse : return fmt.Sprintf("%-18s%s", self.op(), self.vt())
case _OP_goto : fallthrough
case _OP_is_null_quote : fallthrough
case _OP_is_null : return fmt.Sprintf("%-18sL_%d", self.op(), self.vi())
case _OP_index : fallthrough
case _OP_array_clear : fallthrough
case _OP_array_clear_p : return fmt.Sprintf("%-18s%d", self.op(), self.vi())
case _OP_switch : return fmt.Sprintf("%-18s%s", self.op(), self.formatSwitchLabels())
case _OP_struct_field : return fmt.Sprintf("%-18s%s", self.op(), self.formatStructFields())
case _OP_match_char : return fmt.Sprintf("%-18s%s", self.op(), strconv.QuoteRune(rune(self.vb())))
case _OP_check_char : return fmt.Sprintf("%-18sL_%d, %s", self.op(), self.vi(), strconv.QuoteRune(rune(self.vb())))
default : return self.op().String()
}
}
func (self _Instr) formatSwitchLabels() string {
var i int
var v int
var m []string
/* format each label */
for i, v = range self.vs() {
m = append(m, fmt.Sprintf("%d=L_%d", i, v))
}
/* join them with "," */
return strings.Join(m, ", ")
}
func (self _Instr) formatStructFields() string {
var i uint64
var r []string
var m []struct{i int; n string}
/* extract all the fields */
for i = 0; i < self.vf().N; i++ {
if v := self.vf().At(i); v.Hash != 0 {
m = append(m, struct{i int; n string}{i: v.ID, n: v.Name})
}
}
/* sort by field name */
sort.Slice(m, func(i, j int) bool {
return m[i].n < m[j].n
})
/* format each field */
for _, v := range m {
r = append(r, fmt.Sprintf("%s=%d", v.n, v.i))
}
/* join them with "," */
return strings.Join(r, ", ")
}
type (
_Program []_Instr
)
func (self _Program) pc() int {
return len(self)
}
func (self _Program) tag(n int) {
if n >= _MaxStack {
panic("type nesting too deep")
}
}
func (self _Program) pin(i int) {
v := &self[i]
v.u &= 0xffff000000000000
v.u |= rt.PackInt(self.pc())
}
func (self _Program) rel(v []int) {
for _, i := range v {
self.pin(i)
}
}
func (self *_Program) add(op _Op) {
*self = append(*self, newInsOp(op))
}
func (self *_Program) int(op _Op, vi int) {
*self = append(*self, newInsVi(op, vi))
}
func (self *_Program) chr(op _Op, vb byte) {
*self = append(*self, newInsVb(op, vb))
}
func (self *_Program) tab(op _Op, vs []int) {
*self = append(*self, newInsVs(op, vs))
}
func (self *_Program) rtt(op _Op, vt reflect.Type) {
*self = append(*self, newInsVt(op, vt))
}
func (self *_Program) rtti(op _Op, vt reflect.Type, iv int) {
*self = append(*self, newInsVtI(op, vt, iv))
}
func (self *_Program) fmv(op _Op, vf *caching.FieldMap) {
*self = append(*self, newInsVf(op, vf))
}
func (self _Program) disassemble() string {
nb := len(self)
tab := make([]bool, nb + 1)
ret := make([]string, 0, nb + 1)
/* prescan to get all the labels */
for _, ins := range self {
if ins.isBranch() {
if ins.op() != _OP_switch {
tab[ins.vi()] = true
} else {
for _, v := range ins.vs() {
tab[v] = true
}
}
}
}
/* disassemble each instruction */
for i, ins := range self {
if !tab[i] {
ret = append(ret, "\t" + ins.disassemble())
} else {
ret = append(ret, fmt.Sprintf("L_%d:\n\t%s", i, ins.disassemble()))
}
}
/* add the last label, if needed */
if tab[nb] {
ret = append(ret, fmt.Sprintf("L_%d:", nb))
}
/* add an "end" indicator, and join all the strings */
return strings.Join(append(ret, "\tend"), "\n")
}
type _Compiler struct {
opts option.CompileOptions
tab map[reflect.Type]bool
rec map[reflect.Type]bool
}
func newCompiler() *_Compiler {
return &_Compiler {
opts: option.DefaultCompileOptions(),
tab: map[reflect.Type]bool{},
rec: map[reflect.Type]bool{},
}
}
func (self *_Compiler) apply(opts option.CompileOptions) *_Compiler {
self.opts = opts
return self
}
func (self *_Compiler) rescue(ep *error) {
if val := recover(); val != nil {
if err, ok := val.(error); ok {
*ep = err
} else {
panic(val)
}
}
}
func (self *_Compiler) compile(vt reflect.Type) (ret _Program, err error) {
defer self.rescue(&err)
self.compileOne(&ret, 0, vt)
return
}
const (
checkMarshalerFlags_quoted = 1
)
func (self *_Compiler) checkMarshaler(p *_Program, vt reflect.Type, flags int, exec bool) bool {
pt := reflect.PtrTo(vt)
/* check for `json.Unmarshaler` with pointer receiver */
if pt.Implements(jsonUnmarshalerType) {
if exec {
p.add(_OP_lspace)
p.rtti(_OP_unmarshal_p, pt, flags)
}
return true
}
/* check for `json.Unmarshaler` */
if vt.Implements(jsonUnmarshalerType) {
if exec {
p.add(_OP_lspace)
self.compileUnmarshalJson(p, vt, flags)
}
return true
}
if flags == checkMarshalerFlags_quoted {
// text marshaler shouldn't be supported for quoted string
return false
}
/* check for `encoding.TextMarshaler` with pointer receiver */
if pt.Implements(encodingTextUnmarshalerType) {
if exec {
p.add(_OP_lspace)
self.compileUnmarshalTextPtr(p, pt, flags)
}
return true
}
/* check for `encoding.TextUnmarshaler` */
if vt.Implements(encodingTextUnmarshalerType) {
if exec {
p.add(_OP_lspace)
self.compileUnmarshalText(p, vt, flags)
}
return true
}
return false
}
func (self *_Compiler) compileOne(p *_Program, sp int, vt reflect.Type) {
/* check for recursive nesting */
ok := self.tab[vt]
if ok {
p.rtt(_OP_recurse, vt)
return
}
if self.checkMarshaler(p, vt, 0, true) {
return
}
/* enter the recursion */
p.add(_OP_lspace)
self.tab[vt] = true
self.compileOps(p, sp, vt)
delete(self.tab, vt)
}
func (self *_Compiler) compileOps(p *_Program, sp int, vt reflect.Type) {
switch vt.Kind() {
case reflect.Bool : self.compilePrimitive (vt, p, _OP_bool)
case reflect.Int : self.compilePrimitive (vt, p, _OP_int())
case reflect.Int8 : self.compilePrimitive (vt, p, _OP_i8)
case reflect.Int16 : self.compilePrimitive (vt, p, _OP_i16)
case reflect.Int32 : self.compilePrimitive (vt, p, _OP_i32)
case reflect.Int64 : self.compilePrimitive (vt, p, _OP_i64)
case reflect.Uint : self.compilePrimitive (vt, p, _OP_uint())
case reflect.Uint8 : self.compilePrimitive (vt, p, _OP_u8)
case reflect.Uint16 : self.compilePrimitive (vt, p, _OP_u16)
case reflect.Uint32 : self.compilePrimitive (vt, p, _OP_u32)
case reflect.Uint64 : self.compilePrimitive (vt, p, _OP_u64)
case reflect.Uintptr : self.compilePrimitive (vt, p, _OP_uintptr())
case reflect.Float32 : self.compilePrimitive (vt, p, _OP_f32)
case reflect.Float64 : self.compilePrimitive (vt, p, _OP_f64)
case reflect.String : self.compileString (p, vt)
case reflect.Array : self.compileArray (p, sp, vt)
case reflect.Interface : self.compileInterface (p, vt)
case reflect.Map : self.compileMap (p, sp, vt)
case reflect.Ptr : self.compilePtr (p, sp, vt)
case reflect.Slice : self.compileSlice (p, sp, vt)
case reflect.Struct : self.compileStruct (p, sp, vt)
default : self.compileUnsupportedType (p, vt)
}
}
func (self *_Compiler) compileUnsupportedType(p *_Program, vt reflect.Type) {
i := p.pc()
p.add(_OP_is_null)
p.rtt(_OP_unsupported, vt)
p.pin(i)
}
func (self *_Compiler) compileMap(p *_Program, sp int, vt reflect.Type) {
if reflect.PtrTo(vt.Key()).Implements(encodingTextUnmarshalerType) {
self.compileMapOp(p, sp, vt, _OP_map_key_utext_p)
} else if vt.Key().Implements(encodingTextUnmarshalerType) {
self.compileMapOp(p, sp, vt, _OP_map_key_utext)
} else {
self.compileMapUt(p, sp, vt)
}
}
func (self *_Compiler) compileMapUt(p *_Program, sp int, vt reflect.Type) {
switch vt.Key().Kind() {
case reflect.Int : self.compileMapOp(p, sp, vt, _OP_map_key_int())
case reflect.Int8 : self.compileMapOp(p, sp, vt, _OP_map_key_i8)
case reflect.Int16 : self.compileMapOp(p, sp, vt, _OP_map_key_i16)
case reflect.Int32 : self.compileMapOp(p, sp, vt, _OP_map_key_i32)
case reflect.Int64 : self.compileMapOp(p, sp, vt, _OP_map_key_i64)
case reflect.Uint : self.compileMapOp(p, sp, vt, _OP_map_key_uint())
case reflect.Uint8 : self.compileMapOp(p, sp, vt, _OP_map_key_u8)
case reflect.Uint16 : self.compileMapOp(p, sp, vt, _OP_map_key_u16)
case reflect.Uint32 : self.compileMapOp(p, sp, vt, _OP_map_key_u32)
case reflect.Uint64 : self.compileMapOp(p, sp, vt, _OP_map_key_u64)
case reflect.Uintptr : self.compileMapOp(p, sp, vt, _OP_map_key_uintptr())
case reflect.Float32 : self.compileMapOp(p, sp, vt, _OP_map_key_f32)
case reflect.Float64 : self.compileMapOp(p, sp, vt, _OP_map_key_f64)
case reflect.String : self.compileMapOp(p, sp, vt, _OP_map_key_str)
default : panic(&json.UnmarshalTypeError{Type: vt})
}
}
func (self *_Compiler) compileMapOp(p *_Program, sp int, vt reflect.Type, op _Op) {
i := p.pc()
p.add(_OP_is_null)
p.tag(sp + 1)
skip := self.checkIfSkip(p, vt, '{')
p.add(_OP_save)
p.add(_OP_map_init)
p.add(_OP_save)
p.add(_OP_lspace)
j := p.pc()
p.chr(_OP_check_char, '}')
p.chr(_OP_match_char, '"')
skip2 := p.pc()
p.rtt(op, vt)
/* match the value separator */
p.add(_OP_lspace)
p.chr(_OP_match_char, ':')
self.compileOne(p, sp + 2, vt.Elem())
p.pin(skip2)
p.add(_OP_load)
k0 := p.pc()
p.add(_OP_lspace)
k1 := p.pc()
p.chr(_OP_check_char, '}')
p.chr(_OP_match_char, ',')
p.add(_OP_lspace)
p.chr(_OP_match_char, '"')
skip3 := p.pc()
p.rtt(op, vt)
/* match the value separator */
p.add(_OP_lspace)
p.chr(_OP_match_char, ':')
self.compileOne(p, sp + 2, vt.Elem())
p.pin(skip3)
p.add(_OP_load)
p.int(_OP_goto, k0)
p.pin(j)
p.pin(k1)
p.add(_OP_drop_2)
x := p.pc()
p.add(_OP_goto)
p.pin(i)
p.add(_OP_nil_1)
p.pin(skip)
p.pin(x)
}
func (self *_Compiler) compilePtr(p *_Program, sp int, et reflect.Type) {
i := p.pc()
p.add(_OP_is_null)
/* dereference all the way down */
for et.Kind() == reflect.Ptr {
if self.checkMarshaler(p, et, 0, true) {
return
}
et = et.Elem()
p.rtt(_OP_deref, et)
}
/* check for recursive nesting */
ok := self.tab[et]
if ok {
p.rtt(_OP_recurse, et)
} else {
/* enter the recursion */
p.add(_OP_lspace)
self.tab[et] = true
/* not inline the pointer type
* recursing the defined pointer type's elem will cause issue379.
*/
self.compileOps(p, sp, et)
}
delete(self.tab, et)
j := p.pc()
p.add(_OP_goto)
// set val pointer as nil
p.pin(i)
p.add(_OP_nil_1)
// nothing todo
p.pin(j)
}
func (self *_Compiler) compileArray(p *_Program, sp int, vt reflect.Type) {
x := p.pc()
p.add(_OP_is_null)
p.tag(sp)
skip := self.checkIfSkip(p, vt, '[')
p.add(_OP_save)
p.add(_OP_lspace)
v := []int{p.pc()}
p.chr(_OP_check_char, ']')
/* decode every item */
for i := 1; i <= vt.Len(); i++ {
self.compileOne(p, sp + 1, vt.Elem())
p.add(_OP_load)
p.int(_OP_index, i * int(vt.Elem().Size()))
p.add(_OP_lspace)
v = append(v, p.pc())
p.chr(_OP_check_char, ']')
p.chr(_OP_match_char, ',')
}
/* drop rest of the array */
p.add(_OP_array_skip)
w := p.pc()
p.add(_OP_goto)
p.rel(v)
/* check for pointer data */
if rt.UnpackType(vt.Elem()).PtrData == 0 {
p.int(_OP_array_clear, int(vt.Size()))
} else {
p.int(_OP_array_clear_p, int(vt.Size()))
}
/* restore the stack */
p.pin(w)
p.add(_OP_drop)
p.pin(skip)
p.pin(x)
}
func (self *_Compiler) compileSlice(p *_Program, sp int, vt reflect.Type) {
if vt.Elem().Kind() == byteType.Kind() {
self.compileSliceBin(p, sp, vt)
} else {
self.compileSliceList(p, sp, vt)
}
}
func (self *_Compiler) compileSliceBin(p *_Program, sp int, vt reflect.Type) {
i := p.pc()
p.add(_OP_is_null)
j := p.pc()
p.chr(_OP_check_char, '[')
skip := self.checkIfSkip(p, vt, '"')
k := p.pc()
p.chr(_OP_check_char, '"')
p.add(_OP_bin)
x := p.pc()
p.add(_OP_goto)
p.pin(j)
self.compileSliceBody(p, sp, vt.Elem())
y := p.pc()
p.add(_OP_goto)
// unmarshal `null` and `"` is different
p.pin(i)
p.add(_OP_nil_3)
y2 := p.pc()
p.add(_OP_goto)
p.pin(k)
p.add(_OP_empty_bytes)
p.pin(x)
p.pin(skip)
p.pin(y)
p.pin(y2)
}
func (self *_Compiler) compileSliceList(p *_Program, sp int, vt reflect.Type) {
i := p.pc()
p.add(_OP_is_null)
p.tag(sp)
skip := self.checkIfSkip(p, vt, '[')
self.compileSliceBody(p, sp, vt.Elem())
x := p.pc()
p.add(_OP_goto)
p.pin(i)
p.add(_OP_nil_3)
p.pin(x)
p.pin(skip)
}
func (self *_Compiler) compileSliceBody(p *_Program, sp int, et reflect.Type) {
p.add(_OP_lspace)
j := p.pc()
p.chr(_OP_check_empty, ']')
p.rtt(_OP_slice_init, et)
p.add(_OP_save)
p.rtt(_OP_slice_append, et)
self.compileOne(p, sp + 1, et)
p.add(_OP_load)
k0 := p.pc()
p.add(_OP_lspace)
k1 := p.pc()
p.chr(_OP_check_char, ']')
p.chr(_OP_match_char, ',')
p.rtt(_OP_slice_append, et)
self.compileOne(p, sp + 1, et)
p.add(_OP_load)
p.int(_OP_goto, k0)
p.pin(k1)
p.add(_OP_drop)
p.pin(j)
}
func (self *_Compiler) compileString(p *_Program, vt reflect.Type) {
if vt == jsonNumberType {
self.compilePrimitive(vt, p, _OP_num)
} else {
self.compileStringBody(vt, p)
}
}
func (self *_Compiler) compileStringBody(vt reflect.Type, p *_Program) {
i := p.pc()
p.add(_OP_is_null)
skip := self.checkIfSkip(p, vt, '"')
p.add(_OP_str)
p.pin(i)
p.pin(skip)
}
func (self *_Compiler) compileStruct(p *_Program, sp int, vt reflect.Type) {
if sp >= self.opts.MaxInlineDepth || p.pc() >= _MAX_ILBUF || (sp > 0 && vt.NumField() >= _MAX_FIELDS) {
p.rtt(_OP_recurse, vt)
if self.opts.RecursiveDepth > 0 {
self.rec[vt] = true
}
} else {
self.compileStructBody(p, sp, vt)
}
}
func (self *_Compiler) compileStructBody(p *_Program, sp int, vt reflect.Type) {
fv := resolver.ResolveStruct(vt)
fm, sw := caching.CreateFieldMap(len(fv)), make([]int, len(fv))
/* start of object */
p.tag(sp)
n := p.pc()
p.add(_OP_is_null)
j := p.pc()
p.chr(_OP_check_char_0, '{')
p.rtt(_OP_dismatch_err, vt)
/* special case for empty object */
if len(fv) == 0 {
p.pin(j)
s := p.pc()
p.add(_OP_skip_emtpy)
p.pin(s)
p.pin(n)
return
}
skip := p.pc()
p.add(_OP_go_skip)
p.pin(j)
p.int(_OP_add, 1)
p.add(_OP_save)
p.add(_OP_lspace)
x := p.pc()
p.chr(_OP_check_char, '}')
p.chr(_OP_match_char, '"')
p.fmv(_OP_struct_field, fm)
p.add(_OP_lspace)
p.chr(_OP_match_char, ':')
p.tab(_OP_switch, sw)
p.add(_OP_object_next)
y0 := p.pc()
p.add(_OP_lspace)
y1 := p.pc()
p.chr(_OP_check_char, '}')
p.chr(_OP_match_char, ',')
/* match the remaining fields */
p.add(_OP_lspace)
p.chr(_OP_match_char, '"')
p.fmv(_OP_struct_field, fm)
p.add(_OP_lspace)
p.chr(_OP_match_char, ':')
p.tab(_OP_switch, sw)
p.add(_OP_object_next)
p.int(_OP_goto, y0)
/* process each field */
for i, f := range fv {
sw[i] = p.pc()
fm.Set(f.Name, i)
/* index to the field */
for _, o := range f.Path {
if p.int(_OP_index, int(o.Size)); o.Kind == resolver.F_deref {
p.rtt(_OP_deref, o.Type)
}
}
/* check for "stringnize" option */
if (f.Opts & resolver.F_stringize) == 0 {
self.compileOne(p, sp + 1, f.Type)
} else {
self.compileStructFieldStr(p, sp + 1, f.Type)
}
/* load the state, and try next field */
p.add(_OP_load)
p.int(_OP_goto, y0)
}
p.pin(x)
p.pin(y1)
p.add(_OP_drop)
p.pin(n)
p.pin(skip)
}
func (self *_Compiler) compileStructFieldStrUnmarshal(p *_Program, vt reflect.Type) {
p.add(_OP_lspace)
n0 := p.pc()
p.add(_OP_is_null)
self.checkMarshaler(p, vt, checkMarshalerFlags_quoted, true)
p.pin(n0)
}
func (self *_Compiler) compileStructFieldStr(p *_Program, sp int, vt reflect.Type) {
// according to std, json.Unmarshaler should be called before stringize
// see https://github.com/bytedance/sonic/issues/670
if self.checkMarshaler(p, vt, checkMarshalerFlags_quoted, false) {
self.compileStructFieldStrUnmarshal(p, vt)
return
}
n1 := -1
ft := vt
sv := false
/* dereference the pointer if needed */
if ft.Kind() == reflect.Ptr {
ft = ft.Elem()
}
/* check if it can be stringized */
switch ft.Kind() {
case reflect.Bool : sv = true
case reflect.Int : sv = true
case reflect.Int8 : sv = true
case reflect.Int16 : sv = true
case reflect.Int32 : sv = true
case reflect.Int64 : sv = true
case reflect.Uint : sv = true
case reflect.Uint8 : sv = true
case reflect.Uint16 : sv = true
case reflect.Uint32 : sv = true
case reflect.Uint64 : sv = true
case reflect.Uintptr : sv = true
case reflect.Float32 : sv = true
case reflect.Float64 : sv = true
case reflect.String : sv = true
}
/* if it's not, ignore the "string" and follow the regular path */
if !sv {
self.compileOne(p, sp, vt)
return
}
/* remove the leading space, and match the leading quote */
vk := vt.Kind()
p.add(_OP_lspace)
n0 := p.pc()
p.add(_OP_is_null)
skip := self.checkIfSkip(p, stringType, '"')
/* also check for inner "null" */
n1 = p.pc()
p.add(_OP_is_null_quote)
/* dereference the pointer only when it is not null */
if vk == reflect.Ptr {
vt = vt.Elem()
p.rtt(_OP_deref, vt)
}
n2 := p.pc()
p.chr(_OP_check_char_0, '"')
/* string opcode selector */
_OP_string := func() _Op {
if ft == jsonNumberType {
return _OP_num
} else {
return _OP_unquote
}
}
/* compile for each type */
switch vt.Kind() {
case reflect.Bool : p.add(_OP_bool)
case reflect.Int : p.add(_OP_int())
case reflect.Int8 : p.add(_OP_i8)
case reflect.Int16 : p.add(_OP_i16)
case reflect.Int32 : p.add(_OP_i32)
case reflect.Int64 : p.add(_OP_i64)
case reflect.Uint : p.add(_OP_uint())
case reflect.Uint8 : p.add(_OP_u8)
case reflect.Uint16 : p.add(_OP_u16)
case reflect.Uint32 : p.add(_OP_u32)
case reflect.Uint64 : p.add(_OP_u64)
case reflect.Uintptr : p.add(_OP_uintptr())
case reflect.Float32 : p.add(_OP_f32)
case reflect.Float64 : p.add(_OP_f64)
case reflect.String : p.add(_OP_string())
default : panic("not reachable")
}
/* the closing quote is not needed when parsing a pure string */
if vt == jsonNumberType || vt.Kind() != reflect.String {
p.chr(_OP_match_char, '"')
}
/* pin the `is_null_quote` jump location */
if n1 != -1 && vk != reflect.Ptr {
p.pin(n1)
}
/* "null" but not a pointer, act as if the field is not present */
if vk != reflect.Ptr {
pc2 := p.pc()
p.add(_OP_goto)
p.pin(n2)
p.rtt(_OP_dismatch_err, vt)
p.int(_OP_add, 1)
p.pin(pc2)
p.pin(n0)
return
}
/* the "null" case of the pointer */
pc := p.pc()
p.add(_OP_goto)
p.pin(n0) // `is_null` jump location
p.pin(n1) // `is_null_quote` jump location
p.add(_OP_nil_1)
pc2 := p.pc()
p.add(_OP_goto)
p.pin(n2)
p.rtt(_OP_dismatch_err, vt)
p.int(_OP_add, 1)
p.pin(pc)
p.pin(pc2)
p.pin(skip)
}
func (self *_Compiler) compileInterface(p *_Program, vt reflect.Type) {
i := p.pc()
p.add(_OP_is_null)
/* check for empty interface */
if vt.NumMethod() == 0 {
p.add(_OP_any)
} else {
p.rtt(_OP_dyn, vt)
}
/* finish the OpCode */
j := p.pc()
p.add(_OP_goto)
p.pin(i)
p.add(_OP_nil_2)
p.pin(j)
}
func (self *_Compiler) compilePrimitive(_ reflect.Type, p *_Program, op _Op) {
i := p.pc()
p.add(_OP_is_null)
p.add(op)
p.pin(i)
}
func (self *_Compiler) compileUnmarshalEnd(p *_Program, vt reflect.Type, i int) {
j := p.pc()
k := vt.Kind()
/* not a pointer */
if k != reflect.Ptr {
p.pin(i)
return
}
/* it seems that in Go JSON library, "null" takes priority over any kind of unmarshaler */
p.add(_OP_goto)
p.pin(i)
p.add(_OP_nil_1)
p.pin(j)
}
func (self *_Compiler) compileUnmarshalJson(p *_Program, vt reflect.Type, flags int) {
i := p.pc()
v := _OP_unmarshal
p.add(_OP_is_null)
/* check for dynamic interface */
if vt.Kind() == reflect.Interface {
v = _OP_dyn
}
/* call the unmarshaler */
p.rtti(v, vt, flags)
self.compileUnmarshalEnd(p, vt, i)
}
func (self *_Compiler) compileUnmarshalText(p *_Program, vt reflect.Type, iv int) {
i := p.pc()
v := _OP_unmarshal_text
p.add(_OP_is_null)
/* check for dynamic interface */
if vt.Kind() == reflect.Interface {
v = _OP_dyn
} else {
p.chr(_OP_match_char, '"')
}
/* call the unmarshaler */
p.rtti(v, vt, iv)
self.compileUnmarshalEnd(p, vt, i)
}
func (self *_Compiler) compileUnmarshalTextPtr(p *_Program, vt reflect.Type, iv int) {
i := p.pc()
p.add(_OP_is_null)
p.chr(_OP_match_char, '"')
p.rtti(_OP_unmarshal_text_p, vt, iv)
p.pin(i)
}
func (self *_Compiler) checkIfSkip(p *_Program, vt reflect.Type, c byte) int {
j := p.pc()
p.chr(_OP_check_char_0, c)
p.rtt(_OP_dismatch_err, vt)
s := p.pc()
p.add(_OP_go_skip)
p.pin(j)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/decoder/jitdec/debug.go | vendor/github.com/bytedance/sonic/internal/decoder/jitdec/debug.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jitdec
import (
`os`
`runtime`
`runtime/debug`
`strings`
`github.com/bytedance/sonic/internal/jit`
)
var (
debugSyncGC = os.Getenv("SONIC_SYNC_GC") != ""
debugAsyncGC = os.Getenv("SONIC_NO_ASYNC_GC") == ""
)
var (
_Instr_End _Instr = newInsOp(_OP_nil_1)
_F_gc = jit.Func(runtime.GC)
_F_force_gc = jit.Func(debug.FreeOSMemory)
_F_println = jit.Func(println_wrapper)
_F_print = jit.Func(print)
)
func println_wrapper(i int, op1 int, op2 int){
println(i, " Intrs ", op1, _OpNames[op1], "next: ", op2, _OpNames[op2])
}
func print(i int){
println(i)
}
func (self *_Assembler) force_gc() {
self.call_go(_F_gc)
self.call_go(_F_force_gc)
}
func (self *_Assembler) debug_instr(i int, v *_Instr) {
if debugSyncGC {
if (i+1 == len(self.p)) {
self.print_gc(i, v, &_Instr_End)
} else {
next := &(self.p[i+1])
self.print_gc(i, v, next)
name := _OpNames[next.op()]
if strings.Contains(name, "save") {
return
}
}
self.force_gc()
}
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/decoder/jitdec/asm_stubs_amd64_go121.go | vendor/github.com/bytedance/sonic/internal/decoder/jitdec/asm_stubs_amd64_go121.go | // +build go1.21,!go1.25
// Copyright 2023 CloudWeGo Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package jitdec
import (
`strconv`
`unsafe`
`github.com/bytedance/sonic/internal/rt`
`github.com/bytedance/sonic/internal/jit`
`github.com/twitchyliquid64/golang-asm/obj`
`github.com/twitchyliquid64/golang-asm/obj/x86`
)
// Notice: gcWriteBarrier must use R11 register!!
var _R11 = _IC
var (
_V_writeBarrier = jit.Imm(int64(uintptr(unsafe.Pointer(&rt.RuntimeWriteBarrier))))
_F_gcWriteBarrier2 = jit.Func(rt.GcWriteBarrier2)
)
func (self *_Assembler) WritePtrAX(i int, rec obj.Addr, saveDI bool) {
self.Emit("MOVQ", _V_writeBarrier, _R9)
self.Emit("CMPL", jit.Ptr(_R9, 0), jit.Imm(0))
self.Sjmp("JE", "_no_writeBarrier" + strconv.Itoa(i) + "_{n}")
if saveDI {
self.save(_DI, _R11)
} else {
self.save(_R11)
}
self.Emit("MOVQ", _F_gcWriteBarrier2, _R11)
self.Rjmp("CALL", _R11)
self.Emit("MOVQ", _AX, jit.Ptr(_R11, 0))
self.Emit("MOVQ", rec, _DI)
self.Emit("MOVQ", _DI, jit.Ptr(_R11, 8))
if saveDI {
self.load(_DI, _R11)
} else {
self.load(_R11)
}
self.Link("_no_writeBarrier" + strconv.Itoa(i) + "_{n}")
self.Emit("MOVQ", _AX, rec)
}
func (self *_Assembler) WriteRecNotAX(i int, ptr obj.Addr, rec obj.Addr, saveDI bool, saveAX bool) {
if rec.Reg == x86.REG_AX || rec.Index == x86.REG_AX {
panic("rec contains AX!")
}
self.Emit("MOVQ", _V_writeBarrier, _R9)
self.Emit("CMPL", jit.Ptr(_R9, 0), jit.Imm(0))
self.Sjmp("JE", "_no_writeBarrier" + strconv.Itoa(i) + "_{n}")
if saveAX {
self.save(_AX, _R11)
} else {
self.save(_R11)
}
self.Emit("MOVQ", _F_gcWriteBarrier2, _R11)
self.Rjmp("CALL", _R11)
self.Emit("MOVQ", ptr, jit.Ptr(_R11, 0))
self.Emit("MOVQ", rec, _AX)
self.Emit("MOVQ", _AX, jit.Ptr(_R11, 8))
if saveAX {
self.load(_AX, _R11)
} else {
self.load(_R11)
}
self.Link("_no_writeBarrier" + strconv.Itoa(i) + "_{n}")
self.Emit("MOVQ", ptr, rec)
}
func (self *_ValueDecoder) WritePtrAX(i int, rec obj.Addr, saveDI bool) {
self.Emit("MOVQ", _V_writeBarrier, _R9)
self.Emit("CMPL", jit.Ptr(_R9, 0), jit.Imm(0))
self.Sjmp("JE", "_no_writeBarrier" + strconv.Itoa(i) + "_{n}")
if saveDI {
self.save(_DI, _R11)
} else {
self.save(_R11)
}
self.Emit("MOVQ", _F_gcWriteBarrier2, _R11)
self.Rjmp("CALL", _R11)
self.Emit("MOVQ", _AX, jit.Ptr(_R11, 0))
self.Emit("MOVQ", rec, _DI)
self.Emit("MOVQ", _DI, jit.Ptr(_R11, 8))
if saveDI {
self.load(_DI, _R11)
} else {
self.load(_R11)
}
self.Link("_no_writeBarrier" + strconv.Itoa(i) + "_{n}")
self.Emit("MOVQ", _AX, rec)
}
func (self *_ValueDecoder) WriteRecNotAX(i int, ptr obj.Addr, rec obj.Addr, saveDI bool) {
if rec.Reg == x86.REG_AX || rec.Index == x86.REG_AX {
panic("rec contains AX!")
}
self.Emit("MOVQ", _V_writeBarrier, _AX)
self.Emit("CMPL", jit.Ptr(_AX, 0), jit.Imm(0))
self.Sjmp("JE", "_no_writeBarrier" + strconv.Itoa(i) + "_{n}")
self.save(_R11)
self.Emit("MOVQ", _F_gcWriteBarrier2, _R11)
self.Rjmp("CALL", _R11)
self.Emit("MOVQ", ptr, jit.Ptr(_R11, 0))
self.Emit("MOVQ", rec, _AX)
self.Emit("MOVQ", _AX, jit.Ptr(_R11, 8))
self.load(_R11)
self.Link("_no_writeBarrier" + strconv.Itoa(i) + "_{n}")
self.Emit("MOVQ", ptr, rec)
} | go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/decoder/jitdec/primitives.go | vendor/github.com/bytedance/sonic/internal/decoder/jitdec/primitives.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jitdec
import (
`encoding`
`encoding/json`
`unsafe`
`github.com/bytedance/sonic/internal/native`
`github.com/bytedance/sonic/internal/rt`
)
func decodeTypedPointer(s string, i int, vt *rt.GoType, vp unsafe.Pointer, sb *_Stack, fv uint64) (int, error) {
if fn, err := findOrCompile(vt); err != nil {
return 0, err
} else {
rt.MoreStack(_FP_size + _VD_size + native.MaxFrameSize)
ret, err := fn(s, i, vp, sb, fv, "", nil)
return ret, err
}
}
func decodeJsonUnmarshaler(vv interface{}, s string) error {
return vv.(json.Unmarshaler).UnmarshalJSON(rt.Str2Mem(s))
}
// used to distinguish between MismatchQuoted and other MismatchedTyped errors, see issue #670 and #716
type MismatchQuotedError struct {}
func (*MismatchQuotedError) Error() string {
return "mismatch quoted"
}
func decodeJsonUnmarshalerQuoted(vv interface{}, s string) error {
if len(s) < 2 || s[0] != '"' || s[len(s)-1] != '"' {
return &MismatchQuotedError{}
}
return vv.(json.Unmarshaler).UnmarshalJSON(rt.Str2Mem(s[1:len(s)-1]))
}
func decodeTextUnmarshaler(vv interface{}, s string) error {
return vv.(encoding.TextUnmarshaler).UnmarshalText(rt.Str2Mem(s))
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/decoder/jitdec/pools.go | vendor/github.com/bytedance/sonic/internal/decoder/jitdec/pools.go | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jitdec
import (
`sync`
`unsafe`
`github.com/bytedance/sonic/internal/caching`
`github.com/bytedance/sonic/internal/native/types`
`github.com/bytedance/sonic/internal/rt`
)
const (
_MinSlice = 2
_MaxStack = 4096 // 4k slots
_MaxStackBytes = _MaxStack * _PtrBytes
_MaxDigitNums = types.MaxDigitNums // used in atof fallback algorithm
)
const (
_PtrBytes = _PTR_SIZE / 8
_FsmOffset = (_MaxStack + 1) * _PtrBytes
_DbufOffset = _FsmOffset + int64(unsafe.Sizeof(types.StateMachine{})) + types.MAX_RECURSE * _PtrBytes
_EpOffset = _DbufOffset + _MaxDigitNums
_StackSize = unsafe.Sizeof(_Stack{})
)
var (
stackPool = sync.Pool{}
valueCache = []unsafe.Pointer(nil)
fieldCache = []*caching.FieldMap(nil)
fieldCacheMux = sync.Mutex{}
programCache = caching.CreateProgramCache()
)
type _Stack struct {
sp uintptr
sb [_MaxStack]unsafe.Pointer
mm types.StateMachine
vp [types.MAX_RECURSE]unsafe.Pointer
dp [_MaxDigitNums]byte
ep unsafe.Pointer
}
type _Decoder func(
s string,
i int,
vp unsafe.Pointer,
sb *_Stack,
fv uint64,
sv string, // DO NOT pass value to this argument, since it is only used for local _VAR_sv
vk unsafe.Pointer, // DO NOT pass value to this argument, since it is only used for local _VAR_vk
) (int, error)
var _KeepAlive struct {
s string
i int
vp unsafe.Pointer
sb *_Stack
fv uint64
sv string
vk unsafe.Pointer
ret int
err error
frame_decoder [_FP_offs]byte
frame_generic [_VD_offs]byte
}
var (
argPtrs = []bool{true, false, false, true, true, false, true, false, true}
localPtrs = []bool{}
)
var (
argPtrs_generic = []bool{true}
localPtrs_generic = []bool{}
)
func newStack() *_Stack {
if ret := stackPool.Get(); ret == nil {
return new(_Stack)
} else {
return ret.(*_Stack)
}
}
func resetStack(p *_Stack) {
rt.MemclrNoHeapPointers(unsafe.Pointer(p), _StackSize)
}
func freeStack(p *_Stack) {
p.sp = 0
stackPool.Put(p)
}
func freezeValue(v unsafe.Pointer) uintptr {
valueCache = append(valueCache, v)
return uintptr(v)
}
func freezeFields(v *caching.FieldMap) int64 {
fieldCacheMux.Lock()
fieldCache = append(fieldCache, v)
fieldCacheMux.Unlock()
return referenceFields(v)
}
func referenceFields(v *caching.FieldMap) int64 {
return int64(uintptr(unsafe.Pointer(v)))
}
func makeDecoder(vt *rt.GoType, _ ...interface{}) (interface{}, error) {
if pp, err := newCompiler().compile(vt.Pack()); err != nil {
return nil, err
} else {
return newAssembler(pp).Load(), nil
}
}
func findOrCompile(vt *rt.GoType) (_Decoder, error) {
if val := programCache.Get(vt); val != nil {
return val.(_Decoder), nil
} else if ret, err := programCache.Compute(vt, makeDecoder); err == nil {
return ret.(_Decoder), nil
} else {
return nil, err
}
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/decoder/jitdec/assembler_regabi_amd64.go | vendor/github.com/bytedance/sonic/internal/decoder/jitdec/assembler_regabi_amd64.go | //go:build go1.17 && !go1.25
// +build go1.17,!go1.25
/*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jitdec
import (
"encoding/json"
"fmt"
"math"
"reflect"
"strings"
"unsafe"
"github.com/bytedance/sonic/internal/caching"
"github.com/bytedance/sonic/internal/jit"
"github.com/bytedance/sonic/internal/native"
"github.com/bytedance/sonic/internal/native/types"
"github.com/bytedance/sonic/internal/rt"
"github.com/twitchyliquid64/golang-asm/obj"
)
/** Register Allocations
*
* State Registers:
*
* %r13 : stack base
* %r10 : input pointer
* %r12 : input length
* %r11 : input cursor
* %r15 : value pointer
*
* Error Registers:
*
* %rax : error type register
* %rbx : error pointer register
*/
/** Function Prototype & Stack Map
*
* func (s string, ic int, vp unsafe.Pointer, sb *_Stack, fv uint64, sv string) (rc int, err error)
*
* s.buf : (FP)
* s.len : 8(FP)
* ic : 16(FP)
* vp : 24(FP)
* sb : 32(FP)
* fv : 40(FP)
* sv : 56(FP)
* err.vt : 72(FP)
* err.vp : 80(FP)
*/
const (
_FP_args = 72 // 72 bytes to pass and spill register arguments
_FP_fargs = 80 // 80 bytes for passing arguments to other Go functions
_FP_saves = 48 // 48 bytes for saving the registers before CALL instructions
_FP_locals = 144 // 144 bytes for local variables
)
const (
_FP_offs = _FP_fargs + _FP_saves + _FP_locals
_FP_size = _FP_offs + 8 // 8 bytes for the parent frame pointer
_FP_base = _FP_size + 8 // 8 bytes for the return address
)
const (
_IM_null = 0x6c6c756e // 'null'
_IM_true = 0x65757274 // 'true'
_IM_alse = 0x65736c61 // 'alse' ('false' without the 'f')
)
const (
_BM_space = (1 << ' ') | (1 << '\t') | (1 << '\r') | (1 << '\n')
)
const (
_MODE_JSON = 1 << 3 // base64 mode
)
const (
_LB_error = "_error"
_LB_im_error = "_im_error"
_LB_eof_error = "_eof_error"
_LB_type_error = "_type_error"
_LB_field_error = "_field_error"
_LB_range_error = "_range_error"
_LB_stack_error = "_stack_error"
_LB_base64_error = "_base64_error"
_LB_unquote_error = "_unquote_error"
_LB_parsing_error = "_parsing_error"
_LB_parsing_error_v = "_parsing_error_v"
_LB_mismatch_error = "_mismatch_error"
)
const (
_LB_char_0_error = "_char_0_error"
_LB_char_1_error = "_char_1_error"
_LB_char_2_error = "_char_2_error"
_LB_char_3_error = "_char_3_error"
_LB_char_4_error = "_char_4_error"
_LB_char_m2_error = "_char_m2_error"
_LB_char_m3_error = "_char_m3_error"
)
const (
_LB_skip_one = "_skip_one"
_LB_skip_key_value = "_skip_key_value"
)
var (
_AX = jit.Reg("AX")
_BX = jit.Reg("BX")
_CX = jit.Reg("CX")
_DX = jit.Reg("DX")
_DI = jit.Reg("DI")
_SI = jit.Reg("SI")
_BP = jit.Reg("BP")
_SP = jit.Reg("SP")
_R8 = jit.Reg("R8")
_R9 = jit.Reg("R9")
_X0 = jit.Reg("X0")
_X1 = jit.Reg("X1")
_X15 = jit.Reg("X15")
)
var (
_IP = jit.Reg("R10") // saved on BP when callc
_IC = jit.Reg("R11") // saved on BX when call_c
_IL = jit.Reg("R12")
_ST = jit.Reg("R13")
_VP = jit.Reg("R15")
)
var (
_DF = jit.Reg("AX") // reuse AX in generic decoder for flags
_ET = jit.Reg("AX")
_EP = jit.Reg("BX")
)
var (
_ARG_s = _ARG_sp
_ARG_sp = jit.Ptr(_SP, _FP_base + 0)
_ARG_sl = jit.Ptr(_SP, _FP_base + 8)
_ARG_ic = jit.Ptr(_SP, _FP_base + 16)
_ARG_vp = jit.Ptr(_SP, _FP_base + 24)
_ARG_sb = jit.Ptr(_SP, _FP_base + 32)
_ARG_fv = jit.Ptr(_SP, _FP_base + 40)
)
var (
_ARG_sv = _ARG_sv_p
_ARG_sv_p = jit.Ptr(_SP, _FP_base + 48)
_ARG_sv_n = jit.Ptr(_SP, _FP_base + 56)
_ARG_vk = jit.Ptr(_SP, _FP_base + 64)
)
var (
_VAR_st = _VAR_st_Vt
_VAR_sr = jit.Ptr(_SP, _FP_fargs + _FP_saves)
)
var (
_VAR_st_Vt = jit.Ptr(_SP, _FP_fargs + _FP_saves + 0)
_VAR_st_Dv = jit.Ptr(_SP, _FP_fargs + _FP_saves + 8)
_VAR_st_Iv = jit.Ptr(_SP, _FP_fargs + _FP_saves + 16)
_VAR_st_Ep = jit.Ptr(_SP, _FP_fargs + _FP_saves + 24)
_VAR_st_Db = jit.Ptr(_SP, _FP_fargs + _FP_saves + 32)
_VAR_st_Dc = jit.Ptr(_SP, _FP_fargs + _FP_saves + 40)
)
var (
_VAR_ss_AX = jit.Ptr(_SP, _FP_fargs + _FP_saves + 48)
_VAR_ss_CX = jit.Ptr(_SP, _FP_fargs + _FP_saves + 56)
_VAR_ss_SI = jit.Ptr(_SP, _FP_fargs + _FP_saves + 64)
_VAR_ss_R8 = jit.Ptr(_SP, _FP_fargs + _FP_saves + 72)
_VAR_ss_R9 = jit.Ptr(_SP, _FP_fargs + _FP_saves + 80)
)
var (
_VAR_bs_p = jit.Ptr(_SP, _FP_fargs + _FP_saves + 88)
_VAR_bs_n = jit.Ptr(_SP, _FP_fargs + _FP_saves + 96)
_VAR_bs_LR = jit.Ptr(_SP, _FP_fargs + _FP_saves + 104)
)
var _VAR_fl = jit.Ptr(_SP, _FP_fargs + _FP_saves + 112)
var (
_VAR_et = jit.Ptr(_SP, _FP_fargs + _FP_saves + 120) // save mismatched type
_VAR_pc = jit.Ptr(_SP, _FP_fargs + _FP_saves + 128) // save skip return pc
_VAR_ic = jit.Ptr(_SP, _FP_fargs + _FP_saves + 136) // save mismatched position
)
type _Assembler struct {
jit.BaseAssembler
p _Program
name string
}
func newAssembler(p _Program) *_Assembler {
return new(_Assembler).Init(p)
}
/** Assembler Interface **/
func (self *_Assembler) Load() _Decoder {
return ptodec(self.BaseAssembler.Load("decode_"+self.name, _FP_size, _FP_args, argPtrs, localPtrs))
}
func (self *_Assembler) Init(p _Program) *_Assembler {
self.p = p
self.BaseAssembler.Init(self.compile)
return self
}
func (self *_Assembler) compile() {
self.prologue()
self.instrs()
self.epilogue()
self.copy_string()
self.escape_string()
self.escape_string_twice()
self.skip_one()
self.skip_key_value()
self.type_error()
self.mismatch_error()
self.field_error()
self.range_error()
self.stack_error()
self.base64_error()
self.parsing_error()
}
/** Assembler Stages **/
var _OpFuncTab = [256]func(*_Assembler, *_Instr) {
_OP_any : (*_Assembler)._asm_OP_any,
_OP_dyn : (*_Assembler)._asm_OP_dyn,
_OP_str : (*_Assembler)._asm_OP_str,
_OP_bin : (*_Assembler)._asm_OP_bin,
_OP_bool : (*_Assembler)._asm_OP_bool,
_OP_num : (*_Assembler)._asm_OP_num,
_OP_i8 : (*_Assembler)._asm_OP_i8,
_OP_i16 : (*_Assembler)._asm_OP_i16,
_OP_i32 : (*_Assembler)._asm_OP_i32,
_OP_i64 : (*_Assembler)._asm_OP_i64,
_OP_u8 : (*_Assembler)._asm_OP_u8,
_OP_u16 : (*_Assembler)._asm_OP_u16,
_OP_u32 : (*_Assembler)._asm_OP_u32,
_OP_u64 : (*_Assembler)._asm_OP_u64,
_OP_f32 : (*_Assembler)._asm_OP_f32,
_OP_f64 : (*_Assembler)._asm_OP_f64,
_OP_unquote : (*_Assembler)._asm_OP_unquote,
_OP_nil_1 : (*_Assembler)._asm_OP_nil_1,
_OP_nil_2 : (*_Assembler)._asm_OP_nil_2,
_OP_nil_3 : (*_Assembler)._asm_OP_nil_3,
_OP_empty_bytes : (*_Assembler)._asm_OP_empty_bytes,
_OP_deref : (*_Assembler)._asm_OP_deref,
_OP_index : (*_Assembler)._asm_OP_index,
_OP_is_null : (*_Assembler)._asm_OP_is_null,
_OP_is_null_quote : (*_Assembler)._asm_OP_is_null_quote,
_OP_map_init : (*_Assembler)._asm_OP_map_init,
_OP_map_key_i8 : (*_Assembler)._asm_OP_map_key_i8,
_OP_map_key_i16 : (*_Assembler)._asm_OP_map_key_i16,
_OP_map_key_i32 : (*_Assembler)._asm_OP_map_key_i32,
_OP_map_key_i64 : (*_Assembler)._asm_OP_map_key_i64,
_OP_map_key_u8 : (*_Assembler)._asm_OP_map_key_u8,
_OP_map_key_u16 : (*_Assembler)._asm_OP_map_key_u16,
_OP_map_key_u32 : (*_Assembler)._asm_OP_map_key_u32,
_OP_map_key_u64 : (*_Assembler)._asm_OP_map_key_u64,
_OP_map_key_f32 : (*_Assembler)._asm_OP_map_key_f32,
_OP_map_key_f64 : (*_Assembler)._asm_OP_map_key_f64,
_OP_map_key_str : (*_Assembler)._asm_OP_map_key_str,
_OP_map_key_utext : (*_Assembler)._asm_OP_map_key_utext,
_OP_map_key_utext_p : (*_Assembler)._asm_OP_map_key_utext_p,
_OP_array_skip : (*_Assembler)._asm_OP_array_skip,
_OP_array_clear : (*_Assembler)._asm_OP_array_clear,
_OP_array_clear_p : (*_Assembler)._asm_OP_array_clear_p,
_OP_slice_init : (*_Assembler)._asm_OP_slice_init,
_OP_slice_append : (*_Assembler)._asm_OP_slice_append,
_OP_object_next : (*_Assembler)._asm_OP_object_next,
_OP_struct_field : (*_Assembler)._asm_OP_struct_field,
_OP_unmarshal : (*_Assembler)._asm_OP_unmarshal,
_OP_unmarshal_p : (*_Assembler)._asm_OP_unmarshal_p,
_OP_unmarshal_text : (*_Assembler)._asm_OP_unmarshal_text,
_OP_unmarshal_text_p : (*_Assembler)._asm_OP_unmarshal_text_p,
_OP_lspace : (*_Assembler)._asm_OP_lspace,
_OP_match_char : (*_Assembler)._asm_OP_match_char,
_OP_check_char : (*_Assembler)._asm_OP_check_char,
_OP_load : (*_Assembler)._asm_OP_load,
_OP_save : (*_Assembler)._asm_OP_save,
_OP_drop : (*_Assembler)._asm_OP_drop,
_OP_drop_2 : (*_Assembler)._asm_OP_drop_2,
_OP_recurse : (*_Assembler)._asm_OP_recurse,
_OP_goto : (*_Assembler)._asm_OP_goto,
_OP_switch : (*_Assembler)._asm_OP_switch,
_OP_check_char_0 : (*_Assembler)._asm_OP_check_char_0,
_OP_dismatch_err : (*_Assembler)._asm_OP_dismatch_err,
_OP_go_skip : (*_Assembler)._asm_OP_go_skip,
_OP_skip_emtpy : (*_Assembler)._asm_OP_skip_empty,
_OP_add : (*_Assembler)._asm_OP_add,
_OP_check_empty : (*_Assembler)._asm_OP_check_empty,
_OP_unsupported : (*_Assembler)._asm_OP_unsupported,
_OP_debug : (*_Assembler)._asm_OP_debug,
}
func (self *_Assembler) _asm_OP_debug(_ *_Instr) {
self.Byte(0xcc)
}
func (self *_Assembler) instr(v *_Instr) {
if fn := _OpFuncTab[v.op()]; fn != nil {
fn(self, v)
} else {
panic(fmt.Sprintf("invalid opcode: %d", v.op()))
}
}
func (self *_Assembler) instrs() {
for i, v := range self.p {
self.Mark(i)
self.instr(&v)
self.debug_instr(i, &v)
}
}
func (self *_Assembler) epilogue() {
self.Mark(len(self.p))
self.Emit("XORL", _EP, _EP) // XORL EP, EP
self.Emit("MOVQ", _VAR_et, _ET) // MOVQ VAR_et, ET
self.Emit("TESTQ", _ET, _ET) // TESTQ ET, ET
self.Sjmp("JNZ", _LB_mismatch_error) // JNZ _LB_mismatch_error
self.Link(_LB_error) // _error:
self.Emit("MOVQ", _EP, _CX) // MOVQ BX, CX
self.Emit("MOVQ", _ET, _BX) // MOVQ AX, BX
self.Emit("MOVQ", _IC, _AX) // MOVQ IC, AX
self.Emit("MOVQ", jit.Imm(0), _ARG_sp) // MOVQ $0, sv.p<>+48(FP)
self.Emit("MOVQ", jit.Imm(0), _ARG_vp) // MOVQ $0, sv.p<>+48(FP)
self.Emit("MOVQ", jit.Imm(0), _ARG_sv_p) // MOVQ $0, sv.p<>+48(FP)
self.Emit("MOVQ", jit.Imm(0), _ARG_vk) // MOVQ $0, vk<>+64(FP)
self.Emit("MOVQ", jit.Ptr(_SP, _FP_offs), _BP) // MOVQ _FP_offs(SP), BP
self.Emit("ADDQ", jit.Imm(_FP_size), _SP) // ADDQ $_FP_size, SP
self.Emit("RET") // RET
}
func (self *_Assembler) prologue() {
self.Emit("SUBQ", jit.Imm(_FP_size), _SP) // SUBQ $_FP_size, SP
self.Emit("MOVQ", _BP, jit.Ptr(_SP, _FP_offs)) // MOVQ BP, _FP_offs(SP)
self.Emit("LEAQ", jit.Ptr(_SP, _FP_offs), _BP) // LEAQ _FP_offs(SP), BP
self.Emit("MOVQ", _AX, _ARG_sp) // MOVQ AX, s.p<>+0(FP)
self.Emit("MOVQ", _AX, _IP) // MOVQ AX, IP
self.Emit("MOVQ", _BX, _ARG_sl) // MOVQ BX, s.l<>+8(FP)
self.Emit("MOVQ", _BX, _IL) // MOVQ BX, IL
self.Emit("MOVQ", _CX, _ARG_ic) // MOVQ CX, ic<>+16(FP)
self.Emit("MOVQ", _CX, _IC) // MOVQ CX, IC
self.Emit("MOVQ", _DI, _ARG_vp) // MOVQ DI, vp<>+24(FP)
self.Emit("MOVQ", _DI, _VP) // MOVQ DI, VP
self.Emit("MOVQ", _SI, _ARG_sb) // MOVQ SI, sb<>+32(FP)
self.Emit("MOVQ", _SI, _ST) // MOVQ SI, ST
self.Emit("MOVQ", _R8, _ARG_fv) // MOVQ R8, fv<>+40(FP)
self.Emit("MOVQ", jit.Imm(0), _ARG_sv_p) // MOVQ $0, sv.p<>+48(FP)
self.Emit("MOVQ", jit.Imm(0), _ARG_sv_n) // MOVQ $0, sv.n<>+56(FP)
self.Emit("MOVQ", jit.Imm(0), _ARG_vk) // MOVQ $0, vk<>+64(FP)
self.Emit("MOVQ", jit.Imm(0), _VAR_et) // MOVQ $0, et<>+120(FP)
// initialize digital buffer first
self.Emit("MOVQ", jit.Imm(_MaxDigitNums), _VAR_st_Dc) // MOVQ $_MaxDigitNums, ss.Dcap
self.Emit("LEAQ", jit.Ptr(_ST, _DbufOffset), _AX) // LEAQ _DbufOffset(ST), AX
self.Emit("MOVQ", _AX, _VAR_st_Db) // MOVQ AX, ss.Dbuf
}
/** Function Calling Helpers **/
var (
_REG_go = []obj.Addr { _ST, _VP, _IP, _IL, _IC }
_REG_rt = []obj.Addr { _ST, _VP, _IP, _IL, _IC }
)
func (self *_Assembler) save(r ...obj.Addr) {
for i, v := range r {
if i > _FP_saves / 8 - 1 {
panic("too many registers to save")
} else {
self.Emit("MOVQ", v, jit.Ptr(_SP, _FP_fargs + int64(i) * 8))
}
}
}
func (self *_Assembler) load(r ...obj.Addr) {
for i, v := range r {
if i > _FP_saves / 8 - 1 {
panic("too many registers to load")
} else {
self.Emit("MOVQ", jit.Ptr(_SP, _FP_fargs + int64(i) * 8), v)
}
}
}
func (self *_Assembler) call(fn obj.Addr) {
self.Emit("MOVQ", fn, _R9) // MOVQ ${fn}, R11
self.Rjmp("CALL", _R9) // CALL R11
}
func (self *_Assembler) call_go(fn obj.Addr) {
self.save(_REG_go...) // SAVE $REG_go
self.call(fn)
self.load(_REG_go...) // LOAD $REG_go
}
func (self *_Assembler) callc(fn obj.Addr) {
self.save(_IP)
self.call(fn)
self.Emit("XORPS", _X15, _X15)
self.load(_IP)
}
func (self *_Assembler) call_c(fn obj.Addr) {
self.Emit("XCHGQ", _IC, _BX)
self.callc(fn)
self.Emit("XCHGQ", _IC, _BX)
}
func (self *_Assembler) call_sf(fn obj.Addr) {
self.Emit("LEAQ", _ARG_s, _DI) // LEAQ s<>+0(FP), DI
self.Emit("MOVQ", _IC, _ARG_ic) // MOVQ IC, ic<>+16(FP)
self.Emit("LEAQ", _ARG_ic, _SI) // LEAQ ic<>+16(FP), SI
self.Emit("LEAQ", jit.Ptr(_ST, _FsmOffset), _DX) // LEAQ _FsmOffset(ST), DX
self.Emit("MOVQ", _ARG_fv, _CX)
self.callc(fn)
self.Emit("MOVQ", _ARG_ic, _IC) // MOVQ ic<>+16(FP), IC
}
func (self *_Assembler) call_vf(fn obj.Addr) {
self.Emit("LEAQ", _ARG_s, _DI) // LEAQ s<>+0(FP), DI
self.Emit("MOVQ", _IC, _ARG_ic) // MOVQ IC, ic<>+16(FP)
self.Emit("LEAQ", _ARG_ic, _SI) // LEAQ ic<>+16(FP), SI
self.Emit("LEAQ", _VAR_st, _DX) // LEAQ st, DX
self.callc(fn)
self.Emit("MOVQ", _ARG_ic, _IC) // MOVQ ic<>+16(FP), IC
}
/** Assembler Error Handlers **/
var (
_F_convT64 = jit.Func(rt.ConvT64)
_F_error_wrap = jit.Func(error_wrap)
_F_error_type = jit.Func(error_type)
_F_error_field = jit.Func(error_field)
_F_error_value = jit.Func(error_value)
_F_error_mismatch = jit.Func(error_mismatch)
)
var (
_I_int8 , _T_int8 = rtype(reflect.TypeOf(int8(0)))
_I_int16 , _T_int16 = rtype(reflect.TypeOf(int16(0)))
_I_int32 , _T_int32 = rtype(reflect.TypeOf(int32(0)))
_I_uint8 , _T_uint8 = rtype(reflect.TypeOf(uint8(0)))
_I_uint16 , _T_uint16 = rtype(reflect.TypeOf(uint16(0)))
_I_uint32 , _T_uint32 = rtype(reflect.TypeOf(uint32(0)))
_I_float32 , _T_float32 = rtype(reflect.TypeOf(float32(0)))
)
var (
_T_error = rt.UnpackType(errorType)
_I_base64_CorruptInputError = jit.Itab(_T_error, base64CorruptInputError)
)
var (
_V_stackOverflow = jit.Imm(int64(uintptr(unsafe.Pointer(&stackOverflow))))
_I_json_UnsupportedValueError = jit.Itab(_T_error, reflect.TypeOf(new(json.UnsupportedValueError)))
_I_json_MismatchTypeError = jit.Itab(_T_error, reflect.TypeOf(new(MismatchTypeError)))
_I_json_MismatchQuotedError = jit.Itab(_T_error, reflect.TypeOf(new(MismatchQuotedError)))
)
func (self *_Assembler) type_error() {
self.Link(_LB_type_error) // _type_error:
self.call_go(_F_error_type) // CALL_GO error_type
self.Sjmp("JMP" , _LB_error) // JMP _error
}
func (self *_Assembler) mismatch_error() {
self.Link(_LB_mismatch_error) // _type_error:
self.Emit("MOVQ", _VAR_et, _ET) // MOVQ _VAR_et, ET
self.Emit("MOVQ", _I_json_MismatchTypeError, _CX) // MOVQ _I_json_MismatchType, CX
self.Emit("CMPQ", _ET, _CX) // CMPQ ET, CX
self.Emit("MOVQ", jit.Ptr(_ST, _EpOffset), _EP) // MOVQ stack.Ep, EP
self.Sjmp("JE" , _LB_error) // JE _LB_error
self.Emit("MOVQ", _ARG_sp, _AX)
self.Emit("MOVQ", _ARG_sl, _BX)
self.Emit("MOVQ", _VAR_ic, _CX)
self.Emit("MOVQ", _VAR_et, _DI)
self.call_go(_F_error_mismatch) // CALL_GO error_type
self.Sjmp("JMP" , _LB_error) // JMP _error
}
func (self *_Assembler) field_error() {
self.Link(_LB_field_error) // _field_error:
self.Emit("MOVQ", _ARG_sv_p, _AX) // MOVQ sv.p, AX
self.Emit("MOVQ", _ARG_sv_n, _BX) // MOVQ sv.n, BX
self.call_go(_F_error_field) // CALL_GO error_field
self.Sjmp("JMP" , _LB_error) // JMP _error
}
func (self *_Assembler) range_error() {
self.Link(_LB_range_error) // _range_error:
self.Emit("MOVQ", _ET, _CX) // MOVQ ET, CX
self.slice_from(_VAR_st_Ep, 0) // SLICE st.Ep, $0
self.Emit("MOVQ", _DI, _AX) // MOVQ DI, AX
self.Emit("MOVQ", _EP, _DI) // MOVQ EP, DI
self.Emit("MOVQ", _SI, _BX) // MOVQ SI, BX
self.call_go(_F_error_value) // CALL_GO error_value
self.Sjmp("JMP" , _LB_error) // JMP _error
}
func (self *_Assembler) stack_error() {
self.Link(_LB_stack_error) // _stack_error:
self.Emit("MOVQ", _V_stackOverflow, _EP) // MOVQ ${_V_stackOverflow}, EP
self.Emit("MOVQ", _I_json_UnsupportedValueError, _ET) // MOVQ ${_I_json_UnsupportedValueError}, ET
self.Sjmp("JMP" , _LB_error) // JMP _error
}
func (self *_Assembler) base64_error() {
self.Link(_LB_base64_error)
self.Emit("NEGQ", _AX) // NEGQ AX
self.Emit("SUBQ", jit.Imm(1), _AX) // SUBQ $1, AX
self.call_go(_F_convT64) // CALL_GO convT64
self.Emit("MOVQ", _AX, _EP) // MOVQ AX, EP
self.Emit("MOVQ", _I_base64_CorruptInputError, _ET) // MOVQ ${itab(base64.CorruptInputError)}, ET
self.Sjmp("JMP" , _LB_error) // JMP _error
}
func (self *_Assembler) parsing_error() {
self.Link(_LB_eof_error) // _eof_error:
self.Emit("MOVQ" , _IL, _IC) // MOVQ IL, IC
self.Emit("MOVL" , jit.Imm(int64(types.ERR_EOF)), _EP) // MOVL ${types.ERR_EOF}, EP
self.Sjmp("JMP" , _LB_parsing_error) // JMP _parsing_error
self.Link(_LB_unquote_error) // _unquote_error:
self.Emit("SUBQ" , _VAR_sr, _SI) // SUBQ sr, SI
self.Emit("SUBQ" , _SI, _IC) // SUBQ IL, IC
self.Link(_LB_parsing_error_v) // _parsing_error_v:
self.Emit("MOVQ" , _AX, _EP) // MOVQ AX, EP
self.Emit("NEGQ" , _EP) // NEGQ EP
self.Sjmp("JMP" , _LB_parsing_error) // JMP _parsing_error
self.Link(_LB_char_m3_error) // _char_m3_error:
self.Emit("SUBQ" , jit.Imm(1), _IC) // SUBQ $1, IC
self.Link(_LB_char_m2_error) // _char_m2_error:
self.Emit("SUBQ" , jit.Imm(2), _IC) // SUBQ $2, IC
self.Sjmp("JMP" , _LB_char_0_error) // JMP _char_0_error
self.Link(_LB_im_error) // _im_error:
self.Emit("CMPB" , _CX, jit.Sib(_IP, _IC, 1, 0)) // CMPB CX, (IP)(IC)
self.Sjmp("JNE" , _LB_char_0_error) // JNE _char_0_error
self.Emit("SHRL" , jit.Imm(8), _CX) // SHRL $8, CX
self.Emit("CMPB" , _CX, jit.Sib(_IP, _IC, 1, 1)) // CMPB CX, 1(IP)(IC)
self.Sjmp("JNE" , _LB_char_1_error) // JNE _char_1_error
self.Emit("SHRL" , jit.Imm(8), _CX) // SHRL $8, CX
self.Emit("CMPB" , _CX, jit.Sib(_IP, _IC, 1, 2)) // CMPB CX, 2(IP)(IC)
self.Sjmp("JNE" , _LB_char_2_error) // JNE _char_2_error
self.Sjmp("JMP" , _LB_char_3_error) // JNE _char_3_error
self.Link(_LB_char_4_error) // _char_4_error:
self.Emit("ADDQ" , jit.Imm(1), _IC) // ADDQ $1, IC
self.Link(_LB_char_3_error) // _char_3_error:
self.Emit("ADDQ" , jit.Imm(1), _IC) // ADDQ $1, IC
self.Link(_LB_char_2_error) // _char_2_error:
self.Emit("ADDQ" , jit.Imm(1), _IC) // ADDQ $1, IC
self.Link(_LB_char_1_error) // _char_1_error:
self.Emit("ADDQ" , jit.Imm(1), _IC) // ADDQ $1, IC
self.Link(_LB_char_0_error) // _char_0_error:
self.Emit("MOVL" , jit.Imm(int64(types.ERR_INVALID_CHAR)), _EP) // MOVL ${types.ERR_INVALID_CHAR}, EP
self.Link(_LB_parsing_error) // _parsing_error:
self.Emit("MOVQ" , _EP, _DI) // MOVQ EP, DI
self.Emit("MOVQ", _ARG_sp, _AX) // MOVQ sp, AX
self.Emit("MOVQ", _ARG_sl, _BX) // MOVQ sl, BX
self.Emit("MOVQ" , _IC, _CX) // MOVQ IC, CX
self.call_go(_F_error_wrap) // CALL_GO error_wrap
self.Sjmp("JMP" , _LB_error) // JMP _error
}
func (self *_Assembler) _asm_OP_dismatch_err(p *_Instr) {
self.Emit("MOVQ", _IC, _VAR_ic)
self.Emit("MOVQ", jit.Type(p.vt()), _ET)
self.Emit("MOVQ", _ET, _VAR_et)
}
func (self *_Assembler) _asm_OP_go_skip(p *_Instr) {
self.Byte(0x4c, 0x8d, 0x0d) // LEAQ (PC), R9
self.Xref(p.vi(), 4)
self.Emit("MOVQ", _R9, _VAR_pc)
self.Sjmp("JMP" , _LB_skip_one) // JMP _skip_one
}
var _F_IndexByte = jit.Func(strings.IndexByte)
func (self *_Assembler) _asm_OP_skip_empty(p *_Instr) {
self.call_sf(_F_skip_one) // CALL_SF skip_one
self.Emit("TESTQ", _AX, _AX) // TESTQ AX, AX
self.Sjmp("JS" , _LB_parsing_error_v) // JS _parse_error_v
self.Emit("BTQ", jit.Imm(_F_disable_unknown), _ARG_fv)
self.Xjmp("JNC", p.vi())
self.Emit("LEAQ", jit.Sib(_IC, _AX, 1, 0), _BX)
self.Emit("MOVQ", _BX, _ARG_sv_n)
self.Emit("LEAQ", jit.Sib(_IP, _AX, 1, 0), _AX)
self.Emit("MOVQ", _AX, _ARG_sv_p)
self.Emit("MOVQ", jit.Imm(':'), _CX)
self.call_go(_F_IndexByte)
self.Emit("TESTQ", _AX, _AX)
// disallow unknown field
self.Sjmp("JNS", _LB_field_error)
}
func (self *_Assembler) skip_one() {
self.Link(_LB_skip_one) // _skip:
self.Emit("MOVQ", _VAR_ic, _IC) // MOVQ _VAR_ic, IC
self.call_sf(_F_skip_one) // CALL_SF skip_one
self.Emit("TESTQ", _AX, _AX) // TESTQ AX, AX
self.Sjmp("JS" , _LB_parsing_error_v) // JS _parse_error_v
self.Emit("MOVQ" , _VAR_pc, _R9) // MOVQ pc, R9
self.Rjmp("JMP" , _R9) // JMP (R9)
}
func (self *_Assembler) skip_key_value() {
self.Link(_LB_skip_key_value) // _skip:
// skip the key
self.Emit("MOVQ", _VAR_ic, _IC) // MOVQ _VAR_ic, IC
self.call_sf(_F_skip_one) // CALL_SF skip_one
self.Emit("TESTQ", _AX, _AX) // TESTQ AX, AX
self.Sjmp("JS" , _LB_parsing_error_v) // JS _parse_error_v
// match char ':'
self.lspace("_global_1")
self.Emit("CMPB", jit.Sib(_IP, _IC, 1, 0), jit.Imm(':'))
self.Sjmp("JNE" , _LB_parsing_error_v) // JNE _parse_error_v
self.Emit("ADDQ", jit.Imm(1), _IC) // ADDQ $1, IC
self.lspace("_global_2")
// skip the value
self.call_sf(_F_skip_one) // CALL_SF skip_one
self.Emit("TESTQ", _AX, _AX) // TESTQ AX, AX
self.Sjmp("JS" , _LB_parsing_error_v) // JS _parse_error_v
// jump back to specified address
self.Emit("MOVQ" , _VAR_pc, _R9) // MOVQ pc, R9
self.Rjmp("JMP" , _R9) // JMP (R9)
}
/** Memory Management Routines **/
var (
_T_byte = jit.Type(byteType)
_F_mallocgc = jit.Func(rt.Mallocgc)
)
func (self *_Assembler) malloc_AX(nb obj.Addr, ret obj.Addr) {
self.Emit("MOVQ", nb, _AX) // MOVQ ${nb}, AX
self.Emit("MOVQ", _T_byte, _BX) // MOVQ ${type(byte)}, BX
self.Emit("XORL", _CX, _CX) // XORL CX, CX
self.call_go(_F_mallocgc) // CALL_GO mallocgc
self.Emit("MOVQ", _AX, ret) // MOVQ AX, ${ret}
}
func (self *_Assembler) valloc(vt reflect.Type, ret obj.Addr) {
self.Emit("MOVQ", jit.Imm(int64(vt.Size())), _AX) // MOVQ ${vt.Size()}, AX
self.Emit("MOVQ", jit.Type(vt), _BX) // MOVQ ${vt}, BX
self.Emit("MOVB", jit.Imm(1), _CX) // MOVB $1, CX
self.call_go(_F_mallocgc) // CALL_GO mallocgc
self.Emit("MOVQ", _AX, ret) // MOVQ AX, ${ret}
}
func (self *_Assembler) valloc_AX(vt reflect.Type) {
self.Emit("MOVQ", jit.Imm(int64(vt.Size())), _AX) // MOVQ ${vt.Size()}, AX
self.Emit("MOVQ", jit.Type(vt), _BX) // MOVQ ${vt}, BX
self.Emit("MOVB", jit.Imm(1), _CX) // MOVB $1, CX
self.call_go(_F_mallocgc) // CALL_GO mallocgc
}
func (self *_Assembler) vfollow(vt reflect.Type) {
self.Emit("MOVQ" , jit.Ptr(_VP, 0), _AX) // MOVQ (VP), AX
self.Emit("TESTQ", _AX, _AX) // TESTQ AX, AX
self.Sjmp("JNZ" , "_end_{n}") // JNZ _end_{n}
self.valloc_AX(vt) // VALLOC ${vt}, AX
self.WritePtrAX(1, jit.Ptr(_VP, 0), true) // MOVQ AX, (VP)
self.Link("_end_{n}") // _end_{n}:
self.Emit("MOVQ" , _AX, _VP) // MOVQ AX, VP
}
/** Value Parsing Routines **/
var (
_F_vstring = jit.Imm(int64(native.S_vstring))
_F_vnumber = jit.Imm(int64(native.S_vnumber))
_F_vsigned = jit.Imm(int64(native.S_vsigned))
_F_vunsigned = jit.Imm(int64(native.S_vunsigned))
)
func (self *_Assembler) check_err(vt reflect.Type, pin string, pin2 int) {
self.Emit("MOVQ" , _VAR_st_Vt, _AX) // MOVQ st.Vt, AX
self.Emit("TESTQ", _AX, _AX) // CMPQ AX, ${native.V_STRING}
// try to skip the value
if vt != nil {
self.Sjmp("JNS" , "_check_err_{n}") // JNE _parsing_error_v
self.Emit("MOVQ", jit.Type(vt), _ET)
self.Emit("MOVQ", _ET, _VAR_et)
if pin2 != -1 {
self.Emit("SUBQ", jit.Imm(1), _BX)
self.Emit("MOVQ", _BX, _VAR_ic)
self.Byte(0x4c , 0x8d, 0x0d) // LEAQ (PC), R9
self.Xref(pin2, 4)
self.Emit("MOVQ", _R9, _VAR_pc)
self.Sjmp("JMP" , _LB_skip_key_value)
} else {
self.Emit("MOVQ", _BX, _VAR_ic)
self.Byte(0x4c , 0x8d, 0x0d) // LEAQ (PC), R9
self.Sref(pin, 4)
self.Emit("MOVQ", _R9, _VAR_pc)
self.Sjmp("JMP" , _LB_skip_one)
}
self.Link("_check_err_{n}")
} else {
self.Sjmp("JS" , _LB_parsing_error_v) // JNE _parsing_error_v
}
}
func (self *_Assembler) check_eof(d int64) {
if d == 1 {
self.Emit("CMPQ", _IC, _IL) // CMPQ IC, IL
self.Sjmp("JAE" , _LB_eof_error) // JAE _eof_error
} else {
self.Emit("LEAQ", jit.Ptr(_IC, d), _AX) // LEAQ ${d}(IC), AX
self.Emit("CMPQ", _AX, _IL) // CMPQ AX, IL
self.Sjmp("JA" , _LB_eof_error) // JA _eof_error
}
}
func (self *_Assembler) parse_string() {
self.Emit("MOVQ", _ARG_fv, _CX)
self.call_vf(_F_vstring)
self.check_err(nil, "", -1)
}
func (self *_Assembler) parse_number(vt reflect.Type, pin string, pin2 int) {
self.Emit("MOVQ", _IC, _BX) // save ic when call native func
self.call_vf(_F_vnumber)
self.check_err(vt, pin, pin2)
}
func (self *_Assembler) parse_signed(vt reflect.Type, pin string, pin2 int) {
self.Emit("MOVQ", _IC, _BX) // save ic when call native func
self.call_vf(_F_vsigned)
self.check_err(vt, pin, pin2)
}
func (self *_Assembler) parse_unsigned(vt reflect.Type, pin string, pin2 int) {
self.Emit("MOVQ", _IC, _BX) // save ic when call native func
self.call_vf(_F_vunsigned)
self.check_err(vt, pin, pin2)
}
// Pointer: DI, Size: SI, Return: R9
func (self *_Assembler) copy_string() {
self.Link("_copy_string")
self.Emit("MOVQ", _DI, _VAR_bs_p)
self.Emit("MOVQ", _SI, _VAR_bs_n)
self.Emit("MOVQ", _R9, _VAR_bs_LR)
self.malloc_AX(_SI, _ARG_sv_p)
self.Emit("MOVQ", _VAR_bs_p, _BX)
self.Emit("MOVQ", _VAR_bs_n, _CX)
self.call_go(_F_memmove)
self.Emit("MOVQ", _ARG_sv_p, _DI)
self.Emit("MOVQ", _VAR_bs_n, _SI)
self.Emit("MOVQ", _VAR_bs_LR, _R9)
self.Rjmp("JMP", _R9)
}
// Pointer: DI, Size: SI, Return: R9
func (self *_Assembler) escape_string() {
self.Link("_escape_string")
self.Emit("MOVQ" , _DI, _VAR_bs_p)
self.Emit("MOVQ" , _SI, _VAR_bs_n)
self.Emit("MOVQ" , _R9, _VAR_bs_LR)
self.malloc_AX(_SI, _DX) // MALLOC SI, DX
self.Emit("MOVQ" , _DX, _ARG_sv_p)
self.Emit("MOVQ" , _VAR_bs_p, _DI)
self.Emit("MOVQ" , _VAR_bs_n, _SI)
self.Emit("LEAQ" , _VAR_sr, _CX) // LEAQ sr, CX
self.Emit("XORL" , _R8, _R8) // XORL R8, R8
self.Emit("BTQ" , jit.Imm(_F_disable_urc), _ARG_fv) // BTQ ${_F_disable_urc}, fv
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/bytedance/sonic/internal/decoder/jitdec/generic_regabi_amd64.go | vendor/github.com/bytedance/sonic/internal/decoder/jitdec/generic_regabi_amd64.go | // +build go1.17,!go1.25
/*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jitdec
import (
`encoding/json`
`fmt`
`reflect`
`github.com/bytedance/sonic/internal/jit`
`github.com/bytedance/sonic/internal/native`
`github.com/bytedance/sonic/internal/native/types`
`github.com/twitchyliquid64/golang-asm/obj`
`github.com/bytedance/sonic/internal/rt`
)
/** Crucial Registers:
*
* ST(R13) && 0(SP) : ro, decoder stack
* DF(AX) : ro, decoder flags
* EP(BX) : wo, error pointer
* IP(R10) : ro, input pointer
* IL(R12) : ro, input length
* IC(R11) : rw, input cursor
* VP(R15) : ro, value pointer (to an interface{})
*/
const (
_VD_args = 8 // 8 bytes for passing arguments to this functions
_VD_fargs = 64 // 64 bytes for passing arguments to other Go functions
_VD_saves = 48 // 48 bytes for saving the registers before CALL instructions
_VD_locals = 96 // 96 bytes for local variables
)
const (
_VD_offs = _VD_fargs + _VD_saves + _VD_locals
_VD_size = _VD_offs + 8 // 8 bytes for the parent frame pointer
)
var (
_VAR_ss = _VAR_ss_Vt
_VAR_df = jit.Ptr(_SP, _VD_fargs + _VD_saves)
)
var (
_VAR_ss_Vt = jit.Ptr(_SP, _VD_fargs + _VD_saves + 8)
_VAR_ss_Dv = jit.Ptr(_SP, _VD_fargs + _VD_saves + 16)
_VAR_ss_Iv = jit.Ptr(_SP, _VD_fargs + _VD_saves + 24)
_VAR_ss_Ep = jit.Ptr(_SP, _VD_fargs + _VD_saves + 32)
_VAR_ss_Db = jit.Ptr(_SP, _VD_fargs + _VD_saves + 40)
_VAR_ss_Dc = jit.Ptr(_SP, _VD_fargs + _VD_saves + 48)
)
var (
_VAR_R9 = jit.Ptr(_SP, _VD_fargs + _VD_saves + 56)
)
type _ValueDecoder struct {
jit.BaseAssembler
}
var (
_VAR_cs_LR = jit.Ptr(_SP, _VD_fargs + _VD_saves + 64)
_VAR_cs_p = jit.Ptr(_SP, _VD_fargs + _VD_saves + 72)
_VAR_cs_n = jit.Ptr(_SP, _VD_fargs + _VD_saves + 80)
_VAR_cs_d = jit.Ptr(_SP, _VD_fargs + _VD_saves + 88)
)
func (self *_ValueDecoder) build() uintptr {
self.Init(self.compile)
return *(*uintptr)(self.Load("decode_value", _VD_size, _VD_args, argPtrs_generic, localPtrs_generic))
}
/** Function Calling Helpers **/
func (self *_ValueDecoder) save(r ...obj.Addr) {
for i, v := range r {
if i > _VD_saves / 8 - 1 {
panic("too many registers to save")
} else {
self.Emit("MOVQ", v, jit.Ptr(_SP, _VD_fargs + int64(i) * 8))
}
}
}
func (self *_ValueDecoder) load(r ...obj.Addr) {
for i, v := range r {
if i > _VD_saves / 8 - 1 {
panic("too many registers to load")
} else {
self.Emit("MOVQ", jit.Ptr(_SP, _VD_fargs + int64(i) * 8), v)
}
}
}
func (self *_ValueDecoder) call(fn obj.Addr) {
self.Emit("MOVQ", fn, _R9) // MOVQ ${fn}, AX
self.Rjmp("CALL", _R9) // CALL AX
}
func (self *_ValueDecoder) call_go(fn obj.Addr) {
self.save(_REG_go...) // SAVE $REG_go
self.call(fn) // CALL ${fn}
self.load(_REG_go...) // LOAD $REG_go
}
func (self *_ValueDecoder) callc(fn obj.Addr) {
self.save(_IP)
self.call(fn)
self.load(_IP)
}
func (self *_ValueDecoder) call_c(fn obj.Addr) {
self.Emit("XCHGQ", _IC, _BX)
self.callc(fn)
self.Emit("XCHGQ", _IC, _BX)
}
/** Decoder Assembler **/
const (
_S_val = iota + 1
_S_arr
_S_arr_0
_S_obj
_S_obj_0
_S_obj_delim
_S_obj_sep
)
const (
_S_omask_key = (1 << _S_obj_0) | (1 << _S_obj_sep)
_S_omask_end = (1 << _S_obj_0) | (1 << _S_obj)
_S_vmask = (1 << _S_val) | (1 << _S_arr_0)
)
const (
_A_init_len = 1
_A_init_cap = 16
)
const (
_ST_Sp = 0
_ST_Vt = _PtrBytes
_ST_Vp = _PtrBytes * (types.MAX_RECURSE + 1)
)
var (
_V_true = jit.Imm(int64(pbool(true)))
_V_false = jit.Imm(int64(pbool(false)))
_F_value = jit.Imm(int64(native.S_value))
)
var (
_V_max = jit.Imm(int64(types.V_MAX))
_E_eof = jit.Imm(int64(types.ERR_EOF))
_E_invalid = jit.Imm(int64(types.ERR_INVALID_CHAR))
_E_recurse = jit.Imm(int64(types.ERR_RECURSE_EXCEED_MAX))
)
var (
_F_convTslice = jit.Func(rt.ConvTslice)
_F_convTstring = jit.Func(rt.ConvTstring)
_F_invalid_vtype = jit.Func(invalid_vtype)
)
var (
_T_map = jit.Type(reflect.TypeOf((map[string]interface{})(nil)))
_T_bool = jit.Type(reflect.TypeOf(false))
_T_int64 = jit.Type(reflect.TypeOf(int64(0)))
_T_eface = jit.Type(reflect.TypeOf((*interface{})(nil)).Elem())
_T_slice = jit.Type(reflect.TypeOf(([]interface{})(nil)))
_T_string = jit.Type(reflect.TypeOf(""))
_T_number = jit.Type(reflect.TypeOf(json.Number("")))
_T_float64 = jit.Type(reflect.TypeOf(float64(0)))
)
var _R_tab = map[int]string {
'[': "_decode_V_ARRAY",
'{': "_decode_V_OBJECT",
':': "_decode_V_KEY_SEP",
',': "_decode_V_ELEM_SEP",
']': "_decode_V_ARRAY_END",
'}': "_decode_V_OBJECT_END",
}
func (self *_ValueDecoder) compile() {
self.Emit("SUBQ", jit.Imm(_VD_size), _SP) // SUBQ $_VD_size, SP
self.Emit("MOVQ", _BP, jit.Ptr(_SP, _VD_offs)) // MOVQ BP, _VD_offs(SP)
self.Emit("LEAQ", jit.Ptr(_SP, _VD_offs), _BP) // LEAQ _VD_offs(SP), BP
/* initialize the state machine */
self.Emit("XORL", _CX, _CX) // XORL CX, CX
self.Emit("MOVQ", _DF, _VAR_df) // MOVQ DF, df
/* initialize digital buffer first */
self.Emit("MOVQ", jit.Imm(_MaxDigitNums), _VAR_ss_Dc) // MOVQ $_MaxDigitNums, ss.Dcap
self.Emit("LEAQ", jit.Ptr(_ST, _DbufOffset), _AX) // LEAQ _DbufOffset(ST), AX
self.Emit("MOVQ", _AX, _VAR_ss_Db) // MOVQ AX, ss.Dbuf
/* add ST offset */
self.Emit("ADDQ", jit.Imm(_FsmOffset), _ST) // ADDQ _FsmOffset, _ST
self.Emit("MOVQ", _CX, jit.Ptr(_ST, _ST_Sp)) // MOVQ CX, ST.Sp
self.WriteRecNotAX(0, _VP, jit.Ptr(_ST, _ST_Vp), false) // MOVQ VP, ST.Vp[0]
self.Emit("MOVQ", jit.Imm(_S_val), jit.Ptr(_ST, _ST_Vt)) // MOVQ _S_val, ST.Vt[0]
self.Sjmp("JMP" , "_next") // JMP _next
/* set the value from previous round */
self.Link("_set_value") // _set_value:
self.Emit("MOVL" , jit.Imm(_S_vmask), _DX) // MOVL _S_vmask, DX
self.Emit("MOVQ" , jit.Ptr(_ST, _ST_Sp), _CX) // MOVQ ST.Sp, CX
self.Emit("MOVQ" , jit.Sib(_ST, _CX, 8, _ST_Vt), _AX) // MOVQ ST.Vt[CX], AX
self.Emit("BTQ" , _AX, _DX) // BTQ AX, DX
self.Sjmp("JNC" , "_vtype_error") // JNC _vtype_error
self.Emit("XORL" , _SI, _SI) // XORL SI, SI
self.Emit("SUBQ" , jit.Imm(1), jit.Ptr(_ST, _ST_Sp)) // SUBQ $1, ST.Sp
self.Emit("XCHGQ", jit.Sib(_ST, _CX, 8, _ST_Vp), _SI) // XCHGQ ST.Vp[CX], SI
self.Emit("MOVQ" , _R8, jit.Ptr(_SI, 0)) // MOVQ R8, (SI)
self.WriteRecNotAX(1, _R9, jit.Ptr(_SI, 8), false) // MOVQ R9, 8(SI)
/* check for value stack */
self.Link("_next") // _next:
self.Emit("MOVQ" , jit.Ptr(_ST, _ST_Sp), _AX) // MOVQ ST.Sp, AX
self.Emit("TESTQ", _AX, _AX) // TESTQ AX, AX
self.Sjmp("JS" , "_return") // JS _return
/* fast path: test up to 4 characters manually */
self.Emit("CMPQ" , _IC, _IL) // CMPQ IC, IL
self.Sjmp("JAE" , "_decode_V_EOF") // JAE _decode_V_EOF
self.Emit("MOVBQZX", jit.Sib(_IP, _IC, 1, 0), _AX) // MOVBQZX (IP)(IC), AX
self.Emit("MOVQ" , jit.Imm(_BM_space), _DX) // MOVQ _BM_space, DX
self.Emit("CMPQ" , _AX, jit.Imm(' ')) // CMPQ AX, $' '
self.Sjmp("JA" , "_decode_fast") // JA _decode_fast
self.Emit("BTQ" , _AX, _DX) // BTQ _AX, _DX
self.Sjmp("JNC" , "_decode_fast") // JNC _decode_fast
self.Emit("ADDQ" , jit.Imm(1), _IC) // ADDQ $1, IC
/* at least 1 to 3 spaces */
for i := 0; i < 3; i++ {
self.Emit("CMPQ" , _IC, _IL) // CMPQ IC, IL
self.Sjmp("JAE" , "_decode_V_EOF") // JAE _decode_V_EOF
self.Emit("MOVBQZX", jit.Sib(_IP, _IC, 1, 0), _AX) // MOVBQZX (IP)(IC), AX
self.Emit("CMPQ" , _AX, jit.Imm(' ')) // CMPQ AX, $' '
self.Sjmp("JA" , "_decode_fast") // JA _decode_fast
self.Emit("BTQ" , _AX, _DX) // BTQ _AX, _DX
self.Sjmp("JNC" , "_decode_fast") // JNC _decode_fast
self.Emit("ADDQ" , jit.Imm(1), _IC) // ADDQ $1, IC
}
/* at least 4 spaces */
self.Emit("CMPQ" , _IC, _IL) // CMPQ IC, IL
self.Sjmp("JAE" , "_decode_V_EOF") // JAE _decode_V_EOF
self.Emit("MOVBQZX", jit.Sib(_IP, _IC, 1, 0), _AX) // MOVBQZX (IP)(IC), AX
/* fast path: use lookup table to select decoder */
self.Link("_decode_fast") // _decode_fast:
self.Byte(0x48, 0x8d, 0x3d) // LEAQ ?(PC), DI
self.Sref("_decode_tab", 4) // .... &_decode_tab
self.Emit("MOVLQSX", jit.Sib(_DI, _AX, 4, 0), _AX) // MOVLQSX (DI)(AX*4), AX
self.Emit("TESTQ" , _AX, _AX) // TESTQ AX, AX
self.Sjmp("JZ" , "_decode_native") // JZ _decode_native
self.Emit("ADDQ" , jit.Imm(1), _IC) // ADDQ $1, IC
self.Emit("ADDQ" , _DI, _AX) // ADDQ DI, AX
self.Rjmp("JMP" , _AX) // JMP AX
/* decode with native decoder */
self.Link("_decode_native") // _decode_native:
self.Emit("MOVQ", _IP, _DI) // MOVQ IP, DI
self.Emit("MOVQ", _IL, _SI) // MOVQ IL, SI
self.Emit("MOVQ", _IC, _DX) // MOVQ IC, DX
self.Emit("LEAQ", _VAR_ss, _CX) // LEAQ ss, CX
self.Emit("MOVQ", _VAR_df, _R8) // MOVQ $df, R8
self.Emit("BTSQ", jit.Imm(_F_allow_control), _R8) // ANDQ $1<<_F_allow_control, R8
self.callc(_F_value) // CALL value
self.Emit("MOVQ", _AX, _IC) // MOVQ AX, IC
/* check for errors */
self.Emit("MOVQ" , _VAR_ss_Vt, _AX) // MOVQ ss.Vt, AX
self.Emit("TESTQ", _AX, _AX) // TESTQ AX, AX
self.Sjmp("JS" , "_parsing_error")
self.Sjmp("JZ" , "_invalid_vtype") // JZ _invalid_vtype
self.Emit("CMPQ" , _AX, _V_max) // CMPQ AX, _V_max
self.Sjmp("JA" , "_invalid_vtype") // JA _invalid_vtype
/* jump table selector */
self.Byte(0x48, 0x8d, 0x3d) // LEAQ ?(PC), DI
self.Sref("_switch_table", 4) // .... &_switch_table
self.Emit("MOVLQSX", jit.Sib(_DI, _AX, 4, -4), _AX) // MOVLQSX -4(DI)(AX*4), AX
self.Emit("ADDQ" , _DI, _AX) // ADDQ DI, AX
self.Rjmp("JMP" , _AX) // JMP AX
/** V_EOF **/
self.Link("_decode_V_EOF") // _decode_V_EOF:
self.Emit("MOVL", _E_eof, _EP) // MOVL _E_eof, EP
self.Sjmp("JMP" , "_error") // JMP _error
/** V_NULL **/
self.Link("_decode_V_NULL") // _decode_V_NULL:
self.Emit("XORL", _R8, _R8) // XORL R8, R8
self.Emit("XORL", _R9, _R9) // XORL R9, R9
self.Emit("LEAQ", jit.Ptr(_IC, -4), _DI) // LEAQ -4(IC), DI
self.Sjmp("JMP" , "_set_value") // JMP _set_value
/** V_TRUE **/
self.Link("_decode_V_TRUE") // _decode_V_TRUE:
self.Emit("MOVQ", _T_bool, _R8) // MOVQ _T_bool, R8
// TODO: maybe modified by users?
self.Emit("MOVQ", _V_true, _R9) // MOVQ _V_true, R9
self.Emit("LEAQ", jit.Ptr(_IC, -4), _DI) // LEAQ -4(IC), DI
self.Sjmp("JMP" , "_set_value") // JMP _set_value
/** V_FALSE **/
self.Link("_decode_V_FALSE") // _decode_V_FALSE:
self.Emit("MOVQ", _T_bool, _R8) // MOVQ _T_bool, R8
self.Emit("MOVQ", _V_false, _R9) // MOVQ _V_false, R9
self.Emit("LEAQ", jit.Ptr(_IC, -5), _DI) // LEAQ -5(IC), DI
self.Sjmp("JMP" , "_set_value") // JMP _set_value
/** V_ARRAY **/
self.Link("_decode_V_ARRAY") // _decode_V_ARRAY
self.Emit("MOVL", jit.Imm(_S_vmask), _DX) // MOVL _S_vmask, DX
self.Emit("MOVQ", jit.Ptr(_ST, _ST_Sp), _CX) // MOVQ ST.Sp, CX
self.Emit("MOVQ", jit.Sib(_ST, _CX, 8, _ST_Vt), _AX) // MOVQ ST.Vt[CX], AX
self.Emit("BTQ" , _AX, _DX) // BTQ AX, DX
self.Sjmp("JNC" , "_invalid_char") // JNC _invalid_char
/* create a new array */
self.Emit("MOVQ", _T_eface, _AX) // MOVQ _T_eface, AX
self.Emit("MOVQ", jit.Imm(_A_init_len), _BX) // MOVQ _A_init_len, BX
self.Emit("MOVQ", jit.Imm(_A_init_cap), _CX) // MOVQ _A_init_cap, CX
self.call_go(_F_makeslice) // CALL_GO runtime.makeslice
/* pack into an interface */
self.Emit("MOVQ", jit.Imm(_A_init_len), _BX) // MOVQ _A_init_len, BX
self.Emit("MOVQ", jit.Imm(_A_init_cap), _CX) // MOVQ _A_init_cap, CX
self.call_go(_F_convTslice) // CALL_GO runtime.convTslice
self.Emit("MOVQ", _AX, _R8) // MOVQ AX, R8
/* replace current state with an array */
self.Emit("MOVQ", jit.Ptr(_ST, _ST_Sp), _CX) // MOVQ ST.Sp, CX
self.Emit("MOVQ", jit.Sib(_ST, _CX, 8, _ST_Vp), _SI) // MOVQ ST.Vp[CX], SI
self.Emit("MOVQ", jit.Imm(_S_arr), jit.Sib(_ST, _CX, 8, _ST_Vt)) // MOVQ _S_arr, ST.Vt[CX]
self.Emit("MOVQ", _T_slice, _AX) // MOVQ _T_slice, AX
self.Emit("MOVQ", _AX, jit.Ptr(_SI, 0)) // MOVQ AX, (SI)
self.WriteRecNotAX(2, _R8, jit.Ptr(_SI, 8), false) // MOVQ R8, 8(SI)
/* add a new slot for the first element */
self.Emit("ADDQ", jit.Imm(1), _CX) // ADDQ $1, CX
self.Emit("CMPQ", _CX, jit.Imm(types.MAX_RECURSE)) // CMPQ CX, ${types.MAX_RECURSE}
self.Sjmp("JAE" , "_stack_overflow") // JA _stack_overflow
self.Emit("MOVQ", jit.Ptr(_R8, 0), _AX) // MOVQ (R8), AX
self.Emit("MOVQ", _CX, jit.Ptr(_ST, _ST_Sp)) // MOVQ CX, ST.Sp
self.WritePtrAX(3, jit.Sib(_ST, _CX, 8, _ST_Vp), false) // MOVQ AX, ST.Vp[CX]
self.Emit("MOVQ", jit.Imm(_S_arr_0), jit.Sib(_ST, _CX, 8, _ST_Vt)) // MOVQ _S_arr_0, ST.Vt[CX]
self.Sjmp("JMP" , "_next") // JMP _next
/** V_OBJECT **/
self.Link("_decode_V_OBJECT") // _decode_V_OBJECT:
self.Emit("MOVL", jit.Imm(_S_vmask), _DX) // MOVL _S_vmask, DX
self.Emit("MOVQ", jit.Ptr(_ST, _ST_Sp), _CX) // MOVQ ST.Sp, CX
self.Emit("MOVQ", jit.Sib(_ST, _CX, 8, _ST_Vt), _AX) // MOVQ ST.Vt[CX], AX
self.Emit("BTQ" , _AX, _DX) // BTQ AX, DX
self.Sjmp("JNC" , "_invalid_char") // JNC _invalid_char
self.call_go(_F_makemap_small) // CALL_GO runtime.makemap_small
self.Emit("MOVQ", jit.Ptr(_ST, _ST_Sp), _CX) // MOVQ ST.Sp, CX
self.Emit("MOVQ", jit.Imm(_S_obj_0), jit.Sib(_ST, _CX, 8, _ST_Vt)) // MOVQ _S_obj_0, ST.Vt[CX]
self.Emit("MOVQ", jit.Sib(_ST, _CX, 8, _ST_Vp), _SI) // MOVQ ST.Vp[CX], SI
self.Emit("MOVQ", _T_map, _DX) // MOVQ _T_map, DX
self.Emit("MOVQ", _DX, jit.Ptr(_SI, 0)) // MOVQ DX, (SI)
self.WritePtrAX(4, jit.Ptr(_SI, 8), false) // MOVQ AX, 8(SI)
self.Sjmp("JMP" , "_next") // JMP _next
/** V_STRING **/
self.Link("_decode_V_STRING") // _decode_V_STRING:
self.Emit("MOVQ", _VAR_ss_Iv, _CX) // MOVQ ss.Iv, CX
self.Emit("MOVQ", _IC, _AX) // MOVQ IC, AX
self.Emit("SUBQ", _CX, _AX) // SUBQ CX, AX
/* check for escapes */
self.Emit("CMPQ", _VAR_ss_Ep, jit.Imm(-1)) // CMPQ ss.Ep, $-1
self.Sjmp("JNE" , "_unquote") // JNE _unquote
self.Emit("SUBQ", jit.Imm(1), _AX) // SUBQ $1, AX
self.Emit("LEAQ", jit.Sib(_IP, _CX, 1, 0), _R8) // LEAQ (IP)(CX), R8
self.Byte(0x48, 0x8d, 0x3d) // LEAQ (PC), DI
self.Sref("_copy_string_end", 4)
self.Emit("BTQ", jit.Imm(_F_copy_string), _VAR_df)
self.Sjmp("JC", "copy_string")
self.Link("_copy_string_end")
self.Emit("XORL", _DX, _DX)
/* strings with no escape sequences */
self.Link("_noescape") // _noescape:
self.Emit("MOVL", jit.Imm(_S_omask_key), _DI) // MOVL _S_omask, DI
self.Emit("MOVQ", jit.Ptr(_ST, _ST_Sp), _CX) // MOVQ ST.Sp, CX
self.Emit("MOVQ", jit.Sib(_ST, _CX, 8, _ST_Vt), _SI) // MOVQ ST.Vt[CX], SI
self.Emit("BTQ" , _SI, _DI) // BTQ SI, DI
self.Sjmp("JC" , "_object_key") // JC _object_key
/* check for pre-packed strings, avoid 1 allocation */
self.Emit("TESTQ", _DX, _DX) // TESTQ DX, DX
self.Sjmp("JNZ" , "_packed_str") // JNZ _packed_str
self.Emit("MOVQ" , _AX, _BX) // MOVQ AX, BX
self.Emit("MOVQ" , _R8, _AX) // MOVQ R8, AX
self.call_go(_F_convTstring) // CALL_GO runtime.convTstring
self.Emit("MOVQ" , _AX, _R9) // MOVQ AX, R9
/* packed string already in R9 */
self.Link("_packed_str") // _packed_str:
self.Emit("MOVQ", _T_string, _R8) // MOVQ _T_string, R8
self.Emit("MOVQ", _VAR_ss_Iv, _DI) // MOVQ ss.Iv, DI
self.Emit("SUBQ", jit.Imm(1), _DI) // SUBQ $1, DI
self.Sjmp("JMP" , "_set_value") // JMP _set_value
/* the string is an object key, get the map */
self.Link("_object_key")
self.Emit("MOVQ", jit.Ptr(_ST, _ST_Sp), _CX) // MOVQ ST.Sp, CX
self.Emit("MOVQ", jit.Sib(_ST, _CX, 8, _ST_Vp), _SI) // MOVQ ST.Vp[CX], SI
self.Emit("MOVQ", jit.Ptr(_SI, 8), _SI) // MOVQ 8(SI), SI
/* add a new delimiter */
self.Emit("ADDQ", jit.Imm(1), _CX) // ADDQ $1, CX
self.Emit("CMPQ", _CX, jit.Imm(types.MAX_RECURSE)) // CMPQ CX, ${types.MAX_RECURSE}
self.Sjmp("JAE" , "_stack_overflow") // JA _stack_overflow
self.Emit("MOVQ", _CX, jit.Ptr(_ST, _ST_Sp)) // MOVQ CX, ST.Sp
self.Emit("MOVQ", jit.Imm(_S_obj_delim), jit.Sib(_ST, _CX, 8, _ST_Vt)) // MOVQ _S_obj_delim, ST.Vt[CX]
/* add a new slot int the map */
self.Emit("MOVQ", _AX, _DI) // MOVQ AX, DI
self.Emit("MOVQ", _T_map, _AX) // MOVQ _T_map, AX
self.Emit("MOVQ", _SI, _BX) // MOVQ SI, BX
self.Emit("MOVQ", _R8, _CX) // MOVQ R9, CX
self.call_go(_F_mapassign_faststr) // CALL_GO runtime.mapassign_faststr
/* add to the pointer stack */
self.Emit("MOVQ", jit.Ptr(_ST, _ST_Sp), _CX) // MOVQ ST.Sp, CX
self.WritePtrAX(6, jit.Sib(_ST, _CX, 8, _ST_Vp), false) // MOVQ AX, ST.Vp[CX]
self.Sjmp("JMP" , "_next") // JMP _next
/* allocate memory to store the string header and unquoted result */
self.Link("_unquote") // _unquote:
self.Emit("ADDQ", jit.Imm(15), _AX) // ADDQ $15, AX
self.Emit("MOVQ", _T_byte, _BX) // MOVQ _T_byte, BX
self.Emit("MOVB", jit.Imm(0), _CX) // MOVB $0, CX
self.call_go(_F_mallocgc) // CALL_GO runtime.mallocgc
self.Emit("MOVQ", _AX, _R9) // MOVQ AX, R9
/* prepare the unquoting parameters */
self.Emit("MOVQ" , _VAR_ss_Iv, _CX) // MOVQ ss.Iv, CX
self.Emit("LEAQ" , jit.Sib(_IP, _CX, 1, 0), _DI) // LEAQ (IP)(CX), DI
self.Emit("NEGQ" , _CX) // NEGQ CX
self.Emit("LEAQ" , jit.Sib(_IC, _CX, 1, -1), _SI) // LEAQ -1(IC)(CX), SI
self.Emit("LEAQ" , jit.Ptr(_R9, 16), _DX) // LEAQ 16(R8), DX
self.Emit("LEAQ" , _VAR_ss_Ep, _CX) // LEAQ ss.Ep, CX
self.Emit("XORL" , _R8, _R8) // XORL R8, R8
self.Emit("BTQ" , jit.Imm(_F_disable_urc), _VAR_df) // BTQ ${_F_disable_urc}, fv
self.Emit("SETCC", _R8) // SETCC R8
self.Emit("SHLQ" , jit.Imm(types.B_UNICODE_REPLACE), _R8) // SHLQ ${types.B_UNICODE_REPLACE}, R8
/* unquote the string, with R9 been preserved */
self.Emit("MOVQ", _R9, _VAR_R9) // SAVE R9
self.call_c(_F_unquote) // CALL unquote
self.Emit("MOVQ", _VAR_R9, _R9) // LOAD R9
/* check for errors */
self.Emit("TESTQ", _AX, _AX) // TESTQ AX, AX
self.Sjmp("JS" , "_unquote_error") // JS _unquote_error
self.Emit("MOVL" , jit.Imm(1), _DX) // MOVL $1, DX
self.Emit("LEAQ" , jit.Ptr(_R9, 16), _R8) // ADDQ $16, R8
self.Emit("MOVQ" , _R8, jit.Ptr(_R9, 0)) // MOVQ R8, (R9)
self.Emit("MOVQ" , _AX, jit.Ptr(_R9, 8)) // MOVQ AX, 8(R9)
self.Sjmp("JMP" , "_noescape") // JMP _noescape
/** V_DOUBLE **/
self.Link("_decode_V_DOUBLE") // _decode_V_DOUBLE:
self.Emit("BTQ" , jit.Imm(_F_use_number), _VAR_df) // BTQ _F_use_number, df
self.Sjmp("JC" , "_use_number") // JC _use_number
self.Emit("MOVSD", _VAR_ss_Dv, _X0) // MOVSD ss.Dv, X0
self.Sjmp("JMP" , "_use_float64") // JMP _use_float64
/** V_INTEGER **/
self.Link("_decode_V_INTEGER") // _decode_V_INTEGER:
self.Emit("BTQ" , jit.Imm(_F_use_number), _VAR_df) // BTQ _F_use_number, df
self.Sjmp("JC" , "_use_number") // JC _use_number
self.Emit("BTQ" , jit.Imm(_F_use_int64), _VAR_df) // BTQ _F_use_int64, df
self.Sjmp("JC" , "_use_int64") // JC _use_int64
//TODO: use ss.Dv directly
self.Emit("MOVSD", _VAR_ss_Dv, _X0) // MOVSD ss.Dv, X0
/* represent numbers as `float64` */
self.Link("_use_float64") // _use_float64:
self.Emit("MOVQ" , _X0, _AX) // MOVQ X0, AX
self.call_go(_F_convT64) // CALL_GO runtime.convT64
self.Emit("MOVQ" , _T_float64, _R8) // MOVQ _T_float64, R8
self.Emit("MOVQ" , _AX, _R9) // MOVQ AX, R9
self.Emit("MOVQ" , _VAR_ss_Ep, _DI) // MOVQ ss.Ep, DI
self.Sjmp("JMP" , "_set_value") // JMP _set_value
/* represent numbers as `json.Number` */
self.Link("_use_number") // _use_number
self.Emit("MOVQ", _VAR_ss_Ep, _AX) // MOVQ ss.Ep, AX
self.Emit("LEAQ", jit.Sib(_IP, _AX, 1, 0), _SI) // LEAQ (IP)(AX), SI
self.Emit("MOVQ", _IC, _CX) // MOVQ IC, CX
self.Emit("SUBQ", _AX, _CX) // SUBQ AX, CX
self.Emit("MOVQ", _SI, _AX) // MOVQ SI, AX
self.Emit("MOVQ", _CX, _BX) // MOVQ CX, BX
self.call_go(_F_convTstring) // CALL_GO runtime.convTstring
self.Emit("MOVQ", _T_number, _R8) // MOVQ _T_number, R8
self.Emit("MOVQ", _AX, _R9) // MOVQ AX, R9
self.Emit("MOVQ", _VAR_ss_Ep, _DI) // MOVQ ss.Ep, DI
self.Sjmp("JMP" , "_set_value") // JMP _set_value
/* represent numbers as `int64` */
self.Link("_use_int64") // _use_int64:
self.Emit("MOVQ", _VAR_ss_Iv, _AX) // MOVQ ss.Iv, AX
self.call_go(_F_convT64) // CALL_GO runtime.convT64
self.Emit("MOVQ", _T_int64, _R8) // MOVQ _T_int64, R8
self.Emit("MOVQ", _AX, _R9) // MOVQ AX, R9
self.Emit("MOVQ", _VAR_ss_Ep, _DI) // MOVQ ss.Ep, DI
self.Sjmp("JMP" , "_set_value") // JMP _set_value
/** V_KEY_SEP **/
self.Link("_decode_V_KEY_SEP") // _decode_V_KEY_SEP:
self.Emit("MOVQ", jit.Ptr(_ST, _ST_Sp), _CX) // MOVQ ST.Sp, CX
self.Emit("MOVQ", jit.Sib(_ST, _CX, 8, _ST_Vt), _AX) // MOVQ ST.Vt[CX], AX
self.Emit("CMPQ", _AX, jit.Imm(_S_obj_delim)) // CMPQ AX, _S_obj_delim
self.Sjmp("JNE" , "_invalid_char") // JNE _invalid_char
self.Emit("MOVQ", jit.Imm(_S_val), jit.Sib(_ST, _CX, 8, _ST_Vt)) // MOVQ _S_val, ST.Vt[CX]
self.Emit("MOVQ", jit.Imm(_S_obj), jit.Sib(_ST, _CX, 8, _ST_Vt - 8)) // MOVQ _S_obj, ST.Vt[CX - 1]
self.Sjmp("JMP" , "_next") // JMP _next
/** V_ELEM_SEP **/
self.Link("_decode_V_ELEM_SEP") // _decode_V_ELEM_SEP:
self.Emit("MOVQ" , jit.Ptr(_ST, _ST_Sp), _CX) // MOVQ ST.Sp, CX
self.Emit("MOVQ" , jit.Sib(_ST, _CX, 8, _ST_Vt), _AX) // MOVQ ST.Vt[CX], AX
self.Emit("CMPQ" , _AX, jit.Imm(_S_arr))
self.Sjmp("JE" , "_array_sep") // JZ _next
self.Emit("CMPQ" , _AX, jit.Imm(_S_obj)) // CMPQ _AX, _S_arr
self.Sjmp("JNE" , "_invalid_char") // JNE _invalid_char
self.Emit("MOVQ" , jit.Imm(_S_obj_sep), jit.Sib(_ST, _CX, 8, _ST_Vt))
self.Sjmp("JMP" , "_next") // JMP _next
/* arrays */
self.Link("_array_sep")
self.Emit("MOVQ", jit.Sib(_ST, _CX, 8, _ST_Vp), _SI) // MOVQ ST.Vp[CX], SI
self.Emit("MOVQ", jit.Ptr(_SI, 8), _SI) // MOVQ 8(SI), SI
self.Emit("MOVQ", jit.Ptr(_SI, 8), _DX) // MOVQ 8(SI), DX
self.Emit("CMPQ", _DX, jit.Ptr(_SI, 16)) // CMPQ DX, 16(SI)
self.Sjmp("JAE" , "_array_more") // JAE _array_more
/* add a slot for the new element */
self.Link("_array_append") // _array_append:
self.Emit("ADDQ", jit.Imm(1), jit.Ptr(_SI, 8)) // ADDQ $1, 8(SI)
self.Emit("MOVQ", jit.Ptr(_SI, 0), _SI) // MOVQ (SI), SI
self.Emit("ADDQ", jit.Imm(1), _CX) // ADDQ $1, CX
self.Emit("CMPQ", _CX, jit.Imm(types.MAX_RECURSE)) // CMPQ CX, ${types.MAX_RECURSE}
self.Sjmp("JAE" , "_stack_overflow") // JA _stack_overflow
self.Emit("SHLQ", jit.Imm(1), _DX) // SHLQ $1, DX
self.Emit("LEAQ", jit.Sib(_SI, _DX, 8, 0), _SI) // LEAQ (SI)(DX*8), SI
self.Emit("MOVQ", _CX, jit.Ptr(_ST, _ST_Sp)) // MOVQ CX, ST.Sp
self.WriteRecNotAX(7 , _SI, jit.Sib(_ST, _CX, 8, _ST_Vp), false) // MOVQ SI, ST.Vp[CX]
self.Emit("MOVQ", jit.Imm(_S_val), jit.Sib(_ST, _CX, 8, _ST_Vt)) // MOVQ _S_val, ST.Vt[CX}
self.Sjmp("JMP" , "_next") // JMP _next
/** V_ARRAY_END **/
self.Link("_decode_V_ARRAY_END") // _decode_V_ARRAY_END:
self.Emit("XORL", _DX, _DX) // XORL DX, DX
self.Emit("MOVQ", jit.Ptr(_ST, _ST_Sp), _CX) // MOVQ ST.Sp, CX
self.Emit("MOVQ", jit.Sib(_ST, _CX, 8, _ST_Vt), _AX) // MOVQ ST.Vt[CX], AX
self.Emit("CMPQ", _AX, jit.Imm(_S_arr_0)) // CMPQ AX, _S_arr_0
self.Sjmp("JE" , "_first_item") // JE _first_item
self.Emit("CMPQ", _AX, jit.Imm(_S_arr)) // CMPQ AX, _S_arr
self.Sjmp("JNE" , "_invalid_char") // JNE _invalid_char
self.Emit("SUBQ", jit.Imm(1), jit.Ptr(_ST, _ST_Sp)) // SUBQ $1, ST.Sp
self.Emit("MOVQ", _DX, jit.Sib(_ST, _CX, 8, _ST_Vp)) // MOVQ DX, ST.Vp[CX]
self.Sjmp("JMP" , "_next") // JMP _next
/* first element of an array */
self.Link("_first_item") // _first_item:
self.Emit("MOVQ", jit.Ptr(_ST, _ST_Sp), _CX) // MOVQ ST.Sp, CX
self.Emit("SUBQ", jit.Imm(2), jit.Ptr(_ST, _ST_Sp)) // SUBQ $2, ST.Sp
self.Emit("MOVQ", jit.Sib(_ST, _CX, 8, _ST_Vp - 8), _SI) // MOVQ ST.Vp[CX - 1], SI
self.Emit("MOVQ", jit.Ptr(_SI, 8), _SI) // MOVQ 8(SI), SI
self.Emit("MOVQ", _DX, jit.Sib(_ST, _CX, 8, _ST_Vp - 8)) // MOVQ DX, ST.Vp[CX - 1]
self.Emit("MOVQ", _DX, jit.Sib(_ST, _CX, 8, _ST_Vp)) // MOVQ DX, ST.Vp[CX]
self.Emit("MOVQ", _DX, jit.Ptr(_SI, 8)) // MOVQ DX, 8(SI)
self.Sjmp("JMP" , "_next") // JMP _next
/** V_OBJECT_END **/
self.Link("_decode_V_OBJECT_END") // _decode_V_OBJECT_END:
self.Emit("MOVL", jit.Imm(_S_omask_end), _DI) // MOVL _S_omask, DI
self.Emit("MOVQ", jit.Ptr(_ST, _ST_Sp), _CX) // MOVQ ST.Sp, CX
self.Emit("MOVQ", jit.Sib(_ST, _CX, 8, _ST_Vt), _AX) // MOVQ ST.Vt[CX], AX
self.Emit("BTQ" , _AX, _DI)
self.Sjmp("JNC" , "_invalid_char") // JNE _invalid_char
self.Emit("XORL", _AX, _AX) // XORL AX, AX
self.Emit("SUBQ", jit.Imm(1), jit.Ptr(_ST, _ST_Sp)) // SUBQ $1, ST.Sp
self.Emit("MOVQ", _AX, jit.Sib(_ST, _CX, 8, _ST_Vp)) // MOVQ AX, ST.Vp[CX]
self.Sjmp("JMP" , "_next") // JMP _next
/* return from decoder */
self.Link("_return") // _return:
self.Emit("XORL", _EP, _EP) // XORL EP, EP
self.Emit("MOVQ", _EP, jit.Ptr(_ST, _ST_Vp)) // MOVQ EP, ST.Vp[0]
self.Link("_epilogue") // _epilogue:
self.Emit("SUBQ", jit.Imm(_FsmOffset), _ST) // SUBQ _FsmOffset, _ST
self.Emit("MOVQ", jit.Ptr(_SP, _VD_offs), _BP) // MOVQ _VD_offs(SP), BP
self.Emit("ADDQ", jit.Imm(_VD_size), _SP) // ADDQ $_VD_size, SP
self.Emit("RET") // RET
/* array expand */
self.Link("_array_more") // _array_more:
self.Emit("MOVQ" , _T_eface, _AX) // MOVQ _T_eface, AX
self.Emit("MOVQ" , jit.Ptr(_SI, 0), _BX) // MOVQ (SI), BX
self.Emit("MOVQ" , jit.Ptr(_SI, 8), _CX) // MOVQ 8(SI), CX
self.Emit("MOVQ" , jit.Ptr(_SI, 16), _DI) // MOVQ 16(SI), DI
self.Emit("MOVQ" , _DI, _SI) // MOVQ DI, 24(SP)
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.