#include <stdio.h>
#include <stdlib.h>
#include <string.h> /* memcpy */
#include <math.h>
#include <stdint.h>

void *cuda_upload_var(void *host_var, int size)
{
	void *cuda_var;
	cudaMalloc(&cuda_var, 4);
	cudaMemcpy(cuda_var, host_var, size, cudaMemcpyHostToDevice);
	return cuda_var;
}
void cuda_download_var(void *cuda_var, void *host_var, int size)
{
	cudaMemcpy(host_var, cuda_var, size, cudaMemcpyDeviceToHost);
	cudaFree(cuda_var);
}

typedef struct intmat2x2
{
    int m[4];
} intmat2x2;

intmat2x2 intmat2x2_mul(intmat2x2 lhs, intmat2x2 rhs)
{
    intmat2x2 ret;
    ret.m[0] = lhs.m[0]*rhs.m[0] + lhs.m[1]*rhs.m[2];
    ret.m[2] = lhs.m[2]*rhs.m[0] + lhs.m[3]*rhs.m[2];
    ret.m[1] = lhs.m[0]*rhs.m[1] + lhs.m[1]*rhs.m[3];
    ret.m[3] = lhs.m[2]*rhs.m[1] + lhs.m[3]*rhs.m[3];
    return ret;
}

typedef struct floatmat3x3
{
    float m[9];
} floatmat3x3;

floatmat3x3 floatmat3x3_mul(floatmat3x3 lhs, floatmat3x3 rhs)
{
    floatmat3x3 ret;
    ret.m[0] = lhs.m[0]*rhs.m[0] + lhs.m[1]*rhs.m[3] + lhs.m[2]*rhs.m[6];
    ret.m[3] = lhs.m[3]*rhs.m[0] + lhs.m[4]*rhs.m[3] + lhs.m[5]*rhs.m[6];
    ret.m[6] = lhs.m[6]*rhs.m[0] + lhs.m[7]*rhs.m[3] + lhs.m[8]*rhs.m[6];
    ret.m[1] = lhs.m[0]*rhs.m[1] + lhs.m[1]*rhs.m[4] + lhs.m[2]*rhs.m[7];
    ret.m[4] = lhs.m[3]*rhs.m[1] + lhs.m[4]*rhs.m[4] + lhs.m[5]*rhs.m[7];
    ret.m[7] = lhs.m[6]*rhs.m[1] + lhs.m[7]*rhs.m[4] + lhs.m[8]*rhs.m[7];
    ret.m[2] = lhs.m[0]*rhs.m[2] + lhs.m[1]*rhs.m[5] + lhs.m[2]*rhs.m[8];
    ret.m[5] = lhs.m[3]*rhs.m[2] + lhs.m[4]*rhs.m[5] + lhs.m[5]*rhs.m[8];
    ret.m[8] = lhs.m[6]*rhs.m[2] + lhs.m[7]*rhs.m[5] + lhs.m[8]*rhs.m[8];
    return ret;
}


int main(int argc, char **argv)
{

    intmat2x2 mat1;

    intmat2x2 mat2;

    floatmat3x3 mat3;

    floatmat3x3 mat4;

    int i;

    int k;
    mat1.m[1*0 + 2*0] = 0;
    mat1.m[1*1 + 2*0] = 1;
    mat1.m[1*1 + 2*1] = 2;
    mat1.m[1*0 + 2*1] = 3;
    mat2.m[1*0 + 2*0] = 0;
    mat2.m[1*1 + 2*0] = 1;
    mat2.m[1*1 + 2*1] = 2;
    mat2.m[1*0 + 2*1] = 3;

    for (i = 0; i < 3; i = i + 1) {

        for (k = 0; k < 3; k = k + 1) {
            mat3.m[1*i + 3*k] = 1;
            mat4.m[1*i + 3*k] = 2;
        }
    }
    mat1 = intmat2x2_mul(mat1, mat2);
    mat3 = floatmat3x3_mul(floatmat3x3_mul(floatmat3x3_mul(mat4, mat3), mat3), mat3);

    return 0;
}

	.file	"tmpxft_0025b968_00000000-6_builtin_types.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2034:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2034:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z15cuda_upload_varPvi
	.type	_Z15cuda_upload_varPvi, @function
