// File: /workspace/github_c_makefile_star2_O0/LemonBoy[P]autobahn/xdiff/xmerge.c
// Function: fill_conflict_hunk
static int fill_conflict_hunk(xdfenv_t *xe1, const char *name1,
			      xdfenv_t *xe2, const char *name2,
			      const char *name3,
			      int size, int i, int style,
			      xdmerge_t *m, char *dest, int marker_size)
{
	int marker1_size = (name1 ? strlen(name1) + 1 : 0);
	int marker2_size = (name2 ? strlen(name2) + 1 : 0);
	int marker3_size = (name3 ? strlen(name3) + 1 : 0);
	int needs_cr = is_cr_needed(xe1, xe2, m);

	if (marker_size <= 0)
		marker_size = DEFAULT_CONFLICT_MARKER_SIZE;

	/* Before conflicting part */
	size += xdl_recs_copy(xe1, i, m->i1 - i, 0, 0,
			      dest ? dest + size : NULL);

	if (!dest) {
		size += marker_size + 1 + needs_cr + marker1_size;
	} else {
		memset(dest + size, '<', marker_size);
		size += marker_size;
		if (marker1_size) {
			dest[size] = ' ';
			memcpy(dest + size + 1, name1, marker1_size - 1);
			size += marker1_size;
		}
		if (needs_cr)
			dest[size++] = '\r';
		dest[size++] = '\n';
	}

	/* Postimage from side #1 */
	size += xdl_recs_copy(xe1, m->i1, m->chg1, needs_cr, 1,
			      dest ? dest + size : NULL);

	if (style == XDL_MERGE_DIFF3) {
		/* Shared preimage */
		if (!dest) {
			size += marker_size + 1 + needs_cr + marker3_size;
		} else {
			memset(dest + size, '|', marker_size);
			size += marker_size;
			if (marker3_size) {
				dest[size] = ' ';
				memcpy(dest + size + 1, name3, marker3_size - 1);
				size += marker3_size;
			}
			if (needs_cr)
				dest[size++] = '\r';
			dest[size++] = '\n';
		}
		size += xdl_orig_copy(xe1, m->i0, m->chg0, needs_cr, 1,
				      dest ? dest + size : NULL);
	}

	if (!dest) {
		size += marker_size + 1 + needs_cr;
	} else {
		memset(dest + size, '=', marker_size);
		size += marker_size;
		if (needs_cr)
			dest[size++] = '\r';
		dest[size++] = '\n';
	}

	/* Postimage from side #2 */
	size += xdl_recs_copy(xe2, m->i2, m->chg2, needs_cr, 1,
			      dest ? dest + size : NULL);
	if (!dest) {
		size += marker_size + 1 + needs_cr + marker2_size;
	} else {
		memset(dest + size, '>', marker_size);
		size += marker_size;
		if (marker2_size) {
			dest[size] = ' ';
			memcpy(dest + size + 1, name2, marker2_size - 1);
			size += marker2_size;
		}
		if (needs_cr)
			dest[size++] = '\r';
		dest[size++] = '\n';
	}
	return size;
}

