// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/image.c
// Function: test_resize
void test_resize(char *filename)
{
    image im = load_image(filename, 0,0, 3);
    float mag = mag_array(im.data, im.w*im.h*im.c);
    printf("L2 Norm: %f\n", mag);
    image gray = grayscale_image(im);

    image c1 = copy_image(im);
    image c2 = copy_image(im);
    image c3 = copy_image(im);
    image c4 = copy_image(im);
    distort_image(c1, .1, 1.5, 1.5);
    distort_image(c2, -.1, .66666, .66666);
    distort_image(c3, .1, 1.5, .66666);
    distort_image(c4, .1, .66666, 1.5);


    show_image(im,   "Original", 1);
    show_image(gray, "Gray", 1);
    show_image(c1, "C1", 1);
    show_image(c2, "C2", 1);
    show_image(c3, "C3", 1);
    show_image(c4, "C4", 1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdi, %rsi
leaq 0x98(%rsp), %rbx
pushq $0x3
popq %rdx
movq %rbx, %rdi
callq 0x1a9d5
movq 0x10(%rbx), %r12
movl (%rbx), %eax
movl 0x4(%rbx), %ecx
movl %ecx, %ebp
movl %ecx, %r14d
movl %ecx, 0x2c(%rsp)
imull %eax, %ebp
movl %eax, %r13d
movl 0x8(%rbx), %eax
imull %eax, %ebp
movl %eax, %r15d
movl %eax, 0x24(%rsp)
movq %r12, %rdi
movl %ebp, %esi
callq 0xf121
cvtss2sd %xmm0, %xmm0
leaq 0x5182e(%rip), %rdi     # 0x5588a
movb $0x1, %al
callq 0x3170
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
leaq 0xb0(%rsp), %rdi
callq 0x19f68
movl 0xc(%rbx), %eax
movl %eax, 0x28(%rsp)
movl %r13d, 0x78(%rsp)
movl %r13d, %ebx
movl %r14d, 0x7c(%rsp)
movl %r15d, 0x80(%rsp)
movl %eax, 0x84(%rsp)
movq %r12, 0x88(%rsp)
movslq %ebp, %r13
pushq $0x4
popq %rsi
movq %r13, %rdi
callq 0x3260
movq %rax, 0x88(%rsp)
leaq (,%r13,4), %rdx
movq %rdx, 0x90(%rsp)
movq %rax, %rdi
movq %r12, %rsi
callq 0x32c0
movl %ebx, %r14d
movl %ebx, 0x60(%rsp)
movl 0x2c(%rsp), %r15d
movl %r15d, 0x64(%rsp)
movl 0x24(%rsp), %ebx
movl %ebx, 0x68(%rsp)
movl 0x28(%rsp), %ebp
movl %ebp, 0x6c(%rsp)
movq %r12, 0x70(%rsp)
movq %r13, %rdi
pushq $0x4
popq %rsi
callq 0x3260
movq %rax, 0x70(%rsp)
movq %rax, %rdi
movq %r12, %rsi
movq 0x90(%rsp), %rdx
callq 0x32c0
movl %r14d, 0x48(%rsp)
movl %r15d, 0x4c(%rsp)
movl %ebx, 0x50(%rsp)
movl %ebp, 0x54(%rsp)
movq %r12, 0x58(%rsp)
movq %r13, %rdi
pushq $0x4
popq %rsi
callq 0x3260
movq %rax, 0x58(%rsp)
movq %rax, %rdi
movq %r12, %rsi
movq 0x90(%rsp), %rbx
movq %rbx, %rdx
callq 0x32c0
movl %r14d, 0x30(%rsp)
movl %r15d, 0x34(%rsp)
movl 0x24(%rsp), %eax
movl %eax, 0x38(%rsp)
movl %ebp, 0x3c(%rsp)
movq %r12, 0x40(%rsp)
movq %r13, %rdi
pushq $0x4
popq %rsi
callq 0x3260
movq %rax, 0x40(%rsp)
movq %rax, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x32c0
movq 0x88(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x78(%rsp), %xmm0
movups %xmm0, (%rsp)
movss 0x4f0b3(%rip), %xmm0    # 0x5326c
movss 0x4f0af(%rip), %xmm1    # 0x53270
movaps %xmm1, %xmm2
callq 0x1a762
movq 0x70(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x60(%rsp), %xmm0
movups %xmm0, (%rsp)
movss 0x4f090(%rip), %xmm0    # 0x53274
movss 0x4f08c(%rip), %xmm1    # 0x53278
movaps %xmm1, %xmm2
callq 0x1a762
movq 0x58(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rsp)
movss 0x4f05d(%rip), %xmm0    # 0x5326c
movss 0x4f059(%rip), %xmm1    # 0x53270
movss 0x4f059(%rip), %xmm2    # 0x53278
callq 0x1a762
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
movss 0x4f02d(%rip), %xmm0    # 0x5326c
movss 0x4f031(%rip), %xmm1    # 0x53278
movss 0x4f021(%rip), %xmm2    # 0x53270
callq 0x1a762
movq 0x65d9d(%rip), %r13     # 0x69ff8
movq (%r13), %rdi
leaq 0x514a3(%rip), %r12     # 0x55709
leaq 0x5162a(%rip), %r15     # 0x55897
movq %r12, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x3280
leaq 0x98(%rsp), %rcx
movq 0x10(%rcx), %rax
movq %rax, 0x10(%rsp)
movups (%rcx), %xmm0
movups %xmm0, (%rsp)
pushq $0x50
popq %rbp
movq %r15, %rdi
pushq $0x3
popq %rbx
movl %ebx, %esi
movl %ebp, %edx
callq 0x17a81
movq (%r13), %rdi
leaq 0x515f1(%rip), %r14     # 0x558a0
movq %r12, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x3280
leaq 0xb0(%rsp), %rcx
movq 0x10(%rcx), %rax
movq %rax, 0x10(%rsp)
movups (%rcx), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x17a81
movq (%r13), %rdi
leaq 0x515ba(%rip), %r14     # 0x558a5
movq %r12, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x3280
movq 0x88(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x78(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x17a81
movq (%r13), %rdi
leaq 0x51583(%rip), %r14     # 0x558a8
movq %r12, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x3280
movq 0x70(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x60(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x17a81
movq (%r13), %rdi
leaq 0x5154f(%rip), %r14     # 0x558ab
movq %r12, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x3280
movq 0x58(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x17a81
movq (%r13), %rdi
leaq 0x5151b(%rip), %r14     # 0x558ae
movq %r12, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x3280
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x17a81
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq