// File: /workspace/github_c_makefile_star2_O2/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 0x111ad
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %r15
movl %esi, %eax
leaq 0x8fbd(%rip), %rcx      # 0x1a0dc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
pushq $0xc
jmp 0x1123a
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1087e
leaq 0x10(%rbx), %rsi
movl 0x10(%r14), %edx
jmp 0x11196
pushq $0x18
jmp 0x1116a
pushq $0x10
jmp 0x1123a
pushq $0x19
jmp 0x1116a
pushq $0x18
jmp 0x11219
pushq $0xe
jmp 0x1123a
pushq $0xf
jmp 0x1123a
pushq $0x17
popq %rsi
movq %r15, %rdi
xorl %edx, %edx
jmp 0x11220
pushq $0xd
jmp 0x1123a
pushq $0x11
jmp 0x1123a
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1087e
leaq 0x14(%rbx), %rsi
movl 0x14(%r14), %edx
movq %r15, %rdi
callq 0x104d6
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 0x10ac5
cmpl $0xb, (%rbx)
jne 0x1122d
movq (%r15), %rax
movq 0x18(%rax), %rax
movslq 0x8(%rbx), %rcx
movl (%rax,%rcx,4), %eax
andl $0x3f, %eax
cmpl $0x15, %eax
jne 0x1122d
movq %r15, %rdi
movq %r14, %rsi
callq 0x10969
movq (%r15), %rax
movq 0x18(%rax), %rax
movslq 0x8(%rbx), %rcx
movl $0x7fffff, %edx         # imm = 0x7FFFFF
andl (%rax,%rcx,4), %edx
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 0x111ad
pushq $0x19
jmp 0x11219
pushq $0x17
popq %rsi
pushq $0x1
popq %rdx
movq %r15, %rdi
movq %r14, %rcx
movq %rbx, %r8
popq %rbx
popq %r14
popq %r15
jmp 0x1124e
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1092f
pushq $0x15
popq %rsi
movq %r15, %rdi
movq %r14, %rdx
movq %rbx, %rcx
popq %rbx
popq %r14
popq %r15
jmp 0x10ef0