// File: Alcaro[P]bridges/arlib/string.cpp
// Function: cstring::istartswith(cstring) const
bool cstring::istartswith(cstring other) const
{
	if (other.length() > this->length()) return false;
	const char* a = (char*)this->ptr();
	const char* b = (char*)other.ptr();
	for (size_t i=0;i<other.length();i++)
	{
		if (tolower(a[i]) != tolower(b[i])) return false;
	}
	return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rsi, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movq %rdi, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0xd8(%rbp)
leaq -0xa8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
cmpl $0x0, %eax
jl 0x38e1b
movq -0xd0(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
xorl $0xf, %eax
movzbl %al, %eax
movl %eax, -0x54(%rbp)
jmp 0x38e28
movq -0xd0(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x54(%rbp)
movq -0xd8(%rbp), %rax
movl -0x54(%rbp), %ecx
movl %ecx, -0xe4(%rbp)
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
cmpl $0x0, %eax
jl 0x38e7e
movq -0xe0(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
xorl $0xf, %eax
movzbl %al, %eax
movl %eax, -0x6c(%rbp)
jmp 0x38e8b
movq -0xe0(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x6c(%rbp)
movl -0xe4(%rbp), %eax
cmpl -0x6c(%rbp), %eax
jbe 0x38ea2
movb $0x0, -0x91(%rbp)
jmp 0x39044
movq -0xd8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
cmpl $0x0, %eax
jl 0x38eda
movq -0xf0(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x38ee8
movq -0xf0(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq -0xa8(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
cmpl $0x0, %eax
jl 0x38f2b
movq -0xf8(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x38f39
movq -0xf8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq $0x0, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x108(%rbp)
leaq -0xa8(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x100(%rbp)
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
cmpl $0x0, %eax
jl 0x38fb3
movq -0x100(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
xorl $0xf, %eax
movzbl %al, %eax
movl %eax, -0x84(%rbp)
jmp 0x38fc3
movq -0x100(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x84(%rbp)
movq -0x108(%rbp), %rax
movl -0x84(%rbp), %ecx
cmpq %rcx, %rax
jae 0x3903d
movq -0xb8(%rbp), %rax
movq -0xc8(%rbp), %rcx
movzbl (%rax,%rcx), %edi
callq 0x38890
movzbl %al, %eax
movl %eax, -0x10c(%rbp)
movq -0xc0(%rbp), %rax
movq -0xc8(%rbp), %rcx
movzbl (%rax,%rcx), %edi
callq 0x38890
movb %al, %cl
movl -0x10c(%rbp), %eax
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0x39024
movb $0x0, -0x91(%rbp)
jmp 0x39044
jmp 0x39026
movq -0xc8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xc8(%rbp)
jmp 0x38f4f
movb $0x1, -0x91(%rbp)
movb -0x91(%rbp), %al
andb $0x1, %al
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nopw %cs:(%rax,%rax)