// File: /workspace/github_c_makefile_star2_O3/wjmelements[P]evm/src/scan.c
// Function: scanDataSection
static void scanDataSection(const char **iter) {
    (*iter)++; // '{' or ','
    inDataSection = true;
    scanWaste(iter);

    const char *start = *iter;
    if (!isLowerCase(*start)) {
        fprintf(stderr, "Data section keys should be lowercase; instead found unexpected character %c at line %u\n", *start, lineNumber);
        exit(1);
    }
    for (char ch; isLowerCase(**iter); (*iter)++);
    const char *end = *iter;
    char next = scanWaste(iter);
    if (next != ':') {
        fprintf(stderr, "Data section expects colon after key; instead found unexpected character %c at line %u\n", next, lineNumber);
        exit(1);
    }
    (*iter)++;
    scanWaste(iter);
    if (**iter == '"') {
        // TODO parse ascii
    } else if (isHexConstantPrefix(*iter)) {
        *iter += 2;
        parseHex(iter);
    }
    scanstackPushLabel(start, end - start, CODECOPY);
    scanWaste(iter);
    if (**iter == '}') {
        inDataSection = false;
        (*iter)++;
        scanWaste(iter);
    } else if (**iter != ',') {
        fprintf(stderr, "Data section expecting ',' or '}'; instead found unexpected character %c at line %u\n", **iter, lineNumber);
        exit(1);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r12
incq %r12
movq %r12, (%rdi)
movb $0x1, 0x204853c(%rip)   # 0x2058e24
movl 0x204853a(%rip), %ebp   # 0x2058e28
movabsq $0x400330800000000, %r14 # imm = 0x400330800000000
movzbl (%r12), %eax
cmpq $0x3a, %rax
ja 0x1090f
cmpq $0x2f, %rax
je 0x10952
btq %rax, %r14
jb 0x10971
cmpl $0x7b, %eax
je 0x10971
cmpl $0x7d, %eax
je 0x10971
leal -0x3a(%rax), %ecx
cmpb $-0xb, %cl
ja 0x10971
leal -0x5b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x10971
leal -0x7b(%rax), %ecx
cmpb $-0x1a, %cl
setae %dl
testb %al, %al
sete %sil
orb %dl, %sil
jne 0x1094e
cmpb $0xa, %al
jne 0x10949
incl %ebp
movl %ebp, 0x20484df(%rip)   # 0x2058e28
incq %r12
jmp 0x1096c
cmpb $0x2f, %al
jne 0x10974
incq %r12
movq %r12, (%rbx)
cmpb $0xa, (%r12)
leaq 0x1(%r12), %r12
jne 0x10955
incl %ebp
movl %ebp, 0x20484bc(%rip)   # 0x2058e28
movq %r12, (%rbx)
jmp 0x108f8
leal -0x7b(%rax), %ecx
cmpb $-0x1a, %cl
jb 0x10c4c
leaq 0x1(%r12), %r15
xorl %r13d, %r13d
movq %r15, (%rbx)
movb (%r15), %al
addb $-0x7b, %al
incq %r15
incq %r13
cmpb $-0x1b, %al
ja 0x10985
decq %r15
movabsq $0x330800000000, %rax   # imm = 0x330800000000
movzbl (%r15), %edi
cmpq $0x3a, %rdi
ja 0x109c4
cmpq $0x2f, %rdi
je 0x10a0f
cmpq $0x3a, %rdi
je 0x10a38
btq %rdi, %rax
jb 0x10c3e
cmpl $0x7b, %edi
je 0x10c3e
cmpl $0x7d, %edi
je 0x10c3e
leal -0x3a(%rdi), %ecx
cmpb $-0xb, %cl
ja 0x10a2f
leal -0x5b(%rdi), %ecx
cmpb $-0x1b, %cl
ja 0x10a2f
leal -0x7b(%rdi), %ecx
cmpb $-0x1a, %cl
setae %cl
testl %edi, %edi
sete %dl
orb %cl, %dl
jne 0x10a0a
cmpl $0xa, %edi
jne 0x10a05
incl %ebp
movl %ebp, 0x2048423(%rip)   # 0x2058e28
incq %r15
jmp 0x10a27
cmpl $0x2f, %edi
jne 0x10a2f
incq %r15
movq %r15, (%rbx)
cmpb $0xa, (%r15)
leaq 0x1(%r15), %r15
jne 0x10a12
incl %ebp
movl %ebp, 0x2048401(%rip)   # 0x2058e28
movq %r15, (%rbx)
jmp 0x109a4
cmpl $0x3a, %edi
jne 0x10c3e
incq %r15
movq %r15, (%rbx)
movzbl (%r15), %eax
cmpq $0x3a, %rax
ja 0x10a54
cmpq $0x2f, %rax
je 0x10a85
btq %rax, %r14
jb 0x10ab3
cmpl $0x7b, %eax
je 0x10ab3
cmpl $0x7d, %eax
je 0x10ab3
leal -0x3a(%rax), %ecx
cmpb $-0xb, %cl
ja 0x10ab3
leal -0x5b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x10ab3
leal -0x7b(%rax), %ecx
cmpb $-0x1a, %cl
setae %cl
testl %eax, %eax
sete %dl
orb %cl, %dl
je 0x10a9f
cmpl $0x2f, %eax
jne 0x10aae
incq %r15
movq %r15, (%rbx)
cmpb $0xa, (%r15)
leaq 0x1(%r15), %r15
jne 0x10a88
incl %ebp
movl %ebp, 0x204838b(%rip)   # 0x2058e28
jmp 0x10a3b
cmpl $0xa, %eax
jne 0x10a38
incl %ebp
movl %ebp, 0x204837c(%rip)   # 0x2058e28
jmp 0x10a38
cmpl $0x22, %eax
je 0x10ad3
cmpw $0x7830, (%r15)         # imm = 0x7830
jne 0x10ad3
addq $0x2, %r15
movq %r15, (%rbx)
movq %rbx, %rdi
callq 0xfa6d
movq (%rbx), %r15
movl 0x2048355(%rip), %ebp   # 0x2058e28
movl $0x10, %edi
callq 0x3200
movq %r12, (%rax)
movq %r13, 0x8(%rax)
movzbl 0x2048341(%rip), %ecx   # 0x2058e2c
leal 0x1(%rcx), %edx
movb %dl, 0x2048338(%rip)    # 0x2058e2c
leaq 0x204db55(%rip), %rsi   # 0x205e650
movb $0x39, (%rcx,%rsi)
movzbl %dl, %ecx
leaq 0x204df47(%rip), %rdx   # 0x205ea50
movq %rax, (%rdx,%rcx,8)
movabsq $0x400230800000000, %rax # imm = 0x400230800000000
movzbl (%r15), %edi
cmpq $0x3a, %rdi
ja 0x10b3b
cmpq $0x2f, %rdi
je 0x10b82
cmpq $0x2c, %rdi
je 0x10c2f
btq %rdi, %rax
jb 0x10c45
cmpl $0x7d, %edi
je 0x10bb4
cmpl $0x7b, %edi
je 0x10c45
leal -0x3a(%rdi), %ecx
cmpb $-0xb, %cl
ja 0x10ba2
leal -0x5b(%rdi), %ecx
cmpb $-0x1b, %cl
ja 0x10ba2
leal -0x7b(%rdi), %ecx
cmpb $-0x1a, %cl
setae %cl
testl %edi, %edi
sete %dl
orb %cl, %dl
jne 0x10b7d
cmpl $0xa, %edi
jne 0x10b78
incl %ebp
movl %ebp, 0x20482b0(%rip)   # 0x2058e28
incq %r15
jmp 0x10b9a
cmpl $0x2f, %edi
jne 0x10ba2
incq %r15
movq %r15, (%rbx)
cmpb $0xa, (%r15)
leaq 0x1(%r15), %r15
jne 0x10b85
incl %ebp
movl %ebp, 0x204828e(%rip)   # 0x2058e28
movq %r15, (%rbx)
jmp 0x10b17
cmpl $0x2c, %edi
je 0x10c2f
cmpl $0x7d, %edi
jne 0x10c45
movb $0x0, 0x2048269(%rip)   # 0x2058e24
incq %r15
movq %r15, (%rbx)
movzbl (%r15), %eax
cmpq $0x3a, %rax
ja 0x10bd7
cmpq $0x2f, %rax
je 0x10c07
btq %rax, %r14
jb 0x10c2f
cmpl $0x7b, %eax
je 0x10c2f
cmpl $0x7d, %eax
je 0x10c2f
leal -0x3a(%rax), %ecx
cmpb $-0xb, %cl
ja 0x10c2f
leal -0x5b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x10c2f
leal -0x7b(%rax), %ecx
cmpb $-0x1a, %cl
setae %cl
testb %al, %al
sete %dl
orb %cl, %dl
je 0x10c21
cmpb $0x2f, %al
jne 0x10c2f
incq %r15
movq %r15, (%rbx)
cmpb $0xa, (%r15)
leaq 0x1(%r15), %r15
jne 0x10c0a
incl %ebp
movl %ebp, 0x2048209(%rip)   # 0x2058e28
jmp 0x10bbe
cmpb $0xa, %al
jne 0x10bbb
incl %ebp
movl %ebp, 0x20481fb(%rip)   # 0x2058e28
jmp 0x10bbb
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %ebp, %esi
callq 0x42ec
movl %ebp, %esi
callq 0x42c5
movzbl %al, %edi
movl %ebp, %esi
callq 0x4313