// File: /workspace/github_c_makefile_star2_O0/gplessis[P]dotdeb-redis/deps/lua/src/lvm.c
// Function: Arith
static void Arith (lua_State *L, StkId ra, const TValue *rb,
                   const TValue *rc, TMS op) {
  TValue tempb, tempc;
  const TValue *b, *c;
  if ((b = luaV_tonumber(rb, &tempb)) != NULL &&
      (c = luaV_tonumber(rc, &tempc)) != NULL) {
    lua_Number nb = nvalue(b), nc = nvalue(c);
    switch (op) {
      case TM_ADD: setnvalue(ra, luai_numadd(nb, nc)); break;
      case TM_SUB: setnvalue(ra, luai_numsub(nb, nc)); break;
      case TM_MUL: setnvalue(ra, luai_nummul(nb, nc)); break;
      case TM_DIV: setnvalue(ra, luai_numdiv(nb, nc)); break;
      case TM_MOD: setnvalue(ra, luai_nummod(nb, nc)); break;
      case TM_POW: setnvalue(ra, luai_numpow(nb, nc)); break;
      case TM_UNM: setnvalue(ra, luai_numunm(nb)); break;
      default: lua_assert(0); break;
    }
  }
  else if (!call_binTM(L, rb, rc, ra, op))
    luaG_aritherror(L, rb, rc);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq -0x18(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x16730
movq %rax, -0x50(%rbp)
cmpq $0x0, %rax
je 0x1a378
movq -0x20(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x16730
movq %rax, -0x58(%rbp)
cmpq $0x0, %rax
je 0x1a378
movq -0x50(%rbp), %rax
movsd (%rax), %xmm0
movsd %xmm0, -0x60(%rbp)
movq -0x58(%rbp), %rax
movsd (%rax), %xmm0
movsd %xmm0, -0x68(%rbp)
movl -0x24(%rbp), %eax
addl $-0x5, %eax
movl %eax, %ecx
movq %rcx, -0xa8(%rbp)
subl $0x6, %eax
ja 0x1a374
movq -0xa8(%rbp), %rax
leaq 0x11c8b(%rip), %rcx     # 0x2be60
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x10(%rbp), %rax
movq %rax, -0x70(%rbp)
movsd -0x60(%rbp), %xmm0
addsd -0x68(%rbp), %xmm0
movq -0x70(%rbp), %rax
movsd %xmm0, (%rax)
movq -0x70(%rbp), %rax
movl $0x3, 0x8(%rax)
jmp 0x1a376
movq -0x10(%rbp), %rax
movq %rax, -0x78(%rbp)
movsd -0x60(%rbp), %xmm0
subsd -0x68(%rbp), %xmm0
movq -0x78(%rbp), %rax
movsd %xmm0, (%rax)
movq -0x78(%rbp), %rax
movl $0x3, 0x8(%rax)
jmp 0x1a376
movq -0x10(%rbp), %rax
movq %rax, -0x80(%rbp)
movsd -0x60(%rbp), %xmm0
mulsd -0x68(%rbp), %xmm0
movq -0x80(%rbp), %rax
movsd %xmm0, (%rax)
movq -0x80(%rbp), %rax
movl $0x3, 0x8(%rax)
jmp 0x1a376
movq -0x10(%rbp), %rax
movq %rax, -0x88(%rbp)
movsd -0x60(%rbp), %xmm0
divsd -0x68(%rbp), %xmm0
movq -0x88(%rbp), %rax
movsd %xmm0, (%rax)
movq -0x88(%rbp), %rax
movl $0x3, 0x8(%rax)
jmp 0x1a376
movq -0x10(%rbp), %rax
movq %rax, -0x90(%rbp)
movsd -0x60(%rbp), %xmm0
movsd %xmm0, -0xb0(%rbp)
movsd -0x60(%rbp), %xmm0
divsd -0x68(%rbp), %xmm0
callq 0x5480
movsd -0xb0(%rbp), %xmm1
movsd -0x68(%rbp), %xmm2
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -0x90(%rbp), %rax
movsd %xmm0, (%rax)
movq -0x90(%rbp), %rax
movl $0x3, 0x8(%rax)
jmp 0x1a376
movq -0x10(%rbp), %rax
movq %rax, -0x98(%rbp)
movsd -0x60(%rbp), %xmm0
movsd -0x68(%rbp), %xmm1
callq 0x5120
movq -0x98(%rbp), %rax
movsd %xmm0, (%rax)
movq -0x98(%rbp), %rax
movl $0x3, 0x8(%rax)
jmp 0x1a376
movq -0x10(%rbp), %rax
movq %rax, -0xa0(%rbp)
movsd -0x60(%rbp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movq -0xa0(%rbp), %rax
movsd %xmm0, (%rax)
movq -0xa0(%rbp), %rax
movl $0x3, 0x8(%rax)
jmp 0x1a376
jmp 0x1a376
jmp 0x1a3a9
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x10(%rbp), %rcx
movl -0x24(%rbp), %r8d
callq 0x17750
cmpl $0x0, %eax
jne 0x1a3a7
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0xa520
jmp 0x1a3a9
addq $0xb0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)