// File: /workspace/github_c_makefile_star2_O3/markpeerdeman[P]mbemm/src/general/matrices.c
// Function: fillmatrix
void fillmatrix(matrix m, int method )
{ int i, j;
  switch(method)
  { case ZEROFILL:  for (i=1; i<=m->rows; i++) 
					  for(j=1; j<=m->cols; j++) M(m,i,j)=0.0; break;
	case ONEFILL:   for (i=1; i<=m->rows; i++) 
					  for(j=1; j<=m->cols; j++) M(m,i,j)=1.0; break;
	case DELTAFILL: for (i=1; i<=m->rows; i++) 
					  for(j=1; j<=m->cols; j++) 
						M(m,i,j)=(i==j)?1.0:0.0; break;
    default:        break;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
testl %esi, %esi
je 0xbe27
cmpl $0x1, %esi
je 0xbd60
cmpl $0x2, %esi
jne 0xbe5c
movl (%rbx), %eax
testl %eax, %eax
jle 0xbe5c
movl 0x4(%rbx), %ecx
leal 0x1(%rcx), %esi
incq %rax
movl %esi, %edx
andl $-0x2, %edx
addq $-0x2, %rsi
movq %rsi, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
movl $0x1, %esi
xorl %edi, %edi
movdqa 0x4782(%rip), %xmm1     # 0x10420
movdqa 0x478a(%rip), %xmm2     # 0x10430
pxor %xmm2, %xmm0
movq 0x2356(%rip), %xmm3     # 0xe008
pcmpeqd %xmm4, %xmm4
testl %ecx, %ecx
jle 0xbd4c
movq 0x8(%rbx), %r8
movq -0x8(%r8,%rsi,8), %r8
leaq -0x1(%rdi), %r9
xorl %r10d, %r10d
movq %r10, %xmm5
pshufd $0x44, %xmm5, %xmm5     # xmm5 = xmm5[0,1,0,1]
por %xmm1, %xmm5
pxor %xmm2, %xmm5
movdqa %xmm5, %xmm6
pcmpgtd %xmm0, %xmm6
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7     # xmm7 = xmm5[1,1,3,3]
pand %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm5     # xmm5 = xmm6[1,1,3,3]
por %xmm7, %xmm5
movd %xmm5, %r11d
notl %r11d
testb $0x1, %r11b
je 0xbd1f
movdqa %xmm3, %xmm6
cmpq %r10, %rdi
je 0xbd19
pxor %xmm6, %xmm6
movq %xmm6, (%r8,%r10,8)
pxor %xmm4, %xmm5
pextrw $0x4, %xmm5, %r11d
testb $0x1, %r11b
je 0xbd43
movdqa %xmm3, %xmm5
cmpq %r10, %r9
je 0xbd3c
pxor %xmm5, %xmm5
movq %xmm5, 0x8(%r8,%r10,8)
addq $0x2, %r10
cmpq %r10, %rdx
jne 0xbcce
incq %rsi
incq %rdi
cmpq %rax, %rsi
jne 0xbcb6
jmp 0xbe5c
movl (%rbx), %eax
testl %eax, %eax
jle 0xbe5c
movl 0x4(%rbx), %ecx
leal 0x1(%rcx), %esi
incq %rax
movl %esi, %edx
andl $-0x2, %edx
addq $-0x2, %rsi
movq %rsi, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
movl $0x1, %esi
movdqa 0x468d(%rip), %xmm1     # 0x10420
movdqa 0x4695(%rip), %xmm2     # 0x10430
pxor %xmm2, %xmm0
movabsq $0x3ff0000000000000, %rdi # imm = 0x3FF0000000000000
pcmpeqd %xmm3, %xmm3
testl %ecx, %ecx
jle 0xbe1d
movq 0x8(%rbx), %r8
movq -0x8(%r8,%rsi,8), %r8
xorl %r9d, %r9d
movq %r9, %xmm4
pshufd $0x44, %xmm4, %xmm4     # xmm4 = xmm4[0,1,0,1]
por %xmm1, %xmm4
pxor %xmm2, %xmm4
movdqa %xmm4, %xmm5
pcmpgtd %xmm0, %xmm5
pcmpeqd %xmm0, %xmm4
pshufd $0xf5, %xmm4, %xmm6     # xmm6 = xmm4[1,1,3,3]
pand %xmm5, %xmm6
pshufd $0xf5, %xmm5, %xmm4     # xmm4 = xmm5[1,1,3,3]
por %xmm6, %xmm4
movd %xmm4, %r10d
notl %r10d
testb $0x1, %r10b
je 0xbdff
movq %rdi, (%r8,%r9,8)
pxor %xmm3, %xmm4
pextrw $0x4, %xmm4, %r10d
testb $0x1, %r10b
je 0xbe14
movq %rdi, 0x8(%r8,%r9,8)
addq $0x2, %r9
cmpq %r9, %rdx
jne 0xbdbd
incq %rsi
cmpq %rax, %rsi
jne 0xbdad
jmp 0xbe5c
movl (%rbx), %r15d
testl %r15d, %r15d
jle 0xbe5c
movl 0x4(%rbx), %r12d
movq %r12, %r14
shlq $0x3, %r14
xorl %r13d, %r13d
testl %r12d, %r12d
jle 0xbe54
movq 0x8(%rbx), %rax
movq (%rax,%r13,8), %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x10a0
incq %r13
cmpq %r13, %r15
jne 0xbe3d
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq