// from https://leimao.github.io/blog/Pass-Function-Pointers-to-Kernels-CUDA/
#include <iostream>

// Since C++ 11
template<typename T>
using func_t = T (*) (T, T);

template <typename T>
__device__ T add_func (T x, T y)
{
return x + y;
}

template <typename T>
__device__ T mul_func (T x, T y)
{
return x * y;
}

// Required for functional pointer argument in kernel function
// Static pointers to device functions
template <typename T>
__device__ func_t<T> p_add_func = add_func<T>;
template <typename T>
__device__ func_t<T> p_mul_func = mul_func<T>;


template <typename T>
__global__ void kernel(func_t<T> op, T * d_x, T * d_y, T * result)
{
  *result = (*op)(*d_x, *d_y);
}

template <typename T>
void test(T x, T y)
{
  func_t<T> h_add_func;
  func_t<T> h_mul_func;

  T * d_x, * d_y;
  cudaMalloc(&d_x, sizeof(T));
  cudaMalloc(&d_y, sizeof(T));
  cudaMemcpy(d_x, &x, sizeof(T), cudaMemcpyHostToDevice);
  cudaMemcpy(d_y, &y, sizeof(T), cudaMemcpyHostToDevice);

  T result;
  T * d_result, * h_result;
  cudaMalloc(&d_result, sizeof(T));
  h_result = &result;

  // Copy device function pointer to host side
  cudaMemcpyFromSymbol(&h_add_func, p_add_func<T>, sizeof(func_t<T>));
  cudaMemcpyFromSymbol(&h_mul_func, p_mul_func<T>, sizeof(func_t<T>));

  kernel<T><<<1,1>>>(h_add_func, d_x, d_y, d_result);
  cudaDeviceSynchronize();
  cudaMemcpy(h_result, d_result, sizeof(T), cudaMemcpyDeviceToHost);
  std::cout << "Sum: " << result << std::endl;

  kernel<T><<<1,1>>>(h_mul_func, d_x, d_y, d_result);
  cudaDeviceSynchronize();
  cudaMemcpy(h_result, d_result, sizeof(T), cudaMemcpyDeviceToHost);
  std::cout << "Product: " << result << std::endl;
}

int main()
{
  std::cout << "Test int for type int ..." << std::endl;
  test<int>(2.05, 10.00);

  std::cout << "Test float for type float ..." << std::endl;
  test<float>(2.05, 10.00);

  std::cout << "Test double for type double ..." << std::endl;
  test<double>(2.05, 10.00);
}
	.file	"tmpxft_00243854_00000000-6_template_function_pointer.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.section	.text._Z8mul_funcIiET_S0_S0_,"axG",@progbits,_Z8mul_funcIiET_S0_S0_,comdat
	.weak	_Z8mul_funcIiET_S0_S0_
	.type	_Z8mul_funcIiET_S0_S0_, @function
_Z8mul_funcIiET_S0_S0_:
.LFB3983:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE3983:
	.size	_Z8mul_funcIiET_S0_S0_, .-_Z8mul_funcIiET_S0_S0_
	.section	.text._Z8add_funcIiET_S0_S0_,"axG",@progbits,_Z8add_funcIiET_S0_S0_,comdat
	.weak	_Z8add_funcIiET_S0_S0_
	.type	_Z8add_funcIiET_S0_S0_, @function
_Z8add_funcIiET_S0_S0_:
.LFB3982:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE3982:
	.size	_Z8add_funcIiET_S0_S0_, .-_Z8add_funcIiET_S0_S0_
	.section	.text._Z8mul_funcIfET_S0_S0_,"axG",@progbits,_Z8mul_funcIfET_S0_S0_,comdat
	.weak	_Z8mul_funcIfET_S0_S0_
	.type	_Z8mul_funcIfET_S0_S0_, @function
_Z8mul_funcIfET_S0_S0_:
.LFB3985:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE3985:
	.size	_Z8mul_funcIfET_S0_S0_, .-_Z8mul_funcIfET_S0_S0_
	.section	.text._Z8add_funcIfET_S0_S0_,"axG",@progbits,_Z8add_funcIfET_S0_S0_,comdat
	.weak	_Z8add_funcIfET_S0_S0_
	.type	_Z8add_funcIfET_S0_S0_, @function
_Z8add_funcIfET_S0_S0_:
.LFB3984:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE3984:
	.size	_Z8add_funcIfET_S0_S0_, .-_Z8add_funcIfET_S0_S0_
	.section	.text._Z8mul_funcIdET_S0_S0_,"axG",@progbits,_Z8mul_funcIdET_S0_S0_,comdat
	.weak	_Z8mul_funcIdET_S0_S0_
	.type	_Z8mul_funcIdET_S0_S0_, @function
_Z8mul_funcIdET_S0_S0_:
.LFB3987:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE3987:
	.size	_Z8mul_funcIdET_S0_S0_, .-_Z8mul_funcIdET_S0_S0_
	.section	.text._Z8add_funcIdET_S0_S0_,"axG",@progbits,_Z8add_funcIdET_S0_S0_,comdat
	.weak	_Z8add_funcIdET_S0_S0_
	.type	_Z8add_funcIdET_S0_S0_, @function
_Z8add_funcIdET_S0_S0_:
.LFB3986:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE3986:
	.size	_Z8add_funcIdET_S0_S0_, .-_Z8add_funcIdET_S0_S0_
	.text
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3643:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3643:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.type	_Z10cudaMallocIiE9cudaErrorPPT_m.isra.0, @function
_Z10cudaMallocIiE9cudaErrorPPT_m.isra.0:
.LFB4321:
	.cfi_startproc
	jmp	cudaMalloc@PLT
	.cfi_endproc
