// File: /workspace/github_c_makefile_star2_O0/coyove[P]chann/./src/helper.cpp
// Function: cc_valid_image_ext(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string cc_valid_image_ext(string name){
    string ext = "";
    if (cc_ends_with(name, ".jpg"))
        ext = ".jpg";
    else if (cc_ends_with(name, ".gif"))
        ext = ".gif";
    else if (cc_ends_with(name, ".png"))
        ext = ".png";

    return ext;
}

// Assembly:
subq $0xf8, %rsp
movq %rsi, 0x38(%rsp)
movq %rdi, 0x48(%rsp)
movq %rdi, %rax
movq %rax, 0x40(%rsp)
movq %rdi, 0xf0(%rsp)
movq %rsi, 0xe8(%rsp)
movb $0x0, 0xe7(%rsp)
leaq 0xe6(%rsp), %rdi
movq %rdi, 0x50(%rsp)
callq 0xdc30
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rdx
leaq 0xb4877(%rip), %rsi     # 0xc5b4b
callq 0xdad0
jmp 0x112db
leaq 0xe6(%rsp), %rdi
callq 0xdf30
leaq 0xaf(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0xdc30
movq 0x30(%rsp), %rdx
leaq 0xae077(%rip), %rsi     # 0xbf37d
leaq 0xb0(%rsp), %rdi
callq 0xdad0
jmp 0x11315
movq 0x38(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x115c0
movb %al, 0x2f(%rsp)
jmp 0x1132d
leaq 0xb0(%rsp), %rdi
callq 0xdf50
leaq 0xaf(%rsp), %rdi
callq 0xdf30
movb 0x2f(%rsp), %al
testb $0x1, %al
jne 0x11354
jmp 0x113f4
movq 0x48(%rsp), %rdi
leaq 0xae01d(%rip), %rsi     # 0xbf37d
callq 0xd560
jmp 0x11367
jmp 0x11571
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
leaq 0xe6(%rsp), %rdi
callq 0xdf30
jmp 0x115a4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
jmp 0x113c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
leaq 0xb0(%rsp), %rdi
callq 0xdf50
leaq 0xaf(%rsp), %rdi
callq 0xdf30
jmp 0x1159a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
jmp 0x1159a
leaq 0x87(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0xdc30
movq 0x20(%rsp), %rdx
leaq 0xadf70(%rip), %rsi     # 0xbf382
leaq 0x88(%rsp), %rdi
callq 0xdad0
jmp 0x11421
movq 0x38(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x115c0
movb %al, 0x1f(%rsp)
jmp 0x11439
leaq 0x88(%rsp), %rdi
callq 0xdf50
leaq 0x87(%rsp), %rdi
callq 0xdf30
movb 0x1f(%rsp), %al
testb $0x1, %al
jne 0x1145d
jmp 0x114be
movq 0x48(%rsp), %rdi
leaq 0xadf19(%rip), %rsi     # 0xbf382
callq 0xd560
jmp 0x11470
jmp 0x1156f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
jmp 0x114ac
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
leaq 0x88(%rsp), %rdi
callq 0xdf50
leaq 0x87(%rsp), %rdi
callq 0xdf30
jmp 0x1159a
leaq 0x5f(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0xdc30
movq 0x10(%rsp), %rdx
leaq 0xadeae(%rip), %rsi     # 0xbf387
leaq 0x60(%rsp), %rdi
callq 0xdad0
jmp 0x114e5
movq 0x38(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x115c0
movb %al, 0xf(%rsp)
jmp 0x114fa
leaq 0x60(%rsp), %rdi
callq 0xdf50
leaq 0x5f(%rsp), %rdi
callq 0xdf30
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x11518
jmp 0x1156d
movq 0x48(%rsp), %rdi
leaq 0xade63(%rip), %rsi     # 0xbf387
callq 0xd560
jmp 0x1152b
jmp 0x1156d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
jmp 0x11561
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
leaq 0x60(%rsp), %rdi
callq 0xdf50
leaq 0x5f(%rsp), %rdi
callq 0xdf30
jmp 0x1159a
jmp 0x1156f
jmp 0x11571
movb $0x1, 0xe7(%rsp)
testb $0x1, 0xe7(%rsp)
jne 0x1158d
movq 0x48(%rsp), %rdi
callq 0xdf50
movq 0x40(%rsp), %rax
addq $0xf8, %rsp
retq
movq 0x48(%rsp), %rdi
callq 0xdf50
movq 0xd8(%rsp), %rdi
callq 0xd8a0
nopw %cs:(%rax,%rax)