// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: g_string_1
static s7_pointer g_string_1(s7_scheme *sc, s7_pointer args, s7_pointer sym)
    {
        int32_t i, len;
        s7_pointer x, newstr;
        char *str;

        /* get length for new string and check arg types */
        for (len = 0, x = args; is_not_null(x); len++, x = cdr(x))
        {
            s7_pointer p;
            p = car(x);
            if (!s7_is_character(p))
            {
                if (has_active_methods(sc, p))
                {
                    s7_pointer func;
                    func = find_method(sc, find_let(sc, p), sym);
                    if (func != sc->undefined)
                    {
                        s7_pointer y;
                        if (len == 0)
                            return(s7_apply_function(sc, func, args));
                        newstr = make_empty_string(sc, len, 0);
                        str = string_value(newstr);
                        for (i = 0, y = args; y != x; i++, y = cdr(y))
                            str[i] = character(car(y));
                        return(g_string_append_1(sc, set_plist_2(sc, newstr, s7_apply_function(sc, func, x)), sym));
                    }
                }
                return(wrong_type_argument(sc, sym, len + 1, car(x), T_CHARACTER));
            }
        }
        newstr = make_empty_string(sc, len, 0);
        str = string_value(newstr);
        for (i = 0, x = args; is_not_null(x); i++, x = cdr(x))
            str[i] = character(car(x));

        return(newstr);
    }

// Assembly:
subq $0xb8, %rsp
movq %rdi, 0xa8(%rsp)
movq %rsi, 0xa0(%rsp)
movq %rdx, 0x98(%rsp)
movl $0x0, 0x90(%rsp)
movq 0xa0(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x88(%rsp), %rax
movq 0xa8(%rsp), %rcx
cmpq 0x110(%rcx), %rax
je 0x1c467c
movq 0x88(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rdi
callq 0x14430
testb $0x1, %al
jne 0x1c4650
movq 0x70(%rsp), %rax
movq (%rax), %rax
andq $0x40000000, %rax       # imm = 0x40000000
cmpq $0x0, %rax
je 0x1c4526
movq 0xa8(%rsp), %rax
testb $0x1, 0x24c(%rax)
je 0x1c4526
movq 0xa8(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0xa8(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x9a10
movq 0x38(%rsp), %rdi
movq %rax, %rsi
movq 0x98(%rsp), %rdx
callq 0x98d0
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rax
movq 0xa8(%rsp), %rcx
cmpq 0x128(%rcx), %rax
je 0x1c4524
cmpl $0x0, 0x90(%rsp)
jne 0x1c441b
movq 0xa8(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0xa0(%rsp), %rdx
callq 0xda50
movq %rax, 0xb0(%rsp)
jmp 0x1c4736
movq 0xa8(%rsp), %rdi
movslq 0x90(%rsp), %rsi
xorl %edx, %edx
callq 0x146a0
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x78(%rsp)
movl $0x0, 0x94(%rsp)
movq 0xa0(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
cmpq 0x88(%rsp), %rax
je 0x1c44af
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rax
movb 0x8(%rax), %dl
movq 0x78(%rsp), %rax
movslq 0x94(%rsp), %rcx
movb %dl, (%rax,%rcx)
movl 0x94(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x94(%rsp)
movq 0x60(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x60(%rsp)
jmp 0x1c4463
movq 0xa8(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0xa8(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0x88(%rsp), %rdx
callq 0xda50
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq %rax, %rdx
callq 0x36f70
movq 0x30(%rsp), %rdi
movq %rax, %rsi
movq 0x98(%rsp), %rdx
callq 0x1b9f50
movq %rax, 0xb0(%rsp)
jmp 0x1c4736
jmp 0x1c4526
movq 0xa8(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x98(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
movl 0x90(%rsp), %eax
addl $0x1, %eax
cltq
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
andq $-0x800, %rax           # imm = 0xF800
cmpq $0x0, %rax
jne 0x1c4580
movq 0x58(%rsp), %rcx
leaq 0x51f0e(%rip), %rax     # 0x216480
movq (%rax,%rcx,8), %rax
movq %rax, 0x8(%rsp)
jmp 0x1c4603
jmp 0x1c4582
movq 0xa8(%rsp), %rax
movq 0x90(%rax), %rax
movq 0xa8(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x1c45af
movq 0xa8(%rsp), %rdi
callq 0xc670
movq 0xa8(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rax
movq $0xb, (%rax)
movq 0x58(%rsp), %rcx
movq 0x48(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x48(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rdx
movq 0x88(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0xa8(%rsp), %rax
movq 0x140(%rax), %r8
movq 0x55f92(%rip), %r9      # 0x21a5d0
callq 0xc560
movq %rax, 0xb0(%rsp)
jmp 0x1c4736
jmp 0x1c4652
movl 0x90(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x90(%rsp)
movq 0x88(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x88(%rsp)
jmp 0x1c432a
movq 0xa8(%rsp), %rdi
movslq 0x90(%rsp), %rsi
xorl %edx, %edx
callq 0x146a0
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x78(%rsp)
movl $0x0, 0x94(%rsp)
movq 0xa0(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x88(%rsp), %rax
movq 0xa8(%rsp), %rcx
cmpq 0x110(%rcx), %rax
je 0x1c4726
movq 0x88(%rsp), %rax
movq 0x8(%rax), %rax
movb 0x8(%rax), %dl
movq 0x78(%rsp), %rax
movslq 0x94(%rsp), %rcx
movb %dl, (%rax,%rcx)
movl 0x94(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x94(%rsp)
movq 0x88(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x88(%rsp)
jmp 0x1c46c7
movq 0x80(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0xb0(%rsp), %rax
addq $0xb8, %rsp
retq
nopw %cs:(%rax,%rax)