#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 */
float get_arm_angle(float, float, float, float, float);
int /*<<< orphan*/ rotate_xy(float *, float, float);
float get_a_arm_agnle(float x_rotate, float y_rotate) {
  float pos[] = {-((82.f + 31.f + (4.f + 3.f)) / 1.414213562373f),
                 -((82.f + 31.f + (4.f + 3.f)) / 1.414213562373f), -103.5 + 5};
  float from[] = {-79.f - (4.f + 3.f), -54.f, 82.f};
  rotate_xy(pos, x_rotate, y_rotate);
  return get_arm_angle(pos[0] - from[0], pos[1] - from[1], pos[2] - from[2],
                       29.f, 180.5f);
}


x86 assembly (clang, -O0):
<get_a_arm_agnle>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
mov    0xecf(%rip),%rax
mov    %rax,-0x14(%rbp)
mov    0xecd(%rip),%eax
mov    %eax,-0xc(%rbp)
mov    0xec7(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xec5(%rip),%eax
mov    %eax,-0x18(%rbp)
lea    -0x14(%rbp),%rdi
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
call   1040 <rotate_xy@plt>
movss  -0x14(%rbp),%xmm0
subss  -0x20(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
subss  -0x1c(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
subss  -0x18(%rbp),%xmm2
movss  0xe6d(%rip),%xmm3
movss  0xe69(%rip),%xmm4
call   1030 <get_arm_angle@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_a_arm_agnle>:
sub    $0x18,%rsp
mov    0xef2(%rip),%eax
mov    %eax,0x10(%rsp)
mov    0xedf(%rip),%rax
mov    %rax,0x8(%rsp)
lea    0x8(%rsp),%rdi
call   1040 <rotate_xy@plt>
movss  0x8(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
addss  0xea8(%rip),%xmm0
addss  0xea4(%rip),%xmm1
movss  0x10(%rsp),%xmm2
addss  0xe9a(%rip),%xmm2
movss  0xe96(%rip),%xmm3
movss  0xe92(%rip),%xmm4
call   1030 <get_arm_angle@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
@__const.get_a_arm_agnle.pos = [3 x float] [float 0xC055369480000000, float 0xC055369480000000, float -9.850000e+01]
@__const.get_a_arm_agnle.from = [3 x float] [float -8.600000e+01, float -5.400000e+01, float 8.200000e+01]
define float @get_a_arm_agnle(float %0, float %1) {
%3 = alloca float
%4 = alloca float
%5 = alloca [3 x float]
%6 = alloca [3 x float]
store float %0, float* %3
store float %1, float* %4
%7 = bitcast [3 x float]* %5 to i8*
%8 = bitcast [3 x float]* %6 to i8*
%9 = getelementptr inbounds [3 x float], [3 x float]* %5, i64 0, i64 0
%10 = load float, float* %3
%11 = load float, float* %4
%12 = call i32 @rotate_xy(float* %9, float %10, float %11)
%13 = getelementptr inbounds [3 x float], [3 x float]* %5, i64 0, i64 0
%14 = load float, float* %13
%15 = getelementptr inbounds [3 x float], [3 x float]* %6, i64 0, i64 0
%16 = load float, float* %15
%17 = fsub float %14, %16
%18 = getelementptr inbounds [3 x float], [3 x float]* %5, i64 0, i64 1
%19 = load float, float* %18
%20 = getelementptr inbounds [3 x float], [3 x float]* %6, i64 0, i64 1
%21 = load float, float* %20
%22 = fsub float %19, %21
%23 = getelementptr inbounds [3 x float], [3 x float]* %5, i64 0, i64 2
%24 = load float, float* %23
%25 = getelementptr inbounds [3 x float], [3 x float]* %6, i64 0, i64 2
%26 = load float, float* %25
%27 = fsub float %24, %26
%28 = call float @get_arm_angle(float %17, float %22, float %27, float 2.900000e+01, float 1.805000e+02)
ret float %28
}

LLVM IR (-O2):
@__const.get_a_arm_agnle.pos = [3 x float] [float 0xC055369480000000, float 0xC055369480000000, float -9.850000e+01]
define float @get_a_arm_agnle(float %0, float %1) {
%3 = alloca [3 x float]
%4 = bitcast [3 x float]* %3 to i8*
%5 = getelementptr inbounds [3 x float], [3 x float]* %3, i64 0, i64 0
%6 = call i32 @rotate_xy(float* %5, float %0, float %1)
%7 = load float, float* %5
%8 = fadd float %7, 8.600000e+01
%9 = getelementptr inbounds [3 x float], [3 x float]* %3, i64 0, i64 1
%10 = load float, float* %9
%11 = fadd float %10, 5.400000e+01
%12 = getelementptr inbounds [3 x float], [3 x float]* %3, i64 0, i64 2
%13 = load float, float* %12
%14 = fadd float %13, -8.200000e+01
%15 = call float @get_arm_angle(float %8, float %11, float %14, float 2.900000e+01, float 1.805000e+02)
ret float %15
}