#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*/ future_move_bishop(int, int, int **, char ***, int,
                                      int /*<<< orphan*/);
int /*<<< orphan*/ future_move_rook(int, int, int **, char ***);
int /*<<< orphan*/ move(int /*<<< orphan*/, int /*<<< orphan*/);
void future_move_queen(int px, int py, int fm[][2], char ***pp) {
  int k = 0;
  future_move_rook(px, py, fm, pp);
  k = fm[14][0];
  fm[14][0] = -1;
  future_move_bishop(px, py, fm, pp, k, 0);
  move(0, 0);
}


x86 assembly (clang, -O0):
<future_move_queen>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
call   1040 <future_move_rook@plt>
mov    -0x10(%rbp),%rax
mov    0x70(%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
movl   $0xffffffff,0x70(%rax)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x1c(%rbp),%r8d
xor    %r9d,%r9d
call   1030 <future_move_bishop@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1050 <move@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<future_move_queen>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rcx,%r14
mov    %rdx,%rbx
mov    %esi,%r15d
mov    %edi,%ebp
call   1040 <future_move_rook@plt>
mov    0x70(%rbx),%r8d
movl   $0xffffffff,0x70(%rbx)
mov    %ebp,%edi
mov    %r15d,%esi
mov    %rbx,%rdx
mov    %r14,%rcx
xor    %r9d,%r9d
call   1030 <future_move_bishop@plt>
xor    %edi,%edi
xor    %esi,%esi
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <move@plt>

LLVM IR (-O0):
define void @future_move_queen(i32 %0, i32 %1, [2 x i32]* %2, i8*** %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca [2 x i32]*
%8 = alloca i8***
%9 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store [2 x i32]* %2, [2 x i32]** %7
store i8*** %3, i8**** %8
store i32 0, i32* %9
%10 = load i32, i32* %5
%11 = load i32, i32* %6
%12 = load [2 x i32]*, [2 x i32]** %7
%13 = bitcast [2 x i32]* %12 to i32**
%14 = load i8***, i8**** %8
%15 = call i32 @future_move_rook(i32 %10, i32 %11, i32** %13, i8*** %14)
%16 = load [2 x i32]*, [2 x i32]** %7
%17 = getelementptr inbounds [2 x i32], [2 x i32]* %16, i64 14
%18 = getelementptr inbounds [2 x i32], [2 x i32]* %17, i64 0, i64 0
%19 = load i32, i32* %18
store i32 %19, i32* %9
%20 = load [2 x i32]*, [2 x i32]** %7
%21 = getelementptr inbounds [2 x i32], [2 x i32]* %20, i64 14
%22 = getelementptr inbounds [2 x i32], [2 x i32]* %21, i64 0, i64 0
store i32 -1, i32* %22
%23 = load i32, i32* %5
%24 = load i32, i32* %6
%25 = load [2 x i32]*, [2 x i32]** %7
%26 = bitcast [2 x i32]* %25 to i32**
%27 = load i8***, i8**** %8
%28 = load i32, i32* %9
%29 = call i32 @future_move_bishop(i32 %23, i32 %24, i32** %26, i8*** %27, i32 %28, i32 0)
%30 = call i32 @move(i32 0, i32 0)
ret void
}

LLVM IR (-O2):
define void @future_move_queen(i32 %0, i32 %1, [2 x i32]* %2, i8*** %3) {
%5 = bitcast [2 x i32]* %2 to i32**
%6 = tail call i32 @future_move_rook(i32 %0, i32 %1, i32** %5, i8*** %3)
%7 = getelementptr inbounds [2 x i32], [2 x i32]* %2, i64 14, i64 0
%8 = load i32, i32* %7
store i32 -1, i32* %7
%9 = tail call i32 @future_move_bishop(i32 %0, i32 %1, i32** %5, i8*** %3, i32 %8, i32 0)
%10 = tail call i32 @move(i32 0, i32 0)
ret void
}