// File: /workspace/github_c_makefile_star2_O0/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: Arith
static void Arith(lua_State*L,StkId ra,const TValue*rb,
const TValue*rc,TMS op){
TValue tempb,tempc;
const TValue*b,*c;
if((b=luaV_tonumber(rb,&tempb))!=NULL&&
(c=luaV_tonumber(rc,&tempc))!=NULL){
lua_Number nb=nvalue(b),nc=nvalue(c);
switch(op){
case TM_ADD:setnvalue(ra,luai_numadd(nb,nc));break;
case TM_SUB:setnvalue(ra,luai_numsub(nb,nc));break;
case TM_MUL:setnvalue(ra,luai_nummul(nb,nc));break;
case TM_DIV:setnvalue(ra,luai_numdiv(nb,nc));break;
case TM_MOD:setnvalue(ra,luai_nummod(nb,nc));break;
case TM_POW:setnvalue(ra,luai_numpow(nb,nc));break;
case TM_UNM:setnvalue(ra,luai_numunm(nb));break;
default:break;
}
}
else if(!call_binTM(L,rb,rc,ra,op))
luaG_aritherror(L,rb,rc);
}

// Assembly:
subq $0xb8, %rsp
movq %rdi, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movq %rdx, 0xa0(%rsp)
movq %rcx, 0x98(%rsp)
movl %r8d, 0x94(%rsp)
movq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0xb540
movq %rax, 0x68(%rsp)
cmpq $0x0, %rax
je 0xafc3
movq 0x98(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0xb540
movq %rax, 0x60(%rsp)
cmpq $0x0, %rax
je 0xafc3
movq 0x68(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x58(%rsp)
movq 0x60(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x50(%rsp)
movl 0x94(%rsp), %eax
addl $-0x5, %eax
movl %eax, %ecx
movq %rcx, 0x10(%rsp)
subl $0x6, %eax
ja 0xafbf
movq 0x10(%rsp), %rax
leaq 0x172bc(%rip), %rcx     # 0x220c4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0xa8(%rsp), %rax
movq %rax, 0x48(%rsp)
movsd 0x58(%rsp), %xmm0
addsd 0x50(%rsp), %xmm0
movq 0x48(%rsp), %rax
movsd %xmm0, (%rax)
movq 0x48(%rsp), %rax
movl $0x3, 0x8(%rax)
jmp 0xafc1
movq 0xa8(%rsp), %rax
movq %rax, 0x40(%rsp)
movsd 0x58(%rsp), %xmm0
subsd 0x50(%rsp), %xmm0
movq 0x40(%rsp), %rax
movsd %xmm0, (%rax)
movq 0x40(%rsp), %rax
movl $0x3, 0x8(%rax)
jmp 0xafc1
movq 0xa8(%rsp), %rax
movq %rax, 0x38(%rsp)
movsd 0x58(%rsp), %xmm0
mulsd 0x50(%rsp), %xmm0
movq 0x38(%rsp), %rax
movsd %xmm0, (%rax)
movq 0x38(%rsp), %rax
movl $0x3, 0x8(%rax)
jmp 0xafc1
movq 0xa8(%rsp), %rax
movq %rax, 0x30(%rsp)
movsd 0x58(%rsp), %xmm0
divsd 0x50(%rsp), %xmm0
movq 0x30(%rsp), %rax
movsd %xmm0, (%rax)
movq 0x30(%rsp), %rax
movl $0x3, 0x8(%rax)
jmp 0xafc1
movq 0xa8(%rsp), %rax
movq %rax, 0x28(%rsp)
movsd 0x58(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0x58(%rsp), %xmm0
divsd 0x50(%rsp), %xmm0
callq 0x3260
movsd 0x8(%rsp), %xmm1
movsd 0x50(%rsp), %xmm2
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq 0x28(%rsp), %rax
movsd %xmm0, (%rax)
movq 0x28(%rsp), %rax
movl $0x3, 0x8(%rax)
jmp 0xafc1
movq 0xa8(%rsp), %rax
movq %rax, 0x20(%rsp)
movsd 0x58(%rsp), %xmm0
movsd 0x50(%rsp), %xmm1
callq 0x30d0
movq 0x20(%rsp), %rax
movsd %xmm0, (%rax)
movq 0x20(%rsp), %rax
movl $0x3, 0x8(%rax)
jmp 0xafc1
movq 0xa8(%rsp), %rax
movq %rax, 0x18(%rsp)
movsd 0x58(%rsp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movq 0x18(%rsp), %rax
movsd %xmm0, (%rax)
movq 0x18(%rsp), %rax
movl $0x3, 0x8(%rax)
jmp 0xafc1
jmp 0xafc1
jmp 0xb014
movq 0xb0(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movq 0x98(%rsp), %rdx
movq 0xa8(%rsp), %rcx
movl 0x94(%rsp), %r8d
callq 0x6840
cmpl $0x0, %eax
jne 0xb012
movq 0xb0(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movq 0x98(%rsp), %rdx
callq 0xcc90
jmp 0xb014
addq $0xb8, %rsp
retq
nopl (%rax)