// File: /workspace/github_cpp_makefile_star2_O3/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 0x3bea
movl $0x4, %r12d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x3be1
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x3be7
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x3bea
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r12d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3bae
addl $-0x3, %r12d
jmp 0x3bea
addl $-0x2, %r12d
jmp 0x3bea
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 0x4316
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 0x3c5c
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x3c63
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 0x3ca9
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2170
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x3cc4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2170
cmpq 0x40(%rsp), %r13
jb 0x3e13
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 0x3d34
movl $0x4, %ebx
movl %ebp, %eax
cmpl $0x63, %eax
jbe 0x3d2d
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x3d32
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x3d34
movl %eax, %ecx
imulq %r12, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x3cff
addl $-0x3, %ebx
jmp 0x3d34
addl $-0x2, %ebx
jmp 0x3d34
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 0x4316
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 0x3da0
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x3da7
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 0x3ded
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2170
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x3e08
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2170
cmpq 0x40(%rsp), %r13
jae 0x3cd5
movq %r13, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3e4f
jmp 0x3e29
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x3e47
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x22a0
movq %rax, %rdi
callq 0x366a
nop