user: Demonstrate the C code that generates the assembly output below:

```asm
<rrpgebranch>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %edx,%ebp
  sub    %esi,%ebp
  je     L42
  mov    %rdi,%r14
  mov    %esi,%r13d
  mov    %edx,%r12d
  mov    %ecx,%ebx
  mov    $0x1,%eax
  shl    %cl,%eax
  mov    $0x1,%edx
  cmp    %eax,%ebp
  jae    L35
L76:
  sub    $0x1,%ebx
  mov    %edx,%eax
  mov    %ebx,%ecx
  shl    %cl,%eax
  cmp    %ebp,%eax
  ja     L76
L35:
  lea    0x0(%r13,%rax,1),%r15d
  cmp    %r15d,%r12d
  sete   %al
  movzbl %al,%eax
  sub    %eax,%r15d
  test   %r8d,%r8d
  je     L123
  mov    %r12d,%eax
  mov    (%r14,%rax,4),%esi
  cmp    $0x7fffe,%esi
  ja     L6
  shr    $0x7,%esi
  lea    D13(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L123:
  cmp    $0x1,%ebp
  jne    L129
  lea    0x1(%r15),%eax
  mov    (%r14,%rax,4),%eax
  cmp    $0x7fffe,%eax
  ja     L22
  mov    %eax,%ecx
  movabs $0x100000000,%rax
  mov    $0x0,%edx
  div    %rcx
  mov    %eax,%esi
  shr    $0x2,%esi
  lea    D116(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D65(%rip),%rdi
  call   <puts@plt>
  jmp    L73
L42:
  lea    D108(%rip),%rdi
  call   <puts@plt>
  jmp    L73
L6:
  lea    D6(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L123
L22:
  lea    D54(%rip),%rdi
  call   <puts@plt>
  jmp    L73
L129:
  mov    %r15d,%eax
  lea    (%r14,%rax,4),%rbp
  mov    0x0(%rbp),%esi
  shr    $0x3,%esi
  lea    D5(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12d,%eax
  mov    (%r14,%rax,4),%edx
  cmp    $0x7fffe,%edx
  ja     L24
  shr    $0x3,%edx
  mov    0x0(%rbp),%esi
  shr    $0x3,%esi
  lea    D25(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L107:
  mov    0x0(%rbp),%esi
  shr    $0x7,%esi
  lea    D46(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r13d,%eax
  mov    (%r14,%rax,4),%esi
  test   %esi,%esi
  je     L101
  mov    0x0(%rbp),%edx
  shr    $0x3,%edx
  shr    $0x3,%esi
  lea    D25(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L79:
  cmp    $0x1,%ebx
  adc    $0xffffffff,%ebx
  mov    $0x0,%r8d
  mov    %ebx,%ecx
  mov    %r12d,%edx
  mov    %r15d,%esi
  mov    %r14,%rdi
  call   <rrpgebranch>
  mov    $0x1,%r8d
  mov    %ebx,%ecx
  mov    %r15d,%edx
  mov    %r13d,%esi
  mov    %r14,%rdi
  call   <rrpgebranch>
L73:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L24:
  mov    0x0(%rbp),%esi
  shr    $0x3,%esi
  lea    D57(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L107
L101:
  mov    0x0(%rbp),%esi
  shr    $0x3,%esi
  lea    D86(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L79
```

tool_calls: name: parse_data
arguments: label: D13
datatype: string
name: parse_data
arguments: label: D116
datatype: string
name: parse_data
arguments: label: D65
datatype: string
name: parse_data
arguments: label: D108
datatype: string
name: parse_data
arguments: label: D6
datatype: string
name: parse_data
arguments: label: D54
datatype: string
name: parse_data
arguments: label: D5
datatype: string
name: parse_data
arguments: label: D25
datatype: string
name: parse_data
arguments: label: D46
datatype: string
name: parse_data
arguments: label: D57
datatype: string
name: parse_data
arguments: label: D86
datatype: string

tool: D13: .x%03x:

tool: D116: 	mov x1,    0x%04X


tool: D65: 	jms .xend

tool: D108: Branch: Error!

tool: D6: .xfff:

tool: D54: 	jms .xdiv		; Do approximation with division

tool: D5: 	xug x3,    0x%04X

tool: D25: 	; 0x%04X < x3 <= 0x%04X


tool: D46: 	jms .x%03x	

tool: D57: 	; 0x%04X < x3


tool: D86: 	;          x3 <= 0x%04X


assistant: ```c
void rrpgebranch(unsigned int const *ca, unsigned int b, unsigned int h, unsigned int d, unsigned int e) {
  unsigned int w = h - b;
  unsigned int s;
  unsigned int t;
  if (w == 0U) {
    printf("Branch: Error!\n");
    return;
  }
  while ((1U << d) > w) {
    d--;
  }
  s = b + (1U << d);
  if (s == h) {
    s--;
  }
  if (e) {
    if (ca[h] < 0x7FFFFU) {
      printf(".x%03x:", (ca[h] >> 7));
    } else {
      printf(".xfff:");
    }
  }
  if (w == 1U) {
    if (ca[s + 1U] < 0x7FFFFU) {
      t = (unsigned)(0x100000000ULL / ca[s + 1U]) >> 2;
      printf("\tmov x1,    0x%04X\n", t);
      printf("\tjms .xend\n");
    } else {
      printf("\tjms .xdiv\t\t; Do approximation with division\n");
    }
  } else {
    printf("\txug x3,    0x%04X", ca[s] >> 3);
    if (ca[h] < 0x7FFFFU) {
      printf("\t; 0x%04X < x3 <= 0x%04X\n", ca[s] >> 3, ca[h] >> 3);
    } else {
      printf("\t; 0x%04X < x3\n", ca[s] >> 3);
    }
    printf("\tjms .x%03x\t", ca[s] >> 7);
    if (ca[b] != 0U) {
      printf("\t; 0x%04X < x3 <= 0x%04X\n", ca[b] >> 3, ca[s] >> 3);
    } else {
      printf("\t;          x3 <= 0x%04X\n", ca[s] >> 3);
    }
    if (d != 0U) {
      d--;
    }
    rrpgebranch(ca, s, h, d, 0U);
    rrpgebranch(ca, b, s, d, 1U);
  }
}
```