#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*/ mib_get(scalar_t__, void *);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ showURLBlkTable(int);
void showUrlBlocking() {
  unsigned char vChar;
  mib_get(0 + 73, (void *)&vChar);
  printf("URL blocking is %s\n", vChar == 0 ? "disabled" : "enabled");
  if (vChar) {
    showURLBlkTable(350 + 15);
    showURLBlkTable(350 + 23);
  }
}


x86 assembly (clang, -O0):
<showUrlBlocking>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x49,%edi
lea    -0x1(%rbp),%rsi
call   1040 <mib_get@plt>
movzbl -0x1(%rbp),%ecx
lea    0xecc(%rip),%rsi
lea    0xebc(%rip),%rax
cmp    $0x0,%ecx
cmove  %rax,%rsi
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
cmpb   $0x0,-0x1(%rbp)
je     1189 <showUrlBlocking+0x59>
mov    $0x16d,%edi
call   1050 <showURLBlkTable@plt>
mov    $0x175,%edi
call   1050 <showURLBlkTable@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<showUrlBlocking>:
push   %rax
lea    0x7(%rsp),%rsi
mov    $0x49,%edi
call   1040 <mib_get@plt>
cmpb   $0x0,0x7(%rsp)
lea    0xec8(%rip),%rax
lea    0xeca(%rip),%rsi
cmove  %rax,%rsi
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
cmpb   $0x0,0x7(%rsp)
je     117e <showUrlBlocking+0x4e>
mov    $0x16d,%edi
call   1050 <showURLBlkTable@plt>
mov    $0x175,%edi
call   1050 <showURLBlkTable@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [20 x i8] c"URL blocking is %s\0A\00"
@.str.1 = [9 x i8] c"disabled\00"
@.str.2 = [8 x i8] c"enabled\00"
define void @showUrlBlocking() {
%1 = alloca i8
%2 = call i32 @mib_get(i64 73, i8* %1)
%3 = load i8, i8* %1
%4 = zext i8 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = zext i1 %5 to i64
%7 = select i1 %5, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0)
%8 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = load i8, i8* %1
%10 = icmp ne i8 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %0
%12 = call i32 @showURLBlkTable(i32 365)
%13 = call i32 @showURLBlkTable(i32 373)
br label %14
14: ; preds = %11, %0
ret void
}

LLVM IR (-O2):
@.str = [20 x i8] c"URL blocking is %s\0A\00"
@.str.1 = [9 x i8] c"disabled\00"
@.str.2 = [8 x i8] c"enabled\00"
define void @showUrlBlocking() {
%1 = alloca i8
%2 = call i32 @mib_get(i64 73, i8* %1)
%3 = load i8, i8* %1
%4 = icmp eq i8 %3, 0
%5 = select i1 %4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0)
%6 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = load i8, i8* %1
%8 = icmp eq i8 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %0
%10 = call i32 @showURLBlkTable(i32 365)
%11 = call i32 @showURLBlkTable(i32 373)
br label %12
12: ; preds = %9, %0
ret void
}