// File: /workspace/github_cpp_makefile_star2_O2/dsharlet[P]array/include/array/array.h
// Function: void nda::copy_shape_traits<nda::shape<nda::dim<-9l, -9l, 1l>, nda::dim<-9l, -9l, -9l>, nda::dim<-9l, -9l, -9l>>, nda::shape<nda::dim<-9l, -9l, 1l>, nda::dim<-9l, -9l, -9l>, nda::dim<-9l, -9l, -9l>>>::for_each_value<void (&)(int const&, int&), int const*, int*>(nda::shape<nda::dim<-9l, -9l, 1l>, nda::dim<-9l, -9l, -9l>, nda::dim<-9l, -9l, -9l>> const&, int const*, nda::shape<nda::dim<-9l, -9l, 1l>, nda::dim<-9l, -9l, -9l>, nda::dim<-9l, -9l, -9l>> const&, int*, void (&)(int const&, int&))
NDARRAY_HOST_DEVICE static void for_each_value(
      const ShapeSrc& shape_src, TSrc src, const ShapeDst& shape_dst, TDst dst, Fn&& fn) {
    // For this function, we don't care about the order in which the callback is
    // called. Optimize the shapes for memory access order.
    auto opt_shape = internal::optimize_copy_shapes(shape_src, shape_dst);
    const auto& opt_shape_src = opt_shape.first;
    const auto& opt_shape_dst = opt_shape.second;

    for_each_value_in_order(opt_shape_dst, opt_shape_src, src, opt_shape_dst, dst, fn);
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %r8, %rbx
movq %rcx, %r14
movq %rsi, %r15
movq %rdi, %rsi
leaq 0x98(%rsp), %rdi
callq 0x7855
testq %r15, %r15
setne %al
movq %r14, 0x18(%rsp)
testq %r14, %r14
setne %cl
testb %cl, %al
je 0x7767
movq 0x110(%rsp), %rcx
movq 0xf8(%rsp), %rax
movq 0xe0(%rsp), %rdx
subq 0xc8(%rsp), %rcx
movq 0xd8(%rsp), %r13
imulq %r13, %rcx
subq 0xb0(%rsp), %rax
movq 0xa8(%rsp), %r8
movq 0xc0(%rsp), %r9
imulq %r9, %rax
subq 0x98(%rsp), %rdx
imulq %r8, %rdx
leaq (%r15,%rax,4), %rsi
leaq (%rsi,%rcx,4), %rsi
leaq (%rsi,%rdx,4), %r10
movq 0x120(%rsp), %r14
movq 0x118(%rsp), %r11
movq 0x100(%rsp), %rsi
movq 0xe8(%rsp), %rdi
xorl %r12d, %r12d
testq %rdi, %rdi
cmovleq %r12, %rdi
movq %rdi, 0x40(%rsp)
testq %rsi, %rsi
cmovleq %r12, %rsi
movq %rsi, 0x80(%rsp)
movq %r13, %rsi
xorq $0x1, %rsi
movq %r14, %rdi
xorq $0x1, %rdi
orq %rsi, %rdi
sete 0x7(%rsp)
testq %r11, %r11
movl $0x0, %edi
movq %r11, 0x50(%rsp)
cmovgq %r11, %rdi
movq %rdi, 0x68(%rsp)
shlq $0x2, %rcx
leaq (%rcx,%rdx,4), %rcx
movq 0x108(%rsp), %rdx
leaq (%rcx,%rax,4), %rcx
movq %r10, %rax
movq 0xf0(%rsp), %rsi
addq %r15, %rcx
movq %rcx, 0x10(%rsp)
movq %r8, 0x38(%rsp)
leaq (,%r8,4), %rcx
movq %rcx, 0x28(%rsp)
shlq $0x2, %r13
shlq $0x2, %rsi
movq %rsi, 0x30(%rsp)
shlq $0x2, %rdx
movq %rdx, 0x60(%rsp)
shlq $0x2, %r14
movq %r9, 0x70(%rsp)
leaq (,%r9,4), %rcx
movq %rcx, 0x58(%rsp)
cmpq 0x40(%rsp), %r12
je 0x7786
movq 0x18(%rsp), %r15
movq 0x10(%rsp), %rcx
movq %rax, 0x48(%rsp)
movq %rax, 0x8(%rsp)
xorl %eax, %eax
movq %r12, 0x78(%rsp)
cmpq 0x80(%rsp), %rax
je 0x773d
movq %rax, 0x88(%rsp)
movq 0x68(%rsp), %rbp
movq %r15, 0x20(%rsp)
movq %rcx, 0x90(%rsp)
movq %rcx, %r12
cmpb $0x0, 0x7(%rsp)
je 0x76e8
movq 0x50(%rsp), %rax
movq 0x8(%rsp), %rdi
leaq (%rdi,%rax,4), %r15
movq 0x20(%rsp), %rsi
cmpq %r15, %rdi
jae 0x76fe
leaq 0x4(%rdi), %r12
leaq 0x4(%rsi), %rbp
callq *%rbx
movq %rbp, %rsi
movq %r12, %rdi
jmp 0x76d1
subq $0x1, %rbp
jb 0x76fe
movq %r12, %rdi
movq %r15, %rsi
callq *%rbx
addq %r13, %r12
addq %r14, %r15
jmp 0x76e8
movq 0x70(%rsp), %rax
movq 0x8(%rsp), %rcx
leaq (%rcx,%rax,4), %rcx
movq %rcx, 0x8(%rsp)
movq 0x20(%rsp), %r15
addq 0x60(%rsp), %r15
movq 0x88(%rsp), %rax
incq %rax
movq 0x90(%rsp), %rcx
addq 0x58(%rsp), %rcx
movq 0x78(%rsp), %r12
jmp 0x768c
movq 0x38(%rsp), %rax
movq 0x48(%rsp), %rcx
leaq (%rcx,%rax,4), %rax
incq %r12
movq 0x28(%rsp), %rcx
addq %rcx, 0x10(%rsp)
movq 0x30(%rsp), %rcx
addq %rcx, 0x18(%rsp)
jmp 0x7666
movq 0x100(%rsp), %rax
imulq 0x118(%rsp), %rax
imulq 0xe8(%rsp), %rax
testq %rax, %rax
jg 0x7798
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x85af0(%rip), %rdi     # 0x8d28f
leaq 0x8592b(%rip), %rsi     # 0x8d0d1
leaq 0x85cfa(%rip), %rcx     # 0x8d4a7
movl $0x6b8, %edx            # imm = 0x6B8
callq 0x20e0