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


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

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

LLVM IR (-O0):
define void @m68ki_stack_frame_1010(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_push_16(i32 0)
%8 = call i32 @m68ki_push_16(i32 0)
%9 = call i32 @m68ki_push_32(i32 0)
%10 = call i32 @m68ki_push_16(i32 0)
%11 = call i32 @m68ki_push_16(i32 0)
%12 = call i32 @m68ki_push_32(i32 0)
%13 = call i32 @m68ki_push_16(i32 0)
%14 = call i32 @m68ki_push_16(i32 0)
%15 = call i32 @m68ki_push_16(i32 0)
%16 = call i32 @m68ki_push_16(i32 0)
%17 = load i32, i32* %5
%18 = shl i32 %17, 2
%19 = or i32 40960, %18
%20 = call i32 @m68ki_push_16(i32 %19)
%21 = load i32, i32* %6
%22 = call i32 @m68ki_push_32(i32 %21)
%23 = load i32, i32* %4
%24 = call i32 @m68ki_push_16(i32 %23)
ret void
}

LLVM IR (-O2):
define void @m68ki_stack_frame_1010(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @m68ki_push_16(i32 0)
%5 = tail call i32 @m68ki_push_16(i32 0)
%6 = tail call i32 @m68ki_push_32(i32 0)
%7 = tail call i32 @m68ki_push_16(i32 0)
%8 = tail call i32 @m68ki_push_16(i32 0)
%9 = tail call i32 @m68ki_push_32(i32 0)
%10 = tail call i32 @m68ki_push_16(i32 0)
%11 = tail call i32 @m68ki_push_16(i32 0)
%12 = tail call i32 @m68ki_push_16(i32 0)
%13 = tail call i32 @m68ki_push_16(i32 0)
%14 = shl i32 %1, 2
%15 = or i32 %14, 40960
%16 = tail call i32 @m68ki_push_16(i32 %15)
%17 = tail call i32 @m68ki_push_32(i32 %2)
%18 = tail call i32 @m68ki_push_16(i32 %0)
ret void
}