#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 t_typing_status {
  int dummy;
};
struct t_hashtable {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct t_typing_status *);
void typing_status_nick_free_value_cb(struct t_hashtable *hashtable,
                                      const void *key, const void *value) {
  const char *ptr_nick;
  struct t_typing_status *ptr_typing_status;
  (void)hashtable;
  ptr_nick = (const char *)key;
  ptr_typing_status = (struct t_typing_status *)value;
  if (!ptr_nick || !ptr_typing_status)
    return;
  free(ptr_typing_status);
}


x86 assembly (clang, -O0):
<typing_status_nick_free_value_cb>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     114a <typing_status_nick_free_value_cb+0x3a>
cmpq   $0x0,-0x28(%rbp)
jne    114f <typing_status_nick_free_value_cb+0x3f>
jmp    1158 <typing_status_nick_free_value_cb+0x48>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<typing_status_nick_free_value_cb>:
test   %rsi,%rsi
je     1122 <typing_status_nick_free_value_cb+0x12>
test   %rdx,%rdx
je     1122 <typing_status_nick_free_value_cb+0x12>
mov    %rdx,%rdi
jmp    1030 <free@plt>
ret

LLVM IR (-O0):
%struct.t_hashtable = type { i32 }
%struct.t_typing_status = type { i32 }
define void @typing_status_nick_free_value_cb(%struct.t_hashtable* %0, i8* %1, i8* %2) {
%4 = alloca %struct.t_hashtable*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca %struct.t_typing_status*
store %struct.t_hashtable* %0, %struct.t_hashtable** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%9 = load %struct.t_hashtable*, %struct.t_hashtable** %4
%10 = load i8*, i8** %5
store i8* %10, i8** %7
%11 = load i8*, i8** %6
%12 = bitcast i8* %11 to %struct.t_typing_status*
store %struct.t_typing_status* %12, %struct.t_typing_status** %8
%13 = load i8*, i8** %7
%14 = icmp ne i8* %13, null
br i1 %14, label %15, label %18
15: ; preds = %3
%16 = load %struct.t_typing_status*, %struct.t_typing_status** %8
%17 = icmp ne %struct.t_typing_status* %16, null
br i1 %17, label %19, label %18
18: ; preds = %15, %3
br label %22
19: ; preds = %15
%20 = load %struct.t_typing_status*, %struct.t_typing_status** %8
%21 = call i32 @free(%struct.t_typing_status* %20)
br label %22
22: ; preds = %19, %18
ret void
}

LLVM IR (-O2):
%struct.t_hashtable = type { i32 }
%struct.t_typing_status = type { i32 }
define void @typing_status_nick_free_value_cb(%struct.t_hashtable* nocapture readnone %0, i8* readnone %1, i8* %2) {
%4 = icmp ne i8* %1, null
%5 = icmp ne i8* %2, null
%6 = and i1 %4, %5
br i1 %6, label %7, label %10
7: ; preds = %3
%8 = bitcast i8* %2 to %struct.t_typing_status*
%9 = tail call i32 @free(%struct.t_typing_status* %8)
br label %10
10: ; preds = %3, %7
ret void
}