#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;
struct multiply_map_offset_label_list {
  int dummy;
};
struct multiply_map_offset_label {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/
multiply_map_offset_label_list_append(struct multiply_map_offset_label_list *,
                                      struct multiply_map_offset_label *);
struct multiply_map_offset_label *
multiply_map_offset_label_new(int /*<<< orphan*/, char *, size_t,
                              int /*<<< orphan*/, int /*<<< orphan*/);
int multiply_map_offset_label_list_append_with_configure(
    struct multiply_map_offset_label_list *list, uint32_t offset, char *str,
    size_t len, uint32_t pos_ln, uint32_t pos_col) {
  struct multiply_map_offset_label *new_multiply_map_offset_label = NULL;
  new_multiply_map_offset_label =
      multiply_map_offset_label_new(offset, str, len, pos_ln, pos_col);
  if (new_multiply_map_offset_label == NULL) {
    return -1;
  }
  multiply_map_offset_label_list_append(list, new_multiply_map_offset_label);
  return 0;
}


x86 assembly (clang, -O0):
<multiply_map_offset_label_list_append_with_configure>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8d,-0x2c(%rbp)
mov    %r9d,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
mov    -0x30(%rbp),%r8d
call   1030 <multiply_map_offset_label_new@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    1179 <multiply_map_offset_label_list_append_with_configure+0x59>
movl   $0xffffffff,-0x4(%rbp)
jmp    118d <multiply_map_offset_label_list_append_with_configure+0x6d>
mov    -0x10(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1040 <multiply_map_offset_label_list_append@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<multiply_map_offset_label_list_append_with_configure>:
push   %rbx
mov    %rdi,%rbx
mov    %esi,%edi
mov    %rdx,%rsi
mov    %rcx,%rdx
mov    %r8d,%ecx
mov    %r9d,%r8d
call   1030 <multiply_map_offset_label_new@plt>
test   %rax,%rax
je     114b <multiply_map_offset_label_list_append_with_configure+0x2b>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1040 <multiply_map_offset_label_list_append@plt>
xor    %eax,%eax
pop    %rbx
ret
mov    $0xffffffff,%eax
pop    %rbx
ret

LLVM IR (-O0):
%struct.multiply_map_offset_label_list = type { i32 }
%struct.multiply_map_offset_label = type { i32 }
define i32 @multiply_map_offset_label_list_append_with_configure(%struct.multiply_map_offset_label_list* %0, i32 %1, i8* %2, i64 %3, i32 %4, i32 %5) {
%7 = alloca i32
%8 = alloca %struct.multiply_map_offset_label_list*
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i32
%13 = alloca i32
%14 = alloca %struct.multiply_map_offset_label*
store %struct.multiply_map_offset_label_list* %0, %struct.multiply_map_offset_label_list** %8
store i32 %1, i32* %9
store i8* %2, i8** %10
store i64 %3, i64* %11
store i32 %4, i32* %12
store i32 %5, i32* %13
store %struct.multiply_map_offset_label* null, %struct.multiply_map_offset_label** %14
%15 = load i32, i32* %9
%16 = load i8*, i8** %10
%17 = load i64, i64* %11
%18 = load i32, i32* %12
%19 = load i32, i32* %13
%20 = call %struct.multiply_map_offset_label* @multiply_map_offset_label_new(i32 %15, i8* %16, i64 %17, i32 %18, i32 %19)
store %struct.multiply_map_offset_label* %20, %struct.multiply_map_offset_label** %14
%21 = load %struct.multiply_map_offset_label*, %struct.multiply_map_offset_label** %14
%22 = icmp eq %struct.multiply_map_offset_label* %21, null
br i1 %22, label %23, label %24
23: ; preds = %6
store i32 -1, i32* %7
br label %28
24: ; preds = %6
%25 = load %struct.multiply_map_offset_label_list*, %struct.multiply_map_offset_label_list** %8
%26 = load %struct.multiply_map_offset_label*, %struct.multiply_map_offset_label** %14
%27 = call i32 @multiply_map_offset_label_list_append(%struct.multiply_map_offset_label_list* %25, %struct.multiply_map_offset_label* %26)
store i32 0, i32* %7
br label %28
28: ; preds = %24, %23
%29 = load i32, i32* %7
ret i32 %29
}

LLVM IR (-O2):
%struct.multiply_map_offset_label_list = type { i32 }
%struct.multiply_map_offset_label = type { i32 }
define i32 @multiply_map_offset_label_list_append_with_configure(%struct.multiply_map_offset_label_list* %0, i32 %1, i8* %2, i64 %3, i32 %4, i32 %5) {
%7 = tail call %struct.multiply_map_offset_label* @multiply_map_offset_label_new(i32 %1, i8* %2, i64 %3, i32 %4, i32 %5)
%8 = icmp eq %struct.multiply_map_offset_label* %7, null
br i1 %8, label %11, label %9
9: ; preds = %6
%10 = tail call i32 @multiply_map_offset_label_list_append(%struct.multiply_map_offset_label_list* %0, %struct.multiply_map_offset_label* %7)
br label %11
11: ; preds = %6, %9
%12 = phi i32 [ 0, %9 ], [ -1, %6 ]
ret i32 %12
}