// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/deps/lua/src/lcode.c
// Function: luaK_posfix
void luaK_posfix (FuncState *fs, BinOpr op, expdesc *e1, expdesc *e2) {
  switch (op) {
    case OPR_AND: {
      lua_assert(e1->t == NO_JUMP);  /* list must be closed */
      luaK_dischargevars(fs, e2);
      luaK_concat(fs, &e2->f, e1->f);
      *e1 = *e2;
      break;
    }
    case OPR_OR: {
      lua_assert(e1->f == NO_JUMP);  /* list must be closed */
      luaK_dischargevars(fs, e2);
      luaK_concat(fs, &e2->t, e1->t);
      *e1 = *e2;
      break;
    }
    case OPR_CONCAT: {
      luaK_exp2val(fs, e2);
      if (e2->k == VRELOCABLE && GET_OPCODE(getcode(fs, e2)) == OP_CONCAT) {
        lua_assert(e1->u.s.info == GETARG_B(getcode(fs, e2))-1);
        freeexp(fs, e1);
        SETARG_B(getcode(fs, e2), e1->u.s.info);
        e1->k = VRELOCABLE; e1->u.s.info = e2->u.s.info;
      }
      else {
        luaK_exp2nextreg(fs, e2);  /* operand must be on the 'stack' */
        codearith(fs, OP_CONCAT, e1, e2);
      }
      break;
    }
    case OPR_ADD: codearith(fs, OP_ADD, e1, e2); break;
    case OPR_SUB: codearith(fs, OP_SUB, e1, e2); break;
    case OPR_MUL: codearith(fs, OP_MUL, e1, e2); break;
    case OPR_DIV: codearith(fs, OP_DIV, e1, e2); break;
    case OPR_MOD: codearith(fs, OP_MOD, e1, e2); break;
    case OPR_POW: codearith(fs, OP_POW, e1, e2); break;
    case OPR_EQ: codecomp(fs, OP_EQ, 1, e1, e2); break;
    case OPR_NE: codecomp(fs, OP_EQ, 0, e1, e2); break;
    case OPR_LT: codecomp(fs, OP_LT, 1, e1, e2); break;
    case OPR_LE: codecomp(fs, OP_LE, 1, e1, e2); break;
    case OPR_GT: codecomp(fs, OP_LT, 0, e1, e2); break;
    case OPR_GE: codecomp(fs, OP_LE, 0, e1, e2); break;
    default: lua_assert(0);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
cmpl $0xe, %esi
ja 0x12a0b
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %r15
movl %esi, %eax
leaq 0x97da(%rip), %rcx      # 0x1c11c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r15, %rdi
movl $0xc, %esi
jmp 0x12aba
movq %r15, %rdi
movq %rbx, %rsi
callq 0x11eb8
leaq 0x10(%rbx), %rsi
movl 0x10(%r14), %edx
jmp 0x129f4
movq %r15, %rdi
movl $0x18, %esi
jmp 0x129c0
movq %r15, %rdi
movl $0x10, %esi
jmp 0x12aba
movq %r15, %rdi
movl $0x19, %esi
jmp 0x129c0
movq %r15, %rdi
movl $0x18, %esi
jmp 0x12a95
movq %r15, %rdi
movl $0xe, %esi
jmp 0x12aba
movq %r15, %rdi
movl $0xf, %esi
jmp 0x12aba
movq %r15, %rdi
movl $0x17, %esi
xorl %edx, %edx
jmp 0x12a9a
movq %r15, %rdi
movl $0xd, %esi
jmp 0x12aba
movq %r15, %rdi
movl $0x11, %esi
jmp 0x12aba
movq %r15, %rdi
movq %rbx, %rsi
callq 0x11eb8
leaq 0x14(%rbx), %rsi
movl 0x14(%r14), %edx
movq %r15, %rdi
callq 0x119fe
movq 0x10(%rbx), %rax
movq %rax, 0x10(%r14)
movups (%rbx), %xmm0
movups %xmm0, (%r14)
popq %rbx
popq %r14
popq %r15
retq
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1212d
cmpl $0xb, (%rbx)
jne 0x12aa7
movq (%r15), %rax
movq 0x18(%rax), %rax
movslq 0x8(%rbx), %rcx
movl (%rax,%rcx,4), %edx
movl %edx, %esi
andl $0x3f, %esi
cmpl $0x15, %esi
jne 0x12aa7
cmpl $0xc, (%r14)
jne 0x12a61
movl 0x8(%r14), %esi
btl $0x8, %esi
jb 0x12a61
movzbl 0x4a(%r15), %edi
cmpl %edi, %esi
jl 0x12a61
decl 0x3c(%r15)
movslq 0x8(%rbx), %rcx
movl (%rax,%rcx,4), %edx
andl $0x7fffff, %edx         # imm = 0x7FFFFF
movl 0x8(%r14), %esi
shll $0x17, %esi
orl %edx, %esi
movl %esi, (%rax,%rcx,4)
movl $0xb, (%r14)
movl 0x8(%rbx), %eax
movl %eax, 0x8(%r14)
jmp 0x12a0b
movq %r15, %rdi
movl $0x19, %esi
jmp 0x12a95
movq %r15, %rdi
movl $0x17, %esi
movl $0x1, %edx
movq %r14, %rcx
movq %rbx, %r8
popq %rbx
popq %r14
popq %r15
jmp 0x12aca
movq %r15, %rdi
movq %rbx, %rsi
callq 0x11f51
movq %r15, %rdi
movl $0x15, %esi
movq %r14, %rdx
movq %rbx, %rcx
popq %rbx
popq %r14
popq %r15
jmp 0x1268f