// File: /workspace/github_c_makefile_star2_O1/hikalium[P]compilium/parser.c
// Function: ParsePostfixExpr
struct Node *ParsePostfixExpr() {
  struct Node *n = ParsePrimaryExpr();
  while (n) {
    struct Node *t;
    if (ConsumePunctuator("(")) {
      struct Node *args = AllocList();
      if (!ConsumePunctuator(")")) {
        do {
          struct Node *arg_expr = ParseAssignExpr();
          if (!arg_expr)
            ErrorWithToken(NextToken(), "Expected expression here");
          PushToList(args, arg_expr);
        } while (ConsumePunctuator(","));
        ExpectPunctuator(")");
      }
      struct Node *nn = AllocNode(kASTExprFuncCall);
      nn->func_expr = n;
      nn->arg_expr_list = args;
      n = nn;
      continue;
    }
    if ((t = ConsumePunctuator("["))) {
      n = CreateASTBinOp(t, n, ParseExpr());
      ExpectPunctuator("]");
      continue;
    }
    if ((t = ConsumePunctuator(".")) || (t = ConsumePunctuator("->"))) {
      struct Node *right = ConsumeToken(kTokenIdent);
      assert(right);
      n = CreateASTBinOp(t, n, right);
      continue;
    }
    if ((t = ConsumePunctuator("++"))) {
      n = CreateASTUnaryPostfixOp(n, t);
      continue;
    }
    if ((t = ConsumePunctuator("--"))) {
      n = CreateASTUnaryPostfixOp(n, t);
      continue;
    }
    break;
  }
  return n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
callq 0x6e7c
movq %rax, %r15
leaq 0x4618(%rip), %rbx      # 0xb5c4
leaq 0x45e6(%rip), %r14      # 0xb599
leaq 0x58bf(%rip), %r13      # 0xc879
leaq 0x4259(%rip), %r12      # 0xb21a
testq %r15, %r15
je 0x70f3
movq %rbx, %rdi
callq 0x94f8
testq %rax, %rax
je 0x703b
xorl %eax, %eax
callq 0x4806
movq %rax, %rbp
movq %r13, %rdi
callq 0x94f8
testq %rax, %rax
jne 0x701c
callq 0x76ab
testq %rax, %rax
je 0x7108
movq %rbp, %rdi
movq %rax, %rsi
callq 0x488e
movq %r12, %rdi
callq 0x94f8
testq %rax, %rax
jne 0x6fee
movq %r13, %rdi
callq 0x953c
movl $0x5, %edi
callq 0x3f05
movq %r15, 0xb0(%rax)
movq %rbp, 0xb8(%rax)
movb $0x1, %cl
movq %rax, %r15
jmp 0x70b6
movq %r14, %rdi
callq 0x94f8
testq %rax, %rax
je 0x706f
movq %rax, %rbp
callq 0x6f32
movq %rbp, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x3f1b
movq %rax, %r15
leaq 0x5155(%rip), %rdi      # 0xc1bd
callq 0x953c
jmp 0x70b4
leaq 0x462d(%rip), %rdi      # 0xb6a3
callq 0x94f8
testq %rax, %rax
jne 0x7091
leaq 0x4006(%rip), %rdi      # 0xb08d
callq 0x94f8
testq %rax, %rax
je 0x70c0
movq %rax, %rbp
movl $0x4, %edi
callq 0x9431
testq %rax, %rax
je 0x711e
movq %rbp, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x3f1b
movq %rax, %r15
movb $0x1, %cl
testb %cl, %cl
jne 0x6fc1
jmp 0x70f6
leaq 0x40e0(%rip), %rdi      # 0xb1a7
callq 0x94f8
testq %rax, %rax
jne 0x70e2
leaq 0x40cc(%rip), %rdi      # 0xb1a4
callq 0x94f8
testq %rax, %rax
je 0x70ef
movq %r15, %rdi
movq %rax, %rsi
callq 0x3fab
jmp 0x70b1
xorl %ecx, %ecx
jmp 0x70b6
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x958f
leaq 0x50d7(%rip), %rsi      # 0xc1eb
movq %rax, %rdi
xorl %eax, %eax
callq 0x4740
leaq 0x50df(%rip), %rdi      # 0xc204
leaq 0x50de(%rip), %rsi      # 0xc20a
movl $0x3e, %edx
callq 0x4704