#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*/ ntp_request_buffer;

/* Variables and functions */
int /*<<< orphan*/ memset(char *, char, int);
char *wifi_ntp_build_url() {
  static char ntp_request_buffer[48];
  memset(ntp_request_buffer, '\0', sizeof(ntp_request_buffer));
  ntp_request_buffer[0] = 0xE3;
  ntp_request_buffer[1] = 0;
  ntp_request_buffer[2] = 6;
  ntp_request_buffer[3] = 0xEC;
  ntp_request_buffer[12] = 49;
  ntp_request_buffer[13] = 0x4E;
  ntp_request_buffer[14] = 49;
  ntp_request_buffer[15] = 52;
  return ntp_request_buffer;
}


x86 assembly (clang, -O0):
<wifi_ntp_build_url>:
push   %rbp
mov    %rsp,%rbp
lea    0x2f25(%rip),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1030 <memset@plt>
movb   $0xe3,0x2f12(%rip)
movb   $0x0,0x2f0c(%rip)
movb   $0x6,0x2f06(%rip)
movb   $0xec,0x2f00(%rip)
movb   $0x31,0x2f02(%rip)
movb   $0x4e,0x2efc(%rip)
movb   $0x31,0x2ef6(%rip)
movb   $0x34,0x2ef0(%rip)
lea    0x2eda(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<wifi_ntp_build_url>:
push   %rbx
lea    0x2f28(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1030 <memset@plt>
movl   $0xec0600e3,0x2f0f(%rip)
movl   $0x34314e31,0x2f11(%rip)
4e 31 34
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@wifi_ntp_build_url.ntp_request_buffer = internal global [48 x i8] zeroinitializer
define i8* @wifi_ntp_build_url() {
%1 = call i32 @memset(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @wifi_ntp_build_url.ntp_request_buffer, i64 0, i64 0), i8 signext 0, i32 48)
store i8 -29, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @wifi_ntp_build_url.ntp_request_buffer, i64 0, i64 0)
store i8 0, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @wifi_ntp_build_url.ntp_request_buffer, i64 0, i64 1)
store i8 6, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @wifi_ntp_build_url.ntp_request_buffer, i64 0, i64 2)
store i8 -20, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @wifi_ntp_build_url.ntp_request_buffer, i64 0, i64 3)
store i8 49, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @wifi_ntp_build_url.ntp_request_buffer, i64 0, i64 12)
store i8 78, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @wifi_ntp_build_url.ntp_request_buffer, i64 0, i64 13)
store i8 49, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @wifi_ntp_build_url.ntp_request_buffer, i64 0, i64 14)
store i8 52, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @wifi_ntp_build_url.ntp_request_buffer, i64 0, i64 15)
ret i8* getelementptr inbounds ([48 x i8], [48 x i8]* @wifi_ntp_build_url.ntp_request_buffer, i64 0, i64 0)
}

LLVM IR (-O2):
@wifi_ntp_build_url.ntp_request_buffer = internal global [48 x i8] zeroinitializer
define i8* @wifi_ntp_build_url() {
%1 = tail call i32 @memset(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @wifi_ntp_build_url.ntp_request_buffer, i64 0, i64 0), i8 signext 0, i32 48)
store i8 -29, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @wifi_ntp_build_url.ntp_request_buffer, i64 0, i64 0)
store i8 0, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @wifi_ntp_build_url.ntp_request_buffer, i64 0, i64 1)
store i8 6, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @wifi_ntp_build_url.ntp_request_buffer, i64 0, i64 2)
store i8 -20, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @wifi_ntp_build_url.ntp_request_buffer, i64 0, i64 3)
store i8 49, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @wifi_ntp_build_url.ntp_request_buffer, i64 0, i64 12)
store i8 78, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @wifi_ntp_build_url.ntp_request_buffer, i64 0, i64 13)
store i8 49, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @wifi_ntp_build_url.ntp_request_buffer, i64 0, i64 14)
store i8 52, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @wifi_ntp_build_url.ntp_request_buffer, i64 0, i64 15)
ret i8* getelementptr inbounds ([48 x i8], [48 x i8]* @wifi_ntp_build_url.ntp_request_buffer, i64 0, i64 0)
}