#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,
                                          int /*<<< orphan*/ *);
int /*<<< orphan*/ set_parse_notice_katcp(struct katcp_dispatch *,
                                          struct katcp_notice *,
                                          struct katcl_parse *);
void wake_notice_katcp(struct katcp_dispatch *d, struct katcp_notice *n,
                       struct katcl_parse *p) {
  set_parse_notice_katcp(d, n, p);
  configure_notice_katcp(d, n, 1, NULL);
}


x86 assembly (clang, -O0):
<wake_notice_katcp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%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    $0x1,%edx
xor    %eax,%eax
mov    %eax,%ecx
call   1040 <configure_notice_katcp@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wake_notice_katcp>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1030 <set_parse_notice_katcp@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x1,%edx
xor    %ecx,%ecx
add    $0x8,%rsp
pop    %rbx
pop    %r14
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_notice_katcp(%struct.katcp_dispatch* %0, %struct.katcp_notice* %1, %struct.katcl_parse* %2) {
%4 = alloca %struct.katcp_dispatch*
%5 = alloca %struct.katcp_notice*
%6 = alloca %struct.katcl_parse*
store %struct.katcp_dispatch* %0, %struct.katcp_dispatch** %4
store %struct.katcp_notice* %1, %struct.katcp_notice** %5
store %struct.katcl_parse* %2, %struct.katcl_parse** %6
%7 = load %struct.katcp_dispatch*, %struct.katcp_dispatch** %4
%8 = load %struct.katcp_notice*, %struct.katcp_notice** %5
%9 = load %struct.katcl_parse*, %struct.katcl_parse** %6
%10 = call i32 @set_parse_notice_katcp(%struct.katcp_dispatch* %7, %struct.katcp_notice* %8, %struct.katcl_parse* %9)
%11 = load %struct.katcp_dispatch*, %struct.katcp_dispatch** %4
%12 = load %struct.katcp_notice*, %struct.katcp_notice** %5
%13 = call i32 @configure_notice_katcp(%struct.katcp_dispatch* %11, %struct.katcp_notice* %12, i32 1, i32* null)
ret void
}

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