// File: /workspace/github_c_makefile_star2_O0/Ihsoh[P]ilang/compiler/preprocessor/line_concat.c
// Function: process
void _process(
	ResizableString *dst,
	const char *file,
	const char *src,
	int len
) {
	assert(dst);
	assert(file);
	assert(src);
	assert(len >= 0);

	for (int i = 0; i < len; i++) {
		char chr = src[i];
		if (chr == '\\') {
			if (i + 1 < len
					&& src[i + 1] == '\n') {
				i += 2;
				int n = 1;
				for (; i < len; i++) {
					chr = src[i];
					if (chr == '\\') {
						if (i + 1 < len
								&& src[i + 1] == '\n') {
							i++;
							n++;
						} else {
							rstr_append_with_char(dst, chr);
						}
					} else {
						rstr_append_with_char(dst, chr);
						if (chr == '\n') {
							break;
						}
					}
				}
				for (int j = 0; j < n; j++) {
					rstr_append_with_char(dst, '\n');
				}
			} else {
				rstr_append_with_char(dst, chr);
			}
		} else {
			rstr_append_with_char(dst, chr);
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x43360
jmp 0x4337f
leaq 0x2d02(%rip), %rdi      # 0x46069
leaq 0xccf2(%rip), %rsi      # 0x50060
movl $0xb, %edx
leaq 0xcd0a(%rip), %rcx      # 0x50084
callq 0xa0b0
cmpq $0x0, -0x10(%rbp)
je 0x43388
jmp 0x433a7
leaq 0x36df(%rip), %rdi      # 0x46a6e
leaq 0xccca(%rip), %rsi      # 0x50060
movl $0xc, %edx
leaq 0xcce2(%rip), %rcx      # 0x50084
callq 0xa0b0
cmpq $0x0, -0x18(%rbp)
je 0x433b0
jmp 0x433cf
leaq 0x4c05(%rip), %rdi      # 0x47fbc
leaq 0xcca2(%rip), %rsi      # 0x50060
movl $0xd, %edx
leaq 0xccba(%rip), %rcx      # 0x50084
callq 0xa0b0
cmpl $0x0, -0x1c(%rbp)
jl 0x433d7
jmp 0x433f6
leaq 0x31c4(%rip), %rdi      # 0x465a2
leaq 0xcc7b(%rip), %rsi      # 0x50060
movl $0xe, %edx
leaq 0xcc93(%rip), %rcx      # 0x50084
callq 0xa0b0
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x43544
movq -0x18(%rbp), %rax
movslq -0x20(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -0x21(%rbp)
movsbl -0x21(%rbp), %eax
cmpl $0x5c, %eax
jne 0x43527
movl -0x20(%rbp), %eax
addl $0x1, %eax
cmpl -0x1c(%rbp), %eax
jge 0x43518
movq -0x18(%rbp), %rax
movl -0x20(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0xa, %eax
jne 0x43518
movl -0x20(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x20(%rbp)
movl $0x1, -0x28(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x434ee
movq -0x18(%rbp), %rax
movslq -0x20(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -0x21(%rbp)
movsbl -0x21(%rbp), %eax
cmpl $0x5c, %eax
jne 0x434c4
movl -0x20(%rbp), %eax
addl $0x1, %eax
cmpl -0x1c(%rbp), %eax
jge 0x434b5
movq -0x18(%rbp), %rax
movl -0x20(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0xa, %eax
jne 0x434b5
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x434c2
movq -0x8(%rbp), %rdi
movsbl -0x21(%rbp), %esi
callq 0xfeb0
jmp 0x434de
movq -0x8(%rbp), %rdi
movsbl -0x21(%rbp), %esi
callq 0xfeb0
movsbl -0x21(%rbp), %eax
cmpl $0xa, %eax
jne 0x434dc
jmp 0x434ee
jmp 0x434de
jmp 0x434e0
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x4345d
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x28(%rbp), %eax
jge 0x43516
movq -0x8(%rbp), %rdi
movl $0xa, %esi
callq 0xfeb0
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x434f5
jmp 0x43525
movq -0x8(%rbp), %rdi
movsbl -0x21(%rbp), %esi
callq 0xfeb0
jmp 0x43534
movq -0x8(%rbp), %rdi
movsbl -0x21(%rbp), %esi
callq 0xfeb0
jmp 0x43536
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x433fd
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)