#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*/ qCookieSet(char *, char *, int, char *, char *, char *);
int /*<<< orphan*/ qError(char *);
int qGetContentFlag();
void qCookieRemove(char *name, char *path, char *domain, char *secure) {
  if (qGetContentFlag() == 1)
    qError("qCookieRemove(): must be called before qContentType() and any "
           "stream out.");
  qCookieSet(name, "", -1, path, domain, secure);
}


x86 assembly (clang, -O0):
<qCookieRemove>:
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    $0x0,%al
call   1040 <qGetContentFlag@plt>
cmp    $0x1,%eax
jne    1164 <qCookieRemove+0x34>
lea    0xea1(%rip),%rdi
call   1030 <qError@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%r8
mov    -0x20(%rbp),%r9
lea    0xece(%rip),%rsi
mov    $0xffffffff,%edx
call   1050 <qCookieSet@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<qCookieRemove>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%rbx
xor    %eax,%eax
call   1040 <qGetContentFlag@plt>
cmp    $0x1,%eax
jne    115c <qCookieRemove+0x2c>
lea    0xea9(%rip),%rdi
call   1030 <qError@plt>
lea    0xee6(%rip),%rsi
mov    %rbx,%rdi
mov    $0xffffffff,%edx
mov    %r12,%rcx
mov    %r15,%r8
mov    %r14,%r9
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1050 <qCookieSet@plt>

LLVM IR (-O0):
@.str = [74 x i8] c"qCookieRemove(): must be called before qContentType() and any stream out.\00"
@.str.1 = [1 x i8] zeroinitializer
define void @qCookieRemove(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%9 = call i32 (...) @qGetContentFlag()
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %13
11: ; preds = %4
%12 = call i32 @qError(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str, i64 0, i64 0))
br label %13
13: ; preds = %11, %4
%14 = load i8*, i8** %5
%15 = load i8*, i8** %6
%16 = load i8*, i8** %7
%17 = load i8*, i8** %8
%18 = call i32 @qCookieSet(i8* %14, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i32 -1, i8* %15, i8* %16, i8* %17)
ret void
}

LLVM IR (-O2):
@.str = [74 x i8] c"qCookieRemove(): must be called before qContentType() and any stream out.\00"
@.str.1 = [1 x i8] zeroinitializer
define void @qCookieRemove(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = tail call i32 (...) @qGetContentFlag()
%6 = icmp eq i32 %5, 1
br i1 %6, label %7, label %9
7: ; preds = %4
%8 = tail call i32 @qError(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str, i64 0, i64 0))
br label %9
9: ; preds = %7, %4
%10 = tail call i32 @qCookieSet(i8* %0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i32 -1, i8* %1, i8* %2, i8* %3)
ret void
}