// File: /workspace/github_c_makefile_star2_O2/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 0x1afa7
movl %r8d, %ebp
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %r15
movl %esi, %eax
leaq 0x53c3(%rip), %rcx      # 0x202dc
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 0x1ad77
addl $0xe, %esi
movq %r15, %rdi
xorl %edx, %edx
jmp 0x1af53
addl $0x11, %esi
pushq $0x1
popq %rdx
movq %r15, %rdi
movq %r14, %rcx
movq %rbx, %r8
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1b025
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1a669
leaq 0x14(%rbx), %rsi
movl 0x14(%r14), %edx
jmp 0x1af90
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1a669
leaq 0x10(%rbx), %rsi
movl 0x10(%r14), %edx
movq %r15, %rdi
callq 0x1a0be
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 0x1a8c6
cmpl $0xb, (%rbx)
jne 0x1b012
movq (%r15), %rax
movq 0x18(%rax), %rax
movslq 0x8(%rbx), %rcx
movl (%rax,%rcx,4), %eax
andl $0x3f, %eax
cmpl $0x16, %eax
jne 0x1b012
movq %r15, %rdi
movq %r14, %rsi
callq 0x1a754
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 0x1afa7
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1a719
pushq $0x16
popq %rsi
jmp 0x1af25