// File: /workspace/github_cpp_makefile_star2_O1/dsharlet[P]array/include/array/image.h
// Function: void nda::shape_traits<nda::shape<nda::dim<-9l, -9l, -9l>, nda::dim<-9l, -9l, -9l>, nda::dim<0l, -9l, 1l>>>::for_each_value<int*, nda::array<int, nda::shape<nda::dim<-9l, -9l, -9l>, nda::dim<-9l, -9l, -9l>, nda::dim<0l, -9l, 1l>>, std::allocator<int>>::construct()::'lambda'(int&)&>(nda::shape<nda::dim<-9l, -9l, -9l>, nda::dim<-9l, -9l, -9l>, nda::dim<0l, -9l, 1l>> const&, int*, nda::array<int, nda::shape<nda::dim<-9l, -9l, -9l>, nda::dim<-9l, -9l, -9l>, nda::dim<0l, -9l, 1l>>, std::allocator<int>>::construct()::'lambda'(int&)&)
static void for_each_value(const shape_type& s, Ptr base, Fn&& fn) {
    const index_t channels = s.c().extent();
    if (channels == s.x().stride()) {
      dense_shape<2> opt_s({s.x().min() * channels, s.x().extent() * channels}, s.y());
      for_each_value_in_order(opt_s, base, fn);
    } else {
      for_each_value_in_order(s, base, fn);
    }
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq 0x8(%rdi), %rcx
cmpq 0x40(%rdi), %rcx
jne 0x769fc
movq 0x30(%rdi), %rax
imulq %rcx, %rax
imulq 0x38(%rdi), %rcx
movq 0x20(%rdi), %rbx
movq 0x28(%rdi), %rdx
movq %rdx, 0x10(%rsp)
leaq 0x30(%rsp), %rsi
movq %rax, (%rsi)
movq %rcx, 0x8(%rsi)
movq $0x1, 0x10(%rsi)
xorl %edi, %edi
movq %rcx, %r15
callq 0xd09f
testq %r14, %r14
je 0x76adf
testq %rbx, %rbx
jle 0x76b0e
movq %r15, %rax
shlq $0x2, 0x10(%rsp)
leaq (%r14,%r15,4), %r15
leaq 0x4(%r14), %r12
movq %r14, %r13
notq %r13
xorl %ebp, %ebp
movq %r14, 0x8(%rsp)
cmpq %r12, %r15
movq %r12, %rdx
cmovaq %r15, %rdx
testq %rax, %rax
jle 0x769e1
leaq (%r14,%rbp), %rdi
addq %r13, %rdx
andq $-0x4, %rdx
addq $0x4, %rdx
xorl %esi, %esi
movq %rax, %r14
callq 0x20e0
movq %r14, %rax
movq 0x8(%rsp), %r14
movq 0x10(%rsp), %rcx
addq %rcx, %rbp
addq %rcx, %r15
addq %rcx, %r12
subq %rcx, %r13
decq %rbx
jne 0x769b1
jmp 0x76b0e
testq %r14, %r14
je 0x76aff
testq %rcx, %rcx
jle 0x76b0e
movq 0x40(%rdi), %rdx
movq 0x20(%rdi), %r15
movq 0x28(%rdi), %r13
movq 0x38(%rdi), %rbp
leaq (,%rbp,4), %rax
movq %rax, 0x28(%rsp)
shlq $0x2, %r13
leaq (,%rdx,4), %rbx
xorl %eax, %eax
movq %rcx, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq %rax, 0x20(%rsp)
movq %r14, 0x8(%rsp)
testq %r15, %r15
jle 0x76abe
movq 0x8(%rsp), %r14
xorl %r12d, %r12d
cmpq $0x1, %rdx
jne 0x76a9a
testq %rbp, %rbp
jle 0x76ab3
movq 0x28(%rsp), %rax
addq %r14, %rax
leaq 0x4(%r14), %rcx
cmpq %rcx, %rax
cmovaq %rax, %rcx
movq %r14, %rdx
notq %rdx
addq %rcx, %rdx
andq $-0x4, %rdx
addq $0x4, %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x20e0
movq 0x10(%rsp), %rdx
jmp 0x76ab3
movq %rbp, %rax
movq %r14, %rcx
testq %rbp, %rbp
jle 0x76ab3
movl $0x0, (%rcx)
addq %rbx, %rcx
decq %rax
jne 0x76aa5
addq %r13, %r14
incq %r12
cmpq %r15, %r12
jne 0x76a5a
movq 0x8(%rsp), %r14
addq $0x4, %r14
movq 0x20(%rsp), %rax
incq %rax
movq 0x18(%rsp), %rcx
cmpq %rcx, %rax
jne 0x76a43
jmp 0x76b0e
imulq %r15, %rbx
testq %rbx, %rbx
jle 0x76b0e
leaq 0x2a7bc(%rip), %rdi     # 0xa12ab
leaq 0x2a5f7(%rip), %rsi     # 0xa10ed
leaq 0x3b8f0(%rip), %rcx     # 0xb23ed
jmp 0x76b32
imulq 0x38(%rdi), %rcx
imulq 0x20(%rdi), %rcx
testq %rcx, %rcx
jg 0x76b1d
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2a787(%rip), %rdi     # 0xa12ab
leaq 0x2a5c2(%rip), %rsi     # 0xa10ed
leaq 0x410db(%rip), %rcx     # 0xb7c0d
movl $0x6a1, %edx            # imm = 0x6A1
callq 0x2100