#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 */
int /*<<< orphan*/ getAlphabeticXY(int, int, int, char *);
int getNumericX(char, int);
int getNumericY(char, int);
int /*<<< orphan*/ transformXY(int *, int *, int);
int transformMove(char *move, int boardSize, int transformations,
                  char *letters) {
  int x = getNumericX(move[0], boardSize);
  int y = getNumericY(move[1], boardSize);
  transformXY(&x, &y, transformations);
  getAlphabeticXY(x, y, boardSize, letters);
}


x86 assembly (clang, -O0):
<transformMove>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%al
mov    -0x14(%rbp),%esi
movsbl %al,%edi
call   1050 <getNumericX@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    0x1(%rax),%al
mov    -0x14(%rbp),%esi
movsbl %al,%edi
call   1030 <getNumericY@plt>
mov    %eax,-0x28(%rbp)
mov    -0x18(%rbp),%edx
lea    -0x24(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1040 <transformXY@plt>
mov    -0x24(%rbp),%edi
mov    -0x28(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%rcx
call   1060 <getAlphabeticXY@plt>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<transformMove>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rcx,%r14
mov    %edx,%r15d
mov    %esi,%ebp
mov    %rdi,%rbx
movsbl (%rdi),%edi
call   1050 <getNumericX@plt>
mov    %eax,0x4(%rsp)
movsbl 0x1(%rbx),%edi
mov    %ebp,%esi
call   1030 <getNumericY@plt>
mov    %eax,(%rsp)
lea    0x4(%rsp),%rdi
mov    %rsp,%rsi
mov    %r15d,%edx
call   1040 <transformXY@plt>
mov    0x4(%rsp),%edi
mov    (%rsp),%esi
mov    %ebp,%edx
mov    %r14,%rcx
call   1060 <getAlphabeticXY@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @transformMove(i8* %0, i32 %1, i32 %2, i8* %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i32
%11 = alloca i32
store i8* %0, i8** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i8* %3, i8** %9
%12 = load i8*, i8** %6
%13 = getelementptr inbounds i8, i8* %12, i64 0
%14 = load i8, i8* %13
%15 = load i32, i32* %7
%16 = call i32 @getNumericX(i8 signext %14, i32 %15)
store i32 %16, i32* %10
%17 = load i8*, i8** %6
%18 = getelementptr inbounds i8, i8* %17, i64 1
%19 = load i8, i8* %18
%20 = load i32, i32* %7
%21 = call i32 @getNumericY(i8 signext %19, i32 %20)
store i32 %21, i32* %11
%22 = load i32, i32* %8
%23 = call i32 @transformXY(i32* %10, i32* %11, i32 %22)
%24 = load i32, i32* %10
%25 = load i32, i32* %11
%26 = load i32, i32* %7
%27 = load i8*, i8** %9
%28 = call i32 @getAlphabeticXY(i32 %24, i32 %25, i32 %26, i8* %27)
%29 = load i32, i32* %5
ret i32 %29
}

LLVM IR (-O2):
define i32 @transformMove(i8* nocapture %0, i32 %1, i32 %2, i8* %3) {
%5 = alloca i32
%6 = alloca i32
%7 = bitcast i32* %5 to i8*
%8 = load i8, i8* %0
%9 = tail call i32 @getNumericX(i8 signext %8, i32 %1)
store i32 %9, i32* %5
%10 = bitcast i32* %6 to i8*
%11 = getelementptr inbounds i8, i8* %0, i64 1
%12 = load i8, i8* %11
%13 = tail call i32 @getNumericY(i8 signext %12, i32 %1)
store i32 %13, i32* %6
%14 = call i32 @transformXY(i32* %5, i32* %6, i32 %2)
%15 = load i32, i32* %5
%16 = load i32, i32* %6
%17 = call i32 @getAlphabeticXY(i32 %15, i32 %16, i32 %1, i8* %3)
ret i32 undef
}