void printPeerSettings(int peerID) {
  debug(__FUNCTION__, "Peer %d: Local Addr: %s", peerID,
        getPeerLocalAddress(peerID));
  debug(__FUNCTION__, "Peer %d: Local port set to %d", peerID,
        getPeerLocalPort(peerID));
  debug(__FUNCTION__, "Peer %d: Local BGP version set to %d", peerID,
        getPeerLocalBGPVersion(peerID));
  debug(__FUNCTION__, "Peer %d: Local BGP AS number set to %d", peerID,
        getPeerLocalASNum(peerID));
  debug(__FUNCTION__, "Peer %d: Local BGP hold time set to %d", peerID,
        getPeerLocalHoldTime(peerID));
  debug(__FUNCTION__, "Peer %d: Local BGP ID set to %d", peerID,
        getPeerLocalBGPID(peerID));
  debug(__FUNCTION__, "Peer %d: remote Addr: %s", peerID,
        getPeerRemoteAddress(peerID));
  debug(__FUNCTION__, "Peer %d: remote port set to %d", peerID,
        getPeerRemotePort(peerID));
  debug(__FUNCTION__, "Peer %d: remote BGP version set to %d", peerID,
        getPeerRemoteBGPVersion(peerID));
  debug(__FUNCTION__, "Peer %d: remote BGP AS number set to %d", peerID,
        getPeerRemoteASNum(peerID));
  debug(__FUNCTION__, "Peer %d: remote min hold time set to %d", peerID,
        getPeerRemoteHoldTime(peerID));
  debug(__FUNCTION__, "Peer %d: remote BGP ID set to %d", peerID,
        getPeerRemoteBGPID(peerID));
  debug(__FUNCTION__, "Peer %d: MD5 passwd: %s", peerID,
        getPeerMD5Passwd(peerID));
  debug(__FUNCTION__, "Peer %d: label action set to %d", peerID,
        getPeerLabelAction(peerID));
  debug(__FUNCTION__, "Peer %d: route refresh action set to %d", peerID,
        getPeerRouteRefreshAction(peerID));
  debug(__FUNCTION__, "Peer %d: group name set to %s", peerID,
        getPeer_GroupName(peerID));
  debug(__FUNCTION__, "Peer %d: group ID set to %d", peerID,
        findPeerGroupID(getPeer_GroupName(peerID)));
  if (getPeerEnabledFlag(peerID) == 1)
    debug(__FUNCTION__, "Peer %d is enabled", peerID);
  else
    debug(__FUNCTION__, "Peer %d is disabled", peerID);
}


