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

```asm
<or_write_memory>:
  endbr64
  mov    %rsi,%rax
  cmp    $0x2,%ecx
  je     L54
  cmp    $0x4,%ecx
  je     L194
  cmp    $0x1,%ecx
  je     L8
L208:
  ret
  nop
L8:
  test   %edx,%edx
  je     L208
  lea    -0x1(%rdx),%ecx
  mov    %edx,%edi
  cmp    $0xe,%ecx
  jbe    L177
  mov    %rsi,%rcx
  mov    %edx,%esi
  movd   %r8d,%xmm1
  shr    $0x4,%esi
  punpcklbw %xmm1,%xmm1
  sub    $0x1,%esi
  punpcklwd %xmm1,%xmm1
  shl    $0x4,%rsi
  pshufd $0x0,%xmm1,%xmm1
  lea    0x10(%rax,%rsi,1),%rsi
  nopl   0x0(%rax,%rax,1)
L145:
  movdqu (%rcx),%xmm0
  add    $0x10,%rcx
  por    %xmm1,%xmm0
  movups %xmm0,-0x10(%rcx)
  cmp    %rsi,%rcx
  jne    L145
  mov    %edx,%ecx
  and    $0xfffffff0,%ecx
  mov    %ecx,%esi
  sub    %ecx,%edx
  add    %rax,%rsi
  cmp    %ecx,%edi
  je     L66
L16:
  sub    %ecx,%edi
  lea    -0x1(%rdi),%r9d
  cmp    $0x6,%r9d
  jbe    L205
  add    %rax,%rcx
  mov    %r8d,%eax
  movzbl %r8b,%r9d
  shl    $0x8,%eax
  movq   (%rcx),%xmm1
  or     %r9d,%eax
  movd   %eax,%xmm2
  mov    %edi,%eax
  pshuflw $0x0,%xmm2,%xmm0
  and    $0xfffffff8,%eax
  por    %xmm1,%xmm0
  sub    %eax,%edx
  movq   %xmm0,(%rcx)
  mov    %eax,%ecx
  add    %rcx,%rsi
  cmp    %eax,%edi
  je     L208
L205:
  or     %r8b,(%rsi)
  cmp    $0x1,%edx
  je     L208
  or     %r8b,0x1(%rsi)
  cmp    $0x2,%edx
  je     L208
  or     %r8b,0x2(%rsi)
  cmp    $0x3,%edx
  je     L208
  or     %r8b,0x3(%rsi)
  cmp    $0x4,%edx
  je     L208
  or     %r8b,0x4(%rsi)
  cmp    $0x5,%edx
  je     L208
  or     %r8b,0x5(%rsi)
  cmp    $0x6,%edx
  je     L208
  or     %r8b,0x6(%rsi)
  ret
L194:
  lea    -0x4(%rdx),%ecx
  lea    0x4(%rsi,%rcx,1),%rcx
  test   %edx,%edx
  je     L149
L57:
  or     %r8,(%rax)
  add    $0x4,%rax
  cmp    %rcx,%rax
  jne    L57
  ret
  nopl   (%rax)
L54:
  test   %edx,%edx
  je     L71
  lea    -0x2(%rdx),%ecx
  mov    %r8d,%edi
  mov    %ecx,%r9d
  shr    %r9d
  lea    0x1(%r9),%r10d
  cmp    $0xc,%ecx
  jbe    L109
  mov    %rsi,%rcx
  mov    %r10d,%esi
  movd   %r8d,%xmm1
  shr    $0x3,%esi
  punpcklwd %xmm1,%xmm1
  sub    $0x1,%esi
  pshufd $0x0,%xmm1,%xmm1
  shl    $0x4,%rsi
  lea    0x10(%rax,%rsi,1),%rsi
  nopl   0x0(%rax)
L222:
  movdqu (%rcx),%xmm0
  add    $0x10,%rcx
  por    %xmm1,%xmm0
  movups %xmm0,-0x10(%rcx)
  cmp    %rcx,%rsi
  jne    L222
  mov    %r10d,%ecx
  and    $0xfffffff8,%ecx
  mov    %ecx,%r11d
  mov    %ecx,%esi
  neg    %r11d
  lea    (%rax,%rsi,2),%rsi
  lea    (%rdx,%r11,2),%edx
  cmp    %ecx,%r10d
  je     L102
L112:
  sub    %ecx,%r9d
  lea    0x1(%r9),%r10d
  cmp    $0x2,%r9d
  jbe    L179
  lea    (%rax,%rcx,2),%rax
  movd   %edi,%xmm3
  movq   (%rax),%xmm0
  pshuflw $0x0,%xmm3,%xmm1
  por    %xmm1,%xmm0
  movq   %xmm0,(%rax)
  mov    %r10d,%eax
  and    $0xfffffffc,%eax
  mov    %eax,%ecx
  lea    (%rsi,%rcx,2),%rsi
  mov    %eax,%ecx
  neg    %ecx
  lea    (%rdx,%rcx,2),%edx
  cmp    %eax,%r10d
  je     L208
L179:
  or     %r8w,(%rsi)
  cmp    $0x2,%edx
  je     L208
  or     %r8w,0x2(%rsi)
  cmp    $0x4,%edx
  je     L208
  or     %r8w,0x4(%rsi)
  ret
  nopl   0x0(%rax,%rax,1)
L102:
  ret
L66:
  ret
  nopw   0x0(%rax,%rax,1)
L71:
  ret
  nopl   0x0(%rax)
L149:
  ret
L177:
  xor    %ecx,%ecx
  jmp    L16
L109:
  xor    %ecx,%ecx
  jmp    L112
```

assistant: ```c
void or_write_memory(unsigned long phys_addr, void *addr, int len, int iosize, unsigned long value) {
  switch (iosize) {
  case 1:
    while (len) {
      *(unsigned char *)addr |= value;
      len -= iosize;
      addr += iosize;
    }
    break;
  case 2:
    while (len) {
      *(unsigned short *)addr |= value;
      len -= iosize;
      addr += iosize;
    }
    break;
  case 4:
    while (len) {
      *(unsigned long *)addr |= value;
      len -= iosize;
      addr += iosize;
    }
    break;
  }
}
```