_Z15cuda_upload_varPvi:
.LFB2027:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	%esi, %ebx
	movl	$4, %esi
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rdi
	call	cudaMalloc@PLT
	movq	(%rsp), %rdi
	movslq	%ebx, %rdx
	movq	%rbp, %rsi
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	movq	(%rsp), %rax
	movq	8(%rsp), %rdx
	subq	%fs:40, %rdx
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	addq	$24, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2027:
	.size	_Z15cuda_upload_varPvi, .-_Z15cuda_upload_varPvi
	.globl	_Z17cuda_download_varPvS_i
	.type	_Z17cuda_download_varPvS_i, @function
_Z17cuda_download_varPvS_i:
.LFB2028:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	movslq	%edx, %rdx
	movq	%rsi, %rdi
	movl	$2, %ecx
	movq	%rbx, %rsi
	call	cudaMemcpy@PLT
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	cudaFree@PLT
	.cfi_endproc
.LFE2028:
	.size	_Z17cuda_download_varPvS_i, .-_Z17cuda_download_varPvS_i
	.globl	_Z13intmat2x2_mul9intmat2x2S_
	.type	_Z13intmat2x2_mul9intmat2x2S_, @function
_Z13intmat2x2_mul9intmat2x2S_:
.LFB2029:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	movq	%rax, %r9
	movq	%rsi, %r8
	movq	%rdi, %r10
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	sarq	$32, %r9
	sarq	$32, %r10
	movl	%esi, %ebx
	movl	%edx, %r11d
	sarq	$32, %r8
	sarq	$32, %rcx
	imull	%eax, %ebx
	imull	%r9d, %r11d
	imull	%r8d, %eax
	imull	%ecx, %r9d
	imull	%edi, %r8d
	imull	%r10d, %ecx
	imull	%edi, %esi
	addl	%eax, %r9d
	leal	(%rbx,%r11), %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	imull	%r10d, %edx
	movl	%r9d, %r9d
	addl	%r8d, %ecx
	salq	$32, %r9
	movl	%ecx, %ecx
	orq	%r9, %rax
	addl	%esi, %edx
	salq	$32, %rcx
	movl	%edx, %edx
	orq	%rcx, %rdx
	ret
	.cfi_endproc
.LFE2029:
	.size	_Z13intmat2x2_mul9intmat2x2S_, .-_Z13intmat2x2_mul9intmat2x2S_
	.globl	_Z15floatmat3x3_mul11floatmat3x3S_
	.type	_Z15floatmat3x3_mul11floatmat3x3S_, @function
_Z15floatmat3x3_mul11floatmat3x3S_:
.LFB2030:
	.cfi_startproc
	endbr64
	movss	8(%rsp), %xmm2
	movss	12(%rsp), %xmm8
	movq	%rdi, %rax
	movss	48(%rsp), %xmm12
	movss	60(%rsp), %xmm4
	movaps	%xmm2, %xmm15
	movaps	%xmm8, %xmm13
	movss	16(%rsp), %xmm7
	movss	72(%rsp), %xmm11
	mulss	%xmm12, %xmm15
	movss	20(%rsp), %xmm1
	movss	24(%rsp), %xmm6
	mulss	%xmm4, %xmm13
	movss	32(%rsp), %xmm0
	movss	28(%rsp), %xmm5
	movss	52(%rsp), %xmm3
	movss	64(%rsp), %xmm10
	movss	76(%rsp), %xmm9
	movss	80(%rsp), %xmm14
	addss	%xmm15, %xmm13
	movaps	%xmm7, %xmm15
	mulss	%xmm11, %xmm15
	addss	%xmm15, %xmm13
	movaps	%xmm1, %xmm15
	mulss	%xmm12, %xmm15
	mulss	%xmm0, %xmm12
	movss	%xmm13, (%rdi)
	movaps	%xmm6, %xmm13
	mulss	%xmm4, %xmm13
	mulss	36(%rsp), %xmm4
	addss	%xmm15, %xmm13
	movaps	%xmm5, %xmm15
	mulss	%xmm11, %xmm15
	addss	%xmm12, %xmm4
	mulss	40(%rsp), %xmm11
	addss	%xmm15, %xmm13
	addss	%xmm11, %xmm4
	movaps	%xmm2, %xmm11
	mulss	%xmm3, %xmm11
	mulss	56(%rsp), %xmm2
	movss	%xmm13, 12(%rdi)
	movss	%xmm4, 24(%rdi)
	movaps	%xmm8, %xmm4
	mulss	%xmm10, %xmm4
	mulss	68(%rsp), %xmm8
	addss	%xmm11, %xmm4
	movaps	%xmm7, %xmm11
	mulss	%xmm9, %xmm11
	addss	%xmm8, %xmm2
	mulss	%xmm14, %xmm7
	addss	%xmm11, %xmm4
	movaps	%xmm1, %xmm11
	mulss	%xmm3, %xmm11
	addss	%xmm7, %xmm2
	mulss	56(%rsp), %xmm1
	movss	%xmm4, 4(%rdi)
	mulss	%xmm0, %xmm3
	movaps	%xmm6, %xmm4
	mulss	%xmm10, %xmm4
	movss	%xmm2, 8(%rdi)
	mulss	36(%rsp), %xmm10
	mulss	68(%rsp), %xmm6
	mulss	56(%rsp), %xmm0
	addss	%xmm11, %xmm4
	movaps	%xmm5, %xmm11
	mulss	%xmm9, %xmm11
	addss	%xmm10, %xmm3
	mulss	40(%rsp), %xmm9
	addss	%xmm6, %xmm1
	mulss	%xmm14, %xmm5
	addss	%xmm11, %xmm4
	addss	%xmm9, %xmm3
	addss	%xmm5, %xmm1
	movss	%xmm4, 16(%rdi)
	movss	%xmm3, 28(%rdi)
	movss	%xmm1, 20(%rdi)
	movss	36(%rsp), %xmm1
	mulss	68(%rsp), %xmm1
	addss	%xmm1, %xmm0
	movss	40(%rsp), %xmm1
	mulss	%xmm14, %xmm1
	addss	%xmm1, %xmm0
	movss	%xmm0, 32(%rdi)
	ret
	.cfi_endproc