x86 assembly (clang, -O0):
<printPeerSettings>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1080 <getPeerLocalAddress@plt>
mov    -0x48(%rbp),%edx
mov    %eax,%ecx
lea    0xda9(%rip),%rdi
lea    0xdb4(%rip),%rsi
mov    $0x0,%al
call   1060 <debug@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1100 <getPeerLocalPort@plt>
mov    -0x44(%rbp),%edx
mov    %eax,%ecx
lea    0xd7f(%rip),%rdi
lea    0xda2(%rip),%rsi
mov    $0x0,%al
call   1060 <debug@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   10b0 <getPeerLocalBGPVersion@plt>
mov    -0x40(%rbp),%edx
mov    %eax,%ecx
lea    0xd55(%rip),%rdi
lea    0xd96(%rip),%rsi
mov    $0x0,%al
call   1060 <debug@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   10a0 <getPeerLocalASNum@plt>
mov    -0x3c(%rbp),%edx
mov    %eax,%ecx
lea    0xd2b(%rip),%rdi
lea    0xd91(%rip),%rsi
mov    $0x0,%al
call   1060 <debug@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1110 <getPeerLocalHoldTime@plt>
mov    -0x38(%rbp),%edx
mov    %eax,%ecx
lea    0xd01(%rip),%rdi
lea    0xd8e(%rip),%rsi
mov    $0x0,%al
call   1060 <debug@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1070 <getPeerLocalBGPID@plt>
mov    -0x34(%rbp),%edx
mov    %eax,%ecx
lea    0xcd7(%rip),%rdi
lea    0xd8b(%rip),%rsi
mov    $0x0,%al
call   1060 <debug@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   10d0 <getPeerRemoteAddress@plt>
mov    -0x30(%rbp),%edx
mov    %eax,%ecx
lea    0xcad(%rip),%rdi
lea    0xd81(%rip),%rsi
mov    $0x0,%al
call   1060 <debug@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1130 <getPeerRemotePort@plt>
mov    -0x2c(%rbp),%edx
mov    %eax,%ecx
lea    0xc83(%rip),%rdi
lea    0xd70(%rip),%rsi
mov    $0x0,%al
call   1060 <debug@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1140 <getPeerRemoteBGPVersion@plt>
mov    -0x28(%rbp),%edx
mov    %eax,%ecx
lea    0xc59(%rip),%rdi
lea    0xd65(%rip),%rsi
mov    $0x0,%al
call   1060 <debug@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1090 <getPeerRemoteASNum@plt>
mov    -0x24(%rbp),%edx
mov    %eax,%ecx
lea    0xc2f(%rip),%rdi
lea    0xd61(%rip),%rsi
mov    $0x0,%al
call   1060 <debug@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1030 <getPeerRemoteHoldTime@plt>
mov    -0x20(%rbp),%edx
mov    %eax,%ecx
lea    0xc05(%rip),%rdi
lea    0xd5f(%rip),%rsi
mov    $0x0,%al
call   1060 <debug@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1040 <getPeerRemoteBGPID@plt>
mov    -0x1c(%rbp),%edx
mov    %eax,%ecx
lea    0xbdb(%rip),%rdi
lea    0xd5d(%rip),%rsi
mov    $0x0,%al
call   1060 <debug@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   10f0 <getPeerMD5Passwd@plt>
mov    -0x18(%rbp),%edx
mov    %eax,%ecx
lea    0xbb1(%rip),%rdi
lea    0xd54(%rip),%rsi
mov    $0x0,%al
call   1060 <debug@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   10c0 <getPeerLabelAction@plt>
mov    -0x14(%rbp),%edx
mov    %eax,%ecx
lea    0xb87(%rip),%rdi
lea    0xd42(%rip),%rsi
mov    $0x0,%al
call   1060 <debug@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1050 <getPeerRouteRefreshAction@plt>
mov    -0x10(%rbp),%edx
mov    %eax,%ecx
lea    0xb5d(%rip),%rdi
lea    0xd38(%rip),%rsi
mov    $0x0,%al
call   1060 <debug@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1150 <getPeer_GroupName@plt>
mov    -0xc(%rbp),%edx
mov    %eax,%ecx
lea    0xb33(%rip),%rdi
lea    0xd36(%rip),%rsi
mov    $0x0,%al
call   1060 <debug@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1150 <getPeer_GroupName@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1120 <findPeerGroupID@plt>
mov    -0x8(%rbp),%edx
mov    %eax,%ecx
lea    0xb00(%rip),%rdi
lea    0xd21(%rip),%rsi
mov    $0x0,%al
call   1060 <debug@plt>
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   10e0 <getPeerEnabledFlag@plt>
cmp    $0x1,%eax
jne    153e <printPeerSettings+0x30e>
mov    -0x4(%rbp),%edx
lea    0xad5(%rip),%rdi
lea    0xd12(%rip),%rsi
mov    $0x0,%al
call   1060 <debug@plt>
jmp    1556 <printPeerSettings+0x326>
mov    -0x4(%rbp),%edx
lea    0xab8(%rip),%rdi
lea    0xd08(%rip),%rsi
mov    $0x0,%al
call   1060 <debug@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printPeerSettings>:
push   %r14
push   %rbx
push   %rax
mov    %edi,%ebx
xor    %eax,%eax
call   1080 <getPeerLocalAddress@plt>
lea    0xdbc(%rip),%r14
lea    0xdc7(%rip),%rsi
mov    %r14,%rdi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <debug@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   1100 <getPeerLocalPort@plt>
lea    0xdc1(%rip),%rsi
mov    %r14,%rdi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <debug@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   10b0 <getPeerLocalBGPVersion@plt>
lea    0xdc1(%rip),%rsi
mov    %r14,%rdi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <debug@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   10a0 <getPeerLocalASNum@plt>
lea    0xdc8(%rip),%rsi
mov    %r14,%rdi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <debug@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   1110 <getPeerLocalHoldTime@plt>
lea    0xdd1(%rip),%rsi
mov    %r14,%rdi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <debug@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   1070 <getPeerLocalBGPID@plt>
lea    0xdda(%rip),%rsi
mov    %r14,%rdi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <debug@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   10d0 <getPeerRemoteAddress@plt>
lea    0xddc(%rip),%rsi
mov    %r14,%rdi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <debug@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   1130 <getPeerRemotePort@plt>
lea    0xdd7(%rip),%rsi
mov    %r14,%rdi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <debug@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   1140 <getPeerRemoteBGPVersion@plt>
lea    0xdd8(%rip),%rsi
mov    %r14,%rdi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <debug@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   1090 <getPeerRemoteASNum@plt>
lea    0xde0(%rip),%rsi
mov    %r14,%rdi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <debug@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   1030 <getPeerRemoteHoldTime@plt>
lea    0xdea(%rip),%rsi
mov    %r14,%rdi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <debug@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   1040 <getPeerRemoteBGPID@plt>
lea    0xdf4(%rip),%rsi
mov    %r14,%rdi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <debug@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   10f0 <getPeerMD5Passwd@plt>
lea    0xdf7(%rip),%rsi
mov    %r14,%rdi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <debug@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   10c0 <getPeerLabelAction@plt>
lea    0xdf1(%rip),%rsi
mov    %r14,%rdi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <debug@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   1050 <getPeerRouteRefreshAction@plt>
lea    0xdf3(%rip),%rsi
mov    %r14,%rdi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <debug@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   1150 <getPeer_GroupName@plt>
lea    0xdfd(%rip),%rsi
mov    %r14,%rdi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <debug@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   1150 <getPeer_GroupName@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1120 <findPeerGroupID@plt>
lea    0xdf4(%rip),%rsi
mov    %r14,%rdi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <debug@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   10e0 <getPeerEnabledFlag@plt>
cmp    $0x1,%eax
lea    0xdef(%rip),%rax
lea    0xdfb(%rip),%rsi
cmove  %rax,%rsi
mov    %r14,%rdi
mov    %ebx,%edx
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1060 <debug@plt>

