// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaB_next
static int luaB_next(lua_State*L){
luaL_checktype(L,1,5);
lua_settop(L,2);
if(lua_next(L,1))
return 2;
else{
lua_pushnil(L);
return 1;
}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r12
movl $0x1, %esi
movl $0x5, %edx
callq 0x1043a
movq 0x10(%r12), %rax
movq 0x18(%r12), %rbp
leaq 0x20(%rbp), %r10
cmpq %r10, %rax
jae 0x9811
leaq 0x20(%rbp), %rcx
leaq 0x10(%rax), %rdx
cmpq %rdx, %rcx
cmovaq %rcx, %rdx
movq %rax, %rcx
notq %rcx
addq %rdx, %rcx
movq %rcx, %xmm0
shrq $0x4, %rcx
addq $0x4, %rcx
andq $-0x4, %rcx
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
psrlq $0x4, %xmm0
addq $0x38, %rax
xorl %edx, %edx
movdqa 0xb8d5(%rip), %xmm1     # 0x15010
movdqa 0xb8dd(%rip), %xmm2     # 0x15020
movdqa 0xb8e5(%rip), %xmm3     # 0x15030
pxor %xmm3, %xmm0
pcmpeqd %xmm4, %xmm4
movq %rdx, %xmm5
pshufd $0x44, %xmm5, %xmm5     # xmm5 = xmm5[0,1,0,1]
movdqa %xmm5, %xmm6
por %xmm2, %xmm6
pxor %xmm3, %xmm6
movdqa %xmm6, %xmm7
pcmpgtd %xmm0, %xmm7
pcmpeqd %xmm0, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pand %xmm7, %xmm8
pshufd $0xf5, %xmm7, %xmm6     # xmm6 = xmm7[1,1,3,3]
por %xmm8, %xmm6
movd %xmm6, %esi
notl %esi
testb $0x1, %sil
je 0x979d
movl $0x0, -0x30(%rax)
pxor %xmm4, %xmm6
pextrw $0x4, %xmm6, %esi
testb $0x1, %sil
je 0x97b3
movl $0x0, -0x20(%rax)
por %xmm1, %xmm5
pxor %xmm3, %xmm5
movdqa %xmm5, %xmm6
pcmpgtd %xmm0, %xmm6
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7     # xmm7 = xmm5[1,1,3,3]
pand %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm5     # xmm5 = xmm6[1,1,3,3]
por %xmm7, %xmm5
pxor %xmm4, %xmm5
pextrw $0x0, %xmm5, %esi
testb $0x1, %sil
je 0x97ef
movl $0x0, -0x10(%rax)
pextrw $0x4, %xmm5, %esi
testb $0x1, %sil
je 0x9800
movl $0x0, (%rax)
addq $0x4, %rdx
addq $0x40, %rax
cmpq %rdx, %rcx
jne 0x9753
movq %r10, 0x10(%r12)
movq (%rbp), %r14
leaq 0x10(%rbp), %r15
movl 0x18(%rbp), %ebx
cmpl $0x3, %ebx
je 0x9838
testl %ebx, %ebx
jne 0x9861
movl 0x38(%r14), %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
jmp 0x98df
movsd (%r15), %xmm0
cvttsd2si %xmm0, %ecx
testl %ecx, %ecx
jle 0x9861
cvttpd2dq %xmm0, %xmm1
cvtdq2pd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x9861
jp 0x9861
movl 0x38(%r14), %eax
cmpl %ecx, %eax
jge 0x99c8
movq %r10, 0x10(%rsp)
movq %r12, 0x8(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x79ff
movq %rax, %r12
leaq 0x10(%r12), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x7ab2
testl %eax, %eax
jne 0x98c0
cmpl $0x4, %ebx
jl 0x98a3
cmpl $0xb, 0x18(%r12)
jne 0x98a3
movq (%r13), %rax
cmpq (%r15), %rax
je 0x98c0
movq 0x20(%r12), %r12
testq %r12, %r12
jne 0x9879
leaq 0xc614(%rip), %rsi      # 0x15ec8
movq 0x8(%rsp), %rdi
xorl %eax, %eax
callq 0x47e0
subq 0x20(%r14), %r12
shrq $0x3, %r12
imull $0xcccccccd, %r12d, %ecx # imm = 0xCCCCCCCD
movl 0x38(%r14), %eax
addl %eax, %ecx
movq 0x8(%rsp), %r12
movq 0x10(%rsp), %r10
movslq %ecx, %r8
movslq %eax, %rdi
leaq 0x1(%r8), %rdx
cmpq %rdi, %rdx
movq %rdi, %rsi
cmovgq %rdx, %rsi
shlq $0x4, %r8
cmpq %rdi, %rdx
jge 0x992b
movq 0x18(%r14), %r9
incq %rdx
leaq 0x10(%r8), %rcx
cmpl $0x0, 0x18(%r9,%r8)
movq %rcx, %r8
je 0x98f7
xorps %xmm0, %xmm0
cvtsi2sd %edx, %xmm0
movsd %xmm0, 0x10(%rbp)
movl $0x3, 0x18(%rbp)
addq 0x18(%r14), %rcx
jmp 0x9999
subl %eax, %esi
movzbl 0xb(%r14), %ecx
movl $0x1, %edi
shlq %cl, %rdi
cmpl %edi, %esi
jge 0x9977
subl %eax, %edx
movq 0x20(%r14), %rax
movabsq $0x100000000, %rsi      # imm = 0x100000000
shlq %cl, %rsi
movslq %edx, %rdx
sarq $0x20, %rsi
leaq (,%rdx,8), %rcx
leaq (%rcx,%rcx,4), %rcx
cmpl $0x0, 0x8(%rax,%rcx)
jne 0x9985
incq %rdx
addq $0x28, %rcx
cmpq %rsi, %rdx
jl 0x9964
movl $0x0, 0x18(%rbp)
movl $0x1, %eax
jmp 0x99b4
movq 0x10(%rax,%rcx), %rdx
movq %rdx, 0x10(%rbp)
movl 0x18(%rax,%rcx), %eax
movl %eax, 0x18(%rbp)
addq 0x20(%r14), %rcx
movq (%rcx), %rax
movq %rax, 0x20(%rbp)
movl 0x8(%rcx), %eax
movl %eax, 0x28(%rbp)
movq 0x10(%r12), %r10
addq $0x10, %r10
movl $0x2, %eax
movq %r10, 0x10(%r12)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
decl %ecx
jmp 0x98df