void si475xAMRX_hardware_cfg(void) {
  si475x_set_property(0x0000, 0x0001);
  printf("[%s] [%d]\n", __func__, 243);
  si475x_set_property(0x2100, 0x0010);
  si475x_set_property(0x2103, 0x000E);
  si475x_set_property(0x2104, 0x000A);
  si475x_set_property(0x2109, 0x0002);
  si475x_set_property(0x2108, 0x0002);
  printf("[%s] [%d]\n", __func__, 250);
}


x86 assembly (clang, -O0):
<si475xAMRX_hardware_cfg>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x0,%al
call   1040 <si475x_set_property@plt>
lea    0xec7(%rip),%rdi
lea    0xecb(%rip),%rsi
mov    $0xf3,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x2100,%edi
mov    $0x10,%esi
mov    $0x0,%al
call   1040 <si475x_set_property@plt>
mov    $0x2103,%edi
mov    $0xe,%esi
mov    $0x0,%al
call   1040 <si475x_set_property@plt>
mov    $0x2104,%edi
mov    $0xa,%esi
mov    $0x0,%al
call   1040 <si475x_set_property@plt>
mov    $0x2109,%edi
mov    $0x2,%esi
mov    $0x0,%al
call   1040 <si475x_set_property@plt>
mov    $0x2108,%edi
mov    $0x2,%esi
mov    $0x0,%al
call   1040 <si475x_set_property@plt>
lea    0xe58(%rip),%rdi
lea    0xe5c(%rip),%rsi
mov    $0xfa,%edx
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<si475xAMRX_hardware_cfg>:
push   %r14
push   %rbx
push   %rax
xor    %edi,%edi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <si475x_set_property@plt>
lea    0xec7(%rip),%rbx
lea    0xecb(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0xf3,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x2100,%edi
mov    $0x10,%esi
xor    %eax,%eax
call   1040 <si475x_set_property@plt>
mov    $0x2103,%edi
mov    $0xe,%esi
xor    %eax,%eax
call   1040 <si475x_set_property@plt>
mov    $0x2104,%edi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <si475x_set_property@plt>
mov    $0x2109,%edi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <si475x_set_property@plt>
mov    $0x2108,%edi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <si475x_set_property@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0xfa,%edx
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"[%s] [%d]\0A\00"
@__func__.si475xAMRX_hardware_cfg = [24 x i8] c"si475xAMRX_hardware_cfg\00"
define void @si475xAMRX_hardware_cfg() {
%1 = call i32 (i32, i32, ...) bitcast (i32 (...)* @si475x_set_property to i32 (i32, i32, ...)*)(i32 0, i32 1)
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @__func__.si475xAMRX_hardware_cfg, i64 0, i64 0), i32 243)
%3 = call i32 (i32, i32, ...) bitcast (i32 (...)* @si475x_set_property to i32 (i32, i32, ...)*)(i32 8448, i32 16)
%4 = call i32 (i32, i32, ...) bitcast (i32 (...)* @si475x_set_property to i32 (i32, i32, ...)*)(i32 8451, i32 14)
%5 = call i32 (i32, i32, ...) bitcast (i32 (...)* @si475x_set_property to i32 (i32, i32, ...)*)(i32 8452, i32 10)
%6 = call i32 (i32, i32, ...) bitcast (i32 (...)* @si475x_set_property to i32 (i32, i32, ...)*)(i32 8457, i32 2)
%7 = call i32 (i32, i32, ...) bitcast (i32 (...)* @si475x_set_property to i32 (i32, i32, ...)*)(i32 8456, i32 2)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @__func__.si475xAMRX_hardware_cfg, i64 0, i64 0), i32 250)
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"[%s] [%d]\0A\00"
@__func__.si475xAMRX_hardware_cfg = [24 x i8] c"si475xAMRX_hardware_cfg\00"
define void @si475xAMRX_hardware_cfg() {
%1 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @si475x_set_property to i32 (i32, i32, ...)*)(i32 0, i32 1)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @__func__.si475xAMRX_hardware_cfg, i64 0, i64 0), i32 243)
%3 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @si475x_set_property to i32 (i32, i32, ...)*)(i32 8448, i32 16)
%4 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @si475x_set_property to i32 (i32, i32, ...)*)(i32 8451, i32 14)
%5 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @si475x_set_property to i32 (i32, i32, ...)*)(i32 8452, i32 10)
%6 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @si475x_set_property to i32 (i32, i32, ...)*)(i32 8457, i32 2)
%7 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @si475x_set_property to i32 (i32, i32, ...)*)(i32 8456, i32 2)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @__func__.si475xAMRX_hardware_cfg, i64 0, i64 0), i32 250)
ret void
}