#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_dispatch {
  int dummy;
};
struct katcp_acquire {
  int dummy;
};

/* Variables and functions */
struct katcp_acquire *setup_intbool_acquire_katcp(
    struct katcp_dispatch *,
    int (*)(struct katcp_dispatch *, struct katcp_acquire *), void *,
    void (*)(struct katcp_dispatch *, struct katcp_acquire *), int);
struct katcp_acquire *setup_boolean_acquire_katcp(
    struct katcp_dispatch *d,
    int (*get)(struct katcp_dispatch *d, struct katcp_acquire *a), void *local,
    void (*release)(struct katcp_dispatch *d, struct katcp_acquire *a)) {
  return setup_intbool_acquire_katcp(d, get, local, release, 1);
}


x86 assembly (clang, -O0):
<setup_boolean_acquire_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
mov    -0x20(%rbp),%rcx
mov    $0x1,%r8d
call   1030 <setup_intbool_acquire_katcp@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setup_boolean_acquire_katcp>:
mov    $0x1,%r8d
jmp    1030 <setup_intbool_acquire_katcp@plt>

LLVM IR (-O0):
%struct.katcp_acquire = type { i32 }
%struct.katcp_dispatch = type { i32 }
define %struct.katcp_acquire* @setup_boolean_acquire_katcp(%struct.katcp_dispatch* %0, i32 (%struct.katcp_dispatch*, %struct.katcp_acquire*)* %1, i8* %2, void (%struct.katcp_dispatch*, %struct.katcp_acquire*)* %3) {
%5 = alloca %struct.katcp_dispatch*
%6 = alloca i32 (%struct.katcp_dispatch*, %struct.katcp_acquire*)*
%7 = alloca i8*
%8 = alloca void (%struct.katcp_dispatch*, %struct.katcp_acquire*)*
store %struct.katcp_dispatch* %0, %struct.katcp_dispatch** %5
store i32 (%struct.katcp_dispatch*, %struct.katcp_acquire*)* %1, i32 (%struct.katcp_dispatch*, %struct.katcp_acquire*)** %6
store i8* %2, i8** %7
store void (%struct.katcp_dispatch*, %struct.katcp_acquire*)* %3, void (%struct.katcp_dispatch*, %struct.katcp_acquire*)** %8
%9 = load %struct.katcp_dispatch*, %struct.katcp_dispatch** %5
%10 = load i32 (%struct.katcp_dispatch*, %struct.katcp_acquire*)*, i32 (%struct.katcp_dispatch*, %struct.katcp_acquire*)** %6
%11 = load i8*, i8** %7
%12 = load void (%struct.katcp_dispatch*, %struct.katcp_acquire*)*, void (%struct.katcp_dispatch*, %struct.katcp_acquire*)** %8
%13 = call %struct.katcp_acquire* @setup_intbool_acquire_katcp(%struct.katcp_dispatch* %9, i32 (%struct.katcp_dispatch*, %struct.katcp_acquire*)* %10, i8* %11, void (%struct.katcp_dispatch*, %struct.katcp_acquire*)* %12, i32 1)
ret %struct.katcp_acquire* %13
}

LLVM IR (-O2):
%struct.katcp_acquire = type { i32 }
%struct.katcp_dispatch = type { i32 }
define %struct.katcp_acquire* @setup_boolean_acquire_katcp(%struct.katcp_dispatch* %0, i32 (%struct.katcp_dispatch*, %struct.katcp_acquire*)* %1, i8* %2, void (%struct.katcp_dispatch*, %struct.katcp_acquire*)* %3) {
%5 = tail call %struct.katcp_acquire* @setup_intbool_acquire_katcp(%struct.katcp_dispatch* %0, i32 (%struct.katcp_dispatch*, %struct.katcp_acquire*)* %1, i8* %2, void (%struct.katcp_dispatch*, %struct.katcp_acquire*)* %3, i32 1)
ret %struct.katcp_acquire* %5
}