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

/* Variables and functions */
int /*<<< orphan*/ A7HTTP_A7command(char *, char *, char *, int, int);
int /*<<< orphan*/ A7HTTP_ShowSerialData();
int /*<<< orphan*/ A7board_println(char *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sleep(int);
int A7_Show_GSM_Siganl_Qauality() {
  printf("Start A7_Show_GSM_Siganl_Qauality function");
  A7HTTP_A7command("AT+CGATT?", "OK", "yy", 20000, 2);
  A7HTTP_A7command("AT+CGATT=1", "OK", "yy", 20000, 2);
  A7board_println("AT+CSQ");
  sleep(1);
  A7HTTP_ShowSerialData();
  sleep(1);
}


x86 assembly (clang, -O0):
<A7_Show_GSM_Siganl_Qauality>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xea1(%rip),%rdi
call   1040 <printf@plt>
lea    0xec0(%rip),%rdi
lea    0xec3(%rip),%rsi
lea    0xebf(%rip),%rdx
mov    $0x4e20,%ecx
mov    $0x2,%r8d
call   1050 <A7HTTP_A7command@plt>
lea    0xeab(%rip),%rdi
lea    0xe9e(%rip),%rsi
lea    0xe9a(%rip),%rdx
mov    $0x4e20,%ecx
mov    $0x2,%r8d
call   1050 <A7HTTP_A7command@plt>
lea    0xe91(%rip),%rdi
call   1030 <A7board_println@plt>
mov    $0x1,%edi
call   1070 <sleep@plt>
mov    $0x0,%al
call   1060 <A7HTTP_ShowSerialData@plt>
mov    $0x1,%edi
call   1070 <sleep@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<A7_Show_GSM_Siganl_Qauality>:
push   %r14
push   %rbx
push   %rax
lea    0xea5(%rip),%rdi
call   1040 <printf@plt>
lea    0xec4(%rip),%rdi
lea    0xec7(%rip),%rbx
lea    0xec3(%rip),%r14
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x4e20,%ecx
mov    $0x2,%r8d
call   1050 <A7HTTP_A7command@plt>
lea    0xea9(%rip),%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x4e20,%ecx
mov    $0x2,%r8d
call   1050 <A7HTTP_A7command@plt>
lea    0xe97(%rip),%rdi
call   1030 <A7board_println@plt>
mov    $0x1,%edi
call   1070 <sleep@plt>
xor    %eax,%eax
call   1060 <A7HTTP_ShowSerialData@plt>
mov    $0x1,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1070 <sleep@plt>

LLVM IR (-O0):
@.str = [43 x i8] c"Start A7_Show_GSM_Siganl_Qauality function\00"
@.str.1 = [10 x i8] c"AT+CGATT?\00"
@.str.2 = [3 x i8] c"OK\00"
@.str.3 = [3 x i8] c"yy\00"
@.str.4 = [11 x i8] c"AT+CGATT=1\00"
@.str.5 = [7 x i8] c"AT+CSQ\00"
define i32 @A7_Show_GSM_Siganl_Qauality() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @A7HTTP_A7command(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 20000, i32 2)
%4 = call i32 @A7HTTP_A7command(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 20000, i32 2)
%5 = call i32 @A7board_println(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 @sleep(i32 1)
%7 = call i32 (...) @A7HTTP_ShowSerialData()
%8 = call i32 @sleep(i32 1)
%9 = load i32, i32* %1
ret i32 %9
}

LLVM IR (-O2):
@.str = [43 x i8] c"Start A7_Show_GSM_Siganl_Qauality function\00"
@.str.1 = [10 x i8] c"AT+CGATT?\00"
@.str.2 = [3 x i8] c"OK\00"
@.str.3 = [3 x i8] c"yy\00"
@.str.4 = [11 x i8] c"AT+CGATT=1\00"
@.str.5 = [7 x i8] c"AT+CSQ\00"
define i32 @A7_Show_GSM_Siganl_Qauality() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @A7HTTP_A7command(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 20000, i32 2)
%3 = tail call i32 @A7HTTP_A7command(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 20000, i32 2)
%4 = tail call i32 @A7board_println(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%5 = tail call i32 @sleep(i32 1)
%6 = tail call i32 (...) @A7HTTP_ShowSerialData()
%7 = tail call i32 @sleep(i32 1)
ret i32 undef
}