#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 SI4463_reset_with_cfg(void *, unsigned char *);
int load_4gfsk_config_tx(void *si) {
  unsigned char radio_config[] = {
      0x07, 0x02, 0x01, 0x00, 0x01, 0xC9, 0xC3, 0x80, 0x08, 0x13, 0x14, 0x02,
      0x21, 0x20, 0x27, 0x0b, 0x00, 0x06, 0x11, 0x00, 0x02, 0x00, 0x52, 0x00,
      0x05, 0x11, 0x00, 0x01, 0x03, 0x70, 0x06, 0x11, 0x01, 0x02, 0x00, 0x01,
      0x20, 0x08, 0x11, 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0D, 0x11,
      0x10, 0x09, 0x00, 0x08, 0x14, 0x00, 0x0F, 0x31, 0x00, 0x00, 0x00, 0x00,
      0x09, 0x11, 0x11, 0x05, 0x00, 0x09, 0xB4, 0x2B, 0x00, 0x00, 0x0B, 0x11,
      0x12, 0x07, 0x00, 0x84, 0x00, 0x30, 0xFF, 0xFF, 0x00, 0x22, 0x10, 0x11,
      0x12, 0x0C, 0x08, 0x00, 0x00, 0x00, 0x30, 0x30, 0x00, 0x7C, 0x14, 0xA2,
      0x00, 0x00, 0x00, 0x10, 0x11, 0x12, 0x0C, 0x14, 0x00, 0x00, 0x00, 0x00,
      0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x11, 0x12, 0x0C,
      0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
      0x00, 0x0D, 0x11, 0x12, 0x09, 0x2C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
      0x00, 0x00, 0x00, 0x10, 0x11, 0x20, 0x0C, 0x00, 0x05, 0x00, 0x07, 0x4C,
      0x4B, 0x40, 0x01, 0xC9, 0xC3, 0x80, 0x00, 0x44, 0x05, 0x11, 0x20, 0x01,
      0x0C, 0x44, 0x0C, 0x11, 0x20, 0x08, 0x18, 0x05, 0x00, 0x08, 0x03, 0x80,
      0x00, 0x00, 0x30, 0x0D, 0x11, 0x20, 0x09, 0x22, 0x00, 0x3C, 0x08, 0x88,
      0x89, 0x06, 0x66, 0x02, 0x02, 0x0B, 0x11, 0x20, 0x07, 0x2C, 0x00, 0x23,
      0x8F, 0xFF, 0x01, 0x7C, 0xA0, 0x05, 0x11, 0x20, 0x01, 0x35, 0xE2, 0x0D,
      0x11, 0x20, 0x09, 0x38, 0x22, 0x07, 0x07, 0x00, 0x1A, 0x15, 0x55, 0x00,
      0x27, 0x0C, 0x11, 0x20, 0x08, 0x42, 0xA4, 0x03, 0xD6, 0x03, 0x01, 0x3F,
      0x01, 0xF0, 0x05, 0x11, 0x20, 0x01, 0x4E, 0x40, 0x05, 0x11, 0x20, 0x01,
      0x51, 0x0A, 0x10, 0x11, 0x21, 0x0C, 0x00, 0xFF, 0xBA, 0x0F, 0x51, 0xCF,
      0xA9, 0xC9, 0xFC, 0x1B, 0x1E, 0x0F, 0x01, 0x10, 0x11, 0x21, 0x0C, 0x0C,
      0xFC, 0xFD, 0x15, 0xFF, 0x00, 0x0F, 0xFF, 0xBA, 0x0F, 0x51, 0xCF, 0xA9,
      0x10, 0x11, 0x21, 0x0C, 0x18, 0xC9, 0xFC, 0x1B, 0x1E, 0x0F, 0x01, 0xFC,
      0xFD, 0x15, 0xFF, 0x00, 0x0F, 0x08, 0x11, 0x22, 0x04, 0x00, 0x08, 0x7F,
      0x00, 0x5D, 0x0B, 0x11, 0x23, 0x07, 0x00, 0x01, 0x05, 0x0B, 0x05, 0x02,
      0x00, 0x03, 0x10, 0x11, 0x30, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
      0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x11, 0x40, 0x08, 0x00,
      0x38, 0x0D, 0xDD, 0xDD, 0x44, 0x44, 0x20, 0xFE, 0x00};
  int cmds = SI4463_reset_with_cfg(si, radio_config);
  return cmds;
}