.LFE2030:
	.size	_Z15floatmat3x3_mul11floatmat3x3S_, .-_Z15floatmat3x3_mul11floatmat3x3S_
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB2031:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE2031:
	.size	main, .-main
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2057:
	.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
.LFE2057:
	.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 <string.h> /* memcpy */
#include <math.h>
#include <stdint.h>

void *cuda_upload_var(void *host_var, int size)
{
	void *cuda_var;
	hipMalloc(&cuda_var, 4);
	hipMemcpy(cuda_var, host_var, size, hipMemcpyHostToDevice);
	return cuda_var;
}
void cuda_download_var(void *cuda_var, void *host_var, int size)
{
	hipMemcpy(host_var, cuda_var, size, hipMemcpyDeviceToHost);
	hipFree(cuda_var);
}

typedef struct intmat2x2
{
    int m[4];
} intmat2x2;

intmat2x2 intmat2x2_mul(intmat2x2 lhs, intmat2x2 rhs)
{
    intmat2x2 ret;
    ret.m[0] = lhs.m[0]*rhs.m[0] + lhs.m[1]*rhs.m[2];
    ret.m[2] = lhs.m[2]*rhs.m[0] + lhs.m[3]*rhs.m[2];
    ret.m[1] = lhs.m[0]*rhs.m[1] + lhs.m[1]*rhs.m[3];
    ret.m[3] = lhs.m[2]*rhs.m[1] + lhs.m[3]*rhs.m[3];
    return ret;
}

typedef struct floatmat3x3
{
    float m[9];
} floatmat3x3;

floatmat3x3 floatmat3x3_mul(floatmat3x3 lhs, floatmat3x3 rhs)
{
    floatmat3x3 ret;
    ret.m[0] = lhs.m[0]*rhs.m[0] + lhs.m[1]*rhs.m[3] + lhs.m[2]*rhs.m[6];
    ret.m[3] = lhs.m[3]*rhs.m[0] + lhs.m[4]*rhs.m[3] + lhs.m[5]*rhs.m[6];
    ret.m[6] = lhs.m[6]*rhs.m[0] + lhs.m[7]*rhs.m[3] + lhs.m[8]*rhs.m[6];
    ret.m[1] = lhs.m[0]*rhs.m[1] + lhs.m[1]*rhs.m[4] + lhs.m[2]*rhs.m[7];
    ret.m[4] = lhs.m[3]*rhs.m[1] + lhs.m[4]*rhs.m[4] + lhs.m[5]*rhs.m[7];
    ret.m[7] = lhs.m[6]*rhs.m[1] + lhs.m[7]*rhs.m[4] + lhs.m[8]*rhs.m[7];
    ret.m[2] = lhs.m[0]*rhs.m[2] + lhs.m[1]*rhs.m[5] + lhs.m[2]*rhs.m[8];
    ret.m[5] = lhs.m[3]*rhs.m[2] + lhs.m[4]*rhs.m[5] + lhs.m[5]*rhs.m[8];
    ret.m[8] = lhs.m[6]*rhs.m[2] + lhs.m[7]*rhs.m[5] + lhs.m[8]*rhs.m[8];
    return ret;
}


