__attribute__((no)) long int syscall_1(long int syscall_no, long int arg1) {
  long int ret = syscall_1_asm(syscall_no, arg1);
  if ((ret) < 0) {
    libc_fatal(
        "Syscall",
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/qdk0901/iotjs-openwrt/refs/heads/master/"
        "deps/jerry/jerry-libc/target/linux/jerry-libc-target.c",
        __func__, 81);
  };
  return ret;
}


x86 assembly (clang, -O0):
<syscall_1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <syscall_1_asm@plt>
cltq
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jge    1171 <syscall_1+0x51>
lea    0xea9(%rip),%rdi
lea    0xeaa(%rip),%rsi
lea    0xf5c(%rip),%rdx
mov    $0x51,%ecx
mov    $0x0,%al
call   1030 <libc_fatal@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<syscall_1>:
push   %rbx
xor    %eax,%eax
call   1040 <syscall_1_asm@plt>
mov    %eax,%ebx
test   %eax,%eax
jns    114f <syscall_1+0x2f>
lea    0xecb(%rip),%rdi
lea    0xecc(%rip),%rsi
lea    0xf7e(%rip),%rdx
mov    $0x51,%ecx
xor    %eax,%eax
call   1030 <libc_fatal@plt>
movslq %ebx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"Syscall\00"
@.str.1 = [185 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/qdk0901/iotjs-openwrt/refs/heads/master/deps/jerry/jerry-libc/target/linux/jerry-libc-target.c\00"
@__func__.syscall_1 = [10 x i8] c"syscall_1\00"
define i64 @syscall_1(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%6 = load i64, i64* %3
%7 = load i64, i64* %4
%8 = call i32 (i64, i64, ...) bitcast (i32 (...)* @syscall_1_asm to i32 (i64, i64, ...)*)(i64 %6, i64 %7)
%9 = sext i32 %8 to i64
store i64 %9, i64* %5
%10 = load i64, i64* %5
%11 = icmp slt i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @libc_fatal to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([185 x i8], [185 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @__func__.syscall_1, i64 0, i64 0), i32 81)
br label %14
14: ; preds = %12, %2
%15 = load i64, i64* %5
ret i64 %15
}

LLVM IR (-O2):
@.str = [8 x i8] c"Syscall\00"
@.str.1 = [185 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/qdk0901/iotjs-openwrt/refs/heads/master/deps/jerry/jerry-libc/target/linux/jerry-libc-target.c\00"
@__func__.syscall_1 = [10 x i8] c"syscall_1\00"
define i64 @syscall_1(i64 %0, i64 %1) {
%3 = tail call i32 (i64, i64, ...) bitcast (i32 (...)* @syscall_1_asm to i32 (i64, i64, ...)*)(i64 %0, i64 %1)
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @libc_fatal to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([185 x i8], [185 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @__func__.syscall_1, i64 0, i64 0), i32 81)
br label %7
7: ; preds = %5, %2
%8 = sext i32 %3 to i64
ret i64 %8
}