// File: /workspace/github_c_makefile_star2_O1/nilyang[P]redis-tdd-annotation/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 0x7a937
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %r15
movl %esi, %eax
leaq 0x28162(%rip), %rcx     # 0xa29d0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r15, %rdi
movl $0xc, %esi
jmp 0x7a9df
movq %r15, %rdi
movq %rbx, %rsi
callq 0x79dc8
leaq 0x10(%rbx), %rsi
movl 0x10(%r14), %edx
jmp 0x7a920
movq %r15, %rdi
movl $0x18, %esi
jmp 0x7a8ec
movq %r15, %rdi
movl $0x10, %esi
jmp 0x7a9df
movq %r15, %rdi
movl $0x19, %esi
jmp 0x7a8ec
movq %r15, %rdi
movl $0x18, %esi
jmp 0x7a9ba
movq %r15, %rdi
movl $0xe, %esi
jmp 0x7a9df
movq %r15, %rdi
movl $0xf, %esi
jmp 0x7a9df
movq %r15, %rdi
movl $0x17, %esi
xorl %edx, %edx
jmp 0x7a9bf
movq %r15, %rdi
movl $0xd, %esi
jmp 0x7a9df
movq %r15, %rdi
movl $0x11, %esi
jmp 0x7a9df
movq %r15, %rdi
movq %rbx, %rsi
callq 0x79dc8
leaq 0x14(%rbx), %rsi
movl 0x14(%r14), %edx
movq %r15, %rdi
callq 0x799ea
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 0x7a039
cmpl $0xb, (%rbx)
jne 0x7a9cc
movq (%r15), %rax
movq 0x18(%rax), %rax
movslq 0x8(%rbx), %rcx
movl (%rax,%rcx,4), %ecx
andl $0x3f, %ecx
cmpl $0x15, %ecx
jne 0x7a9cc
cmpl $0xc, (%r14)
jne 0x7a980
movl 0x8(%r14), %ecx
btl $0x8, %ecx
jb 0x7a980
movzbl 0x4a(%r15), %edx
cmpl %edx, %ecx
jl 0x7a980
decl 0x3c(%r15)
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 0x7a937
movq %r15, %rdi
movl $0x19, %esi
jmp 0x7a9ba
movq %r15, %rdi
movl $0x17, %esi
movl $0x1, %edx
movq %r14, %rcx
movq %rbx, %r8
popq %rbx
popq %r14
popq %r15
jmp 0x7a9ef
movq %r15, %rdi
movq %rbx, %rsi
callq 0x79e61
movq %r15, %rdi
movl $0x15, %esi
movq %r14, %rdx
movq %rbx, %rcx
popq %rbx
popq %r14
popq %r15
jmp 0x7a5bb