// Assembly:
subq $0xd8, %rsp
movl 0x100(%rsp), %eax
movq 0xf8(%rsp), %rax
movq 0xf0(%rsp), %rax
movl 0xe8(%rsp), %eax
movl 0xe0(%rsp), %eax
movq %rdi, 0xd0(%rsp)
movq %rsi, 0xc8(%rsp)
movq %rdx, 0xc0(%rsp)
movq %rcx, 0xb8(%rsp)
movq %r8, 0xb0(%rsp)
movl %r9d, 0xac(%rsp)
cmpq $0x0, 0xc8(%rsp)
je 0x9d32
movq 0xc8(%rsp), %rdi
callq 0x1070
addq $0x1, %rax
movq %rax, 0x90(%rsp)
jmp 0x9d3e
xorl %eax, %eax
movq %rax, 0x90(%rsp)
jmp 0x9d3e
movq 0x90(%rsp), %rax
movl %eax, 0xa8(%rsp)
cmpq $0x0, 0xb8(%rsp)
je 0x9d73
movq 0xb8(%rsp), %rdi
callq 0x1070
addq $0x1, %rax
movq %rax, 0x88(%rsp)
jmp 0x9d7f
xorl %eax, %eax
movq %rax, 0x88(%rsp)
jmp 0x9d7f
movq 0x88(%rsp), %rax
movl %eax, 0xa4(%rsp)
cmpq $0x0, 0xb0(%rsp)
je 0x9db4
movq 0xb0(%rsp), %rdi
callq 0x1070
addq $0x1, %rax
movq %rax, 0x80(%rsp)
jmp 0x9dc0
xorl %eax, %eax
movq %rax, 0x80(%rsp)
jmp 0x9dc0
movq 0x80(%rsp), %rax
movl %eax, 0xa0(%rsp)
movq 0xd0(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movq 0xf0(%rsp), %rdx
callq 0xa4e0
movl %eax, 0x9c(%rsp)
cmpl $0x0, 0x100(%rsp)
jg 0x9e08
movl $0x7, 0x100(%rsp)
movq 0xd0(%rsp), %rax
movq %rax, 0x70(%rsp)
movl 0xe0(%rsp), %eax
movl %eax, 0x78(%rsp)
movq 0xf0(%rsp), %rax
movq 0x10(%rax), %rax
movslq 0xe0(%rsp), %rcx
subq %rcx, %rax
movl %eax, 0x7c(%rsp)
cmpq $0x0, 0xf8(%rsp)
je 0x9e60
movq 0xf8(%rsp), %rax
movslq 0xac(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x68(%rsp)
jmp 0x9e69
xorl %eax, %eax
movq %rax, 0x68(%rsp)
jmp 0x9e69
movl 0x7c(%rsp), %edx
movl 0x78(%rsp), %esi
movq 0x70(%rsp), %rdi
movq 0x68(%rsp), %r9
xorl %r8d, %r8d
movl %r8d, %ecx
callq 0xa490
addl 0xac(%rsp), %eax
movl %eax, 0xac(%rsp)
cmpq $0x0, 0xf8(%rsp)
jne 0x9eca
movl 0x100(%rsp), %eax
addl $0x1, %eax
addl 0x9c(%rsp), %eax
addl 0xa8(%rsp), %eax
addl 0xac(%rsp), %eax
movl %eax, 0xac(%rsp)
jmp 0x9fb6
movq 0xf8(%rsp), %rdi
movslq 0xac(%rsp), %rax
addq %rax, %rdi
movslq 0x100(%rsp), %rdx
movl $0x3c, %esi
callq 0x1090
movl 0x100(%rsp), %eax
addl 0xac(%rsp), %eax
movl %eax, 0xac(%rsp)
cmpl $0x0, 0xa8(%rsp)
je 0x9f68
movq 0xf8(%rsp), %rax
movslq 0xac(%rsp), %rcx
movb $0x20, (%rax,%rcx)
movq 0xf8(%rsp), %rdi
movslq 0xac(%rsp), %rax
addq %rax, %rdi
addq $0x1, %rdi
movq 0xc8(%rsp), %rsi
movl 0xa8(%rsp), %eax
subl $0x1, %eax
movslq %eax, %rdx
callq 0x10e0
movl 0xa8(%rsp), %eax
addl 0xac(%rsp), %eax
movl %eax, 0xac(%rsp)
cmpl $0x0, 0x9c(%rsp)
je 0x9f94
movq 0xf8(%rsp), %rax
movl 0xac(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0xac(%rsp)
movslq %ecx, %rcx
movb $0xd, (%rax,%rcx)
movq 0xf8(%rsp), %rax
movl 0xac(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0xac(%rsp)
movslq %ecx, %rcx
movb $0xa, (%rax,%rcx)
movq 0xd0(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0xf0(%rsp), %rax
movq 0x10(%rax), %rax
movl %eax, 0x5c(%rsp)
movq 0xf0(%rsp), %rax
movq 0x20(%rax), %rax
movl %eax, 0x60(%rsp)
movl 0x9c(%rsp), %eax
movl %eax, 0x64(%rsp)
cmpq $0x0, 0xf8(%rsp)
je 0xa013
movq 0xf8(%rsp), %rax
movslq 0xac(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x48(%rsp)
jmp 0xa01c
xorl %eax, %eax
movq %rax, 0x48(%rsp)
jmp 0xa01c
movl 0x64(%rsp), %ecx
movl 0x60(%rsp), %edx
movl 0x5c(%rsp), %esi
movq 0x50(%rsp), %rdi
movq 0x48(%rsp), %r9
movl $0x1, %r8d
callq 0xa490
addl 0xac(%rsp), %eax
movl %eax, 0xac(%rsp)
cmpl $0x1, 0xe8(%rsp)
jne 0xa210
cmpq $0x0, 0xf8(%rsp)
jne 0xa08f
movl 0x100(%rsp), %eax
addl $0x1, %eax
addl 0x9c(%rsp), %eax
addl 0xa0(%rsp), %eax
addl 0xac(%rsp), %eax
movl %eax, 0xac(%rsp)
jmp 0xa17b
movq 0xf8(%rsp), %rdi
movslq 0xac(%rsp), %rax
addq %rax, %rdi
movslq 0x100(%rsp), %rdx
movl $0x7c, %esi
callq 0x1090
movl 0x100(%rsp), %eax
addl 0xac(%rsp), %eax
movl %eax, 0xac(%rsp)
cmpl $0x0, 0xa0(%rsp)
je 0xa12d
movq 0xf8(%rsp), %rax
movslq 0xac(%rsp), %rcx
movb $0x20, (%rax,%rcx)
movq 0xf8(%rsp), %rdi
movslq 0xac(%rsp), %rax
addq %rax, %rdi
addq $0x1, %rdi
movq 0xb0(%rsp), %rsi
movl 0xa0(%rsp), %eax
subl $0x1, %eax
movslq %eax, %rdx
callq 0x10e0
movl 0xa0(%rsp), %eax
addl 0xac(%rsp), %eax
movl %eax, 0xac(%rsp)
cmpl $0x0, 0x9c(%rsp)
je 0xa159
movq 0xf8(%rsp), %rax
movl 0xac(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0xac(%rsp)
movslq %ecx, %rcx
movb $0xd, (%rax,%rcx)
movq 0xf8(%rsp), %rax
movl 0xac(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0xac(%rsp)
movslq %ecx, %rcx
movb $0xa, (%rax,%rcx)
movq 0xd0(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0xf0(%rsp), %rax
movq 0x30(%rax), %rax
movl %eax, 0x3c(%rsp)
movq 0xf0(%rsp), %rax
movq 0x38(%rax), %rax
movl %eax, 0x40(%rsp)
movl 0x9c(%rsp), %eax
movl %eax, 0x44(%rsp)
cmpq $0x0, 0xf8(%rsp)
je 0xa1d8
movq 0xf8(%rsp), %rax
movslq 0xac(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x28(%rsp)
jmp 0xa1e1
xorl %eax, %eax
movq %rax, 0x28(%rsp)
jmp 0xa1e1
movl 0x44(%rsp), %ecx
movl 0x40(%rsp), %edx
movl 0x3c(%rsp), %esi
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %r9
movl $0x1, %r8d
callq 0xa5d0
addl 0xac(%rsp), %eax
movl %eax, 0xac(%rsp)
cmpq $0x0, 0xf8(%rsp)
jne 0xa23f
movl 0x100(%rsp), %eax
addl $0x1, %eax
addl 0x9c(%rsp), %eax
addl 0xac(%rsp), %eax
movl %eax, 0xac(%rsp)
jmp 0xa2c7
movq 0xf8(%rsp), %rdi
movslq 0xac(%rsp), %rax
addq %rax, %rdi
movslq 0x100(%rsp), %rdx
movl $0x3d, %esi
callq 0x1090
movl 0x100(%rsp), %eax
addl 0xac(%rsp), %eax
movl %eax, 0xac(%rsp)
cmpl $0x0, 0x9c(%rsp)
je 0xa2a5
movq 0xf8(%rsp), %rax
movl 0xac(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0xac(%rsp)
movslq %ecx, %rcx
movb $0xd, (%rax,%rcx)
movq 0xf8(%rsp), %rax
movl 0xac(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0xac(%rsp)
movslq %ecx, %rcx
movb $0xa, (%rax,%rcx)
movq 0xc0(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0xf0(%rsp), %rax
movq 0x18(%rax), %rax
movl %eax, 0x1c(%rsp)
movq 0xf0(%rsp), %rax
movq 0x28(%rax), %rax
movl %eax, 0x20(%rsp)
movl 0x9c(%rsp), %eax
movl %eax, 0x24(%rsp)
cmpq $0x0, 0xf8(%rsp)
je 0xa324
movq 0xf8(%rsp), %rax
movslq 0xac(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x8(%rsp)
jmp 0xa32d
xorl %eax, %eax
movq %rax, 0x8(%rsp)
jmp 0xa32d
movl 0x24(%rsp), %ecx
movl 0x20(%rsp), %edx
movl 0x1c(%rsp), %esi
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %r9
movl $0x1, %r8d
callq 0xa490
addl 0xac(%rsp), %eax
movl %eax, 0xac(%rsp)
cmpq $0x0, 0xf8(%rsp)
jne 0xa392
movl 0x100(%rsp), %eax
addl $0x1, %eax
addl 0x9c(%rsp), %eax
addl 0xa4(%rsp), %eax
addl 0xac(%rsp), %eax
movl %eax, 0xac(%rsp)
jmp 0xa47e
movq 0xf8(%rsp), %rdi
movslq 0xac(%rsp), %rax
addq %rax, %rdi
movslq 0x100(%rsp), %rdx
movl $0x3e, %esi
callq 0x1090
movl 0x100(%rsp), %eax
addl 0xac(%rsp), %eax
movl %eax, 0xac(%rsp)
cmpl $0x0, 0xa4(%rsp)
je 0xa430
movq 0xf8(%rsp), %rax
movslq 0xac(%rsp), %rcx
movb $0x20, (%rax,%rcx)
movq 0xf8(%rsp), %rdi
movslq 0xac(%rsp), %rax
addq %rax, %rdi
addq $0x1, %rdi
movq 0xb8(%rsp), %rsi
movl 0xa4(%rsp), %eax
subl $0x1, %eax
movslq %eax, %rdx
callq 0x10e0
movl 0xa4(%rsp), %eax
addl 0xac(%rsp), %eax
movl %eax, 0xac(%rsp)
cmpl $0x0, 0x9c(%rsp)
je 0xa45c
movq 0xf8(%rsp), %rax
movl 0xac(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0xac(%rsp)
movslq %ecx, %rcx
movb $0xd, (%rax,%rcx)
movq 0xf8(%rsp), %rax
movl 0xac(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0xac(%rsp)
movslq %ecx, %rcx
movb $0xa, (%rax,%rcx)
movl 0xac(%rsp), %eax
addq $0xd8, %rsp
retq
nopl (%rax)