// File: /workspace/github_c_makefile_star2_O1/michaelnmmeyer[P]gourgandine/cmd/gourgandine.c
// Function: process
static int process(struct mascara *mr, struct gourgandine *gn, const char *path)
{
   size_t len;
   char *str = read_file(path, &len);
   if (!str)
      return -1;

   mr_set_text(mr, str, len);

   struct mr_token *sent;
   while ((len = mr_next(mr, &sent))) {
      struct gn_acronym def = {0};
      while (gn_search(gn, sent, len, &def))
         printf("%s\t%s\n", def.acronym, def.expansion);
   }
   free(str);
   return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %rbx
movq %rdi, %r14
testq %rdx, %rdx
je 0x3d3c
movq %rdx, %r12
leaq 0x95123(%rip), %rsi     # 0x98e49
movq %rdx, %rdi
callq 0x2220
testq %rax, %rax
je 0x3de1
movq %rax, %r15
jmp 0x3d4d
movq 0x10d28d(%rip), %rax    # 0x110fd0
movq (%rax), %r15
leaq 0x6720(%rip), %r12      # 0xa46d
leaq 0x10d45c(%rip), %rdi    # 0x1111b0
movl $0x2000, %esi           # imm = 0x2000
movl $0x1, %edx
callq 0x2c8f
movq %rax, %rbp
leaq -0x10(%rax), %r13
movq -0x10(%rax), %rdi
addq %rax, %rdi
movl $0x1, %esi
movl $0x2000, %edx           # imm = 0x2000
movq %r15, %rcx
callq 0x20a0
testq %rax, %rax
je 0x3da7
addq (%r13), %rax
movq %rax, (%r13)
cmpq $0x3200001, %rax        # imm = 0x3200001
jae 0x3dc9
movl $0x2000, %esi           # imm = 0x2000
movl $0x1, %edx
movq %r13, %rdi
jmp 0x3d5e
movq %r15, %rdi
callq 0x2090
testl %eax, %eax
je 0x3df7
leaq 0x66e3(%rip), %rdi      # 0xa49d
movq %r12, %rsi
xorl %eax, %eax
callq 0x231e
jmp 0x3e49
leaq 0x66a5(%rip), %rdi      # 0xa475
movq %r12, %rsi
movl $0x3200000, %edx        # imm = 0x3200000
xorl %eax, %eax
callq 0x231e
jmp 0x3e49
leaq 0x6673(%rip), %rdi      # 0xa45b
xorl %r15d, %r15d
movq %r12, %rsi
xorl %eax, %eax
callq 0x231e
jmp 0x3e65
movq (%r13), %rsi
leaq 0x10(%rsp), %rdx
movq %rbp, %rdi
movl $0xa, %ecx
callq 0x9a5a
movq %rax, %rbp
testq %rax, %rax
js 0x3e2d
cmpq 0x10d1bc(%rip), %r13    # 0x110fd8
je 0x3e26
movq %r13, %rdi
callq 0x2040
movq 0x10(%rsp), %r15
jmp 0x3e65
movq %rbp, %rdi
callq 0x8a60
leaq 0x6673(%rip), %rdi      # 0xa4af
movq %r12, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x231e
cmpq 0x10d188(%rip), %r13    # 0x110fd8
je 0x3e5a
movq %r13, %rdi
callq 0x2040
movq %r15, %rdi
callq 0x20d0
xorl %r15d, %r15d
testq %r15, %r15
je 0x3f07
movq %r14, %rdi
movq %r15, 0x8(%rsp)
movq %r15, %rsi
movq %rbp, %rdx
callq 0x4701
movq %rsp, %rsi
movq %r14, %rdi
callq 0x4731
testq %rax, %rax
je 0x3ef9
movq %rax, %r12
leaq 0x10(%rsp), %r13
movq %rsp, %rbp
leaq 0x65b1(%rip), %r15      # 0xa454
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movq (%rsp), %rsi
movq %rbx, %rdi
movq %r12, %rdx
movq %r13, %rcx
callq 0x249c
testl %eax, %eax
je 0x3ee6
movq 0x10(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq %r15, %rdi
xorl %eax, %eax
callq 0x2100
jmp 0x3eba
movq %r14, %rdi
movq %rbp, %rsi
callq 0x4731
movq %rax, %r12
testq %rax, %rax
jne 0x3ea3
movq 0x8(%rsp), %rdi
callq 0x2040
xorl %eax, %eax
jmp 0x3f0c
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop