#include <cstring>
#include <fstream>
#include <iostream>
#ifndef SHA256_H
#define SHA256_H
#include <string>

class SHA256
{
protected:

    const static unsigned int sha256_k[];
    static const unsigned int SHA224_256_BLOCK_SIZE = (512/8);
public:
    void init();
    void update(const unsigned char *message, unsigned int len);
    void final(unsigned char *digest);
    static const unsigned int DIGEST_SIZE = ( 256 / 8);

protected:
    void transform(const unsigned char *message, unsigned int block_nb, unsigned int number_of_elements);
    unsigned int m_tot_len;
    unsigned int m_len;
    unsigned char m_block[2*SHA224_256_BLOCK_SIZE];
    unsigned int m_h[8];
};

std::string sha256(std::string input);

#define SHA2_SHFR(x, n)    (x >> n)
#define SHA2_ROTR(x, n)   ((x >> n) | (x << ((sizeof(x) << 3) - n)))
#define SHA2_ROTL(x, n)   ((x << n) | (x >> ((sizeof(x) << 3) - n)))
#define SHA2_CH(x, y, z)  ((x & y) ^ (~x & z))
#define SHA2_MAJ(x, y, z) ((x & y) ^ (x & z) ^ (y & z))
#define SHA256_F1(x) (SHA2_ROTR(x,  2) ^ SHA2_ROTR(x, 13) ^ SHA2_ROTR(x, 22))
#define SHA256_F2(x) (SHA2_ROTR(x,  6) ^ SHA2_ROTR(x, 11) ^ SHA2_ROTR(x, 25))
#define SHA256_F3(x) (SHA2_ROTR(x,  7) ^ SHA2_ROTR(x, 18) ^ SHA2_SHFR(x,  3))
#define SHA256_F4(x) (SHA2_ROTR(x, 17) ^ SHA2_ROTR(x, 19) ^ SHA2_SHFR(x, 10))
#define SHA2_UNPACK32(x, str)                         \
{                                                     \
    *((str) + 3) = (unsigned char) ((x)      );       \
    *((str) + 2) = (unsigned char) ((x) >>  8);       \
    *((str) + 1) = (unsigned char) ((x) >> 16);       \
    *((str) + 0) = (unsigned char) ((x) >> 24);       \
}
#define SHA2_PACK32(str, x)                           \
{                                                     \
    *(x) =   ((unsigned int) *((str) + 3)      )      \
           | ((unsigned int) *((str) + 2) <<  8)      \
           | ((unsigned int) *((str) + 1) << 16)      \
           | ((unsigned int) *((str) + 0) << 24);     \
}
#endif

using std::string;
using std::cout;
using std::endl;


const unsigned int SHA256::sha256_k[64] = //UL = uint32
            {0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,
             0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
             0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3,
             0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
             0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc,
             0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
             0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7,
             0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,
             0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13,
             0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,
             0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3,
             0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,
             0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5,
             0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
             0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208,
             0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2};

__device__ unsigned int t11;
__device__ unsigned int t12;

__global__ void kernel1(unsigned char* sub_block_d, unsigned int *w_d, unsigned int *wv, unsigned int *m_h) {

    int j = threadIdx.x;

    wv[j] = m_h[j];

    if ( j >= 8 ) {
        SHA2_PACK32(&sub_block_d[j << 2], &w_d[j]);
        // printf("%d %d\n", sub_block_d[j << 2], w_d[j]);
    }
}

__global__ void kernel2(unsigned int *w_d, unsigned int *wv, unsigned int *sha256_k) {

    int j = threadIdx.x;
    if (j >= 16){
        w_d[j] = SHA256_F4(w_d[j -  2]) + w_d[j -  7] + SHA256_F3(w_d[j - 15]) + w_d[j - 16];
    }

    t11 = wv[7] + SHA256_F2(wv[4]) + SHA2_CH(wv[4], wv[5], wv[6])
    + sha256_k[j] + w_d[j];
    t12 = SHA256_F1(wv[0]) + SHA2_MAJ(wv[0], wv[1], wv[2]);
    wv[7] = wv[6];
    wv[6] = wv[5];
    wv[5] = wv[4];
    wv[4] = wv[3] + t11;
    wv[3] = wv[2];
    wv[2] = wv[1];
    wv[1] = wv[0];
    wv[0] = t11 + t12;

}

__global__ void kernel3(unsigned int *wv, unsigned int *m_h) {

    int j = threadIdx.x;    
    m_h[j] += wv[j];

}

void SHA256::transform(const unsigned char *message, unsigned int block_nb, unsigned int number_of_elements)
{
    unsigned int w[64];
    unsigned int wv[8];
    unsigned int *wv1;
    unsigned int *w_d;
    unsigned int *sha256_k1;

    unsigned int *wv_d;
    unsigned int *m_h_d;

    const unsigned char *sub_block;
    unsigned char *sub_block_d;
    int i;
    for (i = 0; i < (int) block_nb; i++) {

        sub_block = message + (i << 6);

        ///////////////////////// K 1 ////////////////////////////////
        cudaMalloc((void **) &sub_block_d, sizeof(unsigned char) * number_of_elements);
        cudaMemcpy(sub_block_d, sub_block, sizeof(unsigned char) * number_of_elements, cudaMemcpyHostToDevice);

        cudaMalloc((void **) &w_d, sizeof(unsigned int) * 64);
        cudaMemcpy(w_d, w, sizeof(unsigned int) * 64, cudaMemcpyHostToDevice);

        cudaMalloc((void **) &wv_d, sizeof(unsigned int) * 8);
        cudaMemcpy(wv_d, wv, sizeof(unsigned int) * 8, cudaMemcpyHostToDevice);

        cudaMalloc((void **) &m_h_d, sizeof(unsigned int) * 8);
        cudaMemcpy(m_h_d, m_h, sizeof(unsigned int) * 8, cudaMemcpyHostToDevice);

        kernel1<<<1, 16>>>(sub_block_d, w_d, wv_d, m_h_d);

        cudaDeviceSynchronize();
        cudaMemcpy(w, w_d, sizeof(unsigned int) * 64, cudaMemcpyDeviceToHost);
        cudaMemcpy(wv, wv_d, sizeof(unsigned int) * 8, cudaMemcpyDeviceToHost);
        cudaMemcpy(m_h, m_h_d, sizeof(unsigned int) * 8, cudaMemcpyDeviceToHost);
        // for(int k = 0; k < 64; k++){
        //     printf("%d ", w[k]);
        // }

        //////////////////////// K 2 ////////////////////////////////
        cudaMemcpy(w_d, w, sizeof(unsigned int) * 64, cudaMemcpyHostToDevice);

        cudaMalloc((void **) &wv1, sizeof(unsigned int) * 8);
        cudaMemcpy(wv1, wv, sizeof(unsigned int) * 8, cudaMemcpyHostToDevice);

        cudaMalloc((void **) &sha256_k1, sizeof(unsigned int) * 64);
        cudaMemcpy(sha256_k1, sha256_k, sizeof(unsigned int) * 64, cudaMemcpyHostToDevice);

        kernel2<<<1, 64>>>(w_d, wv1, sha256_k1);

        cudaDeviceSynchronize();
        cudaMemcpy(wv, wv1, sizeof(unsigned int) * 8, cudaMemcpyDeviceToHost);
        cudaMemcpy(w, w_d, sizeof(unsigned int) * 64, cudaMemcpyDeviceToHost);
       
        //////////////////////////K 3///////////////////////////////
        cudaMemcpy(wv1, wv, sizeof(unsigned int) * 8, cudaMemcpyHostToDevice);
        cudaMemcpy(m_h_d, m_h, sizeof(unsigned int) * 8, cudaMemcpyHostToDevice);

        kernel3<<<1, 8>>>(wv1, m_h_d);

        cudaDeviceSynchronize();
        cudaMemcpy(wv, wv1, sizeof(unsigned int) * 8, cudaMemcpyDeviceToHost);
        cudaMemcpy(m_h, m_h_d, sizeof(unsigned int) * 8, cudaMemcpyDeviceToHost);
    }
}

void SHA256::init()
{
    m_h[0] = 0x6a09e667;
    m_h[1] = 0xbb67ae85;
    m_h[2] = 0x3c6ef372;
    m_h[3] = 0xa54ff53a;
    m_h[4] = 0x510e527f;
    m_h[5] = 0x9b05688c;
    m_h[6] = 0x1f83d9ab;
    m_h[7] = 0x5be0cd19;
    m_len = 0;
    m_tot_len = 0;
}

void SHA256::update(const unsigned char *message, unsigned int len)
{
    unsigned int block_nb;
    unsigned int new_len, rem_len, tmp_len;
    const unsigned char *shifted_message;
    tmp_len = SHA224_256_BLOCK_SIZE - m_len;
    rem_len = len < tmp_len ? len : tmp_len;
    memcpy(&m_block[m_len], message, rem_len);
    if (m_len + len < SHA224_256_BLOCK_SIZE) {
        m_len += len;
        return;
    }
    new_len = len - rem_len;
    block_nb = new_len / SHA224_256_BLOCK_SIZE;
    shifted_message = message + rem_len;
    block_nb = new_len / SHA224_256_BLOCK_SIZE;
    transform(m_block, 1, SHA224_256_BLOCK_SIZE);
    transform(shifted_message, block_nb, SHA224_256_BLOCK_SIZE);
    rem_len = new_len % SHA224_256_BLOCK_SIZE;
    memcpy(m_block, &shifted_message[block_nb << 6], rem_len);
    m_len = rem_len;
    m_tot_len += (block_nb + 1) << 6;
}

void SHA256::final(unsigned char *digest)
{
    unsigned int block_nb;
    unsigned int pm_len;
    unsigned int len_b;
    int i;
    block_nb = (1 + ((SHA224_256_BLOCK_SIZE - 9)
                     < (m_len % SHA224_256_BLOCK_SIZE)));
    len_b = (m_tot_len + m_len) << 3;
    pm_len = block_nb << 6;
    memset(m_block + m_len, 0, pm_len - m_len);
    m_block[m_len] = 0x80;
    SHA2_UNPACK32(len_b, m_block + pm_len - 4);
    transform(m_block, block_nb, block_nb * len_b);
    for (i = 0 ; i < 8; i++) {
        SHA2_UNPACK32(m_h[i], &digest[i << 2]);
    }
}