.LFE4321:
	.size	_Z10cudaMallocIiE9cudaErrorPPT_m.isra.0, .-_Z10cudaMallocIiE9cudaErrorPPT_m.isra.0
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB4322:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE4322:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.type	_Z29__wrapper__device_stub_kernelIdEvRPFT_S0_S0_ERPS0_S5_S5_.isra.0, @function
_Z29__wrapper__device_stub_kernelIdEvRPFT_S0_S0_ERPS0_S5_S5_.isra.0:
.LFB4323:
	.cfi_startproc
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movq	%rdi, 8(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	40(%rsp), %rdx
	movq	%rcx, 32(%rsp)
	leaq	48(%rsp), %rcx
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movl	$1, 64(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L16
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 176
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	120(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L16:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4323:
	.size	_Z29__wrapper__device_stub_kernelIdEvRPFT_S0_S0_ERPS0_S5_S5_.isra.0, .-_Z29__wrapper__device_stub_kernelIdEvRPFT_S0_S0_ERPS0_S5_S5_.isra.0
	.section	.text._Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_,"axG",@progbits,_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_,comdat
	.weak	_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_
	.type	_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_, @function
_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_:
.LFB3981:
	.cfi_startproc
	endbr64
	jmp	_Z29__wrapper__device_stub_kernelIdEvRPFT_S0_S0_ERPS0_S5_S5_.isra.0
	.cfi_endproc
.LFE3981:
	.size	_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_, .-_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_
	.text
	.type	_Z29__wrapper__device_stub_kernelIiEvRPFT_S0_S0_ERPS0_S5_S5_.isra.0, @function
_Z29__wrapper__device_stub_kernelIiEvRPFT_S0_S0_ERPS0_S5_S5_.isra.0:
.LFB4325:
	.cfi_startproc
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movq	%rdi, 8(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	40(%rsp), %rdx
	movq	%rcx, 32(%rsp)
	leaq	48(%rsp), %rcx
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movl	$1, 64(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L22
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 176
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	120(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L22:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4325:
	.size	_Z29__wrapper__device_stub_kernelIiEvRPFT_S0_S0_ERPS0_S5_S5_.isra.0, .-_Z29__wrapper__device_stub_kernelIiEvRPFT_S0_S0_ERPS0_S5_S5_.isra.0
	.section	.text._Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_,"axG",@progbits,_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_,comdat
	.weak	_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_
	.type	_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_, @function
_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_:
.LFB3978:
	.cfi_startproc
	endbr64
	jmp	_Z29__wrapper__device_stub_kernelIiEvRPFT_S0_S0_ERPS0_S5_S5_.isra.0
	.cfi_endproc
.LFE3978:
	.size	_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_, .-_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_
	.text
	.type	_Z29__wrapper__device_stub_kernelIfEvRPFT_S0_S0_ERPS0_S5_S5_.isra.0, @function
_Z29__wrapper__device_stub_kernelIfEvRPFT_S0_S0_ERPS0_S5_S5_.isra.0:
.LFB4326:
	.cfi_startproc
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movq	%rdi, 8(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	40(%rsp), %rdx
	movq	%rcx, 32(%rsp)
	leaq	48(%rsp), %rcx
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movl	$1, 64(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L27
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 176
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	120(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L27:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4326:
	.size	_Z29__wrapper__device_stub_kernelIfEvRPFT_S0_S0_ERPS0_S5_S5_.isra.0, .-_Z29__wrapper__device_stub_kernelIfEvRPFT_S0_S0_ERPS0_S5_S5_.isra.0
	.section	.text._Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_,"axG",@progbits,_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_,comdat
	.weak	_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_
	.type	_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_, @function
_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_:
.LFB3980:
	.cfi_startproc
	endbr64
	jmp	_Z29__wrapper__device_stub_kernelIfEvRPFT_S0_S0_ERPS0_S5_S5_.isra.0
	.cfi_endproc
.LFE3980:
	.size	_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_, .-_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_"
.LC1:
	.string	"_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_"
.LC2:
	.string	"_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_"
.LC3:
	.string	"_Z10p_add_funcIiE"
.LC4:
	.string	"_Z10p_mul_funcIiE"
.LC5:
	.string	"_Z10p_add_funcIfE"
.LC6:
	.string	"_Z10p_mul_funcIfE"
.LC7:
	.string	"_Z10p_add_funcIdE"
.LC8:
	.string	"_Z10p_mul_funcIdE"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3672:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC1(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC2(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC3(%rip), %rdx
	movl	$8, %r9d
	leaq	_Z10p_add_funcIiE(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	call	__cudaRegisterVar@PLT
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rdx
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC4(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$8, %r9d
	leaq	_Z10p_mul_funcIiE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rcx
	.cfi_def_cfa_offset 24
	popq	%rsi
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC5(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$8, %r9d
	leaq	_Z10p_add_funcIfE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rdi
	.cfi_def_cfa_offset 24
	popq	%r8
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC6(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$8, %r9d
	leaq	_Z10p_mul_funcIfE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r9
	.cfi_def_cfa_offset 24
	popq	%r10
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC7(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$8, %r9d
	leaq	_Z10p_add_funcIdE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r11
	.cfi_def_cfa_offset 24
	popq	%rax
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC8(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$8, %r9d
	leaq	_Z10p_mul_funcIdE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rdx
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE3672:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata._Z4testIiEvT_S0_.str1.1,"aMS",@progbits,1
.LC9:
	.string	"Sum: "
.LC10:
	.string	"Product: "
	.section	.text._Z4testIiEvT_S0_,"axG",@progbits,_Z4testIiEvT_S0_,comdat
	.weak	_Z4testIiEvT_S0_
	.type	_Z4testIiEvT_S0_, @function
_Z4testIiEvT_S0_:
.LFB3975:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$104, %rsp
	.cfi_def_cfa_offset 128
	movl	%edi, 12(%rsp)
	leaq	40(%rsp), %rdi
	movl	%esi, 8(%rsp)
	movl	$4, %esi
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	call	_Z10cudaMallocIiE9cudaErrorPPT_m.isra.0
	leaq	48(%rsp), %rdi
	movl	$4, %esi
	call	_Z10cudaMallocIiE9cudaErrorPPT_m.isra.0
	movq	40(%rsp), %rdi
	leaq	12(%rsp), %rsi
	movl	$1, %ecx
	movl	$4, %edx
	call	cudaMemcpy@PLT
	movq	48(%rsp), %rdi
	movl	$1, %ecx
	movl	$4, %edx
	leaq	8(%rsp), %rsi
	call	cudaMemcpy@PLT
	leaq	56(%rsp), %rdi
	movl	$4, %esi
	call	_Z10cudaMallocIiE9cudaErrorPPT_m.isra.0
	xorl	%ecx, %ecx
	leaq	24(%rsp), %rdi
	movl	$2, %r8d
	movl	$8, %edx
	leaq	_Z10p_add_funcIiE(%rip), %rsi
	call	cudaMemcpyFromSymbol@PLT
	xorl	%ecx, %ecx
	leaq	32(%rsp), %rdi
	movl	$2, %r8d
	movl	$8, %edx
	leaq	_Z10p_mul_funcIiE(%rip), %rsi
	call	cudaMemcpyFromSymbol@PLT
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movabsq	$4294967297, %rdi
	movl	$1, %esi
	movl	$1, 84(%rsp)
	movq	%rdi, %rdx
	movq	%rdi, 76(%rsp)
	movq	%rdi, 64(%rsp)
	movl	$1, 72(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L35
	movq	56(%rsp), %rcx
	movq	48(%rsp), %rdx
	movq	40(%rsp), %rsi
	movq	24(%rsp), %rdi
	call	_Z29__wrapper__device_stub_kernelIiEvRPFT_S0_S0_ERPS0_S5_S5_.isra.0
.L35:
	call	cudaDeviceSynchronize@PLT
	leaq	20(%rsp), %rbp
	movq	56(%rsp), %rsi
	movl	$2, %ecx
	movl	$4, %edx
	movq	%rbp, %rdi
	leaq	_ZSt4cout(%rip), %rbx
	call	cudaMemcpy@PLT
	leaq	.LC9(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	20(%rsp), %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	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movabsq	$4294967297, %rdi
	movl	$1, %esi
	movl	$1, 84(%rsp)
	movq	%rdi, %rdx
	movq	%rdi, 76(%rsp)
	movq	%rdi, 64(%rsp)
	movl	$1, 72(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L36
	movq	56(%rsp), %rcx
	movq	48(%rsp), %rdx
	movq	40(%rsp), %rsi
	movq	32(%rsp), %rdi
	call	_Z29__wrapper__device_stub_kernelIiEvRPFT_S0_S0_ERPS0_S5_S5_.isra.0
.L36:
	call	cudaDeviceSynchronize@PLT
	movq	56(%rsp), %rsi
	movl	$2, %ecx
	movq	%rbp, %rdi
	movl	$4, %edx
	call	cudaMemcpy@PLT
	leaq	.LC10(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	20(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	addq	$104, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3975:
	.size	_Z4testIiEvT_S0_, .-_Z4testIiEvT_S0_
	.section	.text._Z4testIfEvT_S0_,"axG",@progbits,_Z4testIfEvT_S0_,comdat
	.weak	_Z4testIfEvT_S0_
	.type	_Z4testIfEvT_S0_, @function
_Z4testIfEvT_S0_:
.LFB3976:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$4, %esi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$104, %rsp
	.cfi_def_cfa_offset 128
	movss	%xmm0, 12(%rsp)
	leaq	40(%rsp), %rdi
	movss	%xmm1, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	call	_Z10cudaMallocIiE9cudaErrorPPT_m.isra.0
	leaq	48(%rsp), %rdi
	movl	$4, %esi
	call	_Z10cudaMallocIiE9cudaErrorPPT_m.isra.0
	movq	40(%rsp), %rdi
	leaq	12(%rsp), %rsi
	movl	$1, %ecx
	movl	$4, %edx
	call	cudaMemcpy@PLT
	movq	48(%rsp), %rdi
	movl	$1, %ecx
	movl	$4, %edx
	leaq	8(%rsp), %rsi
	call	cudaMemcpy@PLT
	leaq	56(%rsp), %rdi
	movl	$4, %esi
	call	_Z10cudaMallocIiE9cudaErrorPPT_m.isra.0
	xorl	%ecx, %ecx
	leaq	24(%rsp), %rdi
	movl	$2, %r8d
	movl	$8, %edx
	leaq	_Z10p_add_funcIfE(%rip), %rsi
	call	cudaMemcpyFromSymbol@PLT
	xorl	%ecx, %ecx
	leaq	32(%rsp), %rdi
	movl	$2, %r8d
	movl	$8, %edx
	leaq	_Z10p_mul_funcIfE(%rip), %rsi
	call	cudaMemcpyFromSymbol@PLT
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movabsq	$4294967297, %rdi
	movl	$1, %esi
	movl	$1, 84(%rsp)
	movq	%rdi, %rdx
	movq	%rdi, 76(%rsp)
	movq	%rdi, 64(%rsp)
	movl	$1, 72(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L40
	movq	56(%rsp), %rcx
	movq	48(%rsp), %rdx
	movq	40(%rsp), %rsi
	movq	24(%rsp), %rdi
	call	_Z29__wrapper__device_stub_kernelIfEvRPFT_S0_S0_ERPS0_S5_S5_.isra.0
.L40:
	call	cudaDeviceSynchronize@PLT
	leaq	20(%rsp), %rbp
	movq	56(%rsp), %rsi
	movl	$2, %ecx
	movl	$4, %edx
	movq	%rbp, %rdi
	leaq	_ZSt4cout(%rip), %rbx
	call	cudaMemcpy@PLT
	leaq	.LC9(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	cvtss2sd	20(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movabsq	$4294967297, %rdi
	movl	$1, %esi
	movl	$1, 84(%rsp)
	movq	%rdi, %rdx
	movq	%rdi, 76(%rsp)
	movq	%rdi, 64(%rsp)
	movl	$1, 72(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L41
	movq	56(%rsp), %rcx
	movq	48(%rsp), %rdx
	movq	40(%rsp), %rsi
	movq	32(%rsp), %rdi
	call	_Z29__wrapper__device_stub_kernelIfEvRPFT_S0_S0_ERPS0_S5_S5_.isra.0
.L41:
	call	cudaDeviceSynchronize@PLT
	movq	56(%rsp), %rsi
	movl	$2, %ecx
	movq	%rbp, %rdi
	movl	$4, %edx
	call	cudaMemcpy@PLT
	leaq	.LC10(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	cvtss2sd	20(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	addq	$104, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3976:
	.size	_Z4testIfEvT_S0_, .-_Z4testIfEvT_S0_
	.section	.text._Z4testIdEvT_S0_,"axG",@progbits,_Z4testIdEvT_S0_,comdat
	.weak	_Z4testIdEvT_S0_
	.type	_Z4testIdEvT_S0_, @function
_Z4testIdEvT_S0_:
.LFB3977:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$8, %esi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$104, %rsp
	.cfi_def_cfa_offset 128
	movsd	%xmm0, 8(%rsp)
	leaq	32(%rsp), %rdi
	movsd	%xmm1, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	call	_Z10cudaMallocIiE9cudaErrorPPT_m.isra.0
	leaq	40(%rsp), %rdi
	movl	$8, %esi
	call	_Z10cudaMallocIiE9cudaErrorPPT_m.isra.0
	movq	32(%rsp), %rdi
	leaq	8(%rsp), %rsi
	movl	$1, %ecx
	movl	$8, %edx
	call	cudaMemcpy@PLT
	movq	40(%rsp), %rdi
	movl	$1, %ecx
	movq	%rsp, %rsi
	movl	$8, %edx
	call	cudaMemcpy@PLT
	leaq	56(%rsp), %rdi
	movl	$8, %esi
	call	_Z10cudaMallocIiE9cudaErrorPPT_m.isra.0
	xorl	%ecx, %ecx
	leaq	16(%rsp), %rdi
	movl	$2, %r8d
	movl	$8, %edx
	leaq	_Z10p_add_funcIdE(%rip), %rsi
	call	cudaMemcpyFromSymbol@PLT
	xorl	%ecx, %ecx
	leaq	24(%rsp), %rdi
	movl	$2, %r8d
	movl	$8, %edx
	leaq	_Z10p_mul_funcIdE(%rip), %rsi
	call	cudaMemcpyFromSymbol@PLT
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movabsq	$4294967297, %rdi
	movl	$1, %esi
	movl	$1, 84(%rsp)
	movq	%rdi, %rdx
	movq	%rdi, 76(%rsp)
	movq	%rdi, 64(%rsp)
	movl	$1, 72(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L45
	movq	56(%rsp), %rcx
	movq	40(%rsp), %rdx
	movq	32(%rsp), %rsi
	movq	16(%rsp), %rdi
	call	_Z29__wrapper__device_stub_kernelIdEvRPFT_S0_S0_ERPS0_S5_S5_.isra.0
.L45:
	call	cudaDeviceSynchronize@PLT
	leaq	48(%rsp), %rbp
	movq	56(%rsp), %rsi
	movl	$2, %ecx
	movl	$8, %edx
	movq	%rbp, %rdi
	leaq	_ZSt4cout(%rip), %rbx
	call	cudaMemcpy@PLT
	leaq	.LC9(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	48(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movabsq	$4294967297, %rdi
	movl	$1, %esi
	movl	$1, 84(%rsp)
	movq	%rdi, %rdx
	movq	%rdi, 76(%rsp)
	movq	%rdi, 64(%rsp)
	movl	$1, 72(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L46
	movq	56(%rsp), %rcx
	movq	40(%rsp), %rdx
	movq	32(%rsp), %rsi
	movq	24(%rsp), %rdi
	call	_Z29__wrapper__device_stub_kernelIdEvRPFT_S0_S0_ERPS0_S5_S5_.isra.0
.L46:
	call	cudaDeviceSynchronize@PLT
	movq	56(%rsp), %rsi
	movl	$2, %ecx
	movq	%rbp, %rdi
	movl	$8, %edx
	call	cudaMemcpy@PLT
	leaq	.LC10(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	48(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	addq	$104, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3977:
	.size	_Z4testIdEvT_S0_, .-_Z4testIdEvT_S0_
	.section	.rodata.str1.1
.LC11:
	.string	"Test int for type int ..."
.LC12:
	.string	"Test float for type float ..."
.LC15:
	.string	"Test double for type double ..."
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB3640:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	_ZSt4cout(%rip), %rbx
	leaq	.LC11(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	$10, %esi
	movl	$2, %edi
	call	_Z4testIiEvT_S0_
	movq	%rbx, %rdi
	leaq	.LC12(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movss	.LC13(%rip), %xmm1
	movss	.LC14(%rip), %xmm0
	call	_Z4testIfEvT_S0_
	movq	%rbx, %rdi
	leaq	.LC15(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movsd	.LC16(%rip), %xmm1
	movsd	.LC17(%rip), %xmm0
	call	_Z4testIdEvT_S0_
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3640:
	.size	main, .-main
	.section	.data.rel.local,"aw"
	.align 8
	.type	_Z10p_mul_funcIdE, @object
	.size	_Z10p_mul_funcIdE, 8
_Z10p_mul_funcIdE:
	.quad	_Z8mul_funcIdET_S0_S0_
	.align 8
	.type	_Z10p_add_funcIdE, @object
	.size	_Z10p_add_funcIdE, 8
_Z10p_add_funcIdE:
	.quad	_Z8add_funcIdET_S0_S0_
	.align 8
	.type	_Z10p_mul_funcIfE, @object
	.size	_Z10p_mul_funcIfE, 8
_Z10p_mul_funcIfE:
	.quad	_Z8mul_funcIfET_S0_S0_
	.align 8
	.type	_Z10p_add_funcIfE, @object
	.size	_Z10p_add_funcIfE, 8
_Z10p_add_funcIfE:
	.quad	_Z8add_funcIfET_S0_S0_
	.align 8
	.type	_Z10p_mul_funcIiE, @object
	.size	_Z10p_mul_funcIiE, 8
_Z10p_mul_funcIiE:
	.quad	_Z8mul_funcIiET_S0_S0_
	.align 8
	.type	_Z10p_add_funcIiE, @object
	.size	_Z10p_add_funcIiE, 8
_Z10p_add_funcIiE:
	.quad	_Z8add_funcIiET_S0_S0_
	.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
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC13:
	.long	1092616192
	.align 4
.LC14:
	.long	1073951539
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC16:
	.long	0
	.long	1076101120
	.align 8
.LC17:
	.long	1717986918
	.long	1073768038
	.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:

// from https://leimao.github.io/blog/Pass-Function-Pointers-to-Kernels-CUDA/

#include <hip/hip_runtime.h>
#include <iostream>

// Since C++ 11
template<typename T>
using func_t = T (*) (T, T);

template <typename T>
__device__ T add_func (T x, T y)
{
return x + y;
}

template <typename T>
__device__ T mul_func (T x, T y)
{
return x * y;
}

// Required for functional pointer argument in kernel function
// Static pointers to device functions
template <typename T>
__device__ func_t<T> p_add_func = add_func<T>;
template <typename T>
__device__ func_t<T> p_mul_func = mul_func<T>;


template <typename T>
__global__ void kernel(func_t<T> op, T * d_x, T * d_y, T * result)
{
  *result = (*op)(*d_x, *d_y);
}

template <typename T>
void test(T x, T y)
{
  func_t<T> h_add_func;
  func_t<T> h_mul_func;

  T * d_x, * d_y;
  hipMalloc(&d_x, sizeof(T));
  hipMalloc(&d_y, sizeof(T));
  hipMemcpy(d_x, &x, sizeof(T), hipMemcpyHostToDevice);
  hipMemcpy(d_y, &y, sizeof(T), hipMemcpyHostToDevice);

  T result;
  T * d_result, * h_result;
  hipMalloc(&d_result, sizeof(T));
  h_result = &result;

  // Copy device function pointer to host side
  hipMemcpyFromSymbol(&h_add_func, HIP_SYMBOL(p_add_func<T>), sizeof(func_t<T>));
  hipMemcpyFromSymbol(&h_mul_func, HIP_SYMBOL(p_mul_func<T>), sizeof(func_t<T>));

  kernel<T><<<1,1>>>(h_add_func, d_x, d_y, d_result);
  hipDeviceSynchronize();
  hipMemcpy(h_result, d_result, sizeof(T), hipMemcpyDeviceToHost);
  std::cout << "Sum: " << result << std::endl;

  kernel<T><<<1,1>>>(h_mul_func, d_x, d_y, d_result);
  hipDeviceSynchronize();
  hipMemcpy(h_result, d_result, sizeof(T), hipMemcpyDeviceToHost);
  std::cout << "Product: " << result << std::endl;
}

int main()
{
  std::cout << "Test int for type int ..." << std::endl;
  test<int>(2.05, 10.00);

  std::cout << "Test float for type float ..." << std::endl;
  test<float>(2.05, 10.00);

  std::cout << "Test double for type double ..." << std::endl;
  test<double>(2.05, 10.00);
}
	.text
	.file	"template_function_pointer.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function main
.LCPI0_0:
	.long	0x40033333                      # float 2.04999995
.LCPI0_1:
	.long	0x41200000                      # float 10
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0
.LCPI0_2:
	.quad	0x4000666666666666              # double 2.0499999999999998
.LCPI0_3:
	.quad	0x4024000000000000              # double 10
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$25, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$2, %edi
	movl	$10, %esi
	callq	_Z4testIiEvT_S0_
	movl	$_ZSt4cout, %edi
	movl	$.L.str.1, %esi
	movl	$29, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movss	.LCPI0_0(%rip), %xmm0           # xmm0 = mem[0],zero,zero,zero
	movss	.LCPI0_1(%rip), %xmm1           # xmm1 = mem[0],zero,zero,zero
	callq	_Z4testIfEvT_S0_
	movl	$_ZSt4cout, %edi
	movl	$.L.str.2, %esi
	movl	$31, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movsd	.LCPI0_2(%rip), %xmm0           # xmm0 = mem[0],zero
	movsd	.LCPI0_3(%rip), %xmm1           # xmm1 = mem[0],zero
	callq	_Z4testIdEvT_S0_
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	main, .Lfunc_end0-main
	.cfi_endproc
                                        # -- End function
	.section	.text._Z4testIiEvT_S0_,"axG",@progbits,_Z4testIiEvT_S0_,comdat
	.weak	_Z4testIiEvT_S0_                # -- Begin function _Z4testIiEvT_S0_
	.type	_Z4testIiEvT_S0_,@function
_Z4testIiEvT_S0_:                       # @_Z4testIiEvT_S0_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$64, %rsp
	.cfi_def_cfa_offset 112
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movabsq	$4294967297, %rbx               # imm = 0x100000001
	leaq	60(%rsp), %r15
	movl	%edi, (%r15)
	leaq	56(%rsp), %r14
	movl	%esi, (%r14)
	leaq	32(%rsp), %r12
	movl	$4, %esi
	movq	%r12, %rdi
	callq	hipMalloc
	leaq	24(%rsp), %r13
	movl	$4, %esi
	movq	%r13, %rdi
	callq	hipMalloc
	movq	(%r12), %rdi
	movl	$4, %edx
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	(%r13), %rdi
	movl	$4, %edx
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	8(%rsp), %rdi
	movl	$4, %esi
	callq	hipMalloc
	leaq	48(%rsp), %rdi
	movl	$_Z10p_add_funcIiE, %esi
	movl	$8, %edx
	xorl	%ecx, %ecx
	movl	$2, %r8d
	callq	hipMemcpyFromSymbol
	leaq	40(%rsp), %rdi
	movl	$_Z10p_mul_funcIiE, %esi
	movl	$8, %edx
	xorl	%ecx, %ecx
	movl	$2, %r8d
	callq	hipMemcpyFromSymbol
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB1_2
# %bb.1:
	movq	48(%rsp), %rdi
	movq	32(%rsp), %rsi
	movq	24(%rsp), %rdx
	movq	8(%rsp), %rcx
	callq	_Z21__device_stub__kernelIiEvPFT_S0_S0_EPS0_S3_S3_
.LBB1_2:
	callq	hipDeviceSynchronize
	movq	8(%rsp), %rsi
	leaq	20(%rsp), %r14
	movl	$4, %edx
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movl	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
	movl	$5, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	(%r14), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB1_4
# %bb.3:
	movq	40(%rsp), %rdi
	movq	32(%rsp), %rsi
	movq	24(%rsp), %rdx
	movq	8(%rsp), %rcx
	callq	_Z21__device_stub__kernelIiEvPFT_S0_S0_EPS0_S3_S3_
.LBB1_4:
	callq	hipDeviceSynchronize
	movq	8(%rsp), %rsi
	leaq	20(%rsp), %rbx
	movl	$4, %edx
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movl	$_ZSt4cout, %edi
	movl	$.L.str.4, %esi
	movl	$9, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	(%rbx), %esi
	movl	$_ZSt4cout, %edi
	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
	addq	$64, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.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
	retq
.Lfunc_end1:
	.size	_Z4testIiEvT_S0_, .Lfunc_end1-_Z4testIiEvT_S0_
	.cfi_endproc
                                        # -- End function
	.section	.text._Z4testIfEvT_S0_,"axG",@progbits,_Z4testIfEvT_S0_,comdat
	.weak	_Z4testIfEvT_S0_                # -- Begin function _Z4testIfEvT_S0_
	.type	_Z4testIfEvT_S0_,@function
_Z4testIfEvT_S0_:                       # @_Z4testIfEvT_S0_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$64, %rsp
	.cfi_def_cfa_offset 112
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movabsq	$4294967297, %rbx               # imm = 0x100000001
	leaq	60(%rsp), %r15
	movss	%xmm0, (%r15)
	leaq	56(%rsp), %r14
	movss	%xmm1, (%r14)
	leaq	32(%rsp), %r12
	movl	$4, %esi
	movq	%r12, %rdi
	callq	hipMalloc
	leaq	24(%rsp), %r13
	movl	$4, %esi
	movq	%r13, %rdi
	callq	hipMalloc
	movq	(%r12), %rdi
	movl	$4, %edx
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	(%r13), %rdi
	movl	$4, %edx
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	8(%rsp), %rdi
	movl	$4, %esi
	callq	hipMalloc
	leaq	48(%rsp), %rdi
	movl	$_Z10p_add_funcIfE, %esi
	movl	$8, %edx
	xorl	%ecx, %ecx
	movl	$2, %r8d
	callq	hipMemcpyFromSymbol
	leaq	40(%rsp), %rdi
	movl	$_Z10p_mul_funcIfE, %esi
	movl	$8, %edx
	xorl	%ecx, %ecx
	movl	$2, %r8d
	callq	hipMemcpyFromSymbol
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB2_2
# %bb.1:
	movq	48(%rsp), %rdi
	movq	32(%rsp), %rsi
	movq	24(%rsp), %rdx
	movq	8(%rsp), %rcx
	callq	_Z21__device_stub__kernelIfEvPFT_S0_S0_EPS0_S3_S3_
.LBB2_2:
	callq	hipDeviceSynchronize
	movq	8(%rsp), %rsi
	leaq	20(%rsp), %r14
	movl	$4, %edx
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movl	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
	movl	$5, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	cvtss2sd	(%r14), %xmm0
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB2_4
# %bb.3:
	movq	40(%rsp), %rdi
	movq	32(%rsp), %rsi
	movq	24(%rsp), %rdx
	movq	8(%rsp), %rcx
	callq	_Z21__device_stub__kernelIfEvPFT_S0_S0_EPS0_S3_S3_
.LBB2_4:
	callq	hipDeviceSynchronize
	movq	8(%rsp), %rsi
	leaq	20(%rsp), %rbx
	movl	$4, %edx
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movl	$_ZSt4cout, %edi
	movl	$.L.str.4, %esi
	movl	$9, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rbx), %xmm0
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	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
	addq	$64, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.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
	retq
.Lfunc_end2:
	.size	_Z4testIfEvT_S0_, .Lfunc_end2-_Z4testIfEvT_S0_
	.cfi_endproc
                                        # -- End function
	.section	.text._Z4testIdEvT_S0_,"axG",@progbits,_Z4testIdEvT_S0_,comdat
	.weak	_Z4testIdEvT_S0_                # -- Begin function _Z4testIdEvT_S0_
	.type	_Z4testIdEvT_S0_,@function
_Z4testIdEvT_S0_:                       # @_Z4testIdEvT_S0_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$64, %rsp
	.cfi_def_cfa_offset 112
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movabsq	$4294967297, %rbx               # imm = 0x100000001
	leaq	56(%rsp), %r15
	movsd	%xmm0, (%r15)
	leaq	48(%rsp), %r14
	movsd	%xmm1, (%r14)
	leaq	16(%rsp), %r12
	movl	$8, %esi
	movq	%r12, %rdi
	callq	hipMalloc
	leaq	8(%rsp), %r13
	movl	$8, %esi
	movq	%r13, %rdi
	callq	hipMalloc
	movq	(%r12), %rdi
	movl	$8, %edx
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	(%r13), %rdi
	movl	$8, %edx
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	%rsp, %rdi
	movl	$8, %esi
	callq	hipMalloc
	leaq	40(%rsp), %rdi
	movl	$_Z10p_add_funcIdE, %esi
	movl	$8, %edx
	xorl	%ecx, %ecx
	movl	$2, %r8d
	callq	hipMemcpyFromSymbol
	leaq	32(%rsp), %rdi
	movl	$_Z10p_mul_funcIdE, %esi
	movl	$8, %edx
	xorl	%ecx, %ecx
	movl	$2, %r8d
	callq	hipMemcpyFromSymbol
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB3_2
# %bb.1:
	movq	40(%rsp), %rdi
	movq	16(%rsp), %rsi
	movq	8(%rsp), %rdx
	movq	(%rsp), %rcx
	callq	_Z21__device_stub__kernelIdEvPFT_S0_S0_EPS0_S3_S3_
.LBB3_2:
	callq	hipDeviceSynchronize
	movq	(%rsp), %rsi
	leaq	24(%rsp), %r14
	movl	$8, %edx
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movl	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
	movl	$5, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movsd	(%r14), %xmm0                   # xmm0 = mem[0],zero
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB3_4
# %bb.3:
	movq	32(%rsp), %rdi
	movq	16(%rsp), %rsi
	movq	8(%rsp), %rdx
	movq	(%rsp), %rcx
	callq	_Z21__device_stub__kernelIdEvPFT_S0_S0_EPS0_S3_S3_
.LBB3_4:
	callq	hipDeviceSynchronize
	movq	(%rsp), %rsi
	leaq	24(%rsp), %rbx
	movl	$8, %edx
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movl	$_ZSt4cout, %edi
	movl	$.L.str.4, %esi
	movl	$9, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movsd	(%rbx), %xmm0                   # xmm0 = mem[0],zero
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	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
	addq	$64, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.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
	retq
.Lfunc_end3:
	.size	_Z4testIdEvT_S0_, .Lfunc_end3-_Z4testIdEvT_S0_
	.cfi_endproc
                                        # -- End function
	.section	.text._Z21__device_stub__kernelIiEvPFT_S0_S0_EPS0_S3_S3_,"axG",@progbits,_Z21__device_stub__kernelIiEvPFT_S0_S0_EPS0_S3_S3_,comdat
	.weak	_Z21__device_stub__kernelIiEvPFT_S0_S0_EPS0_S3_S3_ # -- Begin function _Z21__device_stub__kernelIiEvPFT_S0_S0_EPS0_S3_S3_
	.type	_Z21__device_stub__kernelIiEvPFT_S0_S0_EPS0_S3_S3_,@function
_Z21__device_stub__kernelIiEvPFT_S0_S0_EPS0_S3_S3_: # @_Z21__device_stub__kernelIiEvPFT_S0_S0_EPS0_S3_S3_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	16(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%rsp, %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.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
	retq
.Lfunc_end4:
	.size	_Z21__device_stub__kernelIiEvPFT_S0_S0_EPS0_S3_S3_, .Lfunc_end4-_Z21__device_stub__kernelIiEvPFT_S0_S0_EPS0_S3_S3_
	.cfi_endproc
                                        # -- End function
	.section	.text._Z21__device_stub__kernelIfEvPFT_S0_S0_EPS0_S3_S3_,"axG",@progbits,_Z21__device_stub__kernelIfEvPFT_S0_S0_EPS0_S3_S3_,comdat
	.weak	_Z21__device_stub__kernelIfEvPFT_S0_S0_EPS0_S3_S3_ # -- Begin function _Z21__device_stub__kernelIfEvPFT_S0_S0_EPS0_S3_S3_
	.type	_Z21__device_stub__kernelIfEvPFT_S0_S0_EPS0_S3_S3_,@function
_Z21__device_stub__kernelIfEvPFT_S0_S0_EPS0_S3_S3_: # @_Z21__device_stub__kernelIfEvPFT_S0_S0_EPS0_S3_S3_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	16(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%rsp, %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.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
	retq
.Lfunc_end5:
	.size	_Z21__device_stub__kernelIfEvPFT_S0_S0_EPS0_S3_S3_, .Lfunc_end5-_Z21__device_stub__kernelIfEvPFT_S0_S0_EPS0_S3_S3_
	.cfi_endproc
                                        # -- End function
	.section	.text._Z21__device_stub__kernelIdEvPFT_S0_S0_EPS0_S3_S3_,"axG",@progbits,_Z21__device_stub__kernelIdEvPFT_S0_S0_EPS0_S3_S3_,comdat
	.weak	_Z21__device_stub__kernelIdEvPFT_S0_S0_EPS0_S3_S3_ # -- Begin function _Z21__device_stub__kernelIdEvPFT_S0_S0_EPS0_S3_S3_
	.type	_Z21__device_stub__kernelIdEvPFT_S0_S0_EPS0_S3_S3_,@function
_Z21__device_stub__kernelIdEvPFT_S0_S0_EPS0_S3_S3_: # @_Z21__device_stub__kernelIdEvPFT_S0_S0_EPS0_S3_S3_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	16(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%rsp, %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.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
	retq
.Lfunc_end6:
	.size	_Z21__device_stub__kernelIdEvPFT_S0_S0_EPS0_S3_S3_, .Lfunc_end6-_Z21__device_stub__kernelIdEvPFT_S0_S0_EPS0_S3_S3_
	.cfi_endproc
                                        # -- End function
	.text
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB7_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB7_2:
	subq	$32, %rsp
	.cfi_adjust_cfa_offset 32
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	addq	$32, %rsp
	.cfi_adjust_cfa_offset -32
	movl	$_Z10p_add_funcIiE, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movl	$8, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	pushq	$0
	.cfi_adjust_cfa_offset 8
	pushq	$0
	.cfi_adjust_cfa_offset 8
	callq	__hipRegisterVar
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
	movl	$_Z10p_mul_funcIiE, %esi
	movl	$.L__unnamed_5, %edx
	movl	$.L__unnamed_5, %ecx
	movl	$8, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	pushq	$0
	.cfi_adjust_cfa_offset 8
	pushq	$0
	.cfi_adjust_cfa_offset 8
	callq	__hipRegisterVar
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
	movl	$_Z10p_add_funcIfE, %esi
	movl	$.L__unnamed_6, %edx
	movl	$.L__unnamed_6, %ecx
	movl	$8, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	pushq	$0
	.cfi_adjust_cfa_offset 8
	pushq	$0
	.cfi_adjust_cfa_offset 8
	callq	__hipRegisterVar
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
	movl	$_Z10p_mul_funcIfE, %esi
	movl	$.L__unnamed_7, %edx
	movl	$.L__unnamed_7, %ecx
	movl	$8, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	pushq	$0
	.cfi_adjust_cfa_offset 8
	pushq	$0
	.cfi_adjust_cfa_offset 8
	callq	__hipRegisterVar
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
	movl	$_Z10p_add_funcIdE, %esi
	movl	$.L__unnamed_8, %edx
	movl	$.L__unnamed_8, %ecx
	movl	$8, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	pushq	$0
	.cfi_adjust_cfa_offset 8
	pushq	$0
	.cfi_adjust_cfa_offset 8
	callq	__hipRegisterVar
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
	movl	$_Z10p_mul_funcIdE, %esi
	movl	$.L__unnamed_9, %edx
	movl	$.L__unnamed_9, %ecx
	movl	$8, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	pushq	$0
	.cfi_adjust_cfa_offset 8
	pushq	$0
	.cfi_adjust_cfa_offset 8
	callq	__hipRegisterVar
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
	movl	$__hip_module_dtor, %edi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end7:
	.size	__hip_module_ctor, .Lfunc_end7-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB8_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB8_2:
	retq
.Lfunc_end8:
	.size	__hip_module_dtor, .Lfunc_end8-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"Test int for type int ..."
	.size	.L.str, 26

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"Test float for type float ..."
	.size	.L.str.1, 30

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"Test double for type double ..."
	.size	.L.str.2, 32

	.type	_Z10p_add_funcIiE,@object       # @_Z10p_add_funcIiE
	.section	.bss._Z10p_add_funcIiE,"awG",@nobits,_Z10p_add_funcIiE,comdat
	.p2align	3, 0x0
_Z10p_add_funcIiE:
	.zero	8
	.size	_Z10p_add_funcIiE, 8

	.type	_Z10p_mul_funcIiE,@object       # @_Z10p_mul_funcIiE
	.section	.bss._Z10p_mul_funcIiE,"awG",@nobits,_Z10p_mul_funcIiE,comdat
	.p2align	3, 0x0
_Z10p_mul_funcIiE:
	.zero	8
	.size	_Z10p_mul_funcIiE, 8

	.type	_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_,@object # @_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_
	.section	.rodata._Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_,"aG",@progbits,_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_,comdat
	.weak	_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_
	.p2align	3, 0x0
_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_:
	.quad	_Z21__device_stub__kernelIiEvPFT_S0_S0_EPS0_S3_S3_
	.size	_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_, 8

	.type	.L.str.3,@object                # @.str.3
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.3:
	.asciz	"Sum: "
	.size	.L.str.3, 6

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

	.type	_Z10p_add_funcIfE,@object       # @_Z10p_add_funcIfE
	.section	.bss._Z10p_add_funcIfE,"awG",@nobits,_Z10p_add_funcIfE,comdat
	.p2align	3, 0x0
_Z10p_add_funcIfE:
	.zero	8
	.size	_Z10p_add_funcIfE, 8

	.type	_Z10p_mul_funcIfE,@object       # @_Z10p_mul_funcIfE
	.section	.bss._Z10p_mul_funcIfE,"awG",@nobits,_Z10p_mul_funcIfE,comdat
	.p2align	3, 0x0
_Z10p_mul_funcIfE:
	.zero	8
	.size	_Z10p_mul_funcIfE, 8

	.type	_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_,@object # @_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_
	.section	.rodata._Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_,"aG",@progbits,_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_,comdat
	.weak	_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_
	.p2align	3, 0x0
_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_:
	.quad	_Z21__device_stub__kernelIfEvPFT_S0_S0_EPS0_S3_S3_
	.size	_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_, 8

	.type	_Z10p_add_funcIdE,@object       # @_Z10p_add_funcIdE
	.section	.bss._Z10p_add_funcIdE,"awG",@nobits,_Z10p_add_funcIdE,comdat
	.p2align	3, 0x0
_Z10p_add_funcIdE:
	.zero	8
	.size	_Z10p_add_funcIdE, 8

	.type	_Z10p_mul_funcIdE,@object       # @_Z10p_mul_funcIdE
	.section	.bss._Z10p_mul_funcIdE,"awG",@nobits,_Z10p_mul_funcIdE,comdat
	.p2align	3, 0x0
_Z10p_mul_funcIdE:
	.zero	8
	.size	_Z10p_mul_funcIdE, 8

	.type	_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_,@object # @_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_
	.section	.rodata._Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_,"aG",@progbits,_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_,comdat
	.weak	_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_
	.p2align	3, 0x0
_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_:
	.quad	_Z21__device_stub__kernelIdEvPFT_S0_S0_EPS0_S3_S3_
	.size	_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_, 8

	.type	.L__unnamed_1,@object           # @0
	.section	.rodata.str1.1,"aMS",@progbits,1
.L__unnamed_1:
	.asciz	"_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_"
	.size	.L__unnamed_1, 35

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_"
	.size	.L__unnamed_2, 35

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_"
	.size	.L__unnamed_3, 35

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z10p_add_funcIiE"
	.size	.L__unnamed_4, 18

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"_Z10p_mul_funcIiE"
	.size	.L__unnamed_5, 18

	.type	.L__unnamed_6,@object           # @5
.L__unnamed_6:
	.asciz	"_Z10p_add_funcIfE"
	.size	.L__unnamed_6, 18

	.type	.L__unnamed_7,@object           # @6
.L__unnamed_7:
	.asciz	"_Z10p_mul_funcIfE"
	.size	.L__unnamed_7, 18

	.type	.L__unnamed_8,@object           # @7
.L__unnamed_8:
	.asciz	"_Z10p_add_funcIdE"
	.size	.L__unnamed_8, 18

	.type	.L__unnamed_9,@object           # @8
.L__unnamed_9:
	.asciz	"_Z10p_mul_funcIdE"
	.size	.L__unnamed_9, 18

	.type	__hip_fatbin_wrapper,@object    # @__hip_fatbin_wrapper
	.section	.hipFatBinSegment,"a",@progbits
	.p2align	3, 0x0
__hip_fatbin_wrapper:
	.long	1212764230                      # 0x48495046
	.long	1                               # 0x1
	.quad	__hip_fatbin
	.quad	0
	.size	__hip_fatbin_wrapper, 24

	.type	__hip_gpubin_handle,@object     # @__hip_gpubin_handle
	.local	__hip_gpubin_handle
	.comm	__hip_gpubin_handle,8,8
	.section	.init_array,"aw",@init_array
	.p2align	3, 0x0
	.quad	__hip_module_ctor
	.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 _Z21__device_stub__kernelIiEvPFT_S0_S0_EPS0_S3_S3_
	.addrsig_sym _Z21__device_stub__kernelIfEvPFT_S0_S0_EPS0_S3_S3_
	.addrsig_sym _Z21__device_stub__kernelIdEvPFT_S0_S0_EPS0_S3_S3_
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _ZSt4cout
	.addrsig_sym _Z10p_add_funcIiE
	.addrsig_sym _Z10p_mul_funcIiE
	.addrsig_sym _Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_
	.addrsig_sym _Z10p_add_funcIfE
	.addrsig_sym _Z10p_mul_funcIfE
	.addrsig_sym _Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_
	.addrsig_sym _Z10p_add_funcIdE
	.addrsig_sym _Z10p_mul_funcIdE
	.addrsig_sym _Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.section	.text._Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_,"axG",@progbits,_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_,comdat
	.protected	_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_ ; -- Begin function _Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_
	.globl	_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_
	.p2align	8
	.type	_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_,@function
_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_:     ; @_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_
; %bb.0:
	s_load_b256 s[36:43], s[2:3], 0x0
	v_dual_mov_b32 v40, 0 :: v_dual_mov_b32 v31, v0
	s_add_u32 s8, s2, 32
	s_mov_b32 s12, s13
	s_mov_b64 s[10:11], s[4:5]
	s_addc_u32 s9, s3, 0
	s_mov_b64 s[4:5], s[0:1]
	s_mov_b32 s13, s14
	s_mov_b32 s14, s15
	s_mov_b32 s32, 0
	s_waitcnt lgkmcnt(0)
	s_load_b32 s6, s[38:39], 0x0
	s_load_b32 s7, s[40:41], 0x0
	s_waitcnt lgkmcnt(0)
	v_dual_mov_b32 v0, s6 :: v_dual_mov_b32 v1, s7
	s_swappc_b64 s[30:31], s[36:37]
	global_store_b32 v40, v0, s[42:43]
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.amdhsa_user_sgpr_count 13
		.amdhsa_user_sgpr_dispatch_ptr 1
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 1
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 1
		.amdhsa_enable_private_segment 1
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 1
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 2
		.amdhsa_next_free_vgpr 41
		.amdhsa_next_free_sgpr 44
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.section	.text._Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_,"axG",@progbits,_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_,comdat
.Lfunc_end0:
	.size	_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_, .Lfunc_end0-_Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 96
; NumSgprs: 46
; NumVgprs: 41
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 5
; VGPRBlocks: 5
; NumSGPRsForWavesPerEU: 46
; NumVGPRsForWavesPerEU: 41
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 1
; COMPUTE_PGM_RSRC2:USER_SGPR: 13
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 1
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 2
	.section	.text._Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_,"axG",@progbits,_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_,comdat
	.protected	_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_ ; -- Begin function _Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_
	.globl	_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_
	.p2align	8
	.type	_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_,@function
_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_:     ; @_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_
; %bb.0:
	s_load_b256 s[36:43], s[2:3], 0x0
	v_dual_mov_b32 v40, 0 :: v_dual_mov_b32 v31, v0
	s_add_u32 s8, s2, 32
	s_mov_b32 s12, s13
	s_mov_b64 s[10:11], s[4:5]
	s_addc_u32 s9, s3, 0
	s_mov_b64 s[4:5], s[0:1]
	s_mov_b32 s13, s14
	s_mov_b32 s14, s15
	s_mov_b32 s32, 0
	s_waitcnt lgkmcnt(0)
	s_load_b32 s6, s[38:39], 0x0
	s_load_b32 s7, s[40:41], 0x0
	s_waitcnt lgkmcnt(0)
	v_dual_mov_b32 v0, s6 :: v_dual_mov_b32 v1, s7
	s_swappc_b64 s[30:31], s[36:37]
	global_store_b32 v40, v0, s[42:43]
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.amdhsa_user_sgpr_count 13
		.amdhsa_user_sgpr_dispatch_ptr 1
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 1
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 1
		.amdhsa_enable_private_segment 1
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 1
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 2
		.amdhsa_next_free_vgpr 41
		.amdhsa_next_free_sgpr 44
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.section	.text._Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_,"axG",@progbits,_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_,comdat
.Lfunc_end1:
	.size	_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_, .Lfunc_end1-_Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 96
; NumSgprs: 46
; NumVgprs: 41
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 5
; VGPRBlocks: 5
; NumSGPRsForWavesPerEU: 46
; NumVGPRsForWavesPerEU: 41
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 1
; COMPUTE_PGM_RSRC2:USER_SGPR: 13
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 1
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 2
	.section	.text._Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_,"axG",@progbits,_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_,comdat
	.protected	_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_ ; -- Begin function _Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_
	.globl	_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_
	.p2align	8
	.type	_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_,@function
_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_:     ; @_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_
; %bb.0:
	s_load_b256 s[36:43], s[2:3], 0x0
	v_dual_mov_b32 v40, 0 :: v_dual_mov_b32 v31, v0
	s_add_u32 s8, s2, 32
	s_mov_b32 s12, s13
	s_mov_b64 s[10:11], s[4:5]
	s_addc_u32 s9, s3, 0
	s_mov_b64 s[4:5], s[0:1]
	s_mov_b32 s13, s14
	s_mov_b32 s14, s15
	s_mov_b32 s32, 0
	s_waitcnt lgkmcnt(0)
	s_load_b64 s[6:7], s[38:39], 0x0
	s_load_b64 s[16:17], s[40:41], 0x0
	s_waitcnt lgkmcnt(0)
	v_dual_mov_b32 v0, s6 :: v_dual_mov_b32 v1, s7
	v_dual_mov_b32 v2, s16 :: v_dual_mov_b32 v3, s17
	s_swappc_b64 s[30:31], s[36:37]
	global_store_b64 v40, v[0:1], s[42:43]
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.amdhsa_user_sgpr_count 13
		.amdhsa_user_sgpr_dispatch_ptr 1
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 1
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 1
		.amdhsa_enable_private_segment 1
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 1
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 2
		.amdhsa_next_free_vgpr 41
		.amdhsa_next_free_sgpr 44
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.section	.text._Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_,"axG",@progbits,_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_,comdat
.Lfunc_end2:
	.size	_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_, .Lfunc_end2-_Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 104
; NumSgprs: 46
; NumVgprs: 41
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 5
; VGPRBlocks: 5
; NumSGPRsForWavesPerEU: 46
; NumVGPRsForWavesPerEU: 41
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 1
; COMPUTE_PGM_RSRC2:USER_SGPR: 13
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 1
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 2
	.text
	.p2align	2                               ; -- Begin function _Z8mul_funcIdET_S0_S0_
	.type	_Z8mul_funcIdET_S0_S0_,@function
_Z8mul_funcIdET_S0_S0_:                 ; @_Z8mul_funcIdET_S0_S0_
; %bb.0:
	s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
	v_mul_f64 v[0:1], v[0:1], v[2:3]
	s_setpc_b64 s[30:31]
.Lfunc_end3:
	.size	_Z8mul_funcIdET_S0_S0_, .Lfunc_end3-_Z8mul_funcIdET_S0_S0_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Function info:
; codeLenInByte = 16
; NumSgprs: 32
; NumVgprs: 4
; ScratchSize: 0
; MemoryBound: 0
	.text
	.p2align	2                               ; -- Begin function _Z8add_funcIiET_S0_S0_
	.type	_Z8add_funcIiET_S0_S0_,@function
_Z8add_funcIiET_S0_S0_:                 ; @_Z8add_funcIiET_S0_S0_
; %bb.0:
	s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
	v_add_nc_u32_e32 v0, v1, v0
	s_setpc_b64 s[30:31]
.Lfunc_end4:
	.size	_Z8add_funcIiET_S0_S0_, .Lfunc_end4-_Z8add_funcIiET_S0_S0_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Function info:
; codeLenInByte = 12
; NumSgprs: 32
; NumVgprs: 2
; ScratchSize: 0
; MemoryBound: 0
	.text
	.p2align	2                               ; -- Begin function _Z8mul_funcIfET_S0_S0_
	.type	_Z8mul_funcIfET_S0_S0_,@function
_Z8mul_funcIfET_S0_S0_:                 ; @_Z8mul_funcIfET_S0_S0_
; %bb.0:
	s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
	v_mul_f32_e32 v0, v0, v1
	s_setpc_b64 s[30:31]
.Lfunc_end5:
	.size	_Z8mul_funcIfET_S0_S0_, .Lfunc_end5-_Z8mul_funcIfET_S0_S0_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Function info:
; codeLenInByte = 12
; NumSgprs: 32
; NumVgprs: 2
; ScratchSize: 0
; MemoryBound: 0
	.text
	.p2align	2                               ; -- Begin function _Z8add_funcIfET_S0_S0_
	.type	_Z8add_funcIfET_S0_S0_,@function
_Z8add_funcIfET_S0_S0_:                 ; @_Z8add_funcIfET_S0_S0_
; %bb.0:
	s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
	v_add_f32_e32 v0, v0, v1
	s_setpc_b64 s[30:31]
.Lfunc_end6:
	.size	_Z8add_funcIfET_S0_S0_, .Lfunc_end6-_Z8add_funcIfET_S0_S0_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Function info:
; codeLenInByte = 12
; NumSgprs: 32
; NumVgprs: 2
; ScratchSize: 0
; MemoryBound: 0
	.text
	.p2align	2                               ; -- Begin function _Z8add_funcIdET_S0_S0_
	.type	_Z8add_funcIdET_S0_S0_,@function
_Z8add_funcIdET_S0_S0_:                 ; @_Z8add_funcIdET_S0_S0_
; %bb.0:
	s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
	v_add_f64 v[0:1], v[0:1], v[2:3]
	s_setpc_b64 s[30:31]
.Lfunc_end7:
	.size	_Z8add_funcIdET_S0_S0_, .Lfunc_end7-_Z8add_funcIdET_S0_S0_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Function info:
; codeLenInByte = 16
; NumSgprs: 32
; NumVgprs: 4
; ScratchSize: 0
; MemoryBound: 0
	.text
	.p2align	2                               ; -- Begin function _Z8mul_funcIiET_S0_S0_
	.type	_Z8mul_funcIiET_S0_S0_,@function
_Z8mul_funcIiET_S0_S0_:                 ; @_Z8mul_funcIiET_S0_S0_
; %bb.0:
	s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
	v_mul_lo_u32 v0, v1, v0
	s_setpc_b64 s[30:31]
.Lfunc_end8:
	.size	_Z8mul_funcIiET_S0_S0_, .Lfunc_end8-_Z8mul_funcIiET_S0_S0_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Function info:
; codeLenInByte = 16
; NumSgprs: 32
; NumVgprs: 2
; ScratchSize: 0
; MemoryBound: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.protected	_Z10p_mul_funcIdE       ; @_Z10p_mul_funcIdE
	.type	_Z10p_mul_funcIdE,@object
	.section	.data._Z10p_mul_funcIdE,"awG",@progbits,_Z10p_mul_funcIdE,comdat
	.weak	_Z10p_mul_funcIdE
	.p2align	3, 0x0
_Z10p_mul_funcIdE:
	.quad	_Z8mul_funcIdET_S0_S0_
	.size	_Z10p_mul_funcIdE, 8

	.protected	_Z10p_add_funcIiE       ; @_Z10p_add_funcIiE
	.type	_Z10p_add_funcIiE,@object
	.section	.data._Z10p_add_funcIiE,"awG",@progbits,_Z10p_add_funcIiE,comdat
	.weak	_Z10p_add_funcIiE
	.p2align	3, 0x0
_Z10p_add_funcIiE:
	.quad	_Z8add_funcIiET_S0_S0_
	.size	_Z10p_add_funcIiE, 8

	.protected	_Z10p_mul_funcIfE       ; @_Z10p_mul_funcIfE
	.type	_Z10p_mul_funcIfE,@object
	.section	.data._Z10p_mul_funcIfE,"awG",@progbits,_Z10p_mul_funcIfE,comdat
	.weak	_Z10p_mul_funcIfE
	.p2align	3, 0x0
_Z10p_mul_funcIfE:
	.quad	_Z8mul_funcIfET_S0_S0_
	.size	_Z10p_mul_funcIfE, 8

	.protected	_Z10p_add_funcIfE       ; @_Z10p_add_funcIfE
	.type	_Z10p_add_funcIfE,@object
	.section	.data._Z10p_add_funcIfE,"awG",@progbits,_Z10p_add_funcIfE,comdat
	.weak	_Z10p_add_funcIfE
	.p2align	3, 0x0
_Z10p_add_funcIfE:
	.quad	_Z8add_funcIfET_S0_S0_
	.size	_Z10p_add_funcIfE, 8

	.protected	_Z10p_add_funcIdE       ; @_Z10p_add_funcIdE
	.type	_Z10p_add_funcIdE,@object
	.section	.data._Z10p_add_funcIdE,"awG",@progbits,_Z10p_add_funcIdE,comdat
	.weak	_Z10p_add_funcIdE
	.p2align	3, 0x0
_Z10p_add_funcIdE:
	.quad	_Z8add_funcIdET_S0_S0_
	.size	_Z10p_add_funcIdE, 8

	.protected	_Z10p_mul_funcIiE       ; @_Z10p_mul_funcIiE
	.type	_Z10p_mul_funcIiE,@object
	.section	.data._Z10p_mul_funcIiE,"awG",@progbits,_Z10p_mul_funcIiE,comdat
	.weak	_Z10p_mul_funcIiE
	.p2align	3, 0x0
_Z10p_mul_funcIiE:
	.quad	_Z8mul_funcIiET_S0_S0_
	.size	_Z10p_mul_funcIiE, 8

	.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 _Z8mul_funcIdET_S0_S0_
	.addrsig_sym _Z8add_funcIiET_S0_S0_
	.addrsig_sym _Z8mul_funcIfET_S0_S0_
	.addrsig_sym _Z8add_funcIfET_S0_S0_
	.addrsig_sym _Z8add_funcIdET_S0_S0_
	.addrsig_sym _Z8mul_funcIiET_S0_S0_
	.addrsig_sym _Z10p_mul_funcIdE
	.addrsig_sym _Z10p_add_funcIiE
	.addrsig_sym _Z10p_mul_funcIfE
	.addrsig_sym _Z10p_add_funcIfE
	.addrsig_sym _Z10p_add_funcIdE
	.addrsig_sym _Z10p_mul_funcIiE
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
      - .offset:         112
        .size:           8
        .value_kind:     hidden_hostcall_buffer
      - .offset:         120
        .size:           8
        .value_kind:     hidden_multigrid_sync_arg
      - .offset:         128
        .size:           8
        .value_kind:     hidden_heap_v1
      - .offset:         136
        .size:           8
        .value_kind:     hidden_default_queue
      - .offset:         232
        .size:           8
        .value_kind:     hidden_queue_ptr
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_
    .private_segment_fixed_size: 0
    .sgpr_count:     46
    .sgpr_spill_count: 0
    .symbol:         _Z6kernelIiEvPFT_S0_S0_EPS0_S3_S3_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: true
    .vgpr_count:     41
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
      - .offset:         112
        .size:           8
        .value_kind:     hidden_hostcall_buffer
      - .offset:         120
        .size:           8
        .value_kind:     hidden_multigrid_sync_arg
      - .offset:         128
        .size:           8
        .value_kind:     hidden_heap_v1
      - .offset:         136
        .size:           8
        .value_kind:     hidden_default_queue
      - .offset:         232
        .size:           8
        .value_kind:     hidden_queue_ptr
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_
    .private_segment_fixed_size: 0
    .sgpr_count:     46
    .sgpr_spill_count: 0
    .symbol:         _Z6kernelIfEvPFT_S0_S0_EPS0_S3_S3_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: true
    .vgpr_count:     41
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
      - .offset:         112
        .size:           8
        .value_kind:     hidden_hostcall_buffer
      - .offset:         120
        .size:           8
        .value_kind:     hidden_multigrid_sync_arg
      - .offset:         128
        .size:           8
        .value_kind:     hidden_heap_v1
      - .offset:         136
        .size:           8
        .value_kind:     hidden_default_queue
      - .offset:         232
        .size:           8
        .value_kind:     hidden_queue_ptr
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_
    .private_segment_fixed_size: 0
    .sgpr_count:     46
    .sgpr_spill_count: 0
    .symbol:         _Z6kernelIdEvPFT_S0_S0_EPS0_S3_S3_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: true
    .vgpr_count:     41
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
