// File: /workspace/github_c_makefile_star2_O0/KhronosGroup[P]dfdutils/createdfd.c
// Function: createDFDUnpacked
uint32_t *createDFDUnpacked(int bigEndian, int numChannels, int bytes,
                            int redBlueSwap, enum VkSuffix suffix)
{
    uint32_t *DFD;
    if (bigEndian) {
        int channelCounter, channelByte;
        /* Number of samples = number of channels * bytes per channel */
        DFD = writeHeader(numChannels * bytes, numChannels * bytes, suffix, i_COLOR);
        /* First loop over the channels */
        for (channelCounter = 0; channelCounter < numChannels; ++channelCounter) {
            int channel = channelCounter;
            if (redBlueSwap && (channel == 0 || channel == 2)) {
                channel ^= 2;
            }
            /* Loop over the bytes that constitute a channel */
            for (channelByte = 0; channelByte < bytes; ++channelByte) {
                writeSample(DFD, channelCounter * bytes + channelByte, channel,
                            8, 8 * (channelCounter * bytes + bytes - channelByte - 1),
                            channelByte == bytes-1, channelByte == 0, suffix);
            }
        }

    } else { /* Little-endian */

        int sampleCounter;
        /* One sample per channel */
        DFD = writeHeader(numChannels, numChannels * bytes, suffix, i_COLOR);
        for (sampleCounter = 0; sampleCounter < numChannels; ++sampleCounter) {
            int channel = sampleCounter;
            if (redBlueSwap && (channel == 0 || channel == 2)) {
                channel ^= 2;
            }
            writeSample(DFD, sampleCounter, channel,
                        8 * bytes, 8 * sampleCounter * bytes,
                        1, 1, suffix);
        }
    }
    return DFD;
}

// Assembly:
subq $0x48, %rsp
movl %edi, 0x44(%rsp)
movl %esi, 0x40(%rsp)
movl %edx, 0x3c(%rsp)
movl %ecx, 0x38(%rsp)
movl %r8d, 0x34(%rsp)
cmpl $0x0, 0x44(%rsp)
je 0x211a
movl 0x40(%rsp), %edi
imull 0x3c(%rsp), %edi
movl 0x40(%rsp), %esi
imull 0x3c(%rsp), %esi
movl 0x34(%rsp), %edx
xorl %ecx, %ecx
callq 0x21d0
movq %rax, 0x28(%rsp)
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
cmpl 0x40(%rsp), %eax
jge 0x2115
movl 0x24(%rsp), %eax
movl %eax, 0x1c(%rsp)
cmpl $0x0, 0x38(%rsp)
je 0x2074
cmpl $0x0, 0x1c(%rsp)
je 0x2069
cmpl $0x2, 0x1c(%rsp)
jne 0x2074
movl 0x1c(%rsp), %eax
xorl $0x2, %eax
movl %eax, 0x1c(%rsp)
movl $0x0, 0x20(%rsp)
movl 0x20(%rsp), %eax
cmpl 0x3c(%rsp), %eax
jge 0x2103
movq 0x28(%rsp), %rdi
movl 0x24(%rsp), %esi
imull 0x3c(%rsp), %esi
addl 0x20(%rsp), %esi
movl 0x1c(%rsp), %edx
movl 0x24(%rsp), %r8d
imull 0x3c(%rsp), %r8d
addl 0x3c(%rsp), %r8d
subl 0x20(%rsp), %r8d
subl $0x1, %r8d
shll $0x3, %r8d
movl 0x20(%rsp), %eax
movl 0x3c(%rsp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
sete %al
andb $0x1, %al
movzbl %al, %r9d
cmpl $0x0, 0x20(%rsp)
sete %al
andb $0x1, %al
movzbl %al, %r10d
movl 0x34(%rsp), %eax
movl $0x8, %ecx
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x22e0
movl 0x20(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x20(%rsp)
jmp 0x207c
jmp 0x2105
movl 0x24(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0x203e
jmp 0x21bd
movl 0x40(%rsp), %edi
movl 0x40(%rsp), %esi
imull 0x3c(%rsp), %esi
movl 0x34(%rsp), %edx
xorl %ecx, %ecx
callq 0x21d0
movq %rax, 0x28(%rsp)
movl $0x0, 0x18(%rsp)
movl 0x18(%rsp), %eax
cmpl 0x40(%rsp), %eax
jge 0x21bb
movl 0x18(%rsp), %eax
movl %eax, 0x14(%rsp)
cmpl $0x0, 0x38(%rsp)
je 0x2171
cmpl $0x0, 0x14(%rsp)
je 0x2166
cmpl $0x2, 0x14(%rsp)
jne 0x2171
movl 0x14(%rsp), %eax
xorl $0x2, %eax
movl %eax, 0x14(%rsp)
movq 0x28(%rsp), %rdi
movl 0x18(%rsp), %esi
movl 0x14(%rsp), %edx
movl 0x3c(%rsp), %ecx
shll $0x3, %ecx
movl 0x18(%rsp), %r8d
shll $0x3, %r8d
imull 0x3c(%rsp), %r8d
movl 0x34(%rsp), %eax
movl $0x1, %r9d
movl $0x1, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x22e0
movl 0x18(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x18(%rsp)
jmp 0x213f
jmp 0x21bd
movq 0x28(%rsp), %rax
addq $0x48, %rsp
retq
nopw (%rax,%rax)