#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 */

/* Variables and functions */
char *_s2_f2cstr(char *, long);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ s2lab(char *, char *, char *, char *);
void s2lab_(char *xlab, char *ylab, char *zlab, char *title, long int xlablen,
            long int ylablen, long int zlablen, long int titlen) {
  char *cxlab = _s2_f2cstr(xlab, xlablen);
  char *cylab = _s2_f2cstr(ylab, ylablen);
  char *czlab = _s2_f2cstr(zlab, zlablen);
  char *ctitl = _s2_f2cstr(title, titlen);
  s2lab(cxlab, cylab, czlab, ctitl);
  free(ctitl);
  free(czlab);
  free(cylab);
  free(cxlab);
}


x86 assembly (clang, -O0):
<s2lab_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1050 <_s2_f2cstr@plt>
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1050 <_s2_f2cstr@plt>
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rdi
mov    0x10(%rbp),%rsi
call   1050 <_s2_f2cstr@plt>
mov    %rax,-0x48(%rbp)
mov    -0x20(%rbp),%rdi
mov    0x18(%rbp),%rsi
call   1050 <_s2_f2cstr@plt>
mov    %rax,-0x50(%rbp)
mov    -0x38(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    -0x48(%rbp),%rdx
mov    -0x50(%rbp),%rcx
call   1040 <s2lab@plt>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<s2lab_>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9,%r13
mov    %rcx,0x10(%rsp)
mov    %rdx,%r12
mov    %rsi,%rbx
mov    0x58(%rsp),%rax
mov    %rax,0x8(%rsp)
mov    0x50(%rsp),%r15
mov    %r8,%rsi
call   1050 <_s2_f2cstr@plt>
mov    %rax,%r14
mov    %rbx,%rdi
mov    %r13,%rsi
call   1050 <_s2_f2cstr@plt>
mov    %rax,%r13
mov    %r12,%rdi
mov    %r15,%rsi
call   1050 <_s2_f2cstr@plt>
mov    %rax,%rbp
mov    0x10(%rsp),%rdi
mov    0x8(%rsp),%rsi
call   1050 <_s2_f2cstr@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
mov    %rax,%rcx
call   1040 <s2lab@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @s2lab_(i8* %0, i8* %1, i8* %2, i8* %3, i64 %4, i64 %5, i64 %6, i64 %7) {
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i64
%14 = alloca i64
%15 = alloca i64
%16 = alloca i64
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca i8*
%20 = alloca i8*
store i8* %0, i8** %9
store i8* %1, i8** %10
store i8* %2, i8** %11
store i8* %3, i8** %12
store i64 %4, i64* %13
store i64 %5, i64* %14
store i64 %6, i64* %15
store i64 %7, i64* %16
%21 = load i8*, i8** %9
%22 = load i64, i64* %13
%23 = call i8* @_s2_f2cstr(i8* %21, i64 %22)
store i8* %23, i8** %17
%24 = load i8*, i8** %10
%25 = load i64, i64* %14
%26 = call i8* @_s2_f2cstr(i8* %24, i64 %25)
store i8* %26, i8** %18
%27 = load i8*, i8** %11
%28 = load i64, i64* %15
%29 = call i8* @_s2_f2cstr(i8* %27, i64 %28)
store i8* %29, i8** %19
%30 = load i8*, i8** %12
%31 = load i64, i64* %16
%32 = call i8* @_s2_f2cstr(i8* %30, i64 %31)
store i8* %32, i8** %20
%33 = load i8*, i8** %17
%34 = load i8*, i8** %18
%35 = load i8*, i8** %19
%36 = load i8*, i8** %20
%37 = call i32 @s2lab(i8* %33, i8* %34, i8* %35, i8* %36)
%38 = load i8*, i8** %20
%39 = call i32 @free(i8* %38)
%40 = load i8*, i8** %19
%41 = call i32 @free(i8* %40)
%42 = load i8*, i8** %18
%43 = call i32 @free(i8* %42)
%44 = load i8*, i8** %17
%45 = call i32 @free(i8* %44)
ret void
}

LLVM IR (-O2):
define void @s2lab_(i8* %0, i8* %1, i8* %2, i8* %3, i64 %4, i64 %5, i64 %6, i64 %7) {
%9 = tail call i8* @_s2_f2cstr(i8* %0, i64 %4)
%10 = tail call i8* @_s2_f2cstr(i8* %1, i64 %5)
%11 = tail call i8* @_s2_f2cstr(i8* %2, i64 %6)
%12 = tail call i8* @_s2_f2cstr(i8* %3, i64 %7)
%13 = tail call i32 @s2lab(i8* %9, i8* %10, i8* %11, i8* %12)
%14 = tail call i32 @free(i8* %12)
%15 = tail call i32 @free(i8* %11)
%16 = tail call i32 @free(i8* %10)
%17 = tail call i32 @free(i8* %9)
ret void
}