// File: /workspace/github_c_makefile_star2_O0/SimpleDoger[P]Darknet_CPU_Only/image.c
// Function: rotate_image_cw
void rotate_image_cw(image im, int times)
{
    assert(im.w == im.h);
    times = (times + 400) % 4;
    int i, x, y, c;
    int n = im.w;
    for(i = 0; i < times; ++i){
        for(c = 0; c < im.c; ++c){
            for(x = 0; x < n/2; ++x){
                for(y = 0; y < (n-1)/2 + 1; ++y){
                    float temp = im.data[y + im.w*(x + im.h*c)];
                    im.data[y + im.w*(x + im.h*c)] = im.data[n-1-x + im.w*(y + im.h*c)];
                    im.data[n-1-x + im.w*(y + im.h*c)] = im.data[n-1-y + im.w*(n-1-x + im.h*c)];
                    im.data[n-1-y + im.w*(n-1-x + im.h*c)] = im.data[x + im.w*(n-1-y + im.h*c)];
                    im.data[x + im.w*(n-1-y + im.h*c)] = temp;
                }
            }
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
leaq 0x10(%rbp), %rcx
movq %rcx, -0x28(%rbp)
movl %edi, -0x4(%rbp)
movl (%rcx), %eax
cmpl 0x4(%rcx), %eax
jne 0x1025c
jmp 0x1027b
leaq 0x62e39(%rip), %rdi     # 0x7309c
leaq 0x62e3f(%rip), %rsi     # 0x730a9
movl $0x14a, %edx            # imm = 0x14A
leaq 0x62e57(%rip), %rcx     # 0x730cd
callq 0x3180
movl -0x4(%rbp), %eax
addl $0x190, %eax            # imm = 0x190
movl $0x4, %ecx
cltd
idivl %ecx
movq -0x28(%rbp), %rax
movl %edx, -0x4(%rbp)
movl (%rax), %eax
movl %eax, -0x18(%rbp)
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
cmpl -0x4(%rbp), %eax
jge 0x104b2
movl $0x0, -0x14(%rbp)
movq -0x28(%rbp), %rcx
movl -0x14(%rbp), %eax
cmpl 0x8(%rcx), %eax
jge 0x104a2
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x2c(%rbp)
movl -0x18(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x2c(%rbp), %eax
cmpl %ecx, %eax
jge 0x10492
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0x30(%rbp)
movl -0x18(%rbp), %eax
subl $0x1, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x30(%rbp), %eax
addl $0x1, %ecx
cmpl %ecx, %eax
jge 0x10482
movq -0x28(%rbp), %rdi
movq 0x10(%rdi), %rax
movl -0x10(%rbp), %ecx
movl (%rdi), %edx
movl -0xc(%rbp), %esi
movl 0x4(%rdi), %r8d
imull -0x14(%rbp), %r8d
addl %r8d, %esi
imull %esi, %edx
addl %edx, %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm0
movss %xmm0, -0x1c(%rbp)
movq 0x10(%rdi), %rax
movl -0x18(%rbp), %ecx
subl $0x1, %ecx
subl -0xc(%rbp), %ecx
movl (%rdi), %edx
movl -0x10(%rbp), %esi
movl 0x4(%rdi), %r8d
imull -0x14(%rbp), %r8d
addl %r8d, %esi
imull %esi, %edx
addl %edx, %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm0
movq 0x10(%rdi), %rax
movl -0x10(%rbp), %ecx
movl (%rdi), %edx
movl -0xc(%rbp), %esi
movl 0x4(%rdi), %r8d
imull -0x14(%rbp), %r8d
addl %r8d, %esi
imull %esi, %edx
addl %edx, %ecx
movslq %ecx, %rcx
movss %xmm0, (%rax,%rcx,4)
movq 0x10(%rdi), %rax
movl -0x18(%rbp), %ecx
subl $0x1, %ecx
subl -0x10(%rbp), %ecx
movl (%rdi), %edx
movl -0x18(%rbp), %esi
subl $0x1, %esi
subl -0xc(%rbp), %esi
movl 0x4(%rdi), %r8d
imull -0x14(%rbp), %r8d
addl %r8d, %esi
imull %esi, %edx
addl %edx, %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm0
movq 0x10(%rdi), %rax
movl -0x18(%rbp), %ecx
subl $0x1, %ecx
subl -0xc(%rbp), %ecx
movl (%rdi), %edx
movl -0x10(%rbp), %esi
movl 0x4(%rdi), %r8d
imull -0x14(%rbp), %r8d
addl %r8d, %esi
imull %esi, %edx
addl %edx, %ecx
movslq %ecx, %rcx
movss %xmm0, (%rax,%rcx,4)
movq 0x10(%rdi), %rax
movl -0xc(%rbp), %ecx
movl (%rdi), %edx
movl -0x18(%rbp), %esi
subl $0x1, %esi
subl -0x10(%rbp), %esi
movl 0x4(%rdi), %r8d
imull -0x14(%rbp), %r8d
addl %r8d, %esi
imull %esi, %edx
addl %edx, %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm0
movq 0x10(%rdi), %rax
movl -0x18(%rbp), %ecx
subl $0x1, %ecx
subl -0x10(%rbp), %ecx
movl (%rdi), %edx
movl -0x18(%rbp), %esi
subl $0x1, %esi
subl -0xc(%rbp), %esi
movl 0x4(%rdi), %r8d
imull -0x14(%rbp), %r8d
addl %r8d, %esi
imull %esi, %edx
addl %edx, %ecx
movslq %ecx, %rcx
movss %xmm0, (%rax,%rcx,4)
movss -0x1c(%rbp), %xmm0
movq 0x10(%rdi), %rax
movl -0xc(%rbp), %ecx
movl (%rdi), %edx
movl -0x18(%rbp), %esi
subl $0x1, %esi
subl -0x10(%rbp), %esi
movl 0x4(%rdi), %edi
imull -0x14(%rbp), %edi
addl %edi, %esi
imull %esi, %edx
addl %edx, %ecx
movslq %ecx, %rcx
movss %xmm0, (%rax,%rcx,4)
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x102ed
jmp 0x10484
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x102c8
jmp 0x10494
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x102b1
jmp 0x104a4
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x1029e
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)