// File: /workspace/github_c_makefile_star2_O0/loversmile[P]sugarcrm/sugar_soapC.c
// Function: soap_out_ns1__new_USCOREnote_USCOREattachment
SOAP_FMAC4 soap_out_ns1__new_USCOREnote_USCOREattachment(struct soap *soap, const char *tag, int id, const struct ns1__new_USCOREnote_USCOREattachment *a, const char *type)
{
	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns1__new_USCOREnote_USCOREattachment), type))
		return soap->error;
	if (soap_out_string(soap, "id", -1, &a->id, ""))
		return soap->error;
	if (soap_out_string(soap, "filename", -1, &a->filename, ""))
		return soap->error;
	if (soap_out_string(soap, "file", -1, &a->file, ""))
		return soap->error;
	if (soap_out_string(soap, "related_module_id", -1, &a->related_USCOREmodule_USCOREid, ""))
		return soap->error;
	if (soap_out_string(soap, "related_module_name", -1, &a->related_USCOREmodule_USCOREname, ""))
		return soap->error;
	return soap_element_end_out(soap, tag);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
movq -0x28(%rbp), %rdx
movl $0x8, %ecx
callq 0x5b5a0
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %rsi
movl %eax, %edx
movq -0x30(%rbp), %rcx
callq 0x5bbd0
cmpl $0x0, %eax
je 0x2f32a
movq -0x10(%rbp), %rax
movl 0x19214(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x2f457
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rcx
leaq 0x4a501(%rip), %rsi     # 0x7983a
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq 0x4b794(%rip), %r8      # 0x7aad9
callq 0x32ca0
cmpl $0x0, %eax
je 0x2f361
movq -0x10(%rbp), %rax
movl 0x19214(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x2f457
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rcx
addq $0x8, %rcx
leaq 0x4a425(%rip), %rsi     # 0x79799
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq 0x4b759(%rip), %r8      # 0x7aad9
callq 0x32ca0
cmpl $0x0, %eax
je 0x2f39c
movq -0x10(%rbp), %rax
movl 0x19214(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x2f457
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rcx
addq $0x10, %rcx
leaq 0x4a3f3(%rip), %rsi     # 0x797a2
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq 0x4b71e(%rip), %r8      # 0x7aad9
callq 0x32ca0
cmpl $0x0, %eax
je 0x2f3d7
movq -0x10(%rbp), %rax
movl 0x19214(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x2f457
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rcx
addq $0x18, %rcx
leaq 0x4a441(%rip), %rsi     # 0x7982b
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq 0x4b6e3(%rip), %r8      # 0x7aad9
callq 0x32ca0
cmpl $0x0, %eax
je 0x2f40f
movq -0x10(%rbp), %rax
movl 0x19214(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x2f457
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rcx
addq $0x20, %rcx
leaq 0x4a41b(%rip), %rsi     # 0x7983d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq 0x4b6ab(%rip), %r8      # 0x7aad9
callq 0x32ca0
cmpl $0x0, %eax
je 0x2f447
movq -0x10(%rbp), %rax
movl 0x19214(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x2f457
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x5bcc0
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq