// File: /workspace/github_c_makefile_star2_O0/ieyasu[P]funit/generate_code.c
// Function: print_macro_arg
static void print_macro_arg(struct Code *arg)
{
    char *s, *start, *end, *amp, string_delim;
    int in_string = 0;

    assert(arg && arg->type == ARG_CODE);

    s = start = arg->u.c.str;
    end = s + arg->u.c.len;
    amp = NULL;
    while (s < end) {
        switch (*s) {
        case '\'':
        case '"':
            if (in_string) {
                if (*s == string_delim) {
                    if (*(s + 1) == string_delim)
                        s++; // doubled to escape
                    else
                        in_string = 0; // close quote
                }
            } else {
                in_string = 1;
                string_delim = *s;
            }
            amp = NULL;
            break;
        case '&':
            amp = s;
            break;
        case ' ':
        case '\t':
            // leave amp alone
            break;
        case '\n':
        case '\r':
            // line continuation
            assert(amp != NULL);
            // print prior arg-part
            fwrite(start, amp - start, 1, fout);
            // scan for next arg-part
            start = find_line_continuation(s, end, in_string);
            s = start - 1;
            break;
        default:
            amp = NULL;
            break;
        }
        s++;
    }
    // print remaining
    fwrite(start, end - start, 1, fout);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0x30(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x5ce6
movq -0x8(%rbp), %rax
cmpl $0x2, 0x8(%rax)
jne 0x5ce6
jmp 0x5d05
leaq 0x591e(%rip), %rdi      # 0xb60b
leaq 0x5751(%rip), %rsi      # 0xb445
movl $0x69, %edx
leaq 0x5928(%rip), %rcx      # 0xb628
callq 0x2120
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x18(%rbp)
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
addq 0x20(%rcx), %rax
movq %rax, -0x20(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x10(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0x5e4f
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
addl $-0x9, %eax
movl %eax, %ecx
movq %rcx, -0x38(%rbp)
subl $0x1e, %eax
ja 0x5e36
movq -0x38(%rbp), %rax
leaq 0x4d01(%rip), %rcx      # 0xaa60
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x0, -0x30(%rbp)
je 0x5da6
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
movsbl -0x29(%rbp), %ecx
cmpl %ecx, %eax
jne 0x5da4
movq -0x10(%rbp), %rax
movsbl 0x1(%rax), %eax
movsbl -0x29(%rbp), %ecx
cmpl %ecx, %eax
jne 0x5d9b
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x5da2
movl $0x0, -0x30(%rbp)
jmp 0x5da4
jmp 0x5db6
movl $0x1, -0x30(%rbp)
movq -0x10(%rbp), %rax
movb (%rax), %al
movb %al, -0x29(%rbp)
movq $0x0, -0x28(%rbp)
jmp 0x5e3e
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x5e3e
jmp 0x5e3e
cmpq $0x0, -0x28(%rbp)
je 0x5dd5
jmp 0x5df4
leaq 0x5870(%rip), %rdi      # 0xb64c
leaq 0x5662(%rip), %rsi      # 0xb445
movl $0x89, %edx
leaq 0x5839(%rip), %rcx      # 0xb628
callq 0x2120
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x18(%rbp), %rax
subq %rax, %rsi
movq 0xb486(%rip), %rcx      # 0x11290
movl $0x1, %edx
callq 0x2270
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x30(%rbp), %edx
callq 0x6020
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x5e3e
movq $0x0, -0x28(%rbp)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x5d2d
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x18(%rbp), %rax
subq %rax, %rsi
movq 0xb42b(%rip), %rcx      # 0x11290
movl $0x1, %edx
callq 0x2270
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)