#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*/ ds2tb(float, float, float, float, float, char *, int);
int /*<<< orphan*/ free(char *);
void ds2tb_(float *x, float *y, float *z, float *x_off, float *y_off,
            char *text, int scaletext, long int textlen) {
  char *ttex = _s2_f2cstr(text, textlen);
  ds2tb(*x, *y, *z, *x_off, *y_off, ttex, scaletext);
  free(ttex);
}


x86 assembly (clang, -O0):
<ds2tb_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%eax
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    -0x30(%rbp),%rdi
mov    0x18(%rbp),%rsi
call   1050 <_s2_f2cstr@plt>
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm1
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm2
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm3
mov    -0x28(%rbp),%rax
movss  (%rax),%xmm4
mov    -0x38(%rbp),%rdi
mov    0x10(%rbp),%esi
call   1040 <ds2tb@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ds2tb_>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r8,%r14
mov    %rcx,%r15
mov    %rdx,%r12
mov    %rsi,%r13
mov    %rdi,%rbx
mov    0x40(%rsp),%eax
mov    %eax,0x4(%rsp)
mov    0x48(%rsp),%rsi
mov    %r9,%rdi
call   1050 <_s2_f2cstr@plt>
mov    %rax,%rbp
movss  (%rbx),%xmm0
movss  0x0(%r13),%xmm1
movss  (%r12),%xmm2
movss  (%r15),%xmm3
movss  (%r14),%xmm4
mov    %rax,%rdi
mov    0x4(%rsp),%esi
call   1040 <ds2tb@plt>
mov    %rbp,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>

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

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