LLVM IR (-O0):
@__FUNCTION__.printPeerSettings = [18 x i8] c"printPeerSettings\00"
@.str = [24 x i8] c"Peer %d: Local Addr: %s\00"
@.str.1 = [30 x i8] c"Peer %d: Local port set to %d\00"
@.str.2 = [37 x i8] c"Peer %d: Local BGP version set to %d\00"
@.str.3 = [39 x i8] c"Peer %d: Local BGP AS number set to %d\00"
@.str.4 = [39 x i8] c"Peer %d: Local BGP hold time set to %d\00"
@.str.5 = [32 x i8] c"Peer %d: Local BGP ID set to %d\00"
@.str.6 = [25 x i8] c"Peer %d: remote Addr: %s\00"
@.str.7 = [31 x i8] c"Peer %d: remote port set to %d\00"
@.str.8 = [38 x i8] c"Peer %d: remote BGP version set to %d\00"
@.str.9 = [40 x i8] c"Peer %d: remote BGP AS number set to %d\00"
@.str.10 = [40 x i8] c"Peer %d: remote min hold time set to %d\00"
@.str.11 = [33 x i8] c"Peer %d: remote BGP ID set to %d\00"
@.str.12 = [24 x i8] c"Peer %d: MD5 passwd: %s\00"
@.str.13 = [32 x i8] c"Peer %d: label action set to %d\00"
@.str.14 = [40 x i8] c"Peer %d: route refresh action set to %d\00"
@.str.15 = [30 x i8] c"Peer %d: group name set to %s\00"
@.str.16 = [28 x i8] c"Peer %d: group ID set to %d\00"
@.str.17 = [19 x i8] c"Peer %d is enabled\00"
@.str.18 = [20 x i8] c"Peer %d is disabled\00"
define void @printPeerSettings(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* %2
%5 = call i32 (i32, ...) bitcast (i32 (...)* @getPeerLocalAddress to i32 (i32, ...)*)(i32 %4)
%6 = call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %5)
%7 = load i32, i32* %2
%8 = load i32, i32* %2
%9 = call i32 (i32, ...) bitcast (i32 (...)* @getPeerLocalPort to i32 (i32, ...)*)(i32 %8)
%10 = call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 %7, i32 %9)
%11 = load i32, i32* %2
%12 = load i32, i32* %2
%13 = call i32 (i32, ...) bitcast (i32 (...)* @getPeerLocalBGPVersion to i32 (i32, ...)*)(i32 %12)
%14 = call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i32 %11, i32 %13)
%15 = load i32, i32* %2
%16 = load i32, i32* %2
%17 = call i32 (i32, ...) bitcast (i32 (...)* @getPeerLocalASNum to i32 (i32, ...)*)(i32 %16)
%18 = call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i32 %15, i32 %17)
%19 = load i32, i32* %2
%20 = load i32, i32* %2
%21 = call i32 (i32, ...) bitcast (i32 (...)* @getPeerLocalHoldTime to i32 (i32, ...)*)(i32 %20)
%22 = call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), i32 %19, i32 %21)
%23 = load i32, i32* %2
%24 = load i32, i32* %2
%25 = call i32 (i32, ...) bitcast (i32 (...)* @getPeerLocalBGPID to i32 (i32, ...)*)(i32 %24)
%26 = call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i32 %23, i32 %25)
%27 = load i32, i32* %2
%28 = load i32, i32* %2
%29 = call i32 (i32, ...) bitcast (i32 (...)* @getPeerRemoteAddress to i32 (i32, ...)*)(i32 %28)
%30 = call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), i32 %27, i32 %29)
%31 = load i32, i32* %2
%32 = load i32, i32* %2
%33 = call i32 (i32, ...) bitcast (i32 (...)* @getPeerRemotePort to i32 (i32, ...)*)(i32 %32)
%34 = call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 %31, i32 %33)
%35 = load i32, i32* %2
%36 = load i32, i32* %2
%37 = call i32 (i32, ...) bitcast (i32 (...)* @getPeerRemoteBGPVersion to i32 (i32, ...)*)(i32 %36)
%38 = call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i32 %35, i32 %37)
%39 = load i32, i32* %2
%40 = load i32, i32* %2
%41 = call i32 (i32, ...) bitcast (i32 (...)* @getPeerRemoteASNum to i32 (i32, ...)*)(i32 %40)
%42 = call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i32 %39, i32 %41)
%43 = load i32, i32* %2
%44 = load i32, i32* %2
%45 = call i32 (i32, ...) bitcast (i32 (...)* @getPeerRemoteHoldTime to i32 (i32, ...)*)(i32 %44)
%46 = call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.10, i64 0, i64 0), i32 %43, i32 %45)
%47 = load i32, i32* %2
%48 = load i32, i32* %2
%49 = call i32 (i32, ...) bitcast (i32 (...)* @getPeerRemoteBGPID to i32 (i32, ...)*)(i32 %48)
%50 = call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i32 %47, i32 %49)
%51 = load i32, i32* %2
%52 = load i32, i32* %2
%53 = call i32 (i32, ...) bitcast (i32 (...)* @getPeerMD5Passwd to i32 (i32, ...)*)(i32 %52)
%54 = call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 %51, i32 %53)
%55 = load i32, i32* %2
%56 = load i32, i32* %2
%57 = call i32 (i32, ...) bitcast (i32 (...)* @getPeerLabelAction to i32 (i32, ...)*)(i32 %56)
%58 = call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.13, i64 0, i64 0), i32 %55, i32 %57)
%59 = load i32, i32* %2
%60 = load i32, i32* %2
%61 = call i32 (i32, ...) bitcast (i32 (...)* @getPeerRouteRefreshAction to i32 (i32, ...)*)(i32 %60)
%62 = call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.14, i64 0, i64 0), i32 %59, i32 %61)
%63 = load i32, i32* %2
%64 = load i32, i32* %2
%65 = call i32 (i32, ...) bitcast (i32 (...)* @getPeer_GroupName to i32 (i32, ...)*)(i32 %64)
%66 = call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0), i32 %63, i32 %65)
%67 = load i32, i32* %2
%68 = load i32, i32* %2
%69 = call i32 (i32, ...) bitcast (i32 (...)* @getPeer_GroupName to i32 (i32, ...)*)(i32 %68)
%70 = call i32 (i32, ...) bitcast (i32 (...)* @findPeerGroupID to i32 (i32, ...)*)(i32 %69)
%71 = call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0), i32 %67, i32 %70)
%72 = load i32, i32* %2
%73 = call i32 (i32, ...) bitcast (i32 (...)* @getPeerEnabledFlag to i32 (i32, ...)*)(i32 %72)
%74 = icmp eq i32 %73, 1
br i1 %74, label %75, label %78
75: ; preds = %1
%76 = load i32, i32* %2
%77 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.17, i64 0, i64 0), i32 %76)
br label %81
78: ; preds = %1
%79 = load i32, i32* %2
%80 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.18, i64 0, i64 0), i32 %79)
br label %81
81: ; preds = %78, %75
ret void
}

