#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ *dhcp_append_option32(int /*<<< orphan*/ *, int, int);
uint8_t *dhcp_append_common_options(uint8_t *p_options, uint8_t type) {
  *p_options++ = 53;
  *p_options++ = 1;
  *p_options++ = type;
  *p_options++ = 55;
  *p_options++ = 3;
  *p_options++ = 3;
  *p_options++ = 1;
  *p_options++ = 6;
  p_options = dhcp_append_option32(p_options, 51, 0xFFFFFFFF);
  return p_options;
}


x86 assembly (clang, -O0):
<dhcp_append_common_options>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x8(%rbp)
movl   $0x35,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x8(%rbp)
movl   $0x1,(%rax)
mov    -0xc(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %rax,%rdx
add    $0x4,%rdx
mov    %rdx,-0x8(%rbp)
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x8(%rbp)
movl   $0x37,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x8(%rbp)
movl   $0x3,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x8(%rbp)
movl   $0x3,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x8(%rbp)
movl   $0x1,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x8(%rbp)
movl   $0x6,(%rax)
mov    -0x8(%rbp),%rdi
mov    $0x33,%esi
mov    $0xffffffff,%edx
call   1030 <dhcp_append_option32@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dhcp_append_common_options>:
movabs $0x100000035,%rax
mov    %rax,(%rdi)
mov    %esi,0x8(%rdi)
movaps 0xed9(%rip),%xmm0
movups %xmm0,0xc(%rdi)
movl   $0x6,0x1c(%rdi)
add    $0x20,%rdi
mov    $0x33,%esi
mov    $0xffffffff,%edx
jmp    1030 <dhcp_append_option32@plt>

LLVM IR (-O0):
define i32* @dhcp_append_common_options(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
%5 = load i32*, i32** %3
%6 = getelementptr inbounds i32, i32* %5, i32 1
store i32* %6, i32** %3
store i32 53, i32* %5
%7 = load i32*, i32** %3
%8 = getelementptr inbounds i32, i32* %7, i32 1
store i32* %8, i32** %3
store i32 1, i32* %7
%9 = load i32, i32* %4
%10 = load i32*, i32** %3
%11 = getelementptr inbounds i32, i32* %10, i32 1
store i32* %11, i32** %3
store i32 %9, i32* %10
%12 = load i32*, i32** %3
%13 = getelementptr inbounds i32, i32* %12, i32 1
store i32* %13, i32** %3
store i32 55, i32* %12
%14 = load i32*, i32** %3
%15 = getelementptr inbounds i32, i32* %14, i32 1
store i32* %15, i32** %3
store i32 3, i32* %14
%16 = load i32*, i32** %3
%17 = getelementptr inbounds i32, i32* %16, i32 1
store i32* %17, i32** %3
store i32 3, i32* %16
%18 = load i32*, i32** %3
%19 = getelementptr inbounds i32, i32* %18, i32 1
store i32* %19, i32** %3
store i32 1, i32* %18
%20 = load i32*, i32** %3
%21 = getelementptr inbounds i32, i32* %20, i32 1
store i32* %21, i32** %3
store i32 6, i32* %20
%22 = load i32*, i32** %3
%23 = call i32* @dhcp_append_option32(i32* %22, i32 51, i32 -1)
store i32* %23, i32** %3
%24 = load i32*, i32** %3
ret i32* %24
}

LLVM IR (-O2):
define i32* @dhcp_append_common_options(i32* %0, i32 %1) {
%3 = getelementptr inbounds i32, i32* %0, i64 1
store i32 53, i32* %0
%4 = getelementptr inbounds i32, i32* %0, i64 2
store i32 1, i32* %3
%5 = getelementptr inbounds i32, i32* %0, i64 3
store i32 %1, i32* %4
%6 = getelementptr inbounds i32, i32* %0, i64 7
%7 = bitcast i32* %5 to <4 x i32>*
store <4 x i32> <i32 55, i32 3, i32 3, i32 1>, <4 x i32>* %7
%8 = getelementptr inbounds i32, i32* %0, i64 8
store i32 6, i32* %6
%9 = tail call i32* @dhcp_append_option32(i32* %8, i32 51, i32 -1)
ret i32* %9
}