
#include "cuda_runtime.h"
#include "device_launch_parameters.h"

#include <stdio.h>
#include <iostream>

using namespace std;

struct MyStruct
{
	int a;
	int b;
	int c;
};

int main(void)
{
	int *ptr;
	char *ptr1;
	int **ptr2;
	int(*ptr3)[3];
	int *(*ptr4)[4];

	int temp = sizeof(*ptr);
	printf("result is :%d\n",temp);

	int array[20];
	int *ptr5 = array;

	for (int i = 0; i < 20; i++)
	{
		array[i] = i;
	}

	for (int i = 0; i < 20; i++)
	{
		(*ptr5)++;
		ptr5++;
	}

	for (int i = 0; i < 20; i++)
	{
		printf("number %d: value %d\n", i, array[i]);
	}

	int a1 = 12;
	int b1;
	int *p1;
	int **ptr6;
	p1 = &a1;
	*p1 = 24;
	ptr6 = &p1;
	*ptr6 = &b1;
	**ptr6 = 34;

	printf("a1 is %d,b1 is %d,*p1 is %d,**ptr6 is %d\n", a1, b1, *p1, **ptr6);

	char *str1[3] = {
		"Hello,this is a sample!\n",
		"Hi,good morning\n",
		"Hello world\n"
	};
	char s[80];
	strcpy(s, str1[0]);
	printf(s);
	cout << **str1 << endl;
	strcpy(s, str1[1]);
	printf(s);
	strcpy(s, str1[2]);
	printf(s);

	MyStruct ss = { 20,30,40 };
	MyStruct *ptr7 = &ss;
	int *pstr = (int*)&ss;
	cout << sizeof(ptr7) << " and " << sizeof(pstr) << endl;
	cout << ptr7->a << " " << ptr7->b << " " << ptr7->c << endl;
	cout << *pstr << " " << *(pstr + 1) << " " << *(pstr + 2) << endl;

	int fun1(char*, int);
	int(*pfun1)(char*, int);
	pfun1 = fun1;
	int res = (*pfun1)("abcdefg", 7);
}

int fun1(char* x1, int x2){
	cout << x1 << " " << x2 << endl;
	return 0;
}

	.file	"tmpxft_00320e39_00000000-6_kernel.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3639:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3639:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB4292:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE4292:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" "
	.text
	.globl	_Z4fun1Pci
	.type	_Z4fun1Pci, @function
_Z4fun1Pci:
.LFB3636:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	%esi, %ebx
	movq	%rdi, %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebx, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3636:
	.size	_Z4fun1Pci, .-_Z4fun1Pci
	.section	.rodata.str1.1
.LC1:
	.string	"result is :%d\n"
.LC2:
	.string	"number %d: value %d\n"
.LC3:
	.string	"a1 is %d,b1 is %d,*p1 is %d,**ptr6 is %d\n"
.LC4:
	.string	"Hello,this is a sample!\n"
.LC5:
	.string	"Hi,good morning\n"
.LC6:
	.string	"Hello world\n"
.LC7:
	.string	" and "
.LC8:
	.string	"abcdefg"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB3635:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$4, %edx
	movl	$2, %edi
	leaq	.LC1(%rip), %rsi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$184, %rsp
	.cfi_def_cfa_offset 224
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %r12
	call	__printf_chk@PLT
	xorl	%eax, %eax
.L6:
	movl	%eax, (%r12,%rax,4)
	incq	%rax
	cmpq	$20, %rax
	jne	.L6
	movq	%r12, %rax
	leaq	88(%rsp), %rbx
.L7:
	incl	(%rax)
	addq	$4, %rax
	cmpq	%rbx, %rax
	jne	.L7
	xorl	%ebp, %ebp
	leaq	.LC2(%rip), %r13
