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

```asm
<PositionInChild>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %edi,%ebx
  mov    %esi,%ebp
  mov    %edx,%r12d
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  call   <XtIsRectObj@plt>
  test   %eax,%eax
  jne    L92
  mov    D5(%rip),%rax
  mov    (%rax),%eax
L112:
  mov    0x38(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L94
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L92:
  lea    0x14(%rsp),%rdx
  mov    D64(%rip),%rax
  mov    (%rax),%esi
  mov    0x20(%rsp),%edi
  call   <XtSetArg@plt>
  mov    %rsp,%rdx
  mov    D8(%rip),%rax
  mov    (%rax),%esi
  mov    0x24(%rsp),%edi
  call   <XtSetArg@plt>
  lea    0x4(%rsp),%rdx
  mov    D32(%rip),%rax
  mov    (%rax),%esi
  mov    0x28(%rsp),%edi
  call   <XtSetArg@plt>
  lea    0xc(%rsp),%rdx
  mov    D80(%rip),%rax
  mov    (%rax),%esi
  mov    0x2c(%rsp),%edi
  call   <XtSetArg@plt>
  lea    0x10(%rsp),%rdx
  mov    D2(%rip),%rax
  mov    (%rax),%esi
  mov    0x30(%rsp),%edi
  call   <XtSetArg@plt>
  lea    0x8(%rsp),%rdx
  mov    D31(%rip),%rax
  mov    (%rax),%esi
  mov    0x34(%rsp),%edi
  call   <XtSetArg@plt>
  lea    0x20(%rsp),%rsi
  mov    $0x6,%edx
  mov    %ebx,%edi
  call   <XtGetValues@plt>
  mov    %ebx,%edi
  call   <XtIsWidget@plt>
  test   %rax,%rax
  je     L77
  cmpl   $0x0,0x14(%rsp)
  je     L104
  mov    %ebx,%edi
  call   <XtIsManaged@plt>
  test   %rax,%rax
  jne    L77
L104:
  mov    %ebx,%edi
  call   <XtWindow@plt>
  mov    %eax,%r13d
  mov    %ebx,%edi
  call   <XtDisplay@plt>
  mov    %eax,%edi
  lea    0x18(%rsp),%rdx
  mov    %r13d,%esi
  call   <XGetWindowAttributes@plt>
  test   %rax,%rax
  je     L77
  mov    D10(%rip),%rax
  mov    (%rax),%rax
  cmp    %rax,0x18(%rsp)
  je     L77
  mov    D5(%rip),%rax
  mov    (%rax),%eax
  jmp    L112
L77:
  mov    0xc(%rsp),%edx
  mov    $0x0,%eax
  cmp    %ebp,%edx
  jg     L112
  mov    0x8(%rsp),%eax
  lea    (%rax,%rax,1),%ecx
  add    (%rsp),%edx
  add    %ecx,%edx
  mov    $0x0,%eax
  cmp    %ebp,%edx
  jl     L112
  mov    0x10(%rsp),%edx
  cmp    %r12d,%edx
  jg     L112
  add    0x4(%rsp),%edx
  add    %ecx,%edx
  cmp    %r12d,%edx
  setge  %al
  movzbl %al,%eax
  jmp    L112
L94:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
Bool PositionInChild(Widget child, int x, int y) {
  Arg args[6];
  Cardinal num;
  Dimension width, height, border_width;
  Position child_x, child_y;
  Boolean mapped_when_managed;
  if (!XtIsRectObj(child))
    return (False);
  num = 0;
  XtSetArg(args[num], XtNmappedWhenManaged, &mapped_when_managed);
  num++;
  XtSetArg(args[num], XtNwidth, &width);
  num++;
  XtSetArg(args[num], XtNheight, &height);
  num++;
  XtSetArg(args[num], XtNx, &child_x);
  num++;
  XtSetArg(args[num], XtNy, &child_y);
  num++;
  XtSetArg(args[num], XtNborderWidth, &border_width);
  num++;
  XtGetValues(child, args, num);
  if (XtIsWidget(child) && !(mapped_when_managed && XtIsManaged(child))) {
    XWindowAttributes attrs;
    if (XGetWindowAttributes(XtDisplay(child), XtWindow(child), &attrs) && attrs.map_state != IsViewable)
      return (False);
  }
  return ((x >= child_x) && (x <= (child_x + (Position)width + 2 * (Position)border_width)) && (y >= child_y) && (y <= (child_y + (Position)height + 2 * (Position)border_width)));
}
```