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

```asm
<rrpgebranch>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  sub    %esi,%edx
  je     L98
  mov    %esi,%eax
  mov    %rdi,%rbp
  mov    %esi,%r13d
  mov    %ecx,%r15d
  lea    (%rdi,%rax,4),%rax
  mov    %rax,(%rsp)
L110:
  mov    $0x1,%ebx
  mov    %r15d,%ecx
  mov    $0x1,%eax
  shl    %cl,%ebx
  cmp    %edx,%ebx
  jbe    L51
  nopl   0x0(%rax,%rax,1)
L127:
  sub    $0x1,%r15d
  mov    %eax,%ebx
  mov    %r15d,%ecx
  shl    %cl,%ebx
  cmp    %edx,%ebx
  ja     L127
L51:
  add    %r13d,%ebx
  lea    -0x1(%r12),%eax
  cmp    %r12d,%ebx
  cmove  %eax,%ebx
  test   %r8d,%r8d
  je     L33
  mov    %r12d,%eax
  mov    %edx,0xc(%rsp)
  mov    0x0(%rbp,%rax,4),%esi
  cmp    $0x7fffe,%esi
  ja     L60
  shr    $0x7,%esi
  lea    D88(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0xc(%rsp),%edx
L33:
  cmp    $0x1,%edx
  je     L123
L116:
  mov    %ebx,%eax
  lea    D33(%rip),%rdi
  lea    0x0(%rbp,%rax,4),%r14
  xor    %eax,%eax
  mov    (%r14),%esi
  shr    $0x3,%esi
  call   <printf@plt>
  mov    %r12d,%eax
  mov    0x0(%rbp,%rax,4),%edx
  cmp    $0x7fffe,%edx
  ja     L143
  mov    (%r14),%esi
  shr    $0x3,%edx
  lea    D116(%rip),%rdi
  xor    %eax,%eax
  shr    $0x3,%esi
  call   <printf@plt>
L86:
  mov    (%r14),%esi
  lea    D20(%rip),%rdi
  xor    %eax,%eax
  shr    $0x7,%esi
  call   <printf@plt>
  mov    (%rsp),%rax
  mov    (%rax),%esi
  test   %esi,%esi
  je     L122
  mov    (%r14),%edx
  shr    $0x3,%esi
  lea    D116(%rip),%rdi
  xor    %eax,%eax
  shr    $0x3,%edx
  call   <printf@plt>
L161:
  test   %r15d,%r15d
  je     L124
  sub    $0x1,%r15d
  xor    %r8d,%r8d
  mov    %r15d,%ecx
L55:
  mov    %r12d,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <rrpgebranch>
  mov    %ebx,%edx
  sub    %r13d,%edx
  je     L98
  mov    %ebx,%r12d
  mov    $0x1,%r8d
  jmp    L110
  xchg   %ax,%ax
L143:
  mov    (%r14),%esi
  lea    D56(%rip),%rdi
  xor    %eax,%eax
  shr    $0x3,%esi
  call   <printf@plt>
  jmp    L86
  nopl   0x0(%rax)
L124:
  xor    %r8d,%r8d
  xor    %ecx,%ecx
  jmp    L55
  nopw   0x0(%rax,%rax,1)
L122:
  mov    (%r14),%esi
  lea    D77(%rip),%rdi
  xor    %eax,%eax
  shr    $0x3,%esi
  call   <printf@plt>
  jmp    L161
  nopl   0x0(%rax)
L60:
  lea    D3(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0xc(%rsp),%edx
  cmp    $0x1,%edx
  jne    L116
L123:
  lea    0x1(%rbx),%eax
  lea    D26(%rip),%rdi
  mov    0x0(%rbp,%rax,4),%eax
  cmp    $0x7fffe,%eax
  ja     L131
  mov    %eax,%ecx
  xor    %edx,%edx
  lea    D84(%rip),%rdi
  movabs $0x100000000,%rax
  div    %rcx
  mov    %eax,%esi
  xor    %eax,%eax
  shr    $0x2,%esi
  call   <printf@plt>
  lea    D111(%rip),%rdi
  jmp    L131
  nopl   (%rax)
L98:
  lea    D48(%rip),%rdi
L131:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1060 <puts@plt>
```

tool_calls: name: read_data
arguments: tag: D88
type_infered: string
name: read_data
arguments: tag: D33
type_infered: string
name: read_data
arguments: tag: D116
type_infered: string
name: read_data
arguments: tag: D20
type_infered: string
name: read_data
arguments: tag: D56
type_infered: string
name: read_data
arguments: tag: D77
type_infered: string
name: read_data
arguments: tag: D3
type_infered: string
name: read_data
arguments: tag: D26
type_infered: string
name: read_data
arguments: tag: D84
type_infered: string
name: read_data
arguments: tag: D111
type_infered: string
name: read_data
arguments: tag: D48
type_infered: string

tool: D88: .x%03x:

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

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


tool: D20: 	jms .x%03x	

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


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


tool: D3: .xfff:

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

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


tool: D111: 	jms .xend

tool: D48: Branch: Error!

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);
  }
}
```