// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: str_cmp
static int str_cmp(STR* s1, STR* s2) {
    ASSERT(s1 && s2);
    USIZE n1 = s1->size;
    USIZE n2 = s2->size;
    USIZE n = (n1 < n2 ? n1 : n2);
    ASSERT(n < SIZE_MAX);
    int r = memcmp(s1->data, s2->data, (size_t)n);
    decref(MKSTR(s1));
    decref(MKSTR(s2));
    if (r) return r;
    if (n1 < n2) return -1;
    if (n1 > n2) return 1;
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x19af1
cmpq $0x0, -0x18(%rbp)
jne 0x19b1b
movl $0x2, %edi
leaq 0x33b1c8(%rip), %rsi    # 0x354cc5
movl $0x35, %edx
callq 0x5060
callq 0x5310
callq 0x53b0
movl $0x1, %edi
callq 0x5130
jmp 0x19b1d
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jae 0x19b4c
movq -0x20(%rbp), %rax
movq %rax, -0xe0(%rbp)
jmp 0x19b57
movq -0x28(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x30(%rbp)
cmpq $-0x1, -0x30(%rbp)
jb 0x19b93
movl $0x2, %edi
leaq 0x33b186(%rip), %rsi    # 0x354cfb
movl $0x39, %edx
callq 0x5060
callq 0x5310
callq 0x53b0
movl $0x1, %edi
callq 0x5130
jmp 0x19b95
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movq -0x18(%rbp), %rsi
addq $0x18, %rsi
movq -0x30(%rbp), %rdx
callq 0x50b0
movl %eax, -0x34(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq 0x377598(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x19c8b
movq -0x10(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq 0x37756f(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x50(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x58(%rbp), %rax
cmpq $0x0, %rax
je 0x19c8b
movq -0x10(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0x377540(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x60(%rbp)
movq -0x68(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x19c8b
movq -0x10(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq 0x37751b(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x70(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x78(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x19c89
movq -0x10(%rbp), %rax
movq %rax, -0x88(%rbp)
leaq 0x3774e7(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x80(%rbp)
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0x127c0
jmp 0x19c8b
jmp 0x19c8d
jmp 0x19c8f
movq -0x18(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x3774b7(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x19d93
movq -0x18(%rbp), %rax
movq %rax, -0xa8(%rbp)
leaq 0x377485(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xa0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xa8(%rbp), %rax
cmpq $0x0, %rax
je 0x19d93
movq -0x18(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq 0x37744d(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xb0(%rbp)
movq -0xb8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x19d93
movq -0x18(%rbp), %rax
movq %rax, -0xc8(%rbp)
leaq 0x37741f(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xc0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xc8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x19d91
movq -0x18(%rbp), %rax
movq %rax, -0xd8(%rbp)
leaq 0x3773e5(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xd0(%rbp)
movq -0xd8(%rbp), %rdi
movq -0xd0(%rbp), %rsi
callq 0x127c0
jmp 0x19d93
jmp 0x19d95
cmpl $0x0, -0x34(%rbp)
je 0x19da3
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x19dd0
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jae 0x19db6
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x19dd0
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jbe 0x19dc9
movl $0x1, -0x4(%rbp)
jmp 0x19dd0
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xe0, %rsp
popq %rbp
retq
nopl (%rax)