x86 assembly (clang, -O0):
<load_4gfsk_config_tx>:
push   %rbp
mov    %rsp,%rbp
sub    $0x180,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x170(%rbp),%rdi
lea    0xec3(%rip),%rsi
mov    $0x165,%edx
call   1040 <memcpy@plt>
mov    -0x8(%rbp),%rdi
lea    -0x170(%rbp),%rsi
call   1030 <SI4463_reset_with_cfg@plt>
mov    %eax,-0x174(%rbp)
mov    -0x174(%rbp),%eax
add    $0x180,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<load_4gfsk_config_tx>:
push   %r14
push   %rbx
sub    $0x168,%rsp
mov    %rdi,%rbx
lea    0xecc(%rip),%rsi
mov    %rsp,%r14
mov    $0x165,%edx
mov    %r14,%rdi
call   1040 <memcpy@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <SI4463_reset_with_cfg@plt>
add    $0x168,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.load_4gfsk_config_tx.radio_config = [357 x i8] c"\07\02\01\00\01\C9\C3\80\08\13\14\02! '\0B\00\06\11\00\02\00R\00\05\11\00\01\03p\06\11\01\02\00\01 \08\11\02\04\00\00\00\00\00\0D\11\10\09\00\08\14\00\0F1\00\00\00\00\09\11\11\05\00\09\B4+\00\00\0B\11\12\07\00\84\000\FF\FF\00\22\10\11\12\0C\08\00\00\0000\00|\14\A2\00\00\00\10\11\12\0C\14\00\00\00\00\00\00\00\00\00\00\00\00\10\11\12\0C \00\00\00\00\00\00\00\00\00\00\00\00\0D\11\12\09,\00\00\00\00\00\00\00\00\00\10\11 \0C\00\05\00\07LK@\01\C9\C3\80\00D\05\11 \01\0CD\0C\11 \08\18\05\00\08\03\80\00\000\0D\11 \09\22\00<\08\88\89\06f\02\02\0B\11 \07,\00#\8F\FF\01|\A0\05\11 \015\E2\0D\11 \098\22\07\07\00\1A\15U\00'\0C\11 \08B\A4\03\D6\03\01?\01\F0\05\11 \01N@\05\11 \01Q\0A\10\11!\0C\00\FF\BA\0FQ\CF\A9\C9\FC\1B\1E\0F\01\10\11!\0C\0C\FC\FD\15\FF\00\0F\FF\BA\0FQ\CF\A9\10\11!\0C\18\C9\FC\1B\1E\0F\01\FC\FD\15\FF\00\0F\08\11\22\04\00\08\7F\00]\0B\11#\07\00\01\05\0B\05\02\00\03\10\110\0C\00\00\00\00\00\00\00\00\00\00\00\00\00\0C\11@\08\008\0D\DD\DDDD \FE\00"
define i32 @load_4gfsk_config_tx(i8* %0) {
%2 = alloca i8*
%3 = alloca [357 x i8]
%4 = alloca i32
store i8* %0, i8** %2
%5 = bitcast [357 x i8]* %3 to i8*
%6 = load i8*, i8** %2
%7 = getelementptr inbounds [357 x i8], [357 x i8]* %3, i64 0, i64 0
%8 = call i32 @SI4463_reset_with_cfg(i8* %6, i8* %7)
store i32 %8, i32* %4
%9 = load i32, i32* %4
ret i32 %9
}

LLVM IR (-O2):
@__const.load_4gfsk_config_tx.radio_config = [357 x i8] c"\07\02\01\00\01\C9\C3\80\08\13\14\02! '\0B\00\06\11\00\02\00R\00\05\11\00\01\03p\06\11\01\02\00\01 \08\11\02\04\00\00\00\00\00\0D\11\10\09\00\08\14\00\0F1\00\00\00\00\09\11\11\05\00\09\B4+\00\00\0B\11\12\07\00\84\000\FF\FF\00\22\10\11\12\0C\08\00\00\0000\00|\14\A2\00\00\00\10\11\12\0C\14\00\00\00\00\00\00\00\00\00\00\00\00\10\11\12\0C \00\00\00\00\00\00\00\00\00\00\00\00\0D\11\12\09,\00\00\00\00\00\00\00\00\00\10\11 \0C\00\05\00\07LK@\01\C9\C3\80\00D\05\11 \01\0CD\0C\11 \08\18\05\00\08\03\80\00\000\0D\11 \09\22\00<\08\88\89\06f\02\02\0B\11 \07,\00#\8F\FF\01|\A0\05\11 \015\E2\0D\11 \098\22\07\07\00\1A\15U\00'\0C\11 \08B\A4\03\D6\03\01?\01\F0\05\11 \01N@\05\11 \01Q\0A\10\11!\0C\00\FF\BA\0FQ\CF\A9\C9\FC\1B\1E\0F\01\10\11!\0C\0C\FC\FD\15\FF\00\0F\FF\BA\0FQ\CF\A9\10\11!\0C\18\C9\FC\1B\1E\0F\01\FC\FD\15\FF\00\0F\08\11\22\04\00\08\7F\00]\0B\11#\07\00\01\05\0B\05\02\00\03\10\110\0C\00\00\00\00\00\00\00\00\00\00\00\00\00\0C\11@\08\008\0D\DD\DDDD \FE\00"
define i32 @load_4gfsk_config_tx(i8* %0) {
%2 = alloca [357 x i8]
%3 = getelementptr inbounds [357 x i8], [357 x i8]* %2, i64 0, i64 0
%4 = call i32 @SI4463_reset_with_cfg(i8* %0, i8* %3)
ret i32 %4
}