std::string sha256(std::string input)
{
    unsigned char digest[SHA256::DIGEST_SIZE];
    memset(digest,0,SHA256::DIGEST_SIZE);

    SHA256 ctx = SHA256();
    ctx.init();
    ctx.update( (unsigned char*)input.c_str(), input.length());
    ctx.final(digest);

    char buf[2*SHA256::DIGEST_SIZE+1];
    buf[2*SHA256::DIGEST_SIZE] = 0;
    for (int i = 0; i < SHA256::DIGEST_SIZE; i++)
        sprintf(buf+i*2, "%02x", digest[i]);
    return std::string(buf);
}
int main(int argc, char *argv[])
{
    string input = "apple";
    string output1 = sha256(input);

    cout << "sha256('"<< input << "'):" << output1 << endl;
    return 0;
}
	.file	"tmpxft_002c78a7_00000000-6_sha256.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3774:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3774:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.globl	_ZN6SHA2564initEv
	.type	_ZN6SHA2564initEv, @function
_ZN6SHA2564initEv:
.LFB3767:
	.cfi_startproc
	endbr64
	movabsq	$-4942790177982912921, %rax
	movq	%rax, 136(%rdi)
	movabsq	$-6534734903820487822, %rax
	movq	%rax, 144(%rdi)
	movabsq	$-7276294671082564993, %rax
	movq	%rax, 152(%rdi)
	movabsq	$6620516960021240235, %rax
	movq	%rax, 160(%rdi)
	xorl	%eax, %eax
	movq	%rax, (%rdi)
	ret
	.cfi_endproc
.LFE3767:
	.size	_ZN6SHA2564initEv, .-_ZN6SHA2564initEv
	.globl	_Z34__device_stub__Z7kernel1PhPjS0_S0_PhPjS0_S0_
	.type	_Z34__device_stub__Z7kernel1PhPjS0_S0_PhPjS0_S0_, @function
