// File: /workspace/github_c_makefile_star2_O2/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 $0xa8, %rsp
movq %rdi, %rsi
leaq 0x90(%rsp), %rbx
pushq $0x3
popq %rdx
movq %rbx, %rdi
callq 0x10058
movq 0x10(%rbx), %rdi
movl 0x4(%rbx), %esi
imull (%rbx), %esi
imull 0x8(%rbx), %esi
callq 0x4b4c
cvtss2sd %xmm0, %xmm0
leaq 0x3ea35(%rip), %rdi     # 0x4e882
movb $0x1, %al
callq 0x3160
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
leaq 0x78(%rsp), %r14
movq %r14, %rdi
callq 0xf680
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
leaq 0x60(%rsp), %r15
movq %r15, %rdi
callq 0xb85b
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
leaq 0x48(%rsp), %r12
movq %r12, %rdi
callq 0xb85b
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
leaq 0x30(%rsp), %r13
movq %r13, %rdi
callq 0xb85b
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
leaq 0x18(%rsp), %rbp
movq %rbp, %rdi
callq 0xb85b
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
movss 0x3c36a(%rip), %xmm0    # 0x4c268
movss 0x3c366(%rip), %xmm1    # 0x4c26c
movaps %xmm1, %xmm2
callq 0xfc23
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
movss 0x3c347(%rip), %xmm0    # 0x4c270
movss 0x3c343(%rip), %xmm1    # 0x4c274
movaps %xmm1, %xmm2
callq 0xfc23
movq 0x10(%r13), %rax
movq %rax, 0x10(%rsp)
movups (%r13), %xmm0
movups %xmm0, (%rsp)
movss 0x3c315(%rip), %xmm0    # 0x4c268
movss 0x3c311(%rip), %xmm1    # 0x4c26c
movss 0x3c311(%rip), %xmm2    # 0x4c274
callq 0xfc23
movq 0x10(%rbp), %rax
movq %rax, 0x10(%rsp)
movups (%rbp), %xmm0
movups %xmm0, (%rsp)
movss 0x3c2e7(%rip), %xmm0    # 0x4c268
movss 0x3c2eb(%rip), %xmm1    # 0x4c274
movss 0x3c2db(%rip), %xmm2    # 0x4c26c
callq 0xfc23
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
leaq 0x3e8e2(%rip), %rdi     # 0x4e88f
callq 0xd4c7
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
leaq 0x3e8ce(%rip), %rdi     # 0x4e898
callq 0xd4c7
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
leaq 0x3e8b6(%rip), %rdi     # 0x4e89d
callq 0xd4c7
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
leaq 0x3e89a(%rip), %rdi     # 0x4e8a0
callq 0xd4c7
movq 0x10(%r13), %rax
movq %rax, 0x10(%rsp)
movups (%r13), %xmm0
movups %xmm0, (%rsp)
leaq 0x3e87f(%rip), %rdi     # 0x4e8a3
callq 0xd4c7
movq 0x10(%rbp), %rax
movq %rax, 0x10(%rsp)
movups (%rbp), %xmm0
movups %xmm0, (%rsp)
leaq 0x3e865(%rip), %rdi     # 0x4e8a6
callq 0xd4c7
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq