user: What would the C source look like for the assembly code provided here:

```asm
<main>:
  endbr64
  push   %r13
  xor    %esi,%esi
  xor    %edi,%edi
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r13
  call   <xcb_connect@plt>
  mov    %rax,%rdi
  mov    %rax,%rbx
  call   <xcb_get_setup@plt>
  mov    %eax,%edi
  call   <xcb_setup_roots_iterator@plt>
  mov    %rbx,%rdi
  mov    %rax,%rbp
  mov    0x10(%rax),%r12
  call   <xcb_generate_id@plt>
  mov    %r13,%r8
  mov    %rbx,%rdi
  mov    %rax,%rsi
  mov    D35(%rip),%rax
  mov    %r12,%rdx
  mov    (%rax),%ecx
  mov    D46(%rip),%rax
  or     (%rax),%ecx
  mov    0x0(%rbp),%eax
  movl   $0x0,0x4(%rsp)
  mov    %eax,(%rsp)
  call   <xcb_create_gc@plt>
  mov    %rbx,%rdi
  call   <xcb_generate_id@plt>
  movd   0x4(%rbp),%xmm0
  xor    %r9d,%r9d
  xor    %r8d,%r8d
  mov    %rax,%r12
  sub    $0x8,%rsp
  mov    0x10(%rbp),%rcx
  mov    %rbx,%rdi
  mov    D56(%rip),%rdx
  mov    D45(%rip),%rax
  mov    (%rax),%eax
  or     (%rdx),%eax
  mov    D36(%rip),%rdx
  mov    (%rdx),%edx
  movd   %edx,%xmm1
  mov    %r12,%rdx
  punpckldq %xmm1,%xmm0
  movq   %xmm0,0x8(%rsp)
  push   %r13
  push   %rax
  mov    0x8(%rbp),%eax
  push   %rax
  mov    D49(%rip),%rax
  mov    (%rax),%eax
  push   %rax
  mov    D13(%rip),%rax
  push   $0xa
  push   $0x96
  push   $0x96
  mov    (%rax),%esi
  call   <xcb_create_window@plt>
  mov    %rbx,%rdi
  mov    %r13,%rsp
  mov    %r12,%rsi
  call   <xcb_map_window@plt>
  mov    %rbx,%rdi
  call   <xcb_flush@plt>
  jmp    L15
  nopl   0x0(%rax)
L28:
  call   <free@plt>
L15:
  mov    %rbx,%rdi
  call   <xcb_wait_for_event@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  jne    L28
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L19
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L19:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int main() {
  xcb_point_t points[] = {{10, 10}, {10, 20}, {20, 10}, {20, 20}};
  xcb_point_t polyline[] = {{50, 10}, {5, 20}, {25, -20}, {10, 10}};
  xcb_segment_t segments[] = {{100, 10, 140, 30}, {110, 25, 130, 60}};
  xcb_rectangle_t rectangles[] = {{10, 50, 40, 20}, {80, 50, 10, 40}};
  xcb_arc_t arcs[] = {{10, 100, 60, 40, 0, 90 << 6}, {90, 100, 55, 40, 0, 270 << 6}};
  xcb_connection_t *connection = xcb_connect(NULL, NULL);
  xcb_screen_t *screen = xcb_setup_roots_iterator(xcb_get_setup(connection)).data;
  xcb_drawable_t window = screen->root;
  xcb_gcontext_t foreground = xcb_generate_id(connection);
  uint32_t mask = XCB_GC_FOREGROUND | XCB_GC_GRAPHICS_EXPOSURES;
  uint32_t values[2] = {screen->black_pixel, 0};
  xcb_create_gc(connection, foreground, window, mask, values);
  window = xcb_generate_id(connection);
  mask = XCB_CW_BACK_PIXEL | XCB_CW_EVENT_MASK;
  values[0] = screen->white_pixel;
  values[1] = XCB_EVENT_MASK_EXPOSURE;
  xcb_create_window(connection, XCB_COPY_FROM_PARENT, window, screen->root, 0, 0, 150, 150, 10, XCB_WINDOW_CLASS_INPUT_OUTPUT, screen->root_visual, mask, values);
  xcb_map_window(connection, window);
  xcb_flush(connection);
  xcb_generic_event_t *event;
  while (event = xcb_wait_for_event(connection)) {
    switch (event->response_type & ~0x80) {
    case XCB_EXPOSE:
      xcb_poly_point(connection, XCB_COORD_MODE_ORIGIN, window, foreground, 4, points);
      xcb_poly_line(connection, XCB_COORD_MODE_PREVIOUS, window, foreground, 4, polyline);
      xcb_poly_segment(connection, window, foreground, 2, segments);
      xcb_poly_rectangle(connection, window, foreground, 2, rectangles);
      xcb_poly_arc(connection, window, foreground, 2, arcs);
      xcb_flush(connection);
      break;
    default:
      break;
    }
    free(event);
  }
  return 0;
}
```