_Z34__device_stub__Z7kernel1PhPjS0_S0_PhPjS0_S0_:
.LFB3796:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movq	%rcx, (%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	movq	%rsp, %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L3
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z7kernel1PhPjS0_S0_(%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
.L3:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3796:
	.size	_Z34__device_stub__Z7kernel1PhPjS0_S0_PhPjS0_S0_, .-_Z34__device_stub__Z7kernel1PhPjS0_S0_PhPjS0_S0_
	.globl	_Z7kernel1PhPjS0_S0_
	.type	_Z7kernel1PhPjS0_S0_, @function
_Z7kernel1PhPjS0_S0_:
.LFB3797:
	.cfi_startproc
	endbr64
	jmp	_Z34__device_stub__Z7kernel1PhPjS0_S0_PhPjS0_S0_
	.cfi_endproc
.LFE3797:
	.size	_Z7kernel1PhPjS0_S0_, .-_Z7kernel1PhPjS0_S0_
	.globl	_Z30__device_stub__Z7kernel2PjS_S_PjS_S_
	.type	_Z30__device_stub__Z7kernel2PjS_S_PjS_S_, @function
_Z30__device_stub__Z7kernel2PjS_S_PjS_S_:
.LFB3798:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L9
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z7kernel2PjS_S_(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L9:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3798:
	.size	_Z30__device_stub__Z7kernel2PjS_S_PjS_S_, .-_Z30__device_stub__Z7kernel2PjS_S_PjS_S_
	.globl	_Z7kernel2PjS_S_
	.type	_Z7kernel2PjS_S_, @function
_Z7kernel2PjS_S_:
.LFB3799:
	.cfi_startproc
	endbr64
	jmp	_Z30__device_stub__Z7kernel2PjS_S_PjS_S_
	.cfi_endproc
.LFE3799:
	.size	_Z7kernel2PjS_S_, .-_Z7kernel2PjS_S_
	.globl	_Z28__device_stub__Z7kernel3PjS_PjS_
	.type	_Z28__device_stub__Z7kernel3PjS_PjS_, @function
_Z28__device_stub__Z7kernel3PjS_PjS_:
.LFB3800:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	movq	%rsi, (%rsp)
	leaq	40(%rsp), %rdi
	leaq	52(%rsp), %rsi
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 48(%rsp)
	movq	%rax, 88(%rsp)
	movq	%rsp, %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 40(%rsp)
	movq	%rax, 52(%rsp)
	movl	$1, 60(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L14
	pushq	32(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z7kernel3PjS_(%rip), %rdi
	pushq	32(%rsp)
	.cfi_def_cfa_offset 144
	movq	68(%rsp), %rcx
	movl	76(%rsp), %r8d
	movq	56(%rsp), %rsi
	movl	64(%rsp), %edx
	leaq	104(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L14:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3800:
	.size	_Z28__device_stub__Z7kernel3PjS_PjS_, .-_Z28__device_stub__Z7kernel3PjS_PjS_
	.globl	_Z7kernel3PjS_
	.type	_Z7kernel3PjS_, @function
_Z7kernel3PjS_:
.LFB3801:
	.cfi_startproc
	endbr64
	jmp	_Z28__device_stub__Z7kernel3PjS_PjS_
	.cfi_endproc
.LFE3801:
	.size	_Z7kernel3PjS_, .-_Z7kernel3PjS_
	.align 2
	.globl	_ZN6SHA2569transformEPKhjj
	.type	_ZN6SHA2569transformEPKhjj, @function
_ZN6SHA2569transformEPKhjj:
.LFB3766:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movabsq	$4294967312, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%ecx, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rsi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%edx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$408, %rsp
	.cfi_def_cfa_offset 464
	movq	%fs:40, %rax
	movq	%rax, 392(%rsp)
	xorl	%eax, %eax
.L20:
	cmpl	%ebx, %ebp
	jle	.L27
	movl	%ebx, %eax
	movl	%r14d, %edx
	leaq	72(%rsp), %rdi
	sall	$6, %eax
	movq	%rdx, %rsi
	movq	%rdx, 16(%rsp)
	cltq
	addq	%r13, %rax
	movq	%rax, 8(%rsp)
	call	cudaMalloc@PLT
	movq	16(%rsp), %rdx
	movq	8(%rsp), %rsi
	movl	$1, %ecx
	movq	72(%rsp), %rdi
	call	cudaMemcpy@PLT
	leaq	40(%rsp), %rdi
	movl	$256, %esi
	call	cudaMalloc@PLT
	movq	40(%rsp), %rdi
	movl	$1, %ecx
	leaq	136(%rsp), %rax
	movl	$256, %edx
	movq	%rax, %rsi
	movq	%rax, 16(%rsp)
	call	cudaMemcpy@PLT
	leaq	56(%rsp), %rdi
	movl	$32, %esi
	call	cudaMalloc@PLT
	leaq	104(%rsp), %rax
	movq	56(%rsp), %rdi
	movl	$1, %ecx
	movl	$32, %edx
	movq	%rax, %rsi
	movq	%rax, 8(%rsp)
	call	cudaMemcpy@PLT
	leaq	64(%rsp), %rdi
	movl	$32, %esi
	call	cudaMalloc@PLT
	movq	64(%rsp), %rdi
	movl	$1, %ecx
	leaq	136(%r12), %rax
	movl	$32, %edx
	movq	%rax, %rsi
	movq	%rax, 24(%rsp)
	call	cudaMemcpy@PLT
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%r15, %rdx
	movl	$1, %ecx
	movl	$1, %esi
	movabsq	$4294967297, %rdi
	movq	%r15, 92(%rsp)
	movl	$1, 100(%rsp)
	movq	%rdi, 80(%rsp)
	movl	$1, 88(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L21
	movq	64(%rsp), %rcx
	movq	56(%rsp), %rdx
	movq	40(%rsp), %rsi
	movq	72(%rsp), %rdi
	call	_Z34__device_stub__Z7kernel1PhPjS0_S0_PhPjS0_S0_
.L21:
	call	cudaDeviceSynchronize@PLT
	movq	40(%rsp), %rsi
	movq	16(%rsp), %rdi
	movl	$2, %ecx
	movl	$256, %edx
	call	cudaMemcpy@PLT
	movq	56(%rsp), %rsi
	movq	8(%rsp), %rdi
	movl	$2, %ecx
	movl	$32, %edx
	call	cudaMemcpy@PLT
	movq	64(%rsp), %rsi
	movq	24(%rsp), %rdi
	movl	$2, %ecx
	movl	$32, %edx
	call	cudaMemcpy@PLT
	movq	16(%rsp), %rsi
	movq	40(%rsp), %rdi
	movl	$1, %ecx
	movl	$256, %edx
	call	cudaMemcpy@PLT
	leaq	32(%rsp), %rdi
	movl	$32, %esi
	call	cudaMalloc@PLT
	movq	8(%rsp), %rsi
	movq	32(%rsp), %rdi
	movl	$1, %ecx
	movl	$32, %edx
	call	cudaMemcpy@PLT
	leaq	48(%rsp), %rdi
	movl	$256, %esi
	call	cudaMalloc@PLT
	movq	48(%rsp), %rdi
	movl	$1, %ecx
	movl	$256, %edx
	leaq	_ZN6SHA2568sha256_kE(%rip), %rsi
	call	cudaMemcpy@PLT
	movl	$67108865, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	salq	$6, %rdx
	movl	$1, %ecx
	movabsq	$4294967297, %rdi
	movl	$1, %esi
	movq	%rdx, 92(%rsp)
	movl	$1, 100(%rsp)
	movq	%rdi, 80(%rsp)
	movl	$1, 88(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L22
	movq	48(%rsp), %rdx
	movq	32(%rsp), %rsi
	movq	40(%rsp), %rdi
	call	_Z30__device_stub__Z7kernel2PjS_S_PjS_S_
.L22:
	call	cudaDeviceSynchronize@PLT
	movq	32(%rsp), %rsi
	movq	8(%rsp), %rdi
	movl	$2, %ecx
	movl	$32, %edx
	call	cudaMemcpy@PLT
	movq	40(%rsp), %rsi
	movq	16(%rsp), %rdi
	movl	$2, %ecx
	movl	$256, %edx
	call	cudaMemcpy@PLT
	movq	8(%rsp), %rsi
	movq	32(%rsp), %rdi
	movl	$1, %ecx
	movl	$32, %edx
	call	cudaMemcpy@PLT
	movq	24(%rsp), %rsi
	movq	64(%rsp), %rdi
	movl	$1, %ecx
	movl	$32, %edx
	call	cudaMemcpy@PLT
	movl	$536870913, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	salq	$3, %rdx
	movl	$1, %ecx
	movabsq	$4294967297, %rdi
	movl	$1, %esi
	movq	%rdx, 92(%rsp)
	movl	$1, 100(%rsp)
	movq	%rdi, 80(%rsp)
	movl	$1, 88(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L23
	movq	64(%rsp), %rsi
	movq	32(%rsp), %rdi
	call	_Z28__device_stub__Z7kernel3PjS_PjS_
.L23:
	call	cudaDeviceSynchronize@PLT
	movq	32(%rsp), %rsi
	movq	8(%rsp), %rdi
	incl	%ebx
	movl	$2, %ecx
	movl	$32, %edx
	call	cudaMemcpy@PLT
	movq	64(%rsp), %rsi
	movq	24(%rsp), %rdi
	movl	$2, %ecx
	movl	$32, %edx
	call	cudaMemcpy@PLT
	jmp	.L20
.L27:
	movq	392(%rsp), %rax
	subq	%fs:40, %rax
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	addq	$408, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3766:
	.size	_ZN6SHA2569transformEPKhjj, .-_ZN6SHA2569transformEPKhjj
	.align 2
	.globl	_ZN6SHA2566updateEPKhj
	.type	_ZN6SHA2566updateEPKhj, @function
_ZN6SHA2566updateEPKhj:
.LFB3768:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	%edx, %eax
	movl	$64, %edx
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	subl	%edi, %edx
	leaq	8(%rbx,%rdi), %r8
	cmpl	%eax, %edx
	movq	%r8, %rdi
	cmova	%eax, %edx
	movl	%edx, %ecx
	rep movsb
	movl	4(%rbx), %ecx
	addl	%eax, %ecx
	cmpl	$63, %ecx
	ja	.L29
	movl	%ecx, 4(%rbx)
	jmp	.L28
.L29:
	subl	%edx, %eax
	leaq	8(%rbx), %r14
	movq	%rsi, %r12
	movl	$64, %ecx
	movl	%eax, %r13d
	movl	$1, %edx
	movq	%r14, %rsi
	movq	%rbx, %rdi
	shrl	$6, %r13d
	movl	%eax, %ebp
	call	_ZN6SHA2569transformEPKhjj
	movl	%r13d, %edx
	movl	$64, %ecx
	movq	%r12, %rsi
	movq	%rbx, %rdi
	incl	%r13d
	call	_ZN6SHA2569transformEPKhjj
	movl	%ebp, %edx
	movl	%ebp, %eax
	movq	%r14, %rdi
	andl	$63, %edx
	andl	$-64, %eax
	sall	$6, %r13d
	leaq	(%r12,%rax), %rsi
	movl	%edx, %ecx
	rep movsb
	movl	%edx, 4(%rbx)
	addl	%r13d, (%rbx)
.L28:
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3768:
	.size	_ZN6SHA2566updateEPKhj, .-_ZN6SHA2566updateEPKhj
	.align 2
	.globl	_ZN6SHA2565finalEPh
	.type	_ZN6SHA2565finalEPh, @function
_ZN6SHA2565finalEPh:
.LFB3769:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	pushq	%rdx
	.cfi_def_cfa_offset 32
	movl	4(%rdi), %edi
	leaq	8(%rbx), %rsi
	movl	(%rbx), %edx
	movl	%edi, %eax
	leaq	(%rsi,%rdi), %r9
	andl	$63, %eax
	cmpl	$56, %eax
	sbbl	%r10d, %r10d
	addl	%edi, %edx
	xorl	%eax, %eax
	addl	$2, %r10d
	sall	$3, %edx
	movl	%r10d, %r8d
	sall	$6, %r8d
	movl	%r8d, %ecx
	subl	%edi, %ecx
	movq	%r9, %rdi
	rep stosb
	movl	%edx, %ecx
	movq	%rbx, %rdi
	shrl	$16, %ecx
	movl	4(%rbx), %eax
	movb	$-128, 8(%rbx,%rax)
	movl	%r8d, %eax
	movb	%cl, -3(%rsi,%rax)
	movl	%edx, %ecx
	movb	%dl, -1(%rsi,%rax)
	shrl	$24, %ecx
	movb	%dh, -2(%rsi,%rax)
	imull	%r10d, %edx
	movb	%cl, -4(%rsi,%rax)
	movl	%edx, %ecx
	movl	%r10d, %edx
	call	_ZN6SHA2569transformEPKhjj
	xorl	%eax, %eax
.L34:
	movl	136(%rbx,%rax), %edx
	movb	%dl, 3(%rbp,%rax)
	movl	136(%rbx,%rax), %edx
	movb	%dh, 2(%rbp,%rax)
	movzwl	138(%rbx,%rax), %edx
	movb	%dl, 1(%rbp,%rax)
	movzbl	139(%rbx,%rax), %edx
	movb	%dl, 0(%rbp,%rax)
	addq	$4, %rax
	cmpq	$32, %rax
	jne	.L34
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3769:
	.size	_ZN6SHA2565finalEPh, .-_ZN6SHA2565finalEPh
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_Z7kernel3PjS_"
.LC1:
	.string	"_Z7kernel2PjS_S_"
.LC2:
	.string	"_Z7kernel1PhPjS0_S0_"
.LC3:
	.string	"t11"
.LC4:
	.string	"t12"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3803:
	.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	_Z7kernel3PjS_(%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	_Z7kernel2PjS_S_(%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	_Z7kernel1PhPjS0_S0_(%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	$4, %r9d
	leaq	_ZL3t11(%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	$4, %r9d
	leaq	_ZL3t12(%rip), %rsi
	call	__cudaRegisterVar@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	popq	%rcx
	.cfi_def_cfa_offset 24
	popq	%rsi
	.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
.LFE3803:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.str1.1,"aMS",@progbits,1
.LC5:
	.string	"basic_string: construction from null is not valid"
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC5IS3_EEPKcRKS3_,comdat
	.align 2
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, @function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_:
.LFB4121:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	16(%rdi), %rax
	movq	%rax, (%rdi)
	testq	%rsi, %rsi
	jne	.L41
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L46
	leaq	.LC5(%rip), %rdi
	call	_ZSt19__throw_logic_errorPKc@PLT
.L41:
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movq	%rsi, %rbp
	call	strlen@PLT
	movq	%rax, (%rsp)
	leaq	0(%rbp,%rax), %r12
	cmpq	$15, %rax
	jbe	.L43
	movq	%rsp, %rsi
	xorl	%edx, %edx
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm@PLT
	movq	%rax, (%rbx)
	movq	(%rsp), %rax
	movq	%rax, 16(%rbx)
.L43:
	movq	(%rbx), %rdi
	movq	%r12, %rdx
	movq	%rbp, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcPKcS7_@PLT
	movq	(%rsp), %rax
	movq	(%rbx), %rdx
	movq	%rax, 8(%rbx)
	movb	$0, (%rdx,%rax)
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L44
.L46:
	call	__stack_chk_fail@PLT
.L44:
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4121:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, .-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
	.set	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.section	.rodata.str1.1
.LC6:
	.string	"%02x"
	.text
	.globl	_Z6sha256NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.type	_Z6sha256NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, @function
_Z6sha256NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
.LFB3770:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$8, %ecx
	leaq	.LC6(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$296, %rsp
	.cfi_def_cfa_offset 352
	movq	%fs:40, %rax
	movq	%rax, 280(%rsp)
	xorl	%eax, %eax
	leaq	183(%rsp), %r13
	leaq	12(%rsp), %rbx
	movq	%r13, %rdi
	leaq	215(%rsp), %r12
	movq	%r12, %r14
	rep stosl
	leaq	20(%rsp), %rdi
	movl	$32, %ecx
	rep stosl
	movq	%rbx, %rdi
	call	_ZN6SHA2564initEv
	movl	8(%rsi), %edx
	movq	(%rsi), %rsi
	call	_ZN6SHA2566updateEPKhj
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%ebx, %ebx
	call	_ZN6SHA2565finalEPh
	movb	$0, 279(%rsp)
.L48:
	imulq	$-2, %rbx, %rdx
	movzbl	0(%r13,%rbx), %r8d
	movq	%r12, %rdi
	movq	%r15, %rcx
	movl	$2, %esi
	xorl	%eax, %eax
	incq	%rbx
	addq	$2, %r12
	addq	$65, %rdx
	call	__sprintf_chk@PLT
	cmpq	$32, %rbx
	jne	.L48
	leaq	11(%rsp), %rdx
	movq	%r14, %rsi
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
	movq	280(%rsp), %rax
	subq	%fs:40, %rax
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	addq	$296, %rsp
	.cfi_def_cfa_offset 56
	movq	%rbp, %rax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3770:
	.size	_Z6sha256NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, .-_Z6sha256NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.section	.rodata.str1.1
.LC7:
	.string	"apple"
.LC8:
	.string	"sha256('"
.LC9:
	.string	"'):"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB3771:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA3771
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC7(%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	$120, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rbp
	leaq	7(%rsp), %rdx
	movq	%rbp, %rdi
	leaq	72(%rsp), %r13
.LEHB0:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE0:
	movq	%rbp, %rsi
	movq	%r13, %rdi
.LEHB1:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_@PLT
.LEHE1:
	leaq	40(%rsp), %r12
	movq	%r13, %rsi
	movq	%r12, %rdi
.LEHB2:
	call	_Z6sha256NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.LEHE2:
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	.LC8(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
.LEHB3:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	%rbp, %rsi
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	%rax, %rdi
	leaq	.LC9(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	%r12, %rsi
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
.LEHE3:
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L57
	jmp	.L61
.L58:
	endbr64
	movq	%rax, %rbx
.L53:
	movq	%r13, %rdi
	jmp	.L63
.L60:
	endbr64
	movq	%rax, %rbx
.L55:
	movq	%r12, %rdi
.L63:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L54
.L59:
	endbr64
	movq	%rax, %rbx
.L54:
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L61
	movq	%rbx, %rdi
.LEHB4:
	call	_Unwind_Resume@PLT
.LEHE4:
.L61:
	call	__stack_chk_fail@PLT
.L57:
	addq	$120, %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
.LFE3771:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA3771:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE3771-.LLSDACSB3771
.LLSDACSB3771:
	.uleb128 .LEHB0-.LFB3771
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB3771
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L59-.LFB3771
	.uleb128 0
	.uleb128 .LEHB2-.LFB3771
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L58-.LFB3771
	.uleb128 0
	.uleb128 .LEHB3-.LFB3771
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L60-.LFB3771
	.uleb128 0
	.uleb128 .LEHB4-.LFB3771
	.uleb128 .LEHE4-.LEHB4
	.uleb128 0
	.uleb128 0
.LLSDACSE3771:
	.section	.text.startup
	.size	main, .-main
	.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
	.local	_ZL3t12
	.comm	_ZL3t12,4,4
	.local	_ZL3t11
	.comm	_ZL3t11,4,4
	.globl	_ZN6SHA2568sha256_kE
	.section	.rodata
	.align 32
	.type	_ZN6SHA2568sha256_kE, @object
	.size	_ZN6SHA2568sha256_kE, 256
_ZN6SHA2568sha256_kE:
	.long	1116352408
	.long	1899447441
	.long	-1245643825
	.long	-373957723
	.long	961987163
	.long	1508970993
	.long	-1841331548
	.long	-1424204075
	.long	-670586216
	.long	310598401
	.long	607225278
	.long	1426881987
	.long	1925078388
	.long	-2132889090
	.long	-1680079193
	.long	-1046744716
	.long	-459576895
	.long	-272742522
	.long	264347078
	.long	604807628
	.long	770255983
	.long	1249150122
	.long	1555081692
	.long	1996064986
	.long	-1740746414
	.long	-1473132947
	.long	-1341970488
	.long	-1084653625
	.long	-958395405
	.long	-710438585
	.long	113926993
	.long	338241895
	.long	666307205
	.long	773529912
	.long	1294757372
	.long	1396182291
	.long	1695183700
	.long	1986661051
	.long	-2117940946
	.long	-1838011259
	.long	-1564481375
	.long	-1474664885
	.long	-1035236496
	.long	-949202525
	.long	-778901479
	.long	-694614492
	.long	-200395387
	.long	275423344
	.long	430227734
	.long	506948616
	.long	659060556
	.long	883997877
	.long	958139571
	.long	1322822218
	.long	1537002063
	.long	1747873779
	.long	1955562222
	.long	2024104815
	.long	-2067236844
	.long	-1933114872
	.long	-1866530822
	.long	-1538233109
	.long	-1090935817
	.long	-965641998
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.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 <cstring>
#include <fstream>
#include <iostream>
#ifndef SHA256_H
#define SHA256_H
#include <string>

class SHA256
{
protected:

    const static unsigned int sha256_k[];
    static const unsigned int SHA224_256_BLOCK_SIZE = (512/8);
public:
    void init();
    void update(const unsigned char *message, unsigned int len);
    void final(unsigned char *digest);
    static const unsigned int DIGEST_SIZE = ( 256 / 8);

protected:
    void transform(const unsigned char *message, unsigned int block_nb, unsigned int number_of_elements);
    unsigned int m_tot_len;
    unsigned int m_len;
    unsigned char m_block[2*SHA224_256_BLOCK_SIZE];
    unsigned int m_h[8];
};

std::string sha256(std::string input);

#define SHA2_SHFR(x, n)    (x >> n)
#define SHA2_ROTR(x, n)   ((x >> n) | (x << ((sizeof(x) << 3) - n)))
#define SHA2_ROTL(x, n)   ((x << n) | (x >> ((sizeof(x) << 3) - n)))
#define SHA2_CH(x, y, z)  ((x & y) ^ (~x & z))
#define SHA2_MAJ(x, y, z) ((x & y) ^ (x & z) ^ (y & z))
#define SHA256_F1(x) (SHA2_ROTR(x,  2) ^ SHA2_ROTR(x, 13) ^ SHA2_ROTR(x, 22))
#define SHA256_F2(x) (SHA2_ROTR(x,  6) ^ SHA2_ROTR(x, 11) ^ SHA2_ROTR(x, 25))
#define SHA256_F3(x) (SHA2_ROTR(x,  7) ^ SHA2_ROTR(x, 18) ^ SHA2_SHFR(x,  3))
#define SHA256_F4(x) (SHA2_ROTR(x, 17) ^ SHA2_ROTR(x, 19) ^ SHA2_SHFR(x, 10))
#define SHA2_UNPACK32(x, str)                         \
{                                                     \
    *((str) + 3) = (unsigned char) ((x)      );       \
    *((str) + 2) = (unsigned char) ((x) >>  8);       \
    *((str) + 1) = (unsigned char) ((x) >> 16);       \
    *((str) + 0) = (unsigned char) ((x) >> 24);       \
}
#define SHA2_PACK32(str, x)                           \
{                                                     \
    *(x) =   ((unsigned int) *((str) + 3)      )      \
           | ((unsigned int) *((str) + 2) <<  8)      \
           | ((unsigned int) *((str) + 1) << 16)      \
           | ((unsigned int) *((str) + 0) << 24);     \
}
#endif

using std::string;
using std::cout;
using std::endl;


const unsigned int SHA256::sha256_k[64] = //UL = uint32
            {0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,
             0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
             0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3,
             0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
             0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc,
             0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
             0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7,
             0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,
             0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13,
             0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,
             0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3,
             0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,
             0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5,
             0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
             0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208,
             0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2};

__device__ unsigned int t11;
__device__ unsigned int t12;

__global__ void kernel1(unsigned char* sub_block_d, unsigned int *w_d, unsigned int *wv, unsigned int *m_h) {

    int j = threadIdx.x;

    wv[j] = m_h[j];

    if ( j >= 8 ) {
        SHA2_PACK32(&sub_block_d[j << 2], &w_d[j]);
        // printf("%d %d\n", sub_block_d[j << 2], w_d[j]);
    }
}

__global__ void kernel2(unsigned int *w_d, unsigned int *wv, unsigned int *sha256_k) {

    int j = threadIdx.x;
    if (j >= 16){
        w_d[j] = SHA256_F4(w_d[j -  2]) + w_d[j -  7] + SHA256_F3(w_d[j - 15]) + w_d[j - 16];
    }

    t11 = wv[7] + SHA256_F2(wv[4]) + SHA2_CH(wv[4], wv[5], wv[6])
    + sha256_k[j] + w_d[j];
    t12 = SHA256_F1(wv[0]) + SHA2_MAJ(wv[0], wv[1], wv[2]);
    wv[7] = wv[6];
    wv[6] = wv[5];
    wv[5] = wv[4];
    wv[4] = wv[3] + t11;
    wv[3] = wv[2];
    wv[2] = wv[1];
    wv[1] = wv[0];
    wv[0] = t11 + t12;

}

__global__ void kernel3(unsigned int *wv, unsigned int *m_h) {

    int j = threadIdx.x;    
    m_h[j] += wv[j];

}

void SHA256::transform(const unsigned char *message, unsigned int block_nb, unsigned int number_of_elements)
{
    unsigned int w[64];
    unsigned int wv[8];
    unsigned int *wv1;
    unsigned int *w_d;
    unsigned int *sha256_k1;

    unsigned int *wv_d;
    unsigned int *m_h_d;

    const unsigned char *sub_block;
    unsigned char *sub_block_d;
    int i;
    for (i = 0; i < (int) block_nb; i++) {

        sub_block = message + (i << 6);

        ///////////////////////// K 1 ////////////////////////////////
        hipMalloc((void **) &sub_block_d, sizeof(unsigned char) * number_of_elements);
        hipMemcpy(sub_block_d, sub_block, sizeof(unsigned char) * number_of_elements, hipMemcpyHostToDevice);

        hipMalloc((void **) &w_d, sizeof(unsigned int) * 64);
        hipMemcpy(w_d, w, sizeof(unsigned int) * 64, hipMemcpyHostToDevice);

        hipMalloc((void **) &wv_d, sizeof(unsigned int) * 8);
        hipMemcpy(wv_d, wv, sizeof(unsigned int) * 8, hipMemcpyHostToDevice);

        hipMalloc((void **) &m_h_d, sizeof(unsigned int) * 8);
        hipMemcpy(m_h_d, m_h, sizeof(unsigned int) * 8, hipMemcpyHostToDevice);

        kernel1<<<1, 16>>>(sub_block_d, w_d, wv_d, m_h_d);

        hipDeviceSynchronize();
        hipMemcpy(w, w_d, sizeof(unsigned int) * 64, hipMemcpyDeviceToHost);
        hipMemcpy(wv, wv_d, sizeof(unsigned int) * 8, hipMemcpyDeviceToHost);
        hipMemcpy(m_h, m_h_d, sizeof(unsigned int) * 8, hipMemcpyDeviceToHost);
        // for(int k = 0; k < 64; k++){
        //     printf("%d ", w[k]);
        // }

        //////////////////////// K 2 ////////////////////////////////
        hipMemcpy(w_d, w, sizeof(unsigned int) * 64, hipMemcpyHostToDevice);

        hipMalloc((void **) &wv1, sizeof(unsigned int) * 8);
        hipMemcpy(wv1, wv, sizeof(unsigned int) * 8, hipMemcpyHostToDevice);

        hipMalloc((void **) &sha256_k1, sizeof(unsigned int) * 64);
        hipMemcpy(sha256_k1, sha256_k, sizeof(unsigned int) * 64, hipMemcpyHostToDevice);

        kernel2<<<1, 64>>>(w_d, wv1, sha256_k1);

        hipDeviceSynchronize();
        hipMemcpy(wv, wv1, sizeof(unsigned int) * 8, hipMemcpyDeviceToHost);
        hipMemcpy(w, w_d, sizeof(unsigned int) * 64, hipMemcpyDeviceToHost);
       
        //////////////////////////K 3///////////////////////////////
        hipMemcpy(wv1, wv, sizeof(unsigned int) * 8, hipMemcpyHostToDevice);
        hipMemcpy(m_h_d, m_h, sizeof(unsigned int) * 8, hipMemcpyHostToDevice);

        kernel3<<<1, 8>>>(wv1, m_h_d);

        hipDeviceSynchronize();
        hipMemcpy(wv, wv1, sizeof(unsigned int) * 8, hipMemcpyDeviceToHost);
        hipMemcpy(m_h, m_h_d, sizeof(unsigned int) * 8, hipMemcpyDeviceToHost);
    }
}

void SHA256::init()
{
    m_h[0] = 0x6a09e667;
    m_h[1] = 0xbb67ae85;
    m_h[2] = 0x3c6ef372;
    m_h[3] = 0xa54ff53a;
    m_h[4] = 0x510e527f;
    m_h[5] = 0x9b05688c;
    m_h[6] = 0x1f83d9ab;
    m_h[7] = 0x5be0cd19;
    m_len = 0;
    m_tot_len = 0;
}

void SHA256::update(const unsigned char *message, unsigned int len)
{
    unsigned int block_nb;
    unsigned int new_len, rem_len, tmp_len;
    const unsigned char *shifted_message;
    tmp_len = SHA224_256_BLOCK_SIZE - m_len;
    rem_len = len < tmp_len ? len : tmp_len;
    memcpy(&m_block[m_len], message, rem_len);
    if (m_len + len < SHA224_256_BLOCK_SIZE) {
        m_len += len;
        return;
    }
    new_len = len - rem_len;
    block_nb = new_len / SHA224_256_BLOCK_SIZE;
    shifted_message = message + rem_len;
    block_nb = new_len / SHA224_256_BLOCK_SIZE;
    transform(m_block, 1, SHA224_256_BLOCK_SIZE);
    transform(shifted_message, block_nb, SHA224_256_BLOCK_SIZE);
    rem_len = new_len % SHA224_256_BLOCK_SIZE;
    memcpy(m_block, &shifted_message[block_nb << 6], rem_len);
    m_len = rem_len;
    m_tot_len += (block_nb + 1) << 6;
}

void SHA256::final(unsigned char *digest)
{
    unsigned int block_nb;
    unsigned int pm_len;
    unsigned int len_b;
    int i;
    block_nb = (1 + ((SHA224_256_BLOCK_SIZE - 9)
                     < (m_len % SHA224_256_BLOCK_SIZE)));
    len_b = (m_tot_len + m_len) << 3;
    pm_len = block_nb << 6;
    memset(m_block + m_len, 0, pm_len - m_len);
    m_block[m_len] = 0x80;
    SHA2_UNPACK32(len_b, m_block + pm_len - 4);
    transform(m_block, block_nb, block_nb * len_b);
    for (i = 0 ; i < 8; i++) {
        SHA2_UNPACK32(m_h[i], &digest[i << 2]);
    }
}

std::string sha256(std::string input)
{
    unsigned char digest[SHA256::DIGEST_SIZE];
    memset(digest,0,SHA256::DIGEST_SIZE);

    SHA256 ctx = SHA256();
    ctx.init();
    ctx.update( (unsigned char*)input.c_str(), input.length());
    ctx.final(digest);

    char buf[2*SHA256::DIGEST_SIZE+1];
    buf[2*SHA256::DIGEST_SIZE] = 0;
    for (int i = 0; i < SHA256::DIGEST_SIZE; i++)
        sprintf(buf+i*2, "%02x", digest[i]);
    return std::string(buf);
}
int main(int argc, char *argv[])
{
    string input = "apple";
    string output1 = sha256(input);

    cout << "sha256('"<< input << "'):" << output1 << endl;
    return 0;
}
	.text
	.file	"sha256.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	_Z22__device_stub__kernel1PhPjS0_S0_ # -- Begin function _Z22__device_stub__kernel1PhPjS0_S0_
	.type	_Z22__device_stub__kernel1PhPjS0_S0_,@function
_Z22__device_stub__kernel1PhPjS0_S0_:   # @_Z22__device_stub__kernel1PhPjS0_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	$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	$_Z7kernel1PhPjS0_S0_, %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_end0:
	.size	_Z22__device_stub__kernel1PhPjS0_S0_, .Lfunc_end0-_Z22__device_stub__kernel1PhPjS0_S0_
	.cfi_endproc
                                        # -- End function
	.globl	_Z22__device_stub__kernel2PjS_S_ # -- Begin function _Z22__device_stub__kernel2PjS_S_
	.type	_Z22__device_stub__kernel2PjS_S_,@function
_Z22__device_stub__kernel2PjS_S_:       # @_Z22__device_stub__kernel2PjS_S_
	.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), %rcx
	movq	%rsi, (%rcx)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%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	$_Z7kernel2PjS_S_, %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_end1:
	.size	_Z22__device_stub__kernel2PjS_S_, .Lfunc_end1-_Z22__device_stub__kernel2PjS_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z22__device_stub__kernel3PjS_  # -- Begin function _Z22__device_stub__kernel3PjS_
	.type	_Z22__device_stub__kernel3PjS_,@function
_Z22__device_stub__kernel3PjS_:         # @_Z22__device_stub__kernel3PjS_
	.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	$80, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	16(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%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	$_Z7kernel3PjS_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$96, %rsp
	.cfi_adjust_cfa_offset -96
	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	_Z22__device_stub__kernel3PjS_, .Lfunc_end2-_Z22__device_stub__kernel3PjS_
	.cfi_endproc
                                        # -- End function
	.globl	_ZN6SHA2569transformEPKhjj      # -- Begin function _ZN6SHA2569transformEPKhjj
	.p2align	1, 0x90
	.type	_ZN6SHA2569transformEPKhjj,@function
_ZN6SHA2569transformEPKhjj:             # @_ZN6SHA2569transformEPKhjj
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$392, %rsp                      # imm = 0x188
	.cfi_def_cfa_offset 448
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rsi, 88(%rsp)                  # 8-byte Spill
	testl	%edx, %edx
	jle	.LBB3_9
# %bb.1:                                # %.lr.ph
	movq	%rdi, %r14
	movabsq	$4294967297, %rax               # imm = 0x100000001
	movl	%ecx, %r12d
	addq	$136, %r14
	movl	%edx, %ecx
	shlq	$6, %rcx
	movq	%rcx, 80(%rsp)                  # 8-byte Spill
	xorl	%r15d, %r15d
	leaq	128(%rsp), %r13
	leaq	96(%rsp), %rbp
	leaq	15(%rax), %rcx
	movq	%rcx, 72(%rsp)                  # 8-byte Spill
	leaq	63(%rax), %rcx
	movq	%rcx, 64(%rsp)                  # 8-byte Spill
	addq	$7, %rax
	movq	%rax, 56(%rsp)                  # 8-byte Spill
.LBB3_2:                                # =>This Inner Loop Header: Depth=1
	movslq	%r15d, %rbx
	addq	88(%rsp), %rbx                  # 8-byte Folded Reload
	leaq	40(%rsp), %rdi
	movq	%r12, %rsi
	callq	hipMalloc
	movq	40(%rsp), %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movl	$256, %esi                      # imm = 0x100
	leaq	16(%rsp), %rdi
	callq	hipMalloc
	movq	16(%rsp), %rdi
	movl	$256, %edx                      # imm = 0x100
	movq	%r13, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movl	$32, %esi
	leaq	32(%rsp), %rdi
	callq	hipMalloc
	movq	32(%rsp), %rdi
	movl	$32, %edx
	movq	%rbp, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movl	$32, %esi
	leaq	8(%rsp), %rdi
	callq	hipMalloc
	movq	8(%rsp), %rdi
	movl	$32, %edx
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movabsq	$4294967297, %rbx               # imm = 0x100000001
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	72(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB3_4
# %bb.3:                                #   in Loop: Header=BB3_2 Depth=1
	movq	40(%rsp), %rdi
	movq	16(%rsp), %rsi
	movq	32(%rsp), %rdx
	movq	8(%rsp), %rcx
	callq	_Z22__device_stub__kernel1PhPjS0_S0_
.LBB3_4:                                #   in Loop: Header=BB3_2 Depth=1
	callq	hipDeviceSynchronize
	movq	16(%rsp), %rsi
	movl	$256, %edx                      # imm = 0x100
	movq	%r13, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movq	32(%rsp), %rsi
	movl	$32, %edx
	movq	%rbp, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movq	8(%rsp), %rsi
	movl	$32, %edx
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movq	16(%rsp), %rdi
	movl	$256, %edx                      # imm = 0x100
	movq	%r13, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movl	$32, %esi
	leaq	24(%rsp), %rdi
	callq	hipMalloc
	movq	24(%rsp), %rdi
	movl	$32, %edx
	movq	%rbp, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movl	$256, %esi                      # imm = 0x100
	leaq	48(%rsp), %rdi
	callq	hipMalloc
	movq	48(%rsp), %rdi
	movl	$_ZN6SHA2568sha256_kE, %esi
	movl	$256, %edx                      # imm = 0x100
	movl	$1, %ecx
	callq	hipMemcpy
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	64(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB3_6
# %bb.5:                                #   in Loop: Header=BB3_2 Depth=1
	movq	16(%rsp), %rdi
	movq	24(%rsp), %rsi
	movq	48(%rsp), %rdx
	callq	_Z22__device_stub__kernel2PjS_S_
.LBB3_6:                                #   in Loop: Header=BB3_2 Depth=1
	callq	hipDeviceSynchronize
	movq	24(%rsp), %rsi
	movl	$32, %edx
	movq	%rbp, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movq	16(%rsp), %rsi
	movl	$256, %edx                      # imm = 0x100
	movq	%r13, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movq	24(%rsp), %rdi
	movl	$32, %edx
	movq	%rbp, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	8(%rsp), %rdi
	movl	$32, %edx
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	56(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB3_8
# %bb.7:                                #   in Loop: Header=BB3_2 Depth=1
	movq	24(%rsp), %rdi
	movq	8(%rsp), %rsi
	callq	_Z22__device_stub__kernel3PjS_
.LBB3_8:                                #   in Loop: Header=BB3_2 Depth=1
	callq	hipDeviceSynchronize
	movq	24(%rsp), %rsi
	movl	$32, %edx
	movq	%rbp, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movq	8(%rsp), %rsi
	movl	$32, %edx
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	addq	$64, %r15
	cmpq	%r15, 80(%rsp)                  # 8-byte Folded Reload
	jne	.LBB3_2
.LBB3_9:                                # %._crit_edge
	addq	$392, %rsp                      # imm = 0x188
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_ZN6SHA2569transformEPKhjj, .Lfunc_end3-_ZN6SHA2569transformEPKhjj
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function _ZN6SHA2564initEv
.LCPI4_0:
	.long	1779033703                      # 0x6a09e667
	.long	3144134277                      # 0xbb67ae85
	.long	1013904242                      # 0x3c6ef372
	.long	2773480762                      # 0xa54ff53a
.LCPI4_1:
	.long	1359893119                      # 0x510e527f
	.long	2600822924                      # 0x9b05688c
	.long	528734635                       # 0x1f83d9ab
	.long	1541459225                      # 0x5be0cd19
	.text
	.globl	_ZN6SHA2564initEv
	.p2align	1, 0x90
	.type	_ZN6SHA2564initEv,@function
_ZN6SHA2564initEv:                      # @_ZN6SHA2564initEv
	.cfi_startproc
# %bb.0:
	movaps	.LCPI4_0(%rip), %xmm0           # xmm0 = [1779033703,3144134277,1013904242,2773480762]
	movups	%xmm0, 136(%rdi)
	movaps	.LCPI4_1(%rip), %xmm0           # xmm0 = [1359893119,2600822924,528734635,1541459225]
	movups	%xmm0, 152(%rdi)
	movq	$0, (%rdi)
	retq
.Lfunc_end4:
	.size	_ZN6SHA2564initEv, .Lfunc_end4-_ZN6SHA2564initEv
	.cfi_endproc
                                        # -- End function
	.globl	_ZN6SHA2566updateEPKhj          # -- Begin function _ZN6SHA2566updateEPKhj
	.p2align	1, 0x90
	.type	_ZN6SHA2566updateEPKhj,@function
_ZN6SHA2566updateEPKhj:                 # @_ZN6SHA2566updateEPKhj
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	4(%rdi), %eax
	movl	$64, %r13d
	subl	%eax, %r13d
	cmpl	%edx, %r13d
	cmovael	%edx, %r13d
	addq	%rax, %rdi
	addq	$8, %rdi
	movq	%r13, %rdx
	callq	memcpy@PLT
	movl	4(%rbx), %r12d
	addl	%r14d, %r12d
	cmpl	$64, %r12d
	jb	.LBB5_2
# %bb.1:
	leaq	8(%rbx), %rbp
	subl	%r13d, %r14d
	addq	%r13, %r15
	movl	%r14d, %r12d
	shrl	$6, %r12d
	movq	%rbx, %rdi
	movq	%rbp, %rsi
	movl	$1, %edx
	movl	$64, %ecx
	callq	_ZN6SHA2569transformEPKhjj
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movl	$64, %ecx
	callq	_ZN6SHA2569transformEPKhjj
	movl	%r14d, %r12d
	andl	$63, %r12d
	andl	$-64, %r14d
	leaq	(%r14,%r15), %rsi
	movq	%rbp, %rdi
	movq	%r12, %rdx
	callq	memcpy@PLT
	movl	(%rbx), %eax
	addl	%r14d, %eax
	addl	$64, %eax
	movl	%eax, (%rbx)
.LBB5_2:
	movl	%r12d, 4(%rbx)
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_ZN6SHA2566updateEPKhj, .Lfunc_end5-_ZN6SHA2566updateEPKhj
	.cfi_endproc
                                        # -- End function
	.globl	_ZN6SHA2565finalEPh             # -- Begin function _ZN6SHA2565finalEPh
	.p2align	1, 0x90
	.type	_ZN6SHA2565finalEPh,@function
_ZN6SHA2565finalEPh:                    # @_ZN6SHA2565finalEPh
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	4(%rdi), %eax
	movl	%eax, %ecx
	notl	%ecx
	xorl	%edx, %edx
	testb	$56, %cl
	sete	%dl
	movq	%rdx, 16(%rsp)                  # 8-byte Spill
	leal	1(%rdx), %ecx
	movl	%ecx, 4(%rsp)                   # 4-byte Spill
	movl	(%rdi), %ebp
	addl	%eax, %ebp
	leal	(,%rbp,8), %r12d
	movl	%ecx, %r15d
	shll	$6, %r15d
	leaq	8(%rdi), %rcx
	movq	%rcx, 8(%rsp)                   # 8-byte Spill
	addq	%rax, %rdi
	addq	$8, %rdi
	movl	%r15d, %edx
	subl	%eax, %edx
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	memset@PLT
	movl	4(%r14), %eax
	movb	$-128, 8(%r14,%rax)
	movb	%r12b, 7(%r14,%r15)
	movl	%ebp, %eax
	shrl	$5, %eax
	movb	%al, 6(%r14,%r15)
	movl	%ebp, %eax
	shrl	$13, %eax
	movb	%al, 5(%r14,%r15)
	shrl	$21, %ebp
	movb	%bpl, 4(%r14,%r15)
	movq	16(%rsp), %rcx                  # 8-byte Reload
                                        # kill: def $cl killed $cl killed $rcx
	shll	%cl, %r12d
	movq	%r14, %rdi
	movq	8(%rsp), %rsi                   # 8-byte Reload
	movl	4(%rsp), %edx                   # 4-byte Reload
	movl	%r12d, %ecx
	callq	_ZN6SHA2569transformEPKhjj
.LBB6_1:                                # =>This Inner Loop Header: Depth=1
	movb	136(%r14,%r13,4), %al
	movb	%al, 3(%rbx,%r13,4)
	movb	137(%r14,%r13,4), %al
	movb	%al, 2(%rbx,%r13,4)
	movb	138(%r14,%r13,4), %al
	movb	%al, 1(%rbx,%r13,4)
	movb	139(%r14,%r13,4), %al
	movb	%al, (%rbx,%r13,4)
	incq	%r13
	cmpq	$8, %r13
	jne	.LBB6_1
# %bb.2:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end6:
	.size	_ZN6SHA2565finalEPh, .Lfunc_end6-_ZN6SHA2565finalEPh
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function _Z6sha256NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.LCPI7_0:
	.long	1779033703                      # 0x6a09e667
	.long	3144134277                      # 0xbb67ae85
	.long	1013904242                      # 0x3c6ef372
	.long	2773480762                      # 0xa54ff53a
.LCPI7_1:
	.long	1359893119                      # 0x510e527f
	.long	2600822924                      # 0x9b05688c
	.long	528734635                       # 0x1f83d9ab
	.long	1541459225                      # 0x5be0cd19
	.text
	.globl	_Z6sha256NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.type	_Z6sha256NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE,@function
_Z6sha256NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: # @_Z6sha256NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	subq	$272, %rsp                      # imm = 0x110
	.cfi_def_cfa_offset 304
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movq	%rsp, %r14
	movaps	%xmm0, 16(%r14)
	movaps	%xmm0, (%r14)
	leaq	104(%rsp), %r15
	movups	%xmm0, 120(%r15)
	movups	%xmm0, 104(%r15)
	movups	%xmm0, 88(%r15)
	movups	%xmm0, 72(%r15)
	movups	%xmm0, 56(%r15)
	movups	%xmm0, 40(%r15)
	movups	%xmm0, 24(%r15)
	movups	%xmm0, 8(%r15)
	movaps	.LCPI7_0(%rip), %xmm0           # xmm0 = [1779033703,3144134277,1013904242,2773480762]
	movups	%xmm0, 136(%r15)
	movaps	.LCPI7_1(%rip), %xmm0           # xmm0 = [1359893119,2600822924,528734635,1541459225]
	movups	%xmm0, 152(%r15)
	movq	$0, (%r15)
	movq	(%rsi), %rax
	movl	8(%rsi), %edx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ZN6SHA2566updateEPKhj
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ZN6SHA2565finalEPh
	leaq	32(%rsp), %r14
	movb	$0, 64(%r14)
	xorl	%r15d, %r15d
.LBB7_1:                                # =>This Inner Loop Header: Depth=1
	movzbl	(%rsp,%r15), %edx
	movl	$.L.str, %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	sprintf
	incq	%r15
	addq	$2, %r14
	cmpq	$32, %r15
	jne	.LBB7_1
# %bb.2:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit
	leaq	16(%rbx), %rax
	movq	%rax, (%rbx)
	leaq	32(%rsp), %r14
	movq	%r14, %rdi
	callq	strlen
	leaq	(%rsp,%rax), %rdx
	addq	$32, %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	movq	%rbx, %rax
	addq	$272, %rsp                      # imm = 0x110
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end7:
	.size	_Z6sha256NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, .Lfunc_end7-_Z6sha256NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.cfi_endproc
                                        # -- End function
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	subq	$96, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	16(%rsp), %r14
	movq	%r14, -16(%r14)
	movq	%rsp, %rbx
	movl	$.L.str.1, %esi
	movl	$.L.str.1+5, %edx
	movq	%rbx, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	leaq	48(%rsp), %r15
	movq	%r15, -16(%r15)
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	addq	%rsi, %rdx
.Ltmp0:
	leaq	32(%rsp), %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
.Ltmp1:
# %bb.1:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_.exit
.Ltmp3:
	leaq	64(%rsp), %rdi
	leaq	32(%rsp), %rsi
	callq	_Z6sha256NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.Ltmp4:
# %bb.2:
	movq	32(%rsp), %rdi
	cmpq	%r15, %rdi
	je	.LBB8_4
# %bb.3:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB8_4:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
.Ltmp6:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.2, %esi
	movl	$8, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp7:
# %bb.5:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdx
.Ltmp8:
	movl	$_ZSt4cout, %edi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp9:
# %bb.6:                                # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit
.Ltmp10:
	movq	%rax, %rbx
	movl	$.L.str.3, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp11:
# %bb.7:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit6
	movq	64(%rsp), %rsi
	movq	72(%rsp), %rdx
.Ltmp12:
	movq	%rbx, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp13:
# %bb.8:                                # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit7
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp14:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp15:
# %bb.9:                                # %.noexc
.Ltmp16:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp17:
# %bb.10:                               # %.noexc23
.Ltmp18:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp19:
# %bb.11:                               # %_ZNSolsEPFRSoS_E.exit
	leaq	80(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB8_13
# %bb.12:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i8
	callq	_ZdlPv
.LBB8_13:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit10
	movq	(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB8_15
# %bb.14:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i11
	callq	_ZdlPv
.LBB8_15:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit13
	xorl	%eax, %eax
	addq	$96, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB8_17:
	.cfi_def_cfa_offset 128
.Ltmp5:
	movq	%rax, %rbx
	movq	32(%rsp), %rdi
	cmpq	%r15, %rdi
	jne	.LBB8_19
	jmp	.LBB8_20
.LBB8_16:
.Ltmp2:
	movq	%rax, %rbx
	jmp	.LBB8_20
.LBB8_18:
.Ltmp20:
	movq	%rax, %rbx
	leaq	80(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB8_20
.LBB8_19:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i17
	callq	_ZdlPv
.LBB8_20:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit16
	movq	(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB8_22
# %bb.21:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i20
	callq	_ZdlPv
.LBB8_22:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit22
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end8:
	.size	main, .Lfunc_end8-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table8:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp4-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp4
	.uleb128 .Ltmp5-.Lfunc_begin0           #     jumps to .Ltmp5
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp19-.Ltmp6                 #   Call between .Ltmp6 and .Ltmp19
	.uleb128 .Ltmp20-.Lfunc_begin0          #     jumps to .Ltmp20
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp19-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Lfunc_end8-.Ltmp19            #   Call between .Ltmp19 and .Lfunc_end8
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	subq	%rsi, %r14
	movq	%r14, (%rsp)
	cmpq	$15, %r14
	jbe	.LBB9_1
# %bb.2:
	movq	%rsp, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm
	movq	%rax, (%rbx)
	movq	(%r12), %rcx
	movq	%rcx, 16(%rbx)
	jmp	.LBB9_3
.LBB9_1:                                # %._crit_edge
	movq	(%rbx), %rax
.LBB9_3:
	testq	%r14, %r14
	je	.LBB9_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB9_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB9_7
.LBB9_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB9_7:                                # %_ZZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tagEN6_GuardD2Ev.exit
	movq	(%rsp), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	movb	$0, (%rcx,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end9:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag, .Lfunc_end9-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	subq	%rsi, %r14
	movq	%r14, (%rsp)
	cmpq	$15, %r14
	jbe	.LBB10_1
# %bb.2:
	movq	%rsp, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm
	movq	%rax, (%rbx)
	movq	(%r12), %rcx
	movq	%rcx, 16(%rbx)
	jmp	.LBB10_3
.LBB10_1:                               # %._crit_edge
	movq	(%rbx), %rax
.LBB10_3:
	testq	%r14, %r14
	je	.LBB10_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB10_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB10_7
.LBB10_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB10_7:                               # %_ZZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tagEN6_GuardD2Ev.exit
	movq	(%rsp), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	movb	$0, (%rcx,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end10:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag, .Lfunc_end10-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.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
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB11_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB11_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z7kernel1PhPjS0_S0_, %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	$_Z7kernel2PjS_S_, %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	$_Z7kernel3PjS_, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$0, 8(%rsp)
	movl	$0, (%rsp)
	movl	$t11, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movl	$4, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	__hipRegisterVar
	movl	$0, 8(%rsp)
	movl	$0, (%rsp)
	movl	$t12, %esi
	movl	$.L__unnamed_5, %edx
	movl	$.L__unnamed_5, %ecx
	movl	$4, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	__hipRegisterVar
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end11:
	.size	__hip_module_ctor, .Lfunc_end11-__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	.LBB12_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
.LBB12_2:
	retq
.Lfunc_end12:
	.size	__hip_module_dtor, .Lfunc_end12-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_ZN6SHA2568sha256_kE,@object    # @_ZN6SHA2568sha256_kE
	.section	.rodata,"a",@progbits
	.globl	_ZN6SHA2568sha256_kE
	.p2align	4, 0x0
_ZN6SHA2568sha256_kE:
	.long	1116352408                      # 0x428a2f98
	.long	1899447441                      # 0x71374491
	.long	3049323471                      # 0xb5c0fbcf
	.long	3921009573                      # 0xe9b5dba5
	.long	961987163                       # 0x3956c25b
	.long	1508970993                      # 0x59f111f1
	.long	2453635748                      # 0x923f82a4
	.long	2870763221                      # 0xab1c5ed5
	.long	3624381080                      # 0xd807aa98
	.long	310598401                       # 0x12835b01
	.long	607225278                       # 0x243185be
	.long	1426881987                      # 0x550c7dc3
	.long	1925078388                      # 0x72be5d74
	.long	2162078206                      # 0x80deb1fe
	.long	2614888103                      # 0x9bdc06a7
	.long	3248222580                      # 0xc19bf174
	.long	3835390401                      # 0xe49b69c1
	.long	4022224774                      # 0xefbe4786
	.long	264347078                       # 0xfc19dc6
	.long	604807628                       # 0x240ca1cc
	.long	770255983                       # 0x2de92c6f
	.long	1249150122                      # 0x4a7484aa
	.long	1555081692                      # 0x5cb0a9dc
	.long	1996064986                      # 0x76f988da
	.long	2554220882                      # 0x983e5152
	.long	2821834349                      # 0xa831c66d
	.long	2952996808                      # 0xb00327c8
	.long	3210313671                      # 0xbf597fc7
	.long	3336571891                      # 0xc6e00bf3
	.long	3584528711                      # 0xd5a79147
	.long	113926993                       # 0x6ca6351
	.long	338241895                       # 0x14292967
	.long	666307205                       # 0x27b70a85
	.long	773529912                       # 0x2e1b2138
	.long	1294757372                      # 0x4d2c6dfc
	.long	1396182291                      # 0x53380d13
	.long	1695183700                      # 0x650a7354
	.long	1986661051                      # 0x766a0abb
	.long	2177026350                      # 0x81c2c92e
	.long	2456956037                      # 0x92722c85
	.long	2730485921                      # 0xa2bfe8a1
	.long	2820302411                      # 0xa81a664b
	.long	3259730800                      # 0xc24b8b70
	.long	3345764771                      # 0xc76c51a3
	.long	3516065817                      # 0xd192e819
	.long	3600352804                      # 0xd6990624
	.long	4094571909                      # 0xf40e3585
	.long	275423344                       # 0x106aa070
	.long	430227734                       # 0x19a4c116
	.long	506948616                       # 0x1e376c08
	.long	659060556                       # 0x2748774c
	.long	883997877                       # 0x34b0bcb5
	.long	958139571                       # 0x391c0cb3
	.long	1322822218                      # 0x4ed8aa4a
	.long	1537002063                      # 0x5b9cca4f
	.long	1747873779                      # 0x682e6ff3
	.long	1955562222                      # 0x748f82ee
	.long	2024104815                      # 0x78a5636f
	.long	2227730452                      # 0x84c87814
	.long	2361852424                      # 0x8cc70208
	.long	2428436474                      # 0x90befffa
	.long	2756734187                      # 0xa4506ceb
	.long	3204031479                      # 0xbef9a3f7
	.long	3329325298                      # 0xc67178f2
	.size	_ZN6SHA2568sha256_kE, 256

	.type	t11,@object                     # @t11
	.local	t11
	.comm	t11,4,4
	.type	t12,@object                     # @t12
	.local	t12
	.comm	t12,4,4
	.type	_Z7kernel1PhPjS0_S0_,@object    # @_Z7kernel1PhPjS0_S0_
	.globl	_Z7kernel1PhPjS0_S0_
	.p2align	3, 0x0
_Z7kernel1PhPjS0_S0_:
	.quad	_Z22__device_stub__kernel1PhPjS0_S0_
	.size	_Z7kernel1PhPjS0_S0_, 8

	.type	_Z7kernel2PjS_S_,@object        # @_Z7kernel2PjS_S_
	.globl	_Z7kernel2PjS_S_
	.p2align	3, 0x0
_Z7kernel2PjS_S_:
	.quad	_Z22__device_stub__kernel2PjS_S_
	.size	_Z7kernel2PjS_S_, 8

	.type	_Z7kernel3PjS_,@object          # @_Z7kernel3PjS_
	.globl	_Z7kernel3PjS_
	.p2align	3, 0x0
_Z7kernel3PjS_:
	.quad	_Z22__device_stub__kernel3PjS_
	.size	_Z7kernel3PjS_, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"%02x"
	.size	.L.str, 5

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

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"sha256('"
	.size	.L.str.2, 9

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"'):"
	.size	.L.str.3, 4

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z7kernel1PhPjS0_S0_"
	.size	.L__unnamed_1, 21

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z7kernel2PjS_S_"
	.size	.L__unnamed_2, 17

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z7kernel3PjS_"
	.size	.L__unnamed_3, 15

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"t11"
	.size	.L__unnamed_4, 4

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

	.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 _Z22__device_stub__kernel1PhPjS0_S0_
	.addrsig_sym _Z22__device_stub__kernel2PjS_S_
	.addrsig_sym _Z22__device_stub__kernel3PjS_
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _ZN6SHA2568sha256_kE
	.addrsig_sym t11
	.addrsig_sym t12
	.addrsig_sym _Z7kernel1PhPjS0_S0_
	.addrsig_sym _Z7kernel2PjS_S_
	.addrsig_sym _Z7kernel3PjS_
	.addrsig_sym _ZSt4cout
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z7kernel1PhPjS0_S0_    ; -- Begin function _Z7kernel1PhPjS0_S0_
	.globl	_Z7kernel1PhPjS0_S0_
	.p2align	8
	.type	_Z7kernel1PhPjS0_S0_,@function
_Z7kernel1PhPjS0_S0_:                   ; @_Z7kernel1PhPjS0_S0_
; %bb.0:
	s_load_b256 s[0:7], s[0:1], 0x0
	v_lshlrev_b32_e32 v1, 2, v0
	s_waitcnt lgkmcnt(0)
	global_load_b32 v2, v1, s[6:7]
	s_waitcnt vmcnt(0)
	global_store_b32 v1, v2, s[4:5]
	s_mov_b32 s4, exec_lo
	v_cmpx_lt_u32_e32 7, v0
	s_cbranch_execz .LBB0_2
; %bb.1:
	global_load_b32 v0, v1, s[0:1]
	s_waitcnt vmcnt(0)
	v_perm_b32 v0, v0, v0, 0x4050607
	global_store_b32 v1, v0, s[2:3]
.LBB0_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z7kernel1PhPjS0_S0_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 32
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 3
		.amdhsa_next_free_sgpr 8
		.amdhsa_reserve_vcc 0
		.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
	.text
.Lfunc_end0:
	.size	_Z7kernel1PhPjS0_S0_, .Lfunc_end0-_Z7kernel1PhPjS0_S0_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 92
; NumSgprs: 8
; NumVgprs: 3
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 0
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 8
; NumVGPRsForWavesPerEU: 3
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z7kernel2PjS_S_        ; -- Begin function _Z7kernel2PjS_S_
	.globl	_Z7kernel2PjS_S_
	.p2align	8
	.type	_Z7kernel2PjS_S_,@function
_Z7kernel2PjS_S_:                       ; @_Z7kernel2PjS_S_
; %bb.0:
	s_clause 0x1
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b64 s[0:1], s[0:1], 0x10
	v_lshlrev_b32_e32 v3, 2, v0
	v_cmp_gt_u32_e32 vcc_lo, 16, v0
                                        ; implicit-def: $vgpr2
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v0, s2, s4, v3
	v_add_co_ci_u32_e64 v1, null, s5, 0, s2
	s_and_saveexec_b32 s2, vcc_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_xor_b32 s2, exec_lo, s2
	s_cbranch_execz .LBB1_2
; %bb.1:                                ; %._crit_edge
	global_load_b32 v2, v[0:1], off
                                        ; implicit-def: $vgpr0_vgpr1
.LBB1_2:                                ; %Flow
	s_and_not1_saveexec_b32 s2, s2
	s_cbranch_execz .LBB1_4
; %bb.3:
	s_clause 0x2
	global_load_b32 v2, v[0:1], off offset:-8
	global_load_b64 v[4:5], v[0:1], off offset:-64
	global_load_b32 v6, v[0:1], off offset:-28
	s_waitcnt vmcnt(2)
	v_alignbit_b32 v7, v2, v2, 17
	v_alignbit_b32 v8, v2, v2, 19
	v_lshrrev_b32_e32 v2, 10, v2
	s_waitcnt vmcnt(1)
	v_alignbit_b32 v9, v5, v5, 7
	v_alignbit_b32 v10, v5, v5, 18
	v_lshrrev_b32_e32 v5, 3, v5
	v_xor_b32_e32 v7, v7, v8
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_xor3_b32 v5, v9, v10, v5
	s_waitcnt vmcnt(0)
	v_xad_u32 v2, v7, v2, v6
	s_delay_alu instid0(VALU_DEP_1)
	v_add3_u32 v2, v2, v4, v5
	global_store_b32 v[0:1], v2, off
.LBB1_4:
	s_or_b32 exec_lo, exec_lo, s2
	v_mov_b32_e32 v15, 0
	s_clause 0x1
	global_load_b128 v[4:7], v15, s[6:7] offset:16
	global_load_b128 v[8:11], v15, s[6:7]
	global_load_b32 v0, v3, s[0:1]
	s_getpc_b64 s[0:1]
	s_add_u32 s0, s0, t11@rel32@lo+4
	s_addc_u32 s1, s1, t11@rel32@hi+12
	s_getpc_b64 s[2:3]
	s_add_u32 s2, s2, t12@rel32@lo+4
	s_addc_u32 s3, s3, t12@rel32@hi+12
	s_waitcnt vmcnt(2)
	v_alignbit_b32 v1, v4, v4, 6
	v_alignbit_b32 v3, v4, v4, 11
	v_alignbit_b32 v12, v4, v4, 25
	v_and_b32_e32 v13, v5, v4
	v_not_b32_e32 v14, v4
	s_waitcnt vmcnt(1)
	v_alignbit_b32 v16, v8, v8, 13
	v_xor_b32_e32 v1, v1, v3
	v_alignbit_b32 v3, v8, v8, 2
	v_add_nc_u32_e32 v7, v13, v7
	v_and_b32_e32 v14, v6, v14
	v_alignbit_b32 v17, v8, v8, 22
	v_xor_b32_e32 v1, v1, v12
	v_xor_b32_e32 v12, v10, v9
	v_and_b32_e32 v13, v10, v9
	v_xor_b32_e32 v3, v3, v16
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_nc_u32_e32 v1, v7, v1
	v_and_b32_e32 v7, v12, v8
	v_mov_b32_e32 v12, v4
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_xor_b32_e32 v3, v3, v17
	v_add_nc_u32_e32 v1, v1, v14
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_xor_b32_e32 v7, v7, v13
	v_dual_mov_b32 v14, v6 :: v_dual_mov_b32 v13, v5
	s_waitcnt vmcnt(0)
	v_add3_u32 v0, v1, v0, v2
	s_delay_alu instid0(VALU_DEP_3)
	v_dual_mov_b32 v3, v10 :: v_dual_add_nc_u32 v2, v7, v3
	s_clause 0x1
	global_store_b32 v15, v0, s[0:1]
	global_store_b32 v15, v2, s[2:3]
	global_load_b32 v1, v15, s[6:7]
	v_add_nc_u32_e32 v11, v11, v0
	v_add_nc_u32_e32 v0, v2, v0
	v_mov_b32_e32 v2, v9
	global_store_b128 v15, v[11:14], s[6:7] offset:16
	s_waitcnt vmcnt(0)
	global_store_b128 v15, v[0:3], s[6:7]
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z7kernel2PjS_S_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 24
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 18
		.amdhsa_next_free_sgpr 8
		.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
	.text
.Lfunc_end1:
	.size	_Z7kernel2PjS_S_, .Lfunc_end1-_Z7kernel2PjS_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 516
; NumSgprs: 10
; NumVgprs: 18
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 1
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 10
; NumVGPRsForWavesPerEU: 18
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z7kernel3PjS_          ; -- Begin function _Z7kernel3PjS_
	.globl	_Z7kernel3PjS_
	.p2align	8
	.type	_Z7kernel3PjS_,@function
_Z7kernel3PjS_:                         ; @_Z7kernel3PjS_
; %bb.0:
	s_load_b128 s[0:3], s[0:1], 0x0
	v_lshlrev_b32_e32 v0, 2, v0
	s_waitcnt lgkmcnt(0)
	s_clause 0x1
	global_load_b32 v1, v0, s[0:1]
	global_load_b32 v2, v0, s[2:3]
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v1, v2, v1
	global_store_b32 v0, v1, s[2:3]
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z7kernel3PjS_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 16
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 3
		.amdhsa_next_free_sgpr 4
		.amdhsa_reserve_vcc 0
		.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
	.text
.Lfunc_end2:
	.size	_Z7kernel3PjS_, .Lfunc_end2-_Z7kernel3PjS_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 64
; NumSgprs: 4
; NumVgprs: 3
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 0
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 4
; NumVGPRsForWavesPerEU: 3
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.protected	_ZN6SHA2568sha256_kE    ; @_ZN6SHA2568sha256_kE
	.type	_ZN6SHA2568sha256_kE,@object
	.section	.rodata,"a",@progbits
	.globl	_ZN6SHA2568sha256_kE
	.p2align	4, 0x0
_ZN6SHA2568sha256_kE:
	.long	1116352408                      ; 0x428a2f98
	.long	1899447441                      ; 0x71374491
	.long	3049323471                      ; 0xb5c0fbcf
	.long	3921009573                      ; 0xe9b5dba5
	.long	961987163                       ; 0x3956c25b
	.long	1508970993                      ; 0x59f111f1
	.long	2453635748                      ; 0x923f82a4
	.long	2870763221                      ; 0xab1c5ed5
	.long	3624381080                      ; 0xd807aa98
	.long	310598401                       ; 0x12835b01
	.long	607225278                       ; 0x243185be
	.long	1426881987                      ; 0x550c7dc3
	.long	1925078388                      ; 0x72be5d74
	.long	2162078206                      ; 0x80deb1fe
	.long	2614888103                      ; 0x9bdc06a7
	.long	3248222580                      ; 0xc19bf174
	.long	3835390401                      ; 0xe49b69c1
	.long	4022224774                      ; 0xefbe4786
	.long	264347078                       ; 0xfc19dc6
	.long	604807628                       ; 0x240ca1cc
	.long	770255983                       ; 0x2de92c6f
	.long	1249150122                      ; 0x4a7484aa
	.long	1555081692                      ; 0x5cb0a9dc
	.long	1996064986                      ; 0x76f988da
	.long	2554220882                      ; 0x983e5152
	.long	2821834349                      ; 0xa831c66d
	.long	2952996808                      ; 0xb00327c8
	.long	3210313671                      ; 0xbf597fc7
	.long	3336571891                      ; 0xc6e00bf3
	.long	3584528711                      ; 0xd5a79147
	.long	113926993                       ; 0x6ca6351
	.long	338241895                       ; 0x14292967
	.long	666307205                       ; 0x27b70a85
	.long	773529912                       ; 0x2e1b2138
	.long	1294757372                      ; 0x4d2c6dfc
	.long	1396182291                      ; 0x53380d13
	.long	1695183700                      ; 0x650a7354
	.long	1986661051                      ; 0x766a0abb
	.long	2177026350                      ; 0x81c2c92e
	.long	2456956037                      ; 0x92722c85
	.long	2730485921                      ; 0xa2bfe8a1
	.long	2820302411                      ; 0xa81a664b
	.long	3259730800                      ; 0xc24b8b70
	.long	3345764771                      ; 0xc76c51a3
	.long	3516065817                      ; 0xd192e819
	.long	3600352804                      ; 0xd6990624
	.long	4094571909                      ; 0xf40e3585
	.long	275423344                       ; 0x106aa070
	.long	430227734                       ; 0x19a4c116
	.long	506948616                       ; 0x1e376c08
	.long	659060556                       ; 0x2748774c
	.long	883997877                       ; 0x34b0bcb5
	.long	958139571                       ; 0x391c0cb3
	.long	1322822218                      ; 0x4ed8aa4a
	.long	1537002063                      ; 0x5b9cca4f
	.long	1747873779                      ; 0x682e6ff3
	.long	1955562222                      ; 0x748f82ee
	.long	2024104815                      ; 0x78a5636f
	.long	2227730452                      ; 0x84c87814
	.long	2361852424                      ; 0x8cc70208
	.long	2428436474                      ; 0x90befffa
	.long	2756734187                      ; 0xa4506ceb
	.long	3204031479                      ; 0xbef9a3f7
	.long	3329325298                      ; 0xc67178f2
	.size	_ZN6SHA2568sha256_kE, 256

	.protected	t11                     ; @t11
	.type	t11,@object
	.section	.bss,"aw",@nobits
	.globl	t11
	.p2align	2, 0x0
t11:
	.long	0                               ; 0x0
	.size	t11, 4

	.protected	t12                     ; @t12
	.type	t12,@object
	.globl	t12
	.p2align	2, 0x0
t12:
	.long	0                               ; 0x0
	.size	t12, 4

	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.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 _ZN6SHA2568sha256_kE
	.addrsig_sym t11
	.addrsig_sym t12
	.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
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 32
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z7kernel1PhPjS0_S0_
    .private_segment_fixed_size: 0
    .sgpr_count:     8
    .sgpr_spill_count: 0
    .symbol:         _Z7kernel1PhPjS0_S0_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     3
    .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
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 24
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z7kernel2PjS_S_
    .private_segment_fixed_size: 0
    .sgpr_count:     10
    .sgpr_spill_count: 0
    .symbol:         _Z7kernel2PjS_S_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     18
    .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
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 16
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z7kernel3PjS_
    .private_segment_fixed_size: 0
    .sgpr_count:     4
    .sgpr_spill_count: 0
    .symbol:         _Z7kernel3PjS_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     3
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
