#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 */
scalar_t__ filter(char *, char *, char **, char **);
int /*<<< orphan*/ stocke(char *, int);
int Xdc(int modifier, char *label, char *mnemo, char *oper) {
  char *s1;
  char *s2;
  while (filter(oper, "?_,_?", &s1, &s2)) {
    oper = s2;
    stocke(s1, modifier);
  }
  stocke(oper, modifier);
  return 0;
}


x86 assembly (clang, -O0):
<Xdc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
lea    0xebe(%rip),%rsi
lea    -0x28(%rbp),%rdx
lea    -0x30(%rbp),%rcx
call   1030 <filter@plt>
cmp    $0x0,%rax
je     1172 <Xdc+0x52>
mov    -0x30(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x4(%rbp),%esi
call   1040 <stocke@plt>
jmp    1137 <Xdc+0x17>
mov    -0x20(%rbp),%rdi
mov    -0x4(%rbp),%esi
call   1040 <stocke@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Xdc>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %rcx,%rbx
mov    %edi,%ebp
lea    0xec8(%rip),%rsi
lea    0x8(%rsp),%rdx
mov    %rsp,%rcx
mov    %rbx,%rdi
call   1030 <filter@plt>
test   %rax,%rax
je     1186 <Xdc+0x66>
lea    0xeac(%rip),%r14
lea    0x8(%rsp),%r15
mov    %rsp,%r12
nopl   0x0(%rax)
mov    (%rsp),%rbx
mov    0x8(%rsp),%rdi
mov    %ebp,%esi
call   1040 <stocke@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
mov    %r12,%rcx
call   1030 <filter@plt>
test   %rax,%rax
jne    1160 <Xdc+0x40>
mov    %rbx,%rdi
mov    %ebp,%esi
call   1040 <stocke@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"?_,_?\00"
define i32 @Xdc(i32 %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
store i32 %0, i32* %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
br label %11
11: ; preds = %15, %4
%12 = load i8*, i8** %8
%13 = call i64 @filter(i8* %12, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %9, i8** %10)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %11
%16 = load i8*, i8** %10
store i8* %16, i8** %8
%17 = load i8*, i8** %9
%18 = load i32, i32* %5
%19 = call i32 @stocke(i8* %17, i32 %18)
br label %11
20: ; preds = %11
%21 = load i8*, i8** %8
%22 = load i32, i32* %5
%23 = call i32 @stocke(i8* %21, i32 %22)
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"?_,_?\00"
define i32 @Xdc(i32 %0, i8* nocapture readnone %1, i8* nocapture readnone %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = bitcast i8** %5 to i8*
%8 = bitcast i8** %6 to i8*
%9 = call i64 @filter(i8* %3, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %5, i8** %6)
%10 = icmp eq i64 %9, 0
br i1 %10, label %17, label %11
11: ; preds = %4, %11
%12 = load i8*, i8** %6
%13 = load i8*, i8** %5
%14 = call i32 @stocke(i8* %13, i32 %0)
%15 = call i64 @filter(i8* %12, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %5, i8** %6)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %11
17: ; preds = %11, %4
%18 = phi i8* [ %3, %4 ], [ %12, %11 ]
%19 = call i32 @stocke(i8* %18, i32 %0)
ret i32 0
}