int main(int argc, char **argv)
{

    intmat2x2 mat1;

    intmat2x2 mat2;

    floatmat3x3 mat3;

    floatmat3x3 mat4;

    int i;

    int k;
    mat1.m[1*0 + 2*0] = 0;
    mat1.m[1*1 + 2*0] = 1;
    mat1.m[1*1 + 2*1] = 2;
    mat1.m[1*0 + 2*1] = 3;
    mat2.m[1*0 + 2*0] = 0;
    mat2.m[1*1 + 2*0] = 1;
    mat2.m[1*1 + 2*1] = 2;
    mat2.m[1*0 + 2*1] = 3;

    for (i = 0; i < 3; i = i + 1) {

        for (k = 0; k < 3; k = k + 1) {
            mat3.m[1*i + 3*k] = 1;
            mat4.m[1*i + 3*k] = 2;
        }
    }
    mat1 = intmat2x2_mul(mat1, mat2);
    mat3 = floatmat3x3_mul(floatmat3x3_mul(floatmat3x3_mul(mat4, mat3), mat3), mat3);

    return 0;
}

	.text
	.file	"builtin_types.hip"
	.globl	_Z15cuda_upload_varPvi          # -- Begin function _Z15cuda_upload_varPvi
	.type	_Z15cuda_upload_varPvi,@function
_Z15cuda_upload_varPvi:                 # @_Z15cuda_upload_varPvi
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	8(%rsp), %r15
	movl	$4, %esi
	movq	%r15, %rdi
	callq	hipMalloc
	movq	(%r15), %rdi
	movslq	%ebx, %rdx
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	(%r15), %rax
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z15cuda_upload_varPvi, .Lfunc_end0-_Z15cuda_upload_varPvi
	.cfi_endproc
                                        # -- End function
	.globl	_Z17cuda_download_varPvS_i      # -- Begin function _Z17cuda_download_varPvS_i
	.type	_Z17cuda_download_varPvS_i,@function
_Z17cuda_download_varPvS_i:             # @_Z17cuda_download_varPvS_i
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rdi, %rbx
	movslq	%edx, %rdx
	movq	%rsi, %rdi
	movq	%rbx, %rsi
	movl	$2, %ecx
	callq	hipMemcpy
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	hipFree                         # TAILCALL
.Lfunc_end1:
	.size	_Z17cuda_download_varPvS_i, .Lfunc_end1-_Z17cuda_download_varPvS_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z13intmat2x2_mul9intmat2x2S_   # -- Begin function _Z13intmat2x2_mul9intmat2x2S_
	.type	_Z13intmat2x2_mul9intmat2x2S_,@function
_Z13intmat2x2_mul9intmat2x2S_:          # @_Z13intmat2x2_mul9intmat2x2S_
	.cfi_startproc
# %bb.0:
	movq	%rdi, %r8
	shrq	$32, %r8
	movq	%rdx, %r9
	shrq	$32, %r9
	movl	%edx, %r10d
	imull	%edi, %r10d
	imull	%esi, %edx
	imull	%r9d, %edi
	imull	%esi, %r9d
	shrq	$32, %rsi
	movq	%rcx, %r11
	shrq	$32, %r11
	movl	%r8d, %eax
	imull	%ecx, %eax
	addl	%r10d, %eax
	imull	%esi, %ecx
	addl	%ecx, %edx
	imull	%r11d, %r8d
	addl	%edi, %r8d
	imull	%esi, %r11d
	addl	%r9d, %r11d
	shlq	$32, %r8
	orq	%r8, %rax
	shlq	$32, %r11
	orq	%r11, %rdx
	retq
.Lfunc_end2:
	.size	_Z13intmat2x2_mul9intmat2x2S_, .Lfunc_end2-_Z13intmat2x2_mul9intmat2x2S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z15floatmat3x3_mul11floatmat3x3S_ # -- Begin function _Z15floatmat3x3_mul11floatmat3x3S_
	.type	_Z15floatmat3x3_mul11floatmat3x3S_,@function
_Z15floatmat3x3_mul11floatmat3x3S_:     # @_Z15floatmat3x3_mul11floatmat3x3S_
	.cfi_startproc
