// File: /workspace/github_cpp_makefile_star2_O3/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
movq 0x40(%rdi), %rdx
cmpq %rdx, %rcx
jne 0x7827d
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 0xd133
testq %r14, %r14
je 0x7835c
testq %rbx, %rbx
jle 0x7838b
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 0x78262
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 0x78232
jmp 0x7838b
testq %r14, %r14
je 0x7837c
testq %rcx, %rcx
jle 0x7838b
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 0x7833b
movq 0x8(%rsp), %r14
xorl %r12d, %r12d
cmpq $0x1, %rdx
jne 0x78317
testq %rbp, %rbp
jle 0x78330
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 0x78330
movq %rbp, %rax
movq %r14, %rcx
testq %rbp, %rbp
jle 0x78330
movl $0x0, (%rcx)
addq %rbx, %rcx
decq %rax
jne 0x78322
addq %r13, %r14
incq %r12
cmpq %r15, %r12
jne 0x782d7
movq 0x8(%rsp), %r14
addq $0x4, %r14
movq 0x20(%rsp), %rax
incq %rax
movq 0x18(%rsp), %rcx
cmpq %rcx, %rax
jne 0x782c0
jmp 0x7838b
imulq %r15, %rbx
testq %rbx, %rbx
jle 0x7838b
leaq 0x2af6f(%rip), %rdi     # 0xa32db
leaq 0x2adaa(%rip), %rsi     # 0xa311d
leaq 0x3bfa3(%rip), %rcx     # 0xb431d
jmp 0x783af
imulq 0x38(%rdi), %rcx
imulq 0x20(%rdi), %rcx
testq %rcx, %rcx
jg 0x7839a
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2af3a(%rip), %rdi     # 0xa32db
leaq 0x2ad75(%rip), %rsi     # 0xa311d
leaq 0x4178e(%rip), %rcx     # 0xb9b3d
movl $0x6a1, %edx            # imm = 0x6A1
callq 0x2100
nop