#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*/ m68ki_fake_push_16();
int /*<<< orphan*/ m68ki_fake_push_32();
int /*<<< orphan*/ m68ki_push_16(unsigned int);
int /*<<< orphan*/ m68ki_push_32(unsigned int);
void m68ki_stack_frame_1000(unsigned int pc, unsigned int sr,
                            unsigned int vector) {
  m68ki_fake_push_32();
  m68ki_fake_push_32();
  m68ki_fake_push_32();
  m68ki_fake_push_32();
  m68ki_fake_push_32();
  m68ki_fake_push_32();
  m68ki_fake_push_32();
  m68ki_fake_push_32();
  m68ki_push_16(0);
  m68ki_fake_push_16();
  m68ki_push_16(0);
  m68ki_fake_push_16();
  m68ki_push_16(0);
  m68ki_fake_push_16();
  m68ki_push_32(0);
  m68ki_push_16(0);
  m68ki_push_16(0x8000 | (vector << 2));
  m68ki_push_32(pc);
  m68ki_push_16(sr);
}


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    $0x0,%al
call   1030 <m68ki_fake_push_32@plt>
mov    $0x0,%al
call   1030 <m68ki_fake_push_32@plt>
mov    $0x0,%al
call   1030 <m68ki_fake_push_32@plt>
mov    $0x0,%al
call   1030 <m68ki_fake_push_32@plt>
mov    $0x0,%al
call   1030 <m68ki_fake_push_32@plt>
mov    $0x0,%al
call   1030 <m68ki_fake_push_32@plt>
mov    $0x0,%al
call   1030 <m68ki_fake_push_32@plt>
mov    $0x0,%al
call   1030 <m68ki_fake_push_32@plt>
xor    %edi,%edi
call   1060 <m68ki_push_16@plt>
mov    $0x0,%al
call   1040 <m68ki_fake_push_16@plt>
xor    %edi,%edi
call   1060 <m68ki_push_16@plt>
mov    $0x0,%al
call   1040 <m68ki_fake_push_16@plt>
xor    %edi,%edi
call   1060 <m68ki_push_16@plt>
mov    $0x0,%al
call   1040 <m68ki_fake_push_16@plt>
xor    %edi,%edi
call   1050 <m68ki_push_32@plt>
xor    %edi,%edi
call   1060 <m68ki_push_16@plt>
mov    -0xc(%rbp),%edi
shl    $0x2,%edi
or     $0x8000,%edi
call   1060 <m68ki_push_16@plt>
mov    -0x4(%rbp),%edi
call   1050 <m68ki_push_32@plt>
mov    -0x8(%rbp),%edi
call   1060 <m68ki_push_16@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
push   %rbp
push   %r14
push   %rbx
mov    %edx,%ebx
mov    %esi,%r14d
mov    %edi,%ebp
xor    %eax,%eax
call   1030 <m68ki_fake_push_32@plt>
xor    %eax,%eax
call   1030 <m68ki_fake_push_32@plt>
xor    %eax,%eax
call   1030 <m68ki_fake_push_32@plt>
xor    %eax,%eax
call   1030 <m68ki_fake_push_32@plt>
xor    %eax,%eax
call   1030 <m68ki_fake_push_32@plt>
xor    %eax,%eax
call   1030 <m68ki_fake_push_32@plt>
xor    %eax,%eax
call   1030 <m68ki_fake_push_32@plt>
xor    %eax,%eax
call   1030 <m68ki_fake_push_32@plt>
xor    %edi,%edi
call   1060 <m68ki_push_16@plt>
xor    %eax,%eax
call   1040 <m68ki_fake_push_16@plt>
xor    %edi,%edi
call   1060 <m68ki_push_16@plt>
xor    %eax,%eax
call   1040 <m68ki_fake_push_16@plt>
xor    %edi,%edi
call   1060 <m68ki_push_16@plt>
xor    %eax,%eax
call   1040 <m68ki_fake_push_16@plt>
xor    %edi,%edi
call   1050 <m68ki_push_32@plt>
xor    %edi,%edi
call   1060 <m68ki_push_16@plt>
shl    $0x2,%ebx
or     $0x8000,%ebx
mov    %ebx,%edi
call   1060 <m68ki_push_16@plt>
mov    %ebp,%edi
call   1050 <m68ki_push_32@plt>
mov    %r14d,%edi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1060 <m68ki_push_16@plt>

LLVM IR (-O0):
define void @m68ki_stack_frame_1000(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = call i32 (...) @m68ki_fake_push_32()
%8 = call i32 (...) @m68ki_fake_push_32()
%9 = call i32 (...) @m68ki_fake_push_32()
%10 = call i32 (...) @m68ki_fake_push_32()
%11 = call i32 (...) @m68ki_fake_push_32()
%12 = call i32 (...) @m68ki_fake_push_32()
%13 = call i32 (...) @m68ki_fake_push_32()
%14 = call i32 (...) @m68ki_fake_push_32()
%15 = call i32 @m68ki_push_16(i32 0)
%16 = call i32 (...) @m68ki_fake_push_16()
%17 = call i32 @m68ki_push_16(i32 0)
%18 = call i32 (...) @m68ki_fake_push_16()
%19 = call i32 @m68ki_push_16(i32 0)
%20 = call i32 (...) @m68ki_fake_push_16()
%21 = call i32 @m68ki_push_32(i32 0)
%22 = call i32 @m68ki_push_16(i32 0)
%23 = load i32, i32* %6
%24 = shl i32 %23, 2
%25 = or i32 32768, %24
%26 = call i32 @m68ki_push_16(i32 %25)
%27 = load i32, i32* %4
%28 = call i32 @m68ki_push_32(i32 %27)
%29 = load i32, i32* %5
%30 = call i32 @m68ki_push_16(i32 %29)
ret void
}

LLVM IR (-O2):
define void @m68ki_stack_frame_1000(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 (...) @m68ki_fake_push_32()
%5 = tail call i32 (...) @m68ki_fake_push_32()
%6 = tail call i32 (...) @m68ki_fake_push_32()
%7 = tail call i32 (...) @m68ki_fake_push_32()
%8 = tail call i32 (...) @m68ki_fake_push_32()
%9 = tail call i32 (...) @m68ki_fake_push_32()
%10 = tail call i32 (...) @m68ki_fake_push_32()
%11 = tail call i32 (...) @m68ki_fake_push_32()
%12 = tail call i32 @m68ki_push_16(i32 0)
%13 = tail call i32 (...) @m68ki_fake_push_16()
%14 = tail call i32 @m68ki_push_16(i32 0)
%15 = tail call i32 (...) @m68ki_fake_push_16()
%16 = tail call i32 @m68ki_push_16(i32 0)
%17 = tail call i32 (...) @m68ki_fake_push_16()
%18 = tail call i32 @m68ki_push_32(i32 0)
%19 = tail call i32 @m68ki_push_16(i32 0)
%20 = shl i32 %2, 2
%21 = or i32 %20, 32768
%22 = tail call i32 @m68ki_push_16(i32 %21)
%23 = tail call i32 @m68ki_push_32(i32 %0)
%24 = tail call i32 @m68ki_push_16(i32 %1)
ret void
}