#include <stdio.h>
#include <stdlib.h>
#include "mesh.cuh"
#include "material.cuh"

void print_mesh_details(struct mesh *m);
void print_material_details(struct material *mat);


void mesh_material_print(struct mesh *me, struct material *ma) {
	printf("MESH PROPERTIES: \n");
	print_mesh_details(me);
	printf("MATERIAL PROPERTIES: \n");
	print_material_details(ma);
}

void print_mesh_details(struct mesh *m) {
	printf("lx:%f ly:%f vmax:%f\n", m->lx, m->ly, m->vmax);
	printf("nelx:%d nely:%d volfrac:%f\n", m->nelx, m->nely, m->volfrac);
	printf("ax:%f by:%f area:%f\n", m->ax, m->by, m->area);
	printf("penal:%f prho:%f rmin:%f ft:%d\n", m->penal, m->prho, m->rmin, m->ft);
	printf("alpha:%f beta:%f ninp:%d nout:%d\n", m->alpha, m->beta, m->ninp, m->nout);
}

void print_material_details(struct material *mat) {
	printf("e0:%f emin:%f rho0:%f rhomin:%f nu:%f\n", mat->e0, mat->emin, mat->rho0, mat->rhomin, mat->nu);
}

void print_mat_int(int *mat, int nrow, int ncol) {
	for (int row_index = 0; row_index < nrow; row_index++) {
		for (int col_index = 0;col_index < ncol; col_index++) {
			printf("%d ", mat[row_index*ncol + col_index]);
		}
		printf("\n");
	}
}

void print_mat_double(double *mat, int nrow, int ncol) {
	for (int row_index = 0; row_index < nrow; row_index++) {
		for (int col_index = 0;col_index < ncol; col_index++) {
			printf("%f ", mat[row_index*ncol + col_index]);
		}
		printf("\n");
	}
}

void print_vec_double(double *vec, int nelem) {
	for (int i = 0;i < nelem;i++) {
		printf("%.15f\n ",vec[i]);
	}
	printf("\n");
}

void print_vec_int(int *vec, int nelem) {
	for (int i = 0;i < nelem;i++) {
		printf("%d\n ", vec[i]);
	}
	printf("\n");
}

	.file	"tmpxft_0036efed_00000000-6_print.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2036:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2036:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"lx:%f ly:%f vmax:%f\n"
.LC1:
	.string	"nelx:%d nely:%d volfrac:%f\n"
.LC2:
	.string	"ax:%f by:%f area:%f\n"
.LC3:
	.string	"penal:%f prho:%f rmin:%f ft:%d\n"
.LC4:
	.string	"alpha:%f beta:%f ninp:%d nout:%d\n"
	.text
	.globl	_Z18print_mesh_detailsP4mesh
	.type	_Z18print_mesh_detailsP4mesh, @function
_Z18print_mesh_detailsP4mesh:
.LFB2028:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movsd	16(%rdi), %xmm2
	movq	%rdi, %rbx
	leaq	.LC0(%rip), %rsi
	movsd	8(%rdi), %xmm1
	movsd	(%rdi), %xmm0
	movb	$3, %al
	movl	$2, %edi
	call	__printf_chk@PLT
	movl	28(%rbx), %ecx
	movl	24(%rbx), %edx
	movl	$2, %edi
	movsd	32(%rbx), %xmm0
	leaq	.LC1(%rip), %rsi
	movb	$1, %al
	call	__printf_chk@PLT
	movsd	40(%rbx), %xmm0
	movb	$3, %al
	movsd	56(%rbx), %xmm2
	movsd	48(%rbx), %xmm1
	leaq	.LC2(%rip), %rsi
	movl	$2, %edi
	call	__printf_chk@PLT
	movl	88(%rbx), %edx
	movsd	64(%rbx), %xmm0
	movb	$3, %al
	movsd	72(%rbx), %xmm1
	movsd	80(%rbx), %xmm2
	movl	$2, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movl	116(%rbx), %ecx
	movl	112(%rbx), %edx
	movl	$2, %edi
	movsd	96(%rbx), %xmm0
	movsd	104(%rbx), %xmm1
	leaq	.LC4(%rip), %rsi
	movb	$2, %al
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE2028:
	.size	_Z18print_mesh_detailsP4mesh, .-_Z18print_mesh_detailsP4mesh
	.section	.rodata.str1.1
