// File: /workspace/github_cpp_makefile_star2_O3/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
decl %eax
cmpl $0x5, %eax
ja 0x18d29
leaq 0x2b91f(%rip), %rcx     # 0x44460
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movsbl %bpl, %esi
cmpl $0x20, %esi
ja 0x18b67
movabsq $0x100002601, %rax      # imm = 0x100002601
btq %rsi, %rax
jb 0x18eb6
cmpl $0x7d, %esi
je 0x18b75
cmpl $0x5d, %esi
jne 0x18ceb
movabsq $0x100000004, %rax      # imm = 0x100000004
movq %rax, 0x10(%rbx)
movq %rbx, %rdi
jmp 0x18eb1
movl 0x14(%rbx), %eax
movl $0x5, 0x14(%rbx)
movl %eax, 0x10(%rbx)
movsbl %bpl, %esi
jmp 0x18cae
movsbl %bpl, %esi
cmpl $0x27, %esi
je 0x18c91
cmpl $0x5c, %esi
jne 0x18cae
movl $0x5, %eax
jmp 0x18c96
movsbl %bpl, %esi
cmpl $0x5b, %esi
jg 0x18cd6
cmpl $0x3d, %esi
ja 0x18cae
movl %esi, %eax
movabsq $0x100002601, %rcx      # imm = 0x100002601
btq %rax, %rcx
jae 0x18cb6
movabsq $0x400000000, %rax      # imm = 0x400000000
movq %rax, 0x10(%rbx)
jmp 0x18eb6
movsbl %bpl, %esi
cmpl $0x22, %esi
je 0x18c9f
cmpl $0x5c, %esi
jne 0x18cae
movl $0x5, %eax
jmp 0x18ca4
movsbl %bpl, %eax
cmpl $0x20, %eax
ja 0x18c3d
movabsq $0x100002601, %rcx      # imm = 0x100002601
btq %rax, %rcx
jb 0x18eb6
cmpl $0x5d, %eax
je 0x18d29
cmpl $0x7d, %eax
je 0x18d29
movabsq $0x600000000, %rax      # imm = 0x600000000
movq %rax, 0x10(%rbx)
movq %rbx, %rdi
movl $0xa, %esi
callq 0x18f00
movl 0x18(%rbx), %r15d
testl %r15d, %r15d
je 0x18d29
movsbl 0x20(%rbx), %r14d
movq %rbx, %rdi
movl %r14d, %esi
callq 0x18f00
decl %r15d
jne 0x18c7c
jmp 0x18d29
movl $0x4, %eax
movl $0x3, 0x14(%rbx)
jmp 0x18cab
movl $0x4, %eax
movl $0x2, 0x14(%rbx)
movl %eax, 0x10(%rbx)
movq %rbx, %rdi
jmp 0x18eb1
movabsq $0x2c00100000000000, %rcx # imm = 0x2C00100000000000
btq %rax, %rcx
jae 0x18cae
movabsq $0x400000000, %rax      # imm = 0x400000000
movq %rax, 0x10(%rbx)
jmp 0x18d29
cmpl $0x5c, %esi
je 0x18ee7
cmpl $0x5d, %esi
je 0x18d29
cmpl $0x7d, %esi
je 0x18d29
jmp 0x18cae
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, 0x10(%rbx)
movq %rbx, %rdi
movl $0xa, %esi
callq 0x18f00
movl 0x18(%rbx), %r15d
addl 0x1c(%rbx), %r15d
movl %r15d, 0x18(%rbx)
je 0x18d29
movsbl 0x20(%rbx), %r14d
movq %rbx, %rdi
movl %r14d, %esi
callq 0x18f00
decl %r15d
jne 0x18d19
movsbl %bpl, %r14d
cmpl $0x39, %r14d
jg 0x18d5e
cmpl $0x1f, %r14d
jg 0x18d88
leal -0x9(%r14), %eax
cmpl $0x2, %eax
jb 0x18eb6
testl %r14d, %r14d
je 0x18eb6
cmpl $0xd, %r14d
je 0x18eb6
jmp 0x18e67
cmpl $0x5a, %r14d
jle 0x18db0
movl $0x1, %eax
cmpl $0x7a, %r14d
jg 0x18df5
cmpl $0x5b, %r14d
je 0x18e73
cmpl $0x5d, %r14d
je 0x18e01
jmp 0x18e67
cmpl $0x26, %r14d
jg 0x18e4c
cmpl $0x20, %r14d
je 0x18eb6
cmpl $0x22, %r14d
jne 0x18e67
movl $0x2, %eax
jmp 0x18e73
cmpl $0x3a, %r14d
je 0x18ec3
cmpl $0x3b, %r14d
je 0x18e58
cmpl $0x3d, %r14d
jne 0x18e67
movl 0x10(%rbx), %eax
movl %eax, 0x14(%rbx)
movl $0x0, 0x10(%rbx)
movq %rbx, %rdi
movl $0x20, %esi
callq 0x18f00
movq %rbx, %rdi
movl $0x3d, %esi
jmp 0x18ed8
cmpl $0x7b, %r14d
je 0x18e73
cmpl $0x7d, %r14d
jne 0x18e67
movl 0x10(%rbx), %eax
movl %eax, 0x14(%rbx)
movl $0x4, 0x10(%rbx)
movq %rbx, %rdi
movl $0xa, %esi
callq 0x18f00
movl 0x18(%rbx), %eax
testl %eax, %eax
je 0x18eab
movl 0x1c(%rbx), %r15d
movl %eax, %ecx
subl %r15d, %ecx
movl %ecx, 0x18(%rbx)
je 0x18eab
subl %eax, %r15d
movsbl 0x20(%rbx), %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x18f00
incl %r15d
jne 0x18e3b
jmp 0x18eab
cmpl $0x27, %r14d
je 0x18e6e
cmpl $0x2c, %r14d
jne 0x18e67
movl 0x10(%rbx), %eax
movl %eax, 0x14(%rbx)
movl $0x6, 0x10(%rbx)
jmp 0x18eab
movl $0x4, %eax
jmp 0x18e73
movl $0x3, %eax
movl 0x10(%rbx), %ecx
cmpl $0x4, 0x14(%rbx)
movl %ecx, 0x14(%rbx)
movl %eax, 0x10(%rbx)
jne 0x18eab
movq %rbx, %rdi
movl $0xa, %esi
callq 0x18f00
movl 0x18(%rbx), %r15d
testl %r15d, %r15d
je 0x18eab
movsbl 0x20(%rbx), %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x18f00
decl %r15d
jne 0x18e9c
movq %rbx, %rdi
movl %r14d, %esi
callq 0x18f00
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl 0x10(%rbx), %eax
movl %eax, 0x14(%rbx)
movl $0x0, 0x10(%rbx)
movq %rbx, %rdi
movl $0x3a, %esi
callq 0x18f00
movq %rbx, %rdi
movl $0x20, %esi
jmp 0x18eb1
movabsq $0x400000005, %rax      # imm = 0x400000005
movq %rax, 0x10(%rbx)
movq %rbx, %rdi
movl $0x5c, %esi
jmp 0x18eb1
nop