// File: /workspace/github_cpp_makefile_star2_O1/ra101[P]Generic-BlockChain-container-cpp/./block.hpp
// Function: ra::block<custom_transaction, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>::mine_block(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, long long)
std::size_t mine_block(std::string hash_input, long long int hash_length)
        {
            std::size_t hash_output = hash_function(hash_input + std::to_string(nonce));
            while (hash_output / hash_length != 0) // own time of proof of work
            {
                nonce += 1;
                hash_output = hash_function(hash_input + std::to_string(nonce));
            }
            return hash_output;
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, 0x40(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdi, 0x50(%rsp)
movl 0x24(%rdi), %r13d
movl %r13d, %ebp
negl %ebp
cmovsl %r13d, %ebp
movl $0x1, %r12d
cmpl $0xa, %ebp
jb 0x3ba8
movl $0x4, %r12d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x3b9f
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x3ba5
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x3ba8
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r12d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3b6c
addl $-0x3, %r12d
jmp 0x3ba8
addl $-0x2, %r12d
jmp 0x3ba8
decl %r12d
shrl $0x1f, %r13d
movl %r13d, %esi
addl %r12d, %esi
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
movq %rsp, %rbx
movq %rbx, %rdi
movl $0x2d, %edx
callq 0x21e0
movq (%rbx), %rdi
addq %r13, %rdi
movl %r12d, %esi
movl %ebp, %edx
callq 0x42e9
movq 0x48(%rsp), %rax
movq (%rax), %rcx
movq 0x8(%rax), %r8
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21a0
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3c1a
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x3c21
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movl $0xc70f6907, %edx       # imm = 0xC70F6907
callq 0x2060
movq %rax, %r13
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x3c67
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2170
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x3c82
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2170
cmpq 0x40(%rsp), %r13
jb 0x3dd1
movl $0xd1b71759, %r12d      # imm = 0xD1B71759
movq 0x50(%rsp), %rax
movl 0x24(%rax), %r13d
incl %r13d
movl %r13d, 0x24(%rax)
movl %r13d, %ebp
negl %ebp
cmovsl %r13d, %ebp
movl $0x1, %ebx
cmpl $0xa, %ebp
jb 0x3cf2
movl $0x4, %ebx
movl %ebp, %eax
cmpl $0x63, %eax
jbe 0x3ceb
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x3cf0
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x3cf2
movl %eax, %ecx
imulq %r12, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x3cbd
addl $-0x3, %ebx
jmp 0x3cf2
addl $-0x2, %ebx
jmp 0x3cf2
decl %ebx
shrl $0x1f, %r13d
leal (%rbx,%r13), %esi
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %rsp, %r14
movq %r14, %rdi
movl $0x2d, %edx
callq 0x21e0
addq (%rsp), %r13
movq %r13, %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x42e9
movq 0x48(%rsp), %rax
movq (%rax), %rcx
movq 0x8(%rax), %r8
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21a0
movq %r15, 0x20(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3d5e
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x3d65
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movl $0xc70f6907, %edx       # imm = 0xC70F6907
callq 0x2060
movq %rax, %r13
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x3dab
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2170
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x3dc6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2170
cmpq 0x40(%rsp), %r13
jae 0x3c93
movq %r13, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3e0d
jmp 0x3de7
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x3e05
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x22a0
movq %rax, %rdi
callq 0x3660
nop