// File: /workspace/github_cpp_makefile_star2_O1/oknenavin[P]cxon/test/../src/cxon/lang/json/tidy.hxx
// Function: cxon::json::indenter<cxon::JSON<cxon::JSON<cxon::JSON<cxon::json::format_traits>>>, std::ostreambuf_iterator<char, std::char_traits<char>>>::append(char)
bool append(char c) {
                using cio::poke;
                switch (cur()) {
                    case stt::grn: break;
                    case stt::lst:
                        switch (c) {
                            case '\t': case '\n': case '\r': case ' ': case '\0':
                                return true;
                            case '}': case ']':
                                return mut(stt::scl),   poke(o_, c);
                        }
                        mut(stt::grn);
                        if (!poke(o_, '\n') || !poke(o_, lvl_ += tab_, pad_))
                            return false;
                        break;
                    case stt::qst:
                        switch (c) {
                            case '"' : mut(stt::scl); break;
                            case '\\': mut(stt::esc); break;
                        }
                        return poke(o_, c);
                    case stt::ast:
                        switch (c) {
                            case '\'': mut(stt::scl); break;
                            case '\\': mut(stt::esc); break;
                        }
                        return poke(o_, c);
                    case stt::scl:
                        switch (c) {
                            case '\t': case '\n': case '\r': case ' ': case '\0':
                                return mut(stt::grn),   true;
                            case '\\':
                                return mut(stt::esc),   poke(o_, '\\');
                            default:
                                return poke(o_, c);
                            case '}': case ']':// case '"':
                                break;
                            case ',': case ';': case ':': case '=':
                                mut(stt::grn); break;
                        }
                        break;
                    case stt::esc:
                        return mut(pre()),  poke(o_, c);
                    case stt::com:
                        switch (c) {
                            case '\t': case '\n': case '\r': case ' ': case '\0':
                                return true;
                            case '}': case ']':
                                break;
                            default:
                                mut(stt::grn),   poke(o_, '\n') && poke(o_, lvl_, pad_);
                        }
                        break;
                }
                stt nxt;
                switch (c) {
                    case '\t': case '\n': case '\r': case ' ': case '\0':
                        return true;
                    case '{': case '[':
                        nxt = stt::lst; goto scl;
                    case '}': case ']':
                        return mut(stt::scl),   poke(o_, '\n') && poke(o_, (lvl_ ? lvl_ -= tab_ : 0), pad_) && poke(o_, c);
                    case '"':
                        nxt = stt::qst; goto scl;
                    case '\'':
                        nxt = stt::ast; goto scl;
                    case ',': case ';':
                        return mut(stt::com),   poke(o_, c);
                    case ':':
                        return mut(stt::grn),   poke(o_, c) && poke(o_, ' ');
                    case '=':
                        return mut(stt::grn),   poke(o_, ' ') && poke(o_, c) && poke(o_, ' ');
                    default:
                        nxt = stt::scl;// goto scl;
                }
                scl: return pre() == stt::scl ?
                    (mut(nxt),  poke(o_, '\n') && poke(o_, lvl_, pad_)   && poke(o_, c)) :
                    (mut(nxt),                                              poke(o_, c))
                ;
            }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movl 0x10(%rdi), %eax
