#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 */
struct katcp_notice {
  int dummy;
};
struct katcp_dispatch {
  int dummy;
};
struct katcl_parse {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ configure_notice_katcp(struct katcp_dispatch *,
                                          struct katcp_notice *, int, void *);
int /*<<< orphan*/ set_parse_notice_katcp(struct katcp_dispatch *,
                                          struct katcp_notice *,
                                          struct katcl_parse *);
void wake_single_notice_katcp(struct katcp_dispatch *d, struct katcp_notice *n,
                              struct katcl_parse *p, void *data) {
  set_parse_notice_katcp(d, n, p);
  configure_notice_katcp(d, n, 2, data);
}


x86 assembly (clang, -O0):
<wake_single_notice_katcp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <set_parse_notice_katcp@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%rcx
mov    $0x2,%edx
call   1040 <configure_notice_katcp@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wake_single_notice_katcp>:
push   %r15
push   %r14
push   %rbx
mov    %rcx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
call   1030 <set_parse_notice_katcp@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x2,%edx
mov    %r14,%rcx
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <configure_notice_katcp@plt>

LLVM IR (-O0):
%struct.katcp_dispatch = type { i32 }
%struct.katcp_notice = type { i32 }
%struct.katcl_parse = type { i32 }
define void @wake_single_notice_katcp(%struct.katcp_dispatch* %0, %struct.katcp_notice* %1, %struct.katcl_parse* %2, i8* %3) {
%5 = alloca %struct.katcp_dispatch*
%6 = alloca %struct.katcp_notice*
%7 = alloca %struct.katcl_parse*
%8 = alloca i8*
store %struct.katcp_dispatch* %0, %struct.katcp_dispatch** %5
store %struct.katcp_notice* %1, %struct.katcp_notice** %6
store %struct.katcl_parse* %2, %struct.katcl_parse** %7
store i8* %3, i8** %8
%9 = load %struct.katcp_dispatch*, %struct.katcp_dispatch** %5
%10 = load %struct.katcp_notice*, %struct.katcp_notice** %6
%11 = load %struct.katcl_parse*, %struct.katcl_parse** %7
%12 = call i32 @set_parse_notice_katcp(%struct.katcp_dispatch* %9, %struct.katcp_notice* %10, %struct.katcl_parse* %11)
%13 = load %struct.katcp_dispatch*, %struct.katcp_dispatch** %5
%14 = load %struct.katcp_notice*, %struct.katcp_notice** %6
%15 = load i8*, i8** %8
%16 = call i32 @configure_notice_katcp(%struct.katcp_dispatch* %13, %struct.katcp_notice* %14, i32 2, i8* %15)
ret void
}

LLVM IR (-O2):
%struct.katcp_dispatch = type { i32 }
%struct.katcp_notice = type { i32 }
%struct.katcl_parse = type { i32 }
define void @wake_single_notice_katcp(%struct.katcp_dispatch* %0, %struct.katcp_notice* %1, %struct.katcl_parse* %2, i8* %3) {
%5 = tail call i32 @set_parse_notice_katcp(%struct.katcp_dispatch* %0, %struct.katcp_notice* %1, %struct.katcl_parse* %2)
%6 = tail call i32 @configure_notice_katcp(%struct.katcp_dispatch* %0, %struct.katcp_notice* %1, i32 2, i8* %3)
ret void
}