.LC5:
	.string	"e0:%f emin:%f rho0:%f rhomin:%f nu:%f\n"
	.text
	.globl	_Z22print_material_detailsP8material
	.type	_Z22print_material_detailsP8material, @function
_Z22print_material_detailsP8material:
.LFB2029:
	.cfi_startproc
	endbr64
	movsd	32(%rdi), %xmm4
	movsd	24(%rdi), %xmm3
	leaq	.LC5(%rip), %rsi
	movb	$5, %al
	movsd	16(%rdi), %xmm2
	movsd	8(%rdi), %xmm1
	movsd	(%rdi), %xmm0
	movl	$2, %edi
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE2029:
	.size	_Z22print_material_detailsP8material, .-_Z22print_material_detailsP8material
	.section	.rodata.str1.1
.LC6:
	.string	"MESH PROPERTIES: \n"
.LC7:
	.string	"MATERIAL PROPERTIES: \n"
	.text
	.globl	_Z19mesh_material_printP4meshP8material
	.type	_Z19mesh_material_printP4meshP8material, @function
_Z19mesh_material_printP4meshP8material:
.LFB2027:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rdi, %rbp
	movl	$2, %edi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rsi, %rbx
	leaq	.LC6(%rip), %rsi
	pushq	%rax
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbp, %rdi
	call	_Z18print_mesh_detailsP4mesh
	movl	$2, %edi
	leaq	.LC7(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	popq	%rdx
	.cfi_def_cfa_offset 24
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	_Z22print_material_detailsP8material
	.cfi_endproc
.LFE2027:
	.size	_Z19mesh_material_printP4meshP8material, .-_Z19mesh_material_printP4meshP8material
	.section	.rodata.str1.1
.LC8:
	.string	"%d "
.LC9:
	.string	"\n"
	.text
	.globl	_Z13print_mat_intPiii
	.type	_Z13print_mat_intPiii, @function
_Z13print_mat_intPiii:
.LFB2030:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%esi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xorl	%r13d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%edx, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
.L8:
	cmpl	%r14d, %r13d
	jge	.L7
	movslq	%r12d, %rax
	xorl	%r15d, %r15d
	leaq	0(%rbp,%rax,4), %r8
.L11:
	cmpl	%r15d, %ebx
	jle	.L14
	movl	(%r8,%r15,4), %edx
	leaq	.LC8(%rip), %rsi
	xorl	%eax, %eax
	incq	%r15
	movl	$2, %edi
	movq	%r8, 8(%rsp)
	call	__printf_chk@PLT
	movq	8(%rsp), %r8
	jmp	.L11
.L14:
	leaq	.LC9(%rip), %rsi
	xorl	%eax, %eax
	incl	%r13d
	addl	%ebx, %r12d
	movl	$2, %edi
	call	__printf_chk@PLT
	jmp	.L8
.L7:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2030:
	.size	_Z13print_mat_intPiii, .-_Z13print_mat_intPiii
	.section	.rodata.str1.1
.LC10:
	.string	"%f "
	.text
	.globl	_Z16print_mat_doublePdii
	.type	_Z16print_mat_doublePdii, @function
_Z16print_mat_doublePdii:
.LFB2031:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%esi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xorl	%r13d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%edx, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
.L16:
	cmpl	%r14d, %r13d
	jge	.L15
	movslq	%r12d, %rax
	xorl	%r15d, %r15d
	leaq	0(%rbp,%rax,8), %rcx
.L19:
	cmpl	%r15d, %ebx
	jle	.L21
	movsd	(%rcx,%r15,8), %xmm0
	leaq	.LC10(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	movq	%rcx, 8(%rsp)
	incq	%r15
	call	__printf_chk@PLT
	movq	8(%rsp), %rcx
	jmp	.L19
.L21:
	leaq	.LC9(%rip), %rsi
	xorl	%eax, %eax
	incl	%r13d
	addl	%ebx, %r12d
	movl	$2, %edi
	call	__printf_chk@PLT
	jmp	.L16
.L15:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2031:
	.size	_Z16print_mat_doublePdii, .-_Z16print_mat_doublePdii
	.section	.rodata.str1.1
.LC11:
	.string	"%.15f\n "
	.text
	.globl	_Z16print_vec_doublePdi
	.type	_Z16print_vec_doublePdi, @function
_Z16print_vec_doublePdi:
.LFB2032:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC11(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	pushq	%rcx
	.cfi_def_cfa_offset 48
.L23:
	cmpl	%ebx, %ebp
	jle	.L26
	movsd	(%r12,%rbx,8), %xmm0
	movq	%r13, %rsi
	movl	$2, %edi
	movb	$1, %al
	incq	%rbx
	call	__printf_chk@PLT
	jmp	.L23
.L26:
	popq	%rdx
	.cfi_def_cfa_offset 40
	leaq	.LC9(%rip), %rsi
	popq	%rbx
	.cfi_def_cfa_offset 32
	movl	$2, %edi
	popq	%rbp
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE2032:
	.size	_Z16print_vec_doublePdi, .-_Z16print_vec_doublePdi
	.section	.rodata.str1.1
.LC12:
	.string	"%d\n "
	.text
	.globl	_Z13print_vec_intPii
	.type	_Z13print_vec_intPii, @function
_Z13print_vec_intPii:
.LFB2033:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC12(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	pushq	%rcx
	.cfi_def_cfa_offset 48
.L28:
	cmpl	%ebx, %ebp
	jle	.L31
	movl	(%r12,%rbx,4), %edx
	movq	%r13, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	incq	%rbx
	call	__printf_chk@PLT
	jmp	.L28
.L31:
	popq	%rdx
	.cfi_def_cfa_offset 40
	leaq	.LC9(%rip), %rsi
	popq	%rbx
	.cfi_def_cfa_offset 32
	movl	$2, %edi
	popq	%rbp
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE2033:
	.size	_Z13print_vec_intPii, .-_Z13print_vec_intPii
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2059:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	movq	%rax, %rdi
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE2059:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:


#include <hip/hip_runtime.h>
#include <stdio.h>
#include <stdlib.h>
#include "mesh.cuh"
#include "material.cuh"

void print_mesh_details(struct mesh *m);
void print_material_details(struct material *mat);


void mesh_material_print(struct mesh *me, struct material *ma) {
	printf("MESH PROPERTIES: \n");
	print_mesh_details(me);
	printf("MATERIAL PROPERTIES: \n");
	print_material_details(ma);
}

void print_mesh_details(struct mesh *m) {
	printf("lx:%f ly:%f vmax:%f\n", m->lx, m->ly, m->vmax);
	printf("nelx:%d nely:%d volfrac:%f\n", m->nelx, m->nely, m->volfrac);
	printf("ax:%f by:%f area:%f\n", m->ax, m->by, m->area);
	printf("penal:%f prho:%f rmin:%f ft:%d\n", m->penal, m->prho, m->rmin, m->ft);
	printf("alpha:%f beta:%f ninp:%d nout:%d\n", m->alpha, m->beta, m->ninp, m->nout);
}

void print_material_details(struct material *mat) {
	printf("e0:%f emin:%f rho0:%f rhomin:%f nu:%f\n", mat->e0, mat->emin, mat->rho0, mat->rhomin, mat->nu);
}

void print_mat_int(int *mat, int nrow, int ncol) {
	for (int row_index = 0; row_index < nrow; row_index++) {
		for (int col_index = 0;col_index < ncol; col_index++) {
			printf("%d ", mat[row_index*ncol + col_index]);
		}
		printf("\n");
	}
}

void print_mat_double(double *mat, int nrow, int ncol) {
	for (int row_index = 0; row_index < nrow; row_index++) {
		for (int col_index = 0;col_index < ncol; col_index++) {
			printf("%f ", mat[row_index*ncol + col_index]);
		}
		printf("\n");
	}
}

void print_vec_double(double *vec, int nelem) {
	for (int i = 0;i < nelem;i++) {
		printf("%.15f\n ",vec[i]);
	}
	printf("\n");
}

void print_vec_int(int *vec, int nelem) {
	for (int i = 0;i < nelem;i++) {
		printf("%d\n ", vec[i]);
	}
	printf("\n");
}

	.text
	.file	"print.hip"
	.globl	_Z19mesh_material_printP4meshP8material # -- Begin function _Z19mesh_material_printP4meshP8material
	.type	_Z19mesh_material_printP4meshP8material,@function
_Z19mesh_material_printP4meshP8material: # @_Z19mesh_material_printP4meshP8material
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$.Lstr, %edi
	callq	puts@PLT
	movq	%r14, %rdi
	callq	_Z18print_mesh_detailsP4mesh
	movl	$.Lstr.1, %edi
	callq	puts@PLT
	movsd	(%rbx), %xmm0                   # xmm0 = mem[0],zero
	movsd	8(%rbx), %xmm1                  # xmm1 = mem[0],zero
	movsd	16(%rbx), %xmm2                 # xmm2 = mem[0],zero
	movsd	24(%rbx), %xmm3                 # xmm3 = mem[0],zero
	movsd	32(%rbx), %xmm4                 # xmm4 = mem[0],zero
	movl	$.L.str.7, %edi
	movb	$5, %al
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	jmp	printf                          # TAILCALL
.Lfunc_end0:
	.size	_Z19mesh_material_printP4meshP8material, .Lfunc_end0-_Z19mesh_material_printP4meshP8material
	.cfi_endproc
                                        # -- End function
	.globl	_Z18print_mesh_detailsP4mesh    # -- Begin function _Z18print_mesh_detailsP4mesh
	.type	_Z18print_mesh_detailsP4mesh,@function
_Z18print_mesh_detailsP4mesh:           # @_Z18print_mesh_detailsP4mesh
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rdi, %rbx
	movsd	(%rdi), %xmm0                   # xmm0 = mem[0],zero
	movsd	8(%rdi), %xmm1                  # xmm1 = mem[0],zero
	movsd	16(%rdi), %xmm2                 # xmm2 = mem[0],zero
	movl	$.L.str.2, %edi
	movb	$3, %al
	callq	printf
	movl	24(%rbx), %esi
	movl	28(%rbx), %edx
	movsd	32(%rbx), %xmm0                 # xmm0 = mem[0],zero
	movl	$.L.str.3, %edi
	movb	$1, %al
	callq	printf
	movsd	40(%rbx), %xmm0                 # xmm0 = mem[0],zero
	movsd	48(%rbx), %xmm1                 # xmm1 = mem[0],zero
	movsd	56(%rbx), %xmm2                 # xmm2 = mem[0],zero
	movl	$.L.str.4, %edi
	movb	$3, %al
	callq	printf
	movsd	64(%rbx), %xmm0                 # xmm0 = mem[0],zero
	movsd	72(%rbx), %xmm1                 # xmm1 = mem[0],zero
	movsd	80(%rbx), %xmm2                 # xmm2 = mem[0],zero
	movl	88(%rbx), %esi
	movl	$.L.str.5, %edi
	movb	$3, %al
	callq	printf
	movsd	96(%rbx), %xmm0                 # xmm0 = mem[0],zero
	movsd	104(%rbx), %xmm1                # xmm1 = mem[0],zero
	movl	112(%rbx), %esi
	movl	116(%rbx), %edx
	movl	$.L.str.6, %edi
	movb	$2, %al
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	printf                          # TAILCALL
.Lfunc_end1:
	.size	_Z18print_mesh_detailsP4mesh, .Lfunc_end1-_Z18print_mesh_detailsP4mesh
	.cfi_endproc
                                        # -- End function
	.globl	_Z22print_material_detailsP8material # -- Begin function _Z22print_material_detailsP8material
	.type	_Z22print_material_detailsP8material,@function
_Z22print_material_detailsP8material:   # @_Z22print_material_detailsP8material
	.cfi_startproc
# %bb.0:
	movsd	(%rdi), %xmm0                   # xmm0 = mem[0],zero
	movsd	8(%rdi), %xmm1                  # xmm1 = mem[0],zero
	movsd	16(%rdi), %xmm2                 # xmm2 = mem[0],zero
	movsd	24(%rdi), %xmm3                 # xmm3 = mem[0],zero
	movsd	32(%rdi), %xmm4                 # xmm4 = mem[0],zero
	movl	$.L.str.7, %edi
	movb	$5, %al
	jmp	printf                          # TAILCALL
.Lfunc_end2:
	.size	_Z22print_material_detailsP8material, .Lfunc_end2-_Z22print_material_detailsP8material
	.cfi_endproc
                                        # -- End function
	.globl	_Z13print_mat_intPiii           # -- Begin function _Z13print_mat_intPiii
	.type	_Z13print_mat_intPiii,@function
_Z13print_mat_intPiii:                  # @_Z13print_mat_intPiii
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, 8(%rsp)                   # 8-byte Spill
	testl	%esi, %esi
	jle	.LBB3_6
# %bb.1:                                # %.preheader.lr.ph
	movl	%edx, %ebx
	movl	%esi, %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movl	%edx, %r12d
	xorl	%ebp, %ebp
	xorl	%r13d, %r13d
.LBB3_2:                                # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB3_4 Depth 2
	testl	%ebx, %ebx
	jle	.LBB3_5
# %bb.3:                                # %.lr.ph
                                        #   in Loop: Header=BB3_2 Depth=1
	movl	%ebp, %eax
	movq	8(%rsp), %rcx                   # 8-byte Reload
	leaq	(%rcx,%rax,4), %r14
	xorl	%r15d, %r15d
.LBB3_4:                                #   Parent Loop BB3_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	(%r14,%r15,4), %esi
	movl	$.L.str.8, %edi
	xorl	%eax, %eax
	callq	printf
	incq	%r15
	cmpq	%r15, %r12
	jne	.LBB3_4
.LBB3_5:                                # %._crit_edge
                                        #   in Loop: Header=BB3_2 Depth=1
	movl	$10, %edi
	callq	putchar@PLT
	incq	%r13
	addl	%ebx, %ebp
	cmpq	16(%rsp), %r13                  # 8-byte Folded Reload
	jne	.LBB3_2
.LBB3_6:                                # %._crit_edge13
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_Z13print_mat_intPiii, .Lfunc_end3-_Z13print_mat_intPiii
	.cfi_endproc
                                        # -- End function
	.globl	_Z16print_mat_doublePdii        # -- Begin function _Z16print_mat_doublePdii
	.type	_Z16print_mat_doublePdii,@function
_Z16print_mat_doublePdii:               # @_Z16print_mat_doublePdii
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, 8(%rsp)                   # 8-byte Spill
	testl	%esi, %esi
	jle	.LBB4_6
# %bb.1:                                # %.preheader.lr.ph
	movl	%edx, %ebx
	movl	%esi, %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movl	%edx, %r12d
	xorl	%r13d, %r13d
	xorl	%ebp, %ebp
.LBB4_2:                                # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB4_4 Depth 2
	testl	%ebx, %ebx
	jle	.LBB4_5
# %bb.3:                                # %.lr.ph
                                        #   in Loop: Header=BB4_2 Depth=1
	movl	%r13d, %eax
	movq	8(%rsp), %rcx                   # 8-byte Reload
	leaq	(%rcx,%rax,8), %r14
	xorl	%r15d, %r15d
.LBB4_4:                                #   Parent Loop BB4_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	(%r14,%r15,8), %xmm0            # xmm0 = mem[0],zero
	movl	$.L.str.10, %edi
	movb	$1, %al
	callq	printf
	incq	%r15
	cmpq	%r15, %r12
	jne	.LBB4_4
.LBB4_5:                                # %._crit_edge
                                        #   in Loop: Header=BB4_2 Depth=1
	movl	$10, %edi
	callq	putchar@PLT
	incq	%rbp
	addl	%ebx, %r13d
	cmpq	16(%rsp), %rbp                  # 8-byte Folded Reload
	jne	.LBB4_2
.LBB4_6:                                # %._crit_edge13
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_Z16print_mat_doublePdii, .Lfunc_end4-_Z16print_mat_doublePdii
	.cfi_endproc
                                        # -- End function
	.globl	_Z16print_vec_doublePdi         # -- Begin function _Z16print_vec_doublePdi
	.type	_Z16print_vec_doublePdi,@function
_Z16print_vec_doublePdi:                # @_Z16print_vec_doublePdi
	.cfi_startproc
# %bb.0:
	testl	%esi, %esi
	jle	.LBB5_4
# %bb.1:                                # %.lr.ph.preheader
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdi, %rbx
	movl	%esi, %r14d
	xorl	%r15d, %r15d
.LBB5_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movsd	(%rbx,%r15,8), %xmm0            # xmm0 = mem[0],zero
	movl	$.L.str.11, %edi
	movb	$1, %al
	callq	printf
	incq	%r15
	cmpq	%r15, %r14
	jne	.LBB5_2
# %bb.3:
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r14
	.cfi_restore %r15
.LBB5_4:                                # %._crit_edge
	movl	$10, %edi
	jmp	putchar@PLT                     # TAILCALL
.Lfunc_end5:
	.size	_Z16print_vec_doublePdi, .Lfunc_end5-_Z16print_vec_doublePdi
	.cfi_endproc
                                        # -- End function
	.globl	_Z13print_vec_intPii            # -- Begin function _Z13print_vec_intPii
	.type	_Z13print_vec_intPii,@function
_Z13print_vec_intPii:                   # @_Z13print_vec_intPii
	.cfi_startproc
# %bb.0:
	testl	%esi, %esi
	jle	.LBB6_4
# %bb.1:                                # %.lr.ph.preheader
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdi, %rbx
	movl	%esi, %r14d
	xorl	%r15d, %r15d
.LBB6_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r15,4), %esi
	movl	$.L.str.12, %edi
	xorl	%eax, %eax
	callq	printf
	incq	%r15
	cmpq	%r15, %r14
	jne	.LBB6_2
# %bb.3:
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r14
	.cfi_restore %r15
.LBB6_4:                                # %._crit_edge
	movl	$10, %edi
	jmp	putchar@PLT                     # TAILCALL
.Lfunc_end6:
	.size	_Z13print_vec_intPii, .Lfunc_end6-_Z13print_vec_intPii
	.cfi_endproc
                                        # -- End function
	.type	.L.str.2,@object                # @.str.2
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.2:
	.asciz	"lx:%f ly:%f vmax:%f\n"
	.size	.L.str.2, 21

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"nelx:%d nely:%d volfrac:%f\n"
	.size	.L.str.3, 28

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"ax:%f by:%f area:%f\n"
	.size	.L.str.4, 21

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"penal:%f prho:%f rmin:%f ft:%d\n"
	.size	.L.str.5, 32

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"alpha:%f beta:%f ninp:%d nout:%d\n"
	.size	.L.str.6, 34

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"e0:%f emin:%f rho0:%f rhomin:%f nu:%f\n"
	.size	.L.str.7, 39

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"%d "
	.size	.L.str.8, 4

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"%f "
	.size	.L.str.10, 4

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"%.15f\n "
	.size	.L.str.11, 8

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	"%d\n "
	.size	.L.str.12, 5

	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.type	.Lstr,@object                   # @str
	.section	.rodata.str1.1,"aMS",@progbits,1
.Lstr:
	.asciz	"MESH PROPERTIES: "
	.size	.Lstr, 18

	.type	.Lstr.1,@object                 # @str.1
.Lstr.1:
	.asciz	"MATERIAL PROPERTIES: "
	.size	.Lstr.1, 22

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_

	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.amdgpu_metadata
---
amdhsa.kernels:  []
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