# %bb.0:
	movq	%rdi, %rax
	movss	8(%rsp), %xmm1                  # xmm1 = mem[0],zero,zero,zero
	movss	12(%rsp), %xmm0                 # xmm0 = mem[0],zero,zero,zero
	movss	48(%rsp), %xmm8                 # xmm8 = mem[0],zero,zero,zero
	movss	60(%rsp), %xmm9                 # xmm9 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm2
	mulss	%xmm8, %xmm2
	movaps	%xmm0, %xmm4
	mulss	%xmm9, %xmm4
	addss	%xmm2, %xmm4
	movss	16(%rsp), %xmm3                 # xmm3 = mem[0],zero,zero,zero
	movss	72(%rsp), %xmm10                # xmm10 = mem[0],zero,zero,zero
	movaps	%xmm3, %xmm2
	mulss	%xmm10, %xmm2
	addss	%xmm4, %xmm2
	movss	%xmm2, (%rdi)
	movss	20(%rsp), %xmm4                 # xmm4 = mem[0],zero,zero,zero
	movss	24(%rsp), %xmm2                 # xmm2 = mem[0],zero,zero,zero
	movaps	%xmm8, %xmm5
	mulss	%xmm4, %xmm5
	movaps	%xmm9, %xmm7
	mulss	%xmm2, %xmm7
	addss	%xmm5, %xmm7
	movss	28(%rsp), %xmm6                 # xmm6 = mem[0],zero,zero,zero
	movaps	%xmm10, %xmm5
	mulss	%xmm6, %xmm5
	addss	%xmm7, %xmm5
	movss	%xmm5, 12(%rdi)
	movss	32(%rsp), %xmm7                 # xmm7 = mem[0],zero,zero,zero
	movss	36(%rsp), %xmm5                 # xmm5 = mem[0],zero,zero,zero
	mulss	%xmm7, %xmm8
	mulss	%xmm5, %xmm9
	addss	%xmm8, %xmm9
	movss	40(%rsp), %xmm8                 # xmm8 = mem[0],zero,zero,zero
	mulss	%xmm8, %xmm10
	addss	%xmm9, %xmm10
	movss	%xmm10, 24(%rdi)
	movss	52(%rsp), %xmm10                # xmm10 = mem[0],zero,zero,zero
	movss	64(%rsp), %xmm9                 # xmm9 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm11
	mulss	%xmm10, %xmm11
	movaps	%xmm0, %xmm12
	mulss	%xmm9, %xmm12
	addss	%xmm11, %xmm12
	movss	76(%rsp), %xmm11                # xmm11 = mem[0],zero,zero,zero
	movaps	%xmm3, %xmm13
	mulss	%xmm11, %xmm13
	addss	%xmm12, %xmm13
	movss	%xmm13, 4(%rdi)
	movaps	%xmm4, %xmm12
	mulss	%xmm10, %xmm12
	movaps	%xmm2, %xmm13
	mulss	%xmm9, %xmm13
	addss	%xmm12, %xmm13
	movaps	%xmm6, %xmm12
	mulss	%xmm11, %xmm12
	addss	%xmm13, %xmm12
	movss	%xmm12, 16(%rdi)
	mulss	%xmm7, %xmm10
	mulss	%xmm5, %xmm9
	addss	%xmm10, %xmm9
	mulss	%xmm8, %xmm11
	addss	%xmm9, %xmm11
	movss	%xmm11, 28(%rdi)
	movss	56(%rsp), %xmm9                 # xmm9 = mem[0],zero,zero,zero
	movss	68(%rsp), %xmm10                # xmm10 = mem[0],zero,zero,zero
	mulss	%xmm9, %xmm1
	mulss	%xmm10, %xmm0
	addss	%xmm1, %xmm0
	movss	80(%rsp), %xmm1                 # xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm3
	addss	%xmm0, %xmm3
	movss	%xmm3, 8(%rdi)
	mulss	%xmm9, %xmm4
	mulss	%xmm10, %xmm2
	addss	%xmm4, %xmm2
	mulss	%xmm1, %xmm6
	addss	%xmm2, %xmm6
	movss	%xmm6, 20(%rdi)
	mulss	%xmm9, %xmm7
	mulss	%xmm10, %xmm5
	addss	%xmm7, %xmm5
	mulss	%xmm1, %xmm8
	addss	%xmm5, %xmm8
	movss	%xmm8, 32(%rdi)
	retq
.Lfunc_end3:
	.size	_Z15floatmat3x3_mul11floatmat3x3S_, .Lfunc_end3-_Z15floatmat3x3_mul11floatmat3x3S_
	.cfi_endproc
                                        # -- End function
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	xorl	%eax, %eax
	retq
.Lfunc_end4:
	.size	main, .Lfunc_end4-main
	.cfi_endproc
                                        # -- End function
	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.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_

	.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