leal -0x1(%rax), %ecx
cmpl $0x5, %ecx
ja 0x19e6d
leaq 0x2d7ec(%rip), %rdx     # 0x474c0
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movsbl %bpl, %esi
cmpl $0x20, %esi
ja 0x19cfa
movabsq $0x100002601, %rcx      # imm = 0x100002601
btq %rsi, %rcx
jb 0x1a011
cmpl $0x7d, %esi
je 0x19d08
cmpl $0x5d, %esi
jne 0x19e33
movl %eax, 0x14(%rbx)
movl $0x4, 0x10(%rbx)
movq %rbx, %rdi
jmp 0x1a00c
movl 0x14(%rbx), %ecx
movl %eax, 0x14(%rbx)
movl %ecx, 0x10(%rbx)
movsbl %bpl, %esi
jmp 0x19d89
movsbl %bpl, %esi
cmpl $0x27, %esi
je 0x19d7e
cmpl $0x5c, %esi
jne 0x19d89
movl $0x5, %ecx
jmp 0x19d83
movsbl %bpl, %esi
cmpl $0x5b, %esi
jg 0x19e1b
cmpl $0x3d, %esi
ja 0x19d89
movl %esi, %ecx
movabsq $0x100002601, %rdx      # imm = 0x100002601
btq %rcx, %rdx
jae 0x19dfb
movl %eax, 0x14(%rbx)
movl $0x0, 0x10(%rbx)
jmp 0x1a011
movsbl %bpl, %esi
cmpl $0x22, %esi
jne 0x19d32
movl $0x4, %ecx
movl %eax, 0x14(%rbx)
movl %ecx, 0x10(%rbx)
movq %rbx, %rdi
jmp 0x1a00c
movsbl %bpl, %ecx
cmpl $0x20, %ecx
ja 0x19dae
movabsq $0x100002601, %rdx      # imm = 0x100002601
btq %rcx, %rdx
jb 0x1a011
cmpl $0x5d, %ecx
je 0x19e6d
cmpl $0x7d, %ecx
je 0x19e6d
movl %eax, 0x14(%rbx)
movl $0x0, 0x10(%rbx)
movq %rbx, %rdi
movl $0xa, %esi
callq 0x1a032
movl 0x18(%rbx), %r15d
testl %r15d, %r15d
je 0x19e6d
movsbl 0x20(%rbx), %r14d
movq %rbx, %rdi
movl %r14d, %esi
callq 0x1a032
decl %r15d
jne 0x19de9
jmp 0x19e6d
movabsq $0x2c00100000000000, %rdx # imm = 0x2C00100000000000
btq %rcx, %rdx
jae 0x19d89
movl %eax, 0x14(%rbx)
movl $0x0, 0x10(%rbx)
jmp 0x19e6d
cmpl $0x5c, %esi
je 0x1a01e
cmpl $0x5d, %esi
je 0x19e6d
cmpl $0x7d, %esi
je 0x19e6d
jmp 0x19d89
movl %eax, 0x14(%rbx)
movl $0x0, 0x10(%rbx)
movq %rbx, %rdi
movl $0xa, %esi
callq 0x1a032
movl 0x18(%rbx), %r15d
addl 0x1c(%rbx), %r15d
movl %r15d, 0x18(%rbx)
je 0x19e6d
movsbl 0x20(%rbx), %r14d
movq %rbx, %rdi
movl %r14d, %esi
callq 0x1a032
decl %r15d
jne 0x19e5d
movsbl %bpl, %r14d
cmpl $0x39, %r14d
jg 0x19ea2
cmpl $0x1f, %r14d
jg 0x19ec8
leal -0x9(%r14), %eax
cmpl $0x2, %eax
jb 0x1a011
testl %r14d, %r14d
je 0x1a011
cmpl $0xd, %r14d
je 0x1a011
jmp 0x19f83
cmpl $0x5a, %r14d
jle 0x19ef0
movl $0x1, %eax
cmpl $0x7a, %r14d
jg 0x19f25
cmpl $0x5b, %r14d
je 0x19f8f
cmpl $0x5d, %r14d
je 0x19f31
jmp 0x19f83
cmpl $0x26, %r14d
jg 0x19f65
cmpl $0x20, %r14d
je 0x1a011
cmpl $0x22, %r14d
jne 0x19f83
movl $0x2, %eax
jmp 0x19f8f
cmpl $0x3a, %r14d
je 0x19fc9
cmpl $0x3b, %r14d
je 0x19f71
cmpl $0x3d, %r14d
jne 0x19f83
movl 0x10(%rbx), %eax
movl %eax, 0x14(%rbx)
movl $0x0, 0x10(%rbx)
movq %rbx, %rdi
movl $0x20, %esi
callq 0x1a032
jmp 0x19fd6
cmpl $0x7b, %r14d
je 0x19f8f
cmpl $0x7d, %r14d
jne 0x19f83
movl 0x10(%rbx), %eax
movl %eax, 0x14(%rbx)
movl $0x4, 0x10(%rbx)
movq %rbx, %rdi
movl $0xa, %esi
callq 0x1a032
movl 0x18(%rbx), %r15d
testl %r15d, %r15d
je 0x19feb
subl 0x1c(%rbx), %r15d
movl %r15d, 0x18(%rbx)
jmp 0x19fee
cmpl $0x27, %r14d
je 0x19f8a
cmpl $0x2c, %r14d
jne 0x19f83
movl 0x10(%rbx), %eax
movl %eax, 0x14(%rbx)
movl $0x6, 0x10(%rbx)
jmp 0x1a006
movl $0x4, %eax
jmp 0x19f8f
movl $0x3, %eax
movl 0x10(%rbx), %ecx
cmpl $0x4, 0x14(%rbx)
movl %ecx, 0x14(%rbx)
movl %eax, 0x10(%rbx)
jne 0x1a006
movq %rbx, %rdi
movl $0xa, %esi
callq 0x1a032
movl 0x18(%rbx), %r15d
testl %r15d, %r15d
je 0x1a006
movsbl 0x20(%rbx), %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1a032
decl %r15d
jne 0x19fb8
jmp 0x1a006
movl 0x10(%rbx), %eax
movl %eax, 0x14(%rbx)
movl $0x0, 0x10(%rbx)
movq %rbx, %rdi
movl %r14d, %esi
callq 0x1a032
movq %rbx, %rdi
movl $0x20, %esi
jmp 0x1a00c
xorl %r15d, %r15d
testl %r15d, %r15d
je 0x1a006
movsbl 0x20(%rbx), %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1a032
decl %r15d
jne 0x19ff7
movq %rbx, %rdi
movl %r14d, %esi
callq 0x1a032
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl %eax, 0x14(%rbx)
movl $0x5, 0x10(%rbx)
movq %rbx, %rdi
movl $0x5c, %esi
jmp 0x1a00c