// File: sighingnow[P]compile-pascal/pl0_parser.cpp
// Function: pl0_unsigned_fn(input_t*)
pair<int, pl0_ast_constv *> pl0_unsigned_fn(input_t *text) {
    function<unsigned int (vector<pl0_ast_alnum *>)> fn = [](vector<pl0_ast_alnum *> vec) {
        unsigned int ans = 0; for (auto k: vec) { ans = ans * 10 + (k ? k->val - '0' : 0); } return ans;
    };
    auto res = ((spaces >> (pl0_digit++) << spaces) / fn)(text);
    if (verbose) {
        cout << "parsing: Unsigned" << endl;
    }
    return make_pair(std::get<0>(res), new pl0_ast_constv(text->locate(), std::get<1>(res), pl0_ast_constv::INT));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x400, %rsp            # imm = 0x400
movq %rdi, -0x18(%rbp)
leaq -0x38(%rbp), %rdi
leaq -0x39(%rbp), %rsi
callq 0xbb90
leaq 0x154da5(%rip), %rsi    # 0x160688
leaq -0x3b0(%rbp), %rdi
xorl %edx, %edx
callq 0x1c2a0
jmp 0xb8f3
leaq 0x153ed6(%rip), %rsi    # 0x15f7d0
leaq -0x368(%rbp), %rdi
leaq -0x3b0(%rbp), %rdx
callq 0x1c260
jmp 0xb90f
leaq 0x153eba(%rip), %rdx    # 0x15f7d0
leaq -0x2b8(%rbp), %rdi
leaq -0x368(%rbp), %rsi
callq 0x1c220
jmp 0xb92b
leaq -0x1a0(%rbp), %rdi
leaq -0x2b8(%rbp), %rsi
leaq -0x38(%rbp), %rdx
callq 0x1c1e0
jmp 0xb944
movq -0x18(%rbp), %rdx
leaq -0x68(%rbp), %rdi
leaq -0x1a0(%rbp), %rsi
callq 0x1c2d0
jmp 0xb95a
leaq -0x1a0(%rbp), %rdi
callq 0x1c4c0
leaq -0x2b8(%rbp), %rdi
callq 0x1c4f0
leaq -0x368(%rbp), %rdi
callq 0x1c520
leaq -0x3b0(%rbp), %rdi
callq 0x1c550
testb $0x1, 0x153ea7(%rip)    # 0x15f838
je 0xba7e
movq 0x15363a(%rip), %rdi    # 0x15efd8
leaq 0xe3850(%rip), %rsi     # 0xef1f5
callq 0x5330
movq %rax, -0x3d8(%rbp)
jmp 0xb9b3
movq -0x3d8(%rbp), %rdi
movq 0x1535ff(%rip), %rsi    # 0x15efc0
callq 0x53a0
jmp 0xb9c8
jmp 0xba7e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x3b8(%rbp)
movl %eax, -0x3bc(%rbp)
jmp 0xbb75
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x3b8(%rbp)
movl %eax, -0x3bc(%rbp)
jmp 0xba56
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x3b8(%rbp)
movl %eax, -0x3bc(%rbp)
jmp 0xba4a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x3b8(%rbp)
movl %eax, -0x3bc(%rbp)
jmp 0xba3e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x3b8(%rbp)
movl %eax, -0x3bc(%rbp)
leaq -0x1a0(%rbp), %rdi
callq 0x1c4c0
leaq -0x2b8(%rbp), %rdi
callq 0x1c4f0
leaq -0x368(%rbp), %rdi
callq 0x1c520
leaq -0x3b0(%rbp), %rdi
callq 0x1c550
jmp 0xbb75
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x3b8(%rbp)
movl %eax, -0x3bc(%rbp)
jmp 0xbb6c
leaq -0x68(%rbp), %rdi
callq 0x1c570
movq %rax, -0x3e8(%rbp)
movl $0x10, %edi
callq 0x5340
movq %rax, -0x3e0(%rbp)
jmp 0xbaa1
movq -0x18(%rbp), %rdi
callq 0x1a350
movq %rax, -0x3f0(%rbp)
jmp 0xbab3
movq -0x3f0(%rbp), %rax
movq %rax, -0x3d0(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x1c590
movq -0x3e0(%rbp), %rdi
movl (%rax), %edx
movq -0x3d0(%rbp), %rsi
xorl %ecx, %ecx
callq 0x1b9e0
jmp 0xbae3
movq -0x3e8(%rbp), %rdi
movq -0x3e0(%rbp), %rax
movq %rax, -0x3c8(%rbp)
leaq -0x3c8(%rbp), %rsi
callq 0x1b970
movq %rdx, -0x400(%rbp)
movl %eax, -0x3f4(%rbp)
jmp 0xbb13
movq -0x400(%rbp), %rax
movl -0x3f4(%rbp), %ecx
movl %ecx, -0x10(%rbp)
movq %rax, -0x8(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x1c5b0
leaq -0x38(%rbp), %rdi
callq 0x1c5d0
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x400, %rsp            # imm = 0x400
popq %rbp
retq
movq -0x3e0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x3b8(%rbp)
movl %eax, -0x3bc(%rbp)
movl $0x10, %esi
callq 0x5350
leaq -0x68(%rbp), %rdi
callq 0x1c5b0
leaq -0x38(%rbp), %rdi
callq 0x1c5d0
movq -0x3b8(%rbp), %rdi
callq 0x55b0
nopw (%rax,%rax)