// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
movq %rdi, %rbx
movl 0x10(%rdi), %eax
decl %eax
movsbl %sil, %r14d
cmpl $0x5, %eax
ja 0x131cd
leaq 0x283a4(%rip), %rcx     # 0x3b3e0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x20, %r14d
ja 0x1305f
movabsq $0x100002601, %rax      # imm = 0x100002601
btq %r14, %rax
jb 0x13180
cmpl $0x7d, %r14d
je 0x1306f
cmpl $0x5d, %r14d
jne 0x1319f
movabsq $0x100000004, %rax      # imm = 0x100000004
movq %rax, 0x10(%rbx)
jmp 0x13175
movl 0x14(%rbx), %eax
movl $0x5, 0x14(%rbx)
jmp 0x13172
cmpl $0x27, %r14d
je 0x1315c
cmpl $0x5c, %r14d
jne 0x13175
pushq $0x5
jmp 0x1315e
cmpl $0x3d, %r14d
ja 0x13187
movabsq $0x100002601, %rax      # imm = 0x100002601
btq %r14, %rax
jae 0x1313c
movabsq $0x400000000, %rax      # imm = 0x400000000
movq %rax, 0x10(%rbx)
jmp 0x13180
cmpl $0x22, %r14d
je 0x13168
cmpl $0x5c, %r14d
jne 0x13175
pushq $0x5
jmp 0x1316a
cmpl $0x20, %r14d
ja 0x13107
movabsq $0x100002601, %rax      # imm = 0x100002601
btq %r14, %rax
jb 0x13180
cmpl $0x5d, %r14d
je 0x131cd
cmpl $0x7d, %r14d
je 0x131cd
movabsq $0x600000000, %rax      # imm = 0x600000000
movq %rax, 0x10(%rbx)
pushq $0xa
popq %rsi
movq %rbx, %rdi
callq 0x13316
movl 0x18(%rbx), %esi
jmp 0x131c1
movabsq $0x2c00100000000000, %rax # imm = 0x2C00100000000000
btq %r14, %rax
jae 0x13187
movabsq $0x400000000, %rax      # imm = 0x400000000
movq %rax, 0x10(%rbx)
jmp 0x131cd
pushq $0x4
popq %rax
movl $0x3, 0x14(%rbx)
jmp 0x13172
pushq $0x4
popq %rax
movl $0x2, 0x14(%rbx)
movl %eax, 0x10(%rbx)
movq %rbx, %rdi
movl %r14d, %esi
callq 0x13316
movb $0x1, %al
popq %rbx
popq %r14
popq %rbp
retq
cmpl $0x5c, %r14d
je 0x132fc
cmpl $0x5d, %r14d
je 0x131cd
cmpl $0x7d, %r14d
je 0x131cd
jmp 0x13175
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, 0x10(%rbx)
pushq $0xa
popq %rsi
movq %rbx, %rdi
callq 0x13316
movl 0x18(%rbx), %esi
addl 0x1c(%rbx), %esi
movl %esi, 0x18(%rbx)
movsbl 0x20(%rbx), %edx
movq %rbx, %rdi
callq 0x1333a
leal -0x9(%r14), %eax
cmpl $0x2, %eax
jb 0x13180
testl %r14d, %r14d
je 0x13180
cmpl $0xd, %r14d
je 0x13180
cmpl $0x20, %r14d
je 0x13180
cmpl $0x22, %r14d
je 0x132c3
cmpl $0x27, %r14d
je 0x13276
cmpl $0x2c, %r14d
je 0x13264
cmpl $0x3a, %r14d
je 0x1327a
cmpl $0x3b, %r14d
je 0x13264
cmpl $0x3d, %r14d
je 0x13297
pushq $0x1
popq %rax
cmpl $0x5b, %r14d
je 0x132c6
cmpl $0x7d, %r14d
je 0x13236
cmpl $0x7b, %r14d
je 0x132c6
cmpl $0x5d, %r14d
jne 0x13293
movl 0x10(%rbx), %eax
movl %eax, 0x14(%rbx)
movl $0x4, 0x10(%rbx)
pushq $0xa
popq %rsi
movq %rbx, %rdi
callq 0x13316
movl 0x18(%rbx), %esi
testl %esi, %esi
je 0x132e9
subl 0x1c(%rbx), %esi
movl %esi, 0x18(%rbx)
jmp 0x132eb
movl 0x10(%rbx), %eax
movl %eax, 0x14(%rbx)
movl $0x6, 0x10(%rbx)
jmp 0x13175
pushq $0x3
jmp 0x132c5
movl 0x10(%rbx), %eax
movl %eax, 0x14(%rbx)
andl $0x0, 0x10(%rbx)
pushq $0x3a
popq %rsi
movq %rbx, %rdi
callq 0x13316
pushq $0x20
jmp 0x1330c
pushq $0x4
jmp 0x132c5
movl 0x10(%rbx), %eax
movl %eax, 0x14(%rbx)
andl $0x0, 0x10(%rbx)
pushq $0x20
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x13316
pushq $0x3d
popq %rsi
movq %rbx, %rdi
callq 0x13316
movq %rbx, %rdi
movl %ebp, %esi
jmp 0x1317b
pushq $0x2
popq %rax
movl 0x10(%rbx), %ecx
cmpl $0x4, 0x14(%rbx)
movl %ecx, 0x14(%rbx)
movl %eax, 0x10(%rbx)
jne 0x13175
pushq $0xa
popq %rsi
movq %rbx, %rdi
callq 0x13316
movl 0x18(%rbx), %esi
jmp 0x132eb
xorl %esi, %esi
movsbl 0x20(%rbx), %edx
movq %rbx, %rdi
callq 0x1333a
jmp 0x13175
movabsq $0x400000005, %rax      # imm = 0x400000005
movq %rax, 0x10(%rbx)
pushq $0x5c
popq %rsi
movq %rbx, %rdi
jmp 0x1317b
nop