#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*/ zwave_sendClassCommand(unsigned int, int, int,
                                          unsigned char *, int);
void zwavecmd_configuration_bulk_clear(unsigned int id, unsigned int offset,
                                       int len) {
  unsigned char buf[255];
  buf[0] = offset / 256;
  buf[1] = offset % 256;
  buf[2] = len;
  buf[3] = 0x84;
  zwave_sendClassCommand(id, 0x70, 0x07, buf, 4);
}


x86 assembly (clang, -O0):
<zwavecmd_configuration_bulk_clear>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x8(%rbp),%eax
shr    $0x8,%eax
mov    %al,-0x110(%rbp)
mov    -0x8(%rbp),%eax
and    $0xff,%eax
mov    %al,-0x10f(%rbp)
mov    -0xc(%rbp),%eax
mov    %al,-0x10e(%rbp)
movb   $0x84,-0x10d(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x110(%rbp),%rcx
mov    $0x70,%esi
mov    $0x7,%edx
mov    $0x4,%r8d
call   1030 <zwave_sendClassCommand@plt>
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<zwavecmd_configuration_bulk_clear>:
sub    $0x108,%rsp
mov    %esi,%eax
mov    %ah,(%rsp)
mov    %al,0x1(%rsp)
mov    %dl,0x2(%rsp)
movb   $0x84,0x3(%rsp)
mov    %rsp,%rcx
mov    $0x70,%esi
mov    $0x7,%edx
mov    $0x4,%r8d
call   1030 <zwave_sendClassCommand@plt>
add    $0x108,%rsp
ret

LLVM IR (-O0):
define void @zwavecmd_configuration_bulk_clear(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca [255 x i8]
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%8 = load i32, i32* %5
%9 = udiv i32 %8, 256
%10 = trunc i32 %9 to i8
%11 = getelementptr inbounds [255 x i8], [255 x i8]* %7, i64 0, i64 0
store i8 %10, i8* %11
%12 = load i32, i32* %5
%13 = urem i32 %12, 256
%14 = trunc i32 %13 to i8
%15 = getelementptr inbounds [255 x i8], [255 x i8]* %7, i64 0, i64 1
store i8 %14, i8* %15
%16 = load i32, i32* %6
%17 = trunc i32 %16 to i8
%18 = getelementptr inbounds [255 x i8], [255 x i8]* %7, i64 0, i64 2
store i8 %17, i8* %18
%19 = getelementptr inbounds [255 x i8], [255 x i8]* %7, i64 0, i64 3
store i8 -124, i8* %19
%20 = load i32, i32* %4
%21 = getelementptr inbounds [255 x i8], [255 x i8]* %7, i64 0, i64 0
%22 = call i32 @zwave_sendClassCommand(i32 %20, i32 112, i32 7, i8* %21, i32 4)
ret void
}

LLVM IR (-O2):
define void @zwavecmd_configuration_bulk_clear(i32 %0, i32 %1, i32 %2) {
%4 = alloca [255 x i8]
%5 = getelementptr inbounds [255 x i8], [255 x i8]* %4, i64 0, i64 0
%6 = lshr i32 %1, 8
%7 = trunc i32 %6 to i8
store i8 %7, i8* %5
%8 = trunc i32 %1 to i8
%9 = getelementptr inbounds [255 x i8], [255 x i8]* %4, i64 0, i64 1
store i8 %8, i8* %9
%10 = trunc i32 %2 to i8
%11 = getelementptr inbounds [255 x i8], [255 x i8]* %4, i64 0, i64 2
store i8 %10, i8* %11
%12 = getelementptr inbounds [255 x i8], [255 x i8]* %4, i64 0, i64 3
store i8 -124, i8* %12
%13 = call i32 @zwave_sendClassCommand(i32 %0, i32 112, i32 7, i8* %5, i32 4)
ret void
}