// File: /workspace/github_c_makefile_star2_O0/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: read_long_string
static void read_long_string(LexState*ls,SemInfo*seminfo,int sep){
int cont=0;
(void)(cont);
save_and_next(ls);
if(currIsNewline(ls))
inclinenumber(ls);
for(;;){
switch(ls->current){
case(-1):
luaX_lexerror(ls,(seminfo)?"unfinished long string":
"unfinished long comment",TK_EOS);
break;
case']':{
if(skip_sep(ls)==sep){
save_and_next(ls);
goto endloop;
}
break;
}
case'\n':
case'\r':{
save(ls,'\n');
inclinenumber(ls);
if(!seminfo)luaZ_resetbuffer(ls->buff);
break;
}
default:{
if(seminfo)save_and_next(ls);
else next(ls);
}
}
}endloop:
if(seminfo)
seminfo->ts=luaX_newstring(ls,luaZ_buffer(ls->buff)+(2+sep),
luaZ_bufflen(ls->buff)-2*(2+sep));
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movl %edx, 0x24(%rsp)
movl $0x0, 0x20(%rsp)
movq 0x30(%rsp), %rdi
movq 0x30(%rsp), %rax
movl (%rax), %esi
callq 0x13ef0
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, (%rcx)
cmpq $0x0, %rax
jbe 0x13638
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8(%rcx)
movzbl (%rax), %eax
movl %eax, 0x1c(%rsp)
jmp 0x1364a
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rdi
callq 0x12790
movl %eax, 0x1c(%rsp)
movl 0x1c(%rsp), %ecx
movq 0x30(%rsp), %rax
movl %ecx, (%rax)
movq 0x30(%rsp), %rax
cmpl $0xa, (%rax)
je 0x13669
movq 0x30(%rsp), %rax
cmpl $0xd, (%rax)
jne 0x13673
movq 0x30(%rsp), %rdi
callq 0x13370
jmp 0x13675
movq 0x30(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x18(%rsp)
subl $-0x1, %eax
je 0x136b3
jmp 0x13687
movl 0x18(%rsp), %eax
subl $0xa, %eax
je 0x13767
jmp 0x13696
movl 0x18(%rsp), %eax
subl $0xd, %eax
je 0x13767
jmp 0x136a5
movl 0x18(%rsp), %eax
subl $0x5d, %eax
je 0x136e2
jmp 0x1379e
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rcx
leaq 0xf5a0(%rip), %rsi      # 0x22c64
leaq 0xf582(%rip), %rax      # 0x22c4d
cmpq $0x0, %rcx
cmovneq %rax, %rsi
movl $0x11f, %edx            # imm = 0x11F
callq 0x138d0
jmp 0x1386f
movq 0x30(%rsp), %rdi
callq 0x13490
cmpl 0x24(%rsp), %eax
jne 0x13762
movq 0x30(%rsp), %rdi
movq 0x30(%rsp), %rax
movl (%rax), %esi
callq 0x13ef0
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, (%rcx)
cmpq $0x0, %rax
jbe 0x13740
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8(%rcx)
movzbl (%rax), %eax
movl %eax, 0x14(%rsp)
jmp 0x13752
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rdi
callq 0x12790
movl %eax, 0x14(%rsp)
movl 0x14(%rsp), %ecx
movq 0x30(%rsp), %rax
movl %ecx, (%rax)
jmp 0x13874
jmp 0x1386f
movq 0x30(%rsp), %rdi
movl $0xa, %esi
callq 0x13ef0
movq 0x30(%rsp), %rdi
callq 0x13370
cmpq $0x0, 0x28(%rsp)
jne 0x13799
movq 0x30(%rsp), %rax
movq 0x48(%rax), %rax
movq $0x0, 0x8(%rax)
jmp 0x1386f
cmpq $0x0, 0x28(%rsp)
je 0x13813
movq 0x30(%rsp), %rdi
movq 0x30(%rsp), %rax
movl (%rax), %esi
callq 0x13ef0
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, (%rcx)
cmpq $0x0, %rax
jbe 0x137f4
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8(%rcx)
movzbl (%rax), %eax
movl %eax, 0x10(%rsp)
jmp 0x13806
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rdi
callq 0x12790
movl %eax, 0x10(%rsp)
movl 0x10(%rsp), %ecx
movq 0x30(%rsp), %rax
movl %ecx, (%rax)
jmp 0x1386d
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, (%rcx)
cmpq $0x0, %rax
jbe 0x13850
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8(%rcx)
movzbl (%rax), %eax
movl %eax, 0xc(%rsp)
jmp 0x13862
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rdi
callq 0x12790
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %ecx
movq 0x30(%rsp), %rax
movl %ecx, (%rax)
jmp 0x1386f
jmp 0x13675
cmpq $0x0, 0x28(%rsp)
je 0x138c4
movq 0x30(%rsp), %rdi
movq 0x30(%rsp), %rax
movq 0x48(%rax), %rax
movq (%rax), %rsi
movl 0x24(%rsp), %eax
addl $0x2, %eax
cltq
addq %rax, %rsi
movq 0x30(%rsp), %rax
movq 0x48(%rax), %rax
movq 0x8(%rax), %rdx
movl 0x24(%rsp), %eax
addl $0x2, %eax
shll %eax
cltq
subq %rax, %rdx
callq 0x142a0
movq %rax, %rcx
movq 0x28(%rsp), %rax
movq %rcx, (%rax)
addq $0x38, %rsp
retq
nopl (%rax)