// File: /workspace/github_c_makefile_star2_O3/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lcode.c
// Function: luaK_posfix
void luaK_posfix (FuncState *fs, BinOpr op,
                  expdesc *e1, expdesc *e2, int line) {
  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.info == GETARG_B(getcode(fs, e2))-1);
        freeexp(fs, e1);
        SETARG_B(getcode(fs, e2), e1->u.info);
        e1->k = VRELOCABLE; e1->u.info = e2->u.info;
      }
      else {
        luaK_exp2nextreg(fs, e2);  /* operand must be on the 'stack' */
        codearith(fs, OP_CONCAT, e1, e2, line);
      }
      break;
    }
    case OPR_ADD: case OPR_SUB: case OPR_MUL: case OPR_DIV:
    case OPR_MOD: case OPR_POW: {
      codearith(fs, cast(OpCode, op - OPR_ADD + OP_ADD), e1, e2, line);
      break;
    }
    case OPR_EQ: case OPR_LT: case OPR_LE: {
      codecomp(fs, cast(OpCode, op - OPR_EQ + OP_EQ), 1, e1, e2);
      break;
    }
    case OPR_NE: case OPR_GT: case OPR_GE: {
      codecomp(fs, cast(OpCode, op - OPR_NE + OP_EQ), 0, e1, e2);
      break;
    }
    default: lua_assert(0);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpl $0xe, %esi
ja 0x1d03f
movl %r8d, %ebp
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %r15
movl %esi, %eax
leaq 0x533d(%rip), %rcx      # 0x222ec
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
addl $0xd, %esi
movq %r15, %rdi
movq %r14, %rdx
movq %rbx, %rcx
movl %ebp, %r8d
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1cdee
addl $0xe, %esi
movq %r15, %rdi
xorl %edx, %edx
jmp 0x1cfeb
addl $0x11, %esi
movq %r15, %rdi
movl $0x1, %edx
movq %r14, %rcx
movq %rbx, %r8
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1d0d0
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1c590
leaq 0x14(%rbx), %rsi
movl 0x14(%r14), %edx
jmp 0x1d028
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1c590
leaq 0x10(%rbx), %rsi
movl 0x10(%r14), %edx
movq %r15, %rdi
callq 0x1bed3
movq 0x10(%rbx), %rax
movq %rax, 0x10(%r14)
movups (%rbx), %xmm0
movups %xmm0, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1c809
cmpl $0xb, (%rbx)
jne 0x1d0b8
movq (%r15), %rax
movq 0x18(%rax), %rax
movslq 0x8(%rbx), %rcx
movl (%rax,%rcx,4), %edx
movl %edx, %esi
andl $0x3f, %esi
cmpl $0x16, %esi
jne 0x1d0b8
cmpl $0x6, (%r14)
jne 0x1d096
movl 0x8(%r14), %esi
btl $0x8, %esi
jb 0x1d096
movzbl 0x42(%r15), %edi
cmpl %edi, %esi
jl 0x1d096
decb 0x44(%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 0x1d03f
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1c61c
movq %r15, %rdi
movl $0x16, %esi
jmp 0x1cfbe