LLVM IR (-O2):
@__FUNCTION__.printPeerSettings = [18 x i8] c"printPeerSettings\00"
@.str = [24 x i8] c"Peer %d: Local Addr: %s\00"
@.str.1 = [30 x i8] c"Peer %d: Local port set to %d\00"
@.str.2 = [37 x i8] c"Peer %d: Local BGP version set to %d\00"
@.str.3 = [39 x i8] c"Peer %d: Local BGP AS number set to %d\00"
@.str.4 = [39 x i8] c"Peer %d: Local BGP hold time set to %d\00"
@.str.5 = [32 x i8] c"Peer %d: Local BGP ID set to %d\00"
@.str.6 = [25 x i8] c"Peer %d: remote Addr: %s\00"
@.str.7 = [31 x i8] c"Peer %d: remote port set to %d\00"
@.str.8 = [38 x i8] c"Peer %d: remote BGP version set to %d\00"
@.str.9 = [40 x i8] c"Peer %d: remote BGP AS number set to %d\00"
@.str.10 = [40 x i8] c"Peer %d: remote min hold time set to %d\00"
@.str.11 = [33 x i8] c"Peer %d: remote BGP ID set to %d\00"
@.str.12 = [24 x i8] c"Peer %d: MD5 passwd: %s\00"
@.str.13 = [32 x i8] c"Peer %d: label action set to %d\00"
@.str.14 = [40 x i8] c"Peer %d: route refresh action set to %d\00"
@.str.15 = [30 x i8] c"Peer %d: group name set to %s\00"
@.str.16 = [28 x i8] c"Peer %d: group ID set to %d\00"
@.str.17 = [19 x i8] c"Peer %d is enabled\00"
@.str.18 = [20 x i8] c"Peer %d is disabled\00"
define void @printPeerSettings(i32 %0) {
%2 = tail call i32 (i32, ...) bitcast (i32 (...)* @getPeerLocalAddress to i32 (i32, ...)*)(i32 %0)
%3 = tail call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %2)
%4 = tail call i32 (i32, ...) bitcast (i32 (...)* @getPeerLocalPort to i32 (i32, ...)*)(i32 %0)
%5 = tail call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 %0, i32 %4)
%6 = tail call i32 (i32, ...) bitcast (i32 (...)* @getPeerLocalBGPVersion to i32 (i32, ...)*)(i32 %0)
%7 = tail call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i32 %0, i32 %6)
%8 = tail call i32 (i32, ...) bitcast (i32 (...)* @getPeerLocalASNum to i32 (i32, ...)*)(i32 %0)
%9 = tail call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i32 %0, i32 %8)
%10 = tail call i32 (i32, ...) bitcast (i32 (...)* @getPeerLocalHoldTime to i32 (i32, ...)*)(i32 %0)
%11 = tail call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), i32 %0, i32 %10)
%12 = tail call i32 (i32, ...) bitcast (i32 (...)* @getPeerLocalBGPID to i32 (i32, ...)*)(i32 %0)
%13 = tail call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i32 %0, i32 %12)
%14 = tail call i32 (i32, ...) bitcast (i32 (...)* @getPeerRemoteAddress to i32 (i32, ...)*)(i32 %0)
%15 = tail call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), i32 %0, i32 %14)
%16 = tail call i32 (i32, ...) bitcast (i32 (...)* @getPeerRemotePort to i32 (i32, ...)*)(i32 %0)
%17 = tail call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 %0, i32 %16)
%18 = tail call i32 (i32, ...) bitcast (i32 (...)* @getPeerRemoteBGPVersion to i32 (i32, ...)*)(i32 %0)
%19 = tail call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i32 %0, i32 %18)
%20 = tail call i32 (i32, ...) bitcast (i32 (...)* @getPeerRemoteASNum to i32 (i32, ...)*)(i32 %0)
%21 = tail call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i32 %0, i32 %20)
%22 = tail call i32 (i32, ...) bitcast (i32 (...)* @getPeerRemoteHoldTime to i32 (i32, ...)*)(i32 %0)
%23 = tail call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.10, i64 0, i64 0), i32 %0, i32 %22)
%24 = tail call i32 (i32, ...) bitcast (i32 (...)* @getPeerRemoteBGPID to i32 (i32, ...)*)(i32 %0)
%25 = tail call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i32 %0, i32 %24)
%26 = tail call i32 (i32, ...) bitcast (i32 (...)* @getPeerMD5Passwd to i32 (i32, ...)*)(i32 %0)
%27 = tail call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 %0, i32 %26)
%28 = tail call i32 (i32, ...) bitcast (i32 (...)* @getPeerLabelAction to i32 (i32, ...)*)(i32 %0)
%29 = tail call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.13, i64 0, i64 0), i32 %0, i32 %28)
%30 = tail call i32 (i32, ...) bitcast (i32 (...)* @getPeerRouteRefreshAction to i32 (i32, ...)*)(i32 %0)
%31 = tail call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.14, i64 0, i64 0), i32 %0, i32 %30)
%32 = tail call i32 (i32, ...) bitcast (i32 (...)* @getPeer_GroupName to i32 (i32, ...)*)(i32 %0)
%33 = tail call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0), i32 %0, i32 %32)
%34 = tail call i32 (i32, ...) bitcast (i32 (...)* @getPeer_GroupName to i32 (i32, ...)*)(i32 %0)
%35 = tail call i32 (i32, ...) bitcast (i32 (...)* @findPeerGroupID to i32 (i32, ...)*)(i32 %34)
%36 = tail call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0), i32 %0, i32 %35)
%37 = tail call i32 (i32, ...) bitcast (i32 (...)* @getPeerEnabledFlag to i32 (i32, ...)*)(i32 %0)
%38 = icmp eq i32 %37, 1
%39 = select i1 %38, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.18, i64 0, i64 0)
%40 = tail call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @debug to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__FUNCTION__.printPeerSettings, i64 0, i64 0), i8* %39, i32 %0)
ret void
}