.L8:
	movl	(%r12,%rbp,4), %ecx
	movl	%ebp, %edx
	movq	%r13, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	incq	%rbp
	call	__printf_chk@PLT
	cmpq	$20, %rbp
	jne	.L8
	movl	$34, %r9d
	movl	$34, %r8d
	xorl	%eax, %eax
	movl	$34, %ecx
	movl	$24, %edx
	leaq	.LC3(%rip), %rsi
	movl	$2, %edi
	call	__printf_chk@PLT
	movq	%rbx, %rdi
	leaq	.LC4(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rbp
	call	strcpy@PLT
	movq	%rbx, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$72, %esi
	movq	%rbp, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%rbx, %rdi
	leaq	.LC5(%rip), %rsi
	call	strcpy@PLT
	movq	%rbx, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbx, %rdi
	leaq	.LC6(%rip), %rsi
	call	strcpy@PLT
	movq	%rbx, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$8, %esi
	movq	%rbp, %rdi
	leaq	.LC0(%rip), %rbx
	call	_ZNSo9_M_insertImEERSoT_@PLT
	leaq	.LC7(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	$8, %esi
	movq	%rax, %rdi
	call	_ZNSo9_M_insertImEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	$20, %esi
	movq	%rbp, %rdi
	call	_ZNSolsEi@PLT
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	$30, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	$40, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	$20, %esi
	movq	%rbp, %rdi
	call	_ZNSolsEi@PLT
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	$30, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	$40, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	$7, %esi
	leaq	.LC8(%rip), %rdi
	call	_Z4fun1Pci
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	addq	$184, %rsp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3635:
	.size	main, .-main
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3662:
	.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
.LFE3662:
	.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 <iostream>

using namespace std;

struct MyStruct
{
	int a;
	int b;
	int c;
};

int main(void)
{
	int *ptr;
	char *ptr1;
	int **ptr2;
	int(*ptr3)[3];
	int *(*ptr4)[4];

	int temp = sizeof(*ptr);
	printf("result is :%d\n",temp);

	int array[20];
	int *ptr5 = array;

	for (int i = 0; i < 20; i++)
	{
		array[i] = i;
	}

	for (int i = 0; i < 20; i++)
	{
		(*ptr5)++;
		ptr5++;
	}

	for (int i = 0; i < 20; i++)
	{
		printf("number %d: value %d\n", i, array[i]);
	}

	int a1 = 12;
	int b1;
	int *p1;
	int **ptr6;
	p1 = &a1;
	*p1 = 24;
	ptr6 = &p1;
	*ptr6 = &b1;
	**ptr6 = 34;

	printf("a1 is %d,b1 is %d,*p1 is %d,**ptr6 is %d\n", a1, b1, *p1, **ptr6);

	char *str1[3] = {
		"Hello,this is a sample!\n",
		"Hi,good morning\n",
		"Hello world\n"
	};
	char s[80];
	strcpy(s, str1[0]);
	printf(s);
	cout << **str1 << endl;
	strcpy(s, str1[1]);
	printf(s);
	strcpy(s, str1[2]);
	printf(s);

	MyStruct ss = { 20,30,40 };
	MyStruct *ptr7 = &ss;
	int *pstr = (int*)&ss;
	cout << sizeof(ptr7) << " and " << sizeof(pstr) << endl;
	cout << ptr7->a << " " << ptr7->b << " " << ptr7->c << endl;
	cout << *pstr << " " << *(pstr + 1) << " " << *(pstr + 2) << endl;

	int fun1(char*, int);
	int(*pfun1)(char*, int);
	pfun1 = fun1;
	int res = (*pfun1)("abcdefg", 7);
}

int fun1(char* x1, int x2){
	cout << x1 << " " << x2 << endl;
	return 0;
}

	.text
	.file	"kernel.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$176, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -16
	xorl	%ebx, %ebx
	movl	$.L.str, %edi
	movl	$4, %esi
	xorl	%eax, %eax
	callq	printf
.LBB0_1:                                # =>This Inner Loop Header: Depth=1
	movl	%ebx, 16(%rsp,%rbx,4)
	incq	%rbx
	cmpq	$20, %rbx
	jne	.LBB0_1
# %bb.2:                                # %.preheader36.preheader
	xorl	%eax, %eax
.LBB0_3:                                # %.preheader36
                                        # =>This Inner Loop Header: Depth=1
	incl	16(%rsp,%rax,4)
	incq	%rax
	cmpl	$20, %eax
	jne	.LBB0_3
# %bb.4:                                # %.preheader.preheader
	xorl	%ebx, %ebx
.LBB0_5:                                # %.preheader
                                        # =>This Inner Loop Header: Depth=1
	movl	16(%rsp,%rbx,4), %edx
	movl	$.L.str.1, %edi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	printf
	incq	%rbx
	cmpq	$20, %rbx
	jne	.LBB0_5
# %bb.6:
	movl	$.L.str.2, %edi
	movl	$24, %esi
	movl	$34, %edx
	movl	$34, %ecx
	movl	$34, %r8d
	xorl	%eax, %eax
	callq	printf
	movups	.L.str.3+9(%rip), %xmm0
	leaq	96(%rsp), %rdi
	movups	%xmm0, 9(%rdi)
	movups	.L.str.3(%rip), %xmm0
	movaps	%xmm0, (%rdi)
	xorl	%eax, %eax
	callq	printf
	movb	$72, 15(%rsp)
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rax
	cmpq	$0, _ZSt4cout+16(%rax)
	je	.LBB0_8
# %bb.7:
	leaq	15(%rsp), %rsi
	movl	$_ZSt4cout, %edi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%rax, %rbx
	jmp	.LBB0_9
.LBB0_8:
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$72, %esi
	callq	_ZNSo3putEc
.LBB0_9:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c.exit
	movq	(%rbx), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movups	.L.str.4(%rip), %xmm0
	leaq	96(%rsp), %rbx
	movaps	%xmm0, (%rbx)
	movb	$0, 16(%rbx)
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	printf
	movabsq	$8031924123371070792, %rax      # imm = 0x6F77206F6C6C6548
	movq	%rax, (%rbx)
	movabsq	$2925166706259744, %rax         # imm = 0xA646C726F7720
	movq	%rax, 5(%rbx)
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	printf
	movl	$_ZSt4cout, %edi
	movl	$8, %esi
	callq	_ZNSo9_M_insertImEERSoT_
	movq	%rax, %rbx
	movl	$.L.str.6, %esi
	movl	$5, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$8, %esi
	movq	%rbx, %rdi
	callq	_ZNSo9_M_insertImEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$20, %esi
	callq	_ZNSolsEi
	movq	%rax, %rbx
	movl	$.L.str.7, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%rbx, %rdi
	movl	$30, %esi
	callq	_ZNSolsEi
	movq	%rax, %rbx
	movl	$.L.str.7, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%rbx, %rdi
	movl	$40, %esi
	callq	_ZNSolsEi
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$20, %esi
	callq	_ZNSolsEi
	movq	%rax, %rbx
	movl	$.L.str.7, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%rbx, %rdi
	movl	$30, %esi
	callq	_ZNSolsEi
	movq	%rax, %rbx
	movl	$.L.str.7, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%rbx, %rdi
	movl	$40, %esi
	callq	_ZNSolsEi
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$.L.str.8, %edi
	movl	$7, %esi
	callq	_Z4fun1Pci
	xorl	%eax, %eax
	addq	$176, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	main, .Lfunc_end0-main
	.cfi_endproc
                                        # -- End function
	.globl	_Z4fun1Pci                      # -- Begin function _Z4fun1Pci
	.type	_Z4fun1Pci,@function
_Z4fun1Pci:                             # @_Z4fun1Pci
	.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
	movl	%esi, %ebx
	testq	%rdi, %rdi
	je	.LBB1_1
# %bb.2:
	movq	%rdi, %r14
	callq	strlen
	movl	$_ZSt4cout, %edi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	jmp	.LBB1_3
.LBB1_1:
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rax
	leaq	_ZSt4cout(%rax), %rdi
	movl	32(%rdi), %esi
	orl	$1, %esi
	callq	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate
.LBB1_3:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movl	%ebx, %esi
	callq	_ZNSolsEi
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z4fun1Pci, .Lfunc_end1-_Z4fun1Pci
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"result is :%d\n"
	.size	.L.str, 15

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"number %d: value %d\n"
	.size	.L.str.1, 21

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"a1 is %d,b1 is %d,*p1 is %d,**ptr6 is %d\n"
	.size	.L.str.2, 42

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"Hello,this is a sample!\n"
	.size	.L.str.3, 25

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"Hi,good morning\n"
	.size	.L.str.4, 17

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"Hello world\n"
	.size	.L.str.5, 13

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	" and "
	.size	.L.str.6, 6

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	" "
	.size	.L.str.7, 2

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"abcdefg"
	.size	.L.str.8, 8

	.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 _ZSt4cout
	.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
