#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 iAdd(unsigned char *, unsigned char *, unsigned int, unsigned int);
scalar_t__ iComp(unsigned char *, unsigned char *, unsigned int);
scalar_t__ iIsZero(unsigned char *, unsigned int);
int /*<<< orphan*/ iMultDigit(unsigned char *, unsigned char, unsigned int,
                              unsigned int);
int /*<<< orphan*/ iSub(unsigned char *, unsigned char *, unsigned int,
                        unsigned int);
unsigned char ucShift(unsigned char *, unsigned int, int);
int /*<<< orphan*/ vAssign(unsigned char *, unsigned char *, unsigned int);
int /*<<< orphan*/ vSetZero(unsigned char *, unsigned int);
int iDiv(unsigned char *psA, unsigned char *psR, unsigned char *psB,
         unsigned char *psC, unsigned int uiLen, unsigned int uiBase) {
  int iRet;
  unsigned char ucRet;
  int i;
  int iQuotientPos;
  unsigned char sB[128];
  unsigned char sC[128];
  unsigned char sT[128];
  unsigned char sUnit[128];
  if (uiBase < 2 || uiBase > 16)
    return (-1);
  if (uiLen > 128)
    return (-2);
  if (uiLen == 0)
    return (-3);
  if (iIsZero(psC, uiLen))
    return (-3);
  vSetZero(psA, uiLen);
  vAssign(sB, psB, uiLen);
  while (iComp(sB, psC, uiLen) >= 0) {
    vAssign(sC, psC, uiLen);
    for (i = 0; i < (int)uiLen; i++) {
      ucRet = ucShift(sC, uiLen, 1);
      if (ucRet)
        break;
      if (iComp(sB, sC, uiLen) < 0)
        break;
    }
    iQuotientPos = i;
    vAssign(sUnit, psC, uiLen);
    ucShift(sUnit, uiLen, iQuotientPos);
    vAssign(sT, sUnit, uiLen);
    for (i = 1; i < (int)uiBase; i++) {
      iRet = iAdd(sT, sUnit, uiLen, uiBase);
      if (iRet)
        break;
      if (iComp(sT, sB, uiLen) > 0)
        break;
    }
    psA[iQuotientPos] = i;
    iMultDigit(sUnit, (unsigned char)i, uiLen, uiBase);
    iSub(sB, sUnit, uiLen, uiBase);
  }
  vAssign(psR, sB, uiLen);
  return (0);
}


x86 assembly (clang, -O0):
<iDiv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x240,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8d,-0x2c(%rbp)
mov    %r9d,-0x30(%rbp)
cmpl   $0x2,-0x30(%rbp)
jb     11b7 <iDiv+0x37>
cmpl   $0x10,-0x30(%rbp)
jbe    11c3 <iDiv+0x43>
movl   $0xffffffff,-0x4(%rbp)
jmp    13eb <iDiv+0x26b>
cmpl   $0x80,-0x2c(%rbp)
jbe    11dc <iDiv+0x5c>
movl   $0xfffffffe,-0x4(%rbp)
jmp    13eb <iDiv+0x26b>
cmpl   $0x0,-0x2c(%rbp)
jne    11f2 <iDiv+0x72>
movl   $0xfffffffd,-0x4(%rbp)
jmp    13eb <iDiv+0x26b>
mov    -0x28(%rbp),%rdi
mov    -0x2c(%rbp),%esi
call   1050 <iIsZero@plt>
cmp    $0x0,%rax
je     1214 <iDiv+0x94>
movl   $0xfffffffd,-0x4(%rbp)
jmp    13eb <iDiv+0x26b>
mov    -0x10(%rbp),%rdi
mov    -0x2c(%rbp),%esi
call   1040 <vSetZero@plt>
lea    -0xc0(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x2c(%rbp),%edx
call   10a0 <vAssign@plt>
lea    -0xc0(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x2c(%rbp),%edx
call   1090 <iComp@plt>
cmp    $0x0,%rax
jl     13d1 <iDiv+0x251>
lea    -0x140(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x2c(%rbp),%edx
call   10a0 <vAssign@plt>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    12d4 <iDiv+0x154>
lea    -0x140(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    $0x1,%edx
call   1030 <ucShift@plt>
mov    %al,-0x35(%rbp)
cmpb   $0x0,-0x35(%rbp)
je     129c <iDiv+0x11c>
jmp    12d4 <iDiv+0x154>
lea    -0xc0(%rbp),%rdi
lea    -0x140(%rbp),%rsi
mov    -0x2c(%rbp),%edx
call   1090 <iComp@plt>
cmp    $0x0,%rax
jge    12c1 <iDiv+0x141>
jmp    12d4 <iDiv+0x154>
jmp    12c6 <iDiv+0x146>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    126a <iDiv+0xea>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x40(%rbp)
lea    -0x240(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x2c(%rbp),%edx
call   10a0 <vAssign@plt>
lea    -0x240(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    -0x40(%rbp),%edx
call   1030 <ucShift@plt>
lea    -0x1c0(%rbp),%rdi
lea    -0x240(%rbp),%rsi
mov    -0x2c(%rbp),%edx
call   10a0 <vAssign@plt>
movl   $0x1,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jge    138b <iDiv+0x20b>
lea    -0x1c0(%rbp),%rdi
lea    -0x240(%rbp),%rsi
mov    -0x2c(%rbp),%edx
mov    -0x30(%rbp),%ecx
call   1060 <iAdd@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
je     1353 <iDiv+0x1d3>
jmp    138b <iDiv+0x20b>
lea    -0x1c0(%rbp),%rdi
lea    -0xc0(%rbp),%rsi
mov    -0x2c(%rbp),%edx
call   1090 <iComp@plt>
cmp    $0x0,%rax
jle    1378 <iDiv+0x1f8>
jmp    138b <iDiv+0x20b>
jmp    137d <iDiv+0x1fd>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    131c <iDiv+0x19c>
mov    -0x3c(%rbp),%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
lea    -0x240(%rbp),%rdi
mov    -0x3c(%rbp),%eax
mov    -0x2c(%rbp),%edx
mov    -0x30(%rbp),%ecx
movzbl %al,%esi
call   1070 <iMultDigit@plt>
lea    -0xc0(%rbp),%rdi
lea    -0x240(%rbp),%rsi
mov    -0x2c(%rbp),%edx
mov    -0x30(%rbp),%ecx
call   1080 <iSub@plt>
jmp    1233 <iDiv+0xb3>
mov    -0x18(%rbp),%rdi
lea    -0xc0(%rbp),%rsi
mov    -0x2c(%rbp),%edx
call   10a0 <vAssign@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x240,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<iDiv>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x228,%rsp
mov    %r9d,%r14d
mov    %rcx,0x8(%rsp)
mov    %rdi,0x10(%rsp)
lea    -0x11(%r14),%eax
mov    $0xffffffff,%ebp
cmp    $0xfffffff1,%eax
jb     13a7 <iDiv+0x227>
mov    %r8d,%r13d
mov    $0xfffffffe,%ebp
cmp    $0x80,%r8d
ja     13a7 <iDiv+0x227>
mov    $0xfffffffd,%ebp
test   %r13d,%r13d
je     13a7 <iDiv+0x227>
mov    %rdx,%r15
mov    %rsi,%rbx
mov    0x8(%rsp),%rdi
mov    %r13d,%esi
call   1050 <iIsZero@plt>
test   %rax,%rax
jne    13a7 <iDiv+0x227>
mov    %rbx,0x18(%rsp)
mov    0x10(%rsp),%rdi
mov    %r13d,%esi
call   1040 <vSetZero@plt>
lea    0x120(%rsp),%rbp
mov    %rbp,%rdi
mov    %r15,%rsi
mov    %r13d,%edx
call   10a0 <vAssign@plt>
mov    %rbp,%rdi
mov    0x8(%rsp),%r12
mov    %r12,%rsi
mov    %r13d,%edx
call   1090 <iComp@plt>
test   %rax,%rax
js     1390 <iDiv+0x210>
lea    0xa0(%rsp),%rdi
lea    0x120(%rsp),%r15
jmp    12aa <iDiv+0x12a>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r12,%r15
mov    %ebx,%eax
mov    0x10(%rsp),%rcx
mov    %bpl,(%rcx,%rax,1)
movzbl %bpl,%esi
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
mov    %r13d,%edx
mov    %r14d,%ecx
call   1070 <iMultDigit@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r13d,%edx
mov    %r14d,%ecx
call   1080 <iSub@plt>
mov    %r15,%rdi
mov    0x8(%rsp),%r12
mov    %r12,%rsi
mov    %r13d,%edx
call   1090 <iComp@plt>
test   %rax,%rax
lea    0xa0(%rsp),%rdi
js     1390 <iDiv+0x210>
mov    %r12,%rsi
mov    %r13d,%edx
call   10a0 <vAssign@plt>
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
lea    0xa0(%rsp),%rbp
mov    %rbp,%rdi
mov    %r13d,%esi
mov    $0x1,%edx
call   1030 <ucShift@plt>
test   %al,%al
jne    12fa <iDiv+0x17a>
mov    %r15,%rdi
mov    %rbp,%rsi
mov    %r13d,%edx
call   1090 <iComp@plt>
test   %rax,%rax
js     12fa <iDiv+0x17a>
add    $0x1,%ebx
cmp    %ebx,%r13d
jne    12c0 <iDiv+0x140>
mov    %r13d,%ebx
lea    0x20(%rsp),%rbp
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %r13d,%edx
call   10a0 <vAssign@plt>
mov    %rbp,%rdi
mov    %r13d,%esi
mov    %ebx,%edx
call   1030 <ucShift@plt>
lea    0x1a0(%rsp),%rdi
mov    %rbp,%rsi
mov    %r13d,%edx
call   10a0 <vAssign@plt>
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r15,%r12
lea    0x1a0(%rsp),%r15
mov    %r15,%rdi
lea    0x20(%rsp),%rsi
mov    %r13d,%edx
mov    %r14d,%ecx
call   1060 <iAdd@plt>
test   %eax,%eax
jne    1250 <iDiv+0xd0>
mov    %r15,%rdi
mov    %r12,%r15
mov    %r12,%rsi
mov    %r13d,%edx
call   1090 <iComp@plt>
test   %rax,%rax
jg     1253 <iDiv+0xd3>
add    $0x1,%ebp
cmp    %ebp,%r14d
jne    1340 <iDiv+0x1c0>
mov    %r14d,%ebp
jmp    1253 <iDiv+0xd3>
lea    0x120(%rsp),%rsi
mov    0x18(%rsp),%rdi
mov    %r13d,%edx
call   10a0 <vAssign@plt>
xor    %ebp,%ebp
mov    %ebp,%eax
add    $0x228,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @iDiv(i8* %0, i8* %1, i8* %2, i8* %3, i32 %4, i32 %5) {
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i8
%16 = alloca i32
%17 = alloca i32
%18 = alloca [128 x i8]
%19 = alloca [128 x i8]
%20 = alloca [128 x i8]
%21 = alloca [128 x i8]
store i8* %0, i8** %8
store i8* %1, i8** %9
store i8* %2, i8** %10
store i8* %3, i8** %11
store i32 %4, i32* %12
store i32 %5, i32* %13
%22 = load i32, i32* %13
%23 = icmp ult i32 %22, 2
br i1 %23, label %27, label %24
24: ; preds = %6
%25 = load i32, i32* %13
%26 = icmp ugt i32 %25, 16
br i1 %26, label %27, label %28
27: ; preds = %24, %6
store i32 -1, i32* %7
br label %144
28: ; preds = %24
%29 = load i32, i32* %12
%30 = icmp ugt i32 %29, 128
br i1 %30, label %31, label %32
31: ; preds = %28
store i32 -2, i32* %7
br label %144
32: ; preds = %28
%33 = load i32, i32* %12
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %36
35: ; preds = %32
store i32 -3, i32* %7
br label %144
36: ; preds = %32
%37 = load i8*, i8** %11
%38 = load i32, i32* %12
%39 = call i64 @iIsZero(i8* %37, i32 %38)
%40 = icmp ne i64 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %36
store i32 -3, i32* %7
br label %144
42: ; preds = %36
%43 = load i8*, i8** %8
%44 = load i32, i32* %12
%45 = call i32 @vSetZero(i8* %43, i32 %44)
%46 = getelementptr inbounds [128 x i8], [128 x i8]* %18, i64 0, i64 0
%47 = load i8*, i8** %10
%48 = load i32, i32* %12
%49 = call i32 @vAssign(i8* %46, i8* %47, i32 %48)
br label %50
50: ; preds = %121, %42
%51 = getelementptr inbounds [128 x i8], [128 x i8]* %18, i64 0, i64 0
%52 = load i8*, i8** %11
%53 = load i32, i32* %12
%54 = call i64 @iComp(i8* %51, i8* %52, i32 %53)
%55 = icmp sge i64 %54, 0
br i1 %55, label %56, label %139
56: ; preds = %50
%57 = getelementptr inbounds [128 x i8], [128 x i8]* %19, i64 0, i64 0
%58 = load i8*, i8** %11
%59 = load i32, i32* %12
%60 = call i32 @vAssign(i8* %57, i8* %58, i32 %59)
store i32 0, i32* %16
br label %61
61: ; preds = %80, %56
%62 = load i32, i32* %16
%63 = load i32, i32* %12
%64 = icmp slt i32 %62, %63
br i1 %64, label %65, label %83
65: ; preds = %61
%66 = getelementptr inbounds [128 x i8], [128 x i8]* %19, i64 0, i64 0
%67 = load i32, i32* %12
%68 = call zeroext i8 @ucShift(i8* %66, i32 %67, i32 1)
store i8 %68, i8* %15
%69 = load i8, i8* %15
%70 = icmp ne i8 %69, 0
br i1 %70, label %71, label %72
71: ; preds = %65
br label %83
72: ; preds = %65
%73 = getelementptr inbounds [128 x i8], [128 x i8]* %18, i64 0, i64 0
%74 = getelementptr inbounds [128 x i8], [128 x i8]* %19, i64 0, i64 0
%75 = load i32, i32* %12
%76 = call i64 @iComp(i8* %73, i8* %74, i32 %75)
%77 = icmp slt i64 %76, 0
br i1 %77, label %78, label %79
78: ; preds = %72
br label %83
79: ; preds = %72
br label %80
80: ; preds = %79
%81 = load i32, i32* %16
%82 = add nsw i32 %81, 1
store i32 %82, i32* %16
br label %61
83: ; preds = %78, %71, %61
%84 = load i32, i32* %16
store i32 %84, i32* %17
%85 = getelementptr inbounds [128 x i8], [128 x i8]* %21, i64 0, i64 0
%86 = load i8*, i8** %11
%87 = load i32, i32* %12
%88 = call i32 @vAssign(i8* %85, i8* %86, i32 %87)
%89 = getelementptr inbounds [128 x i8], [128 x i8]* %21, i64 0, i64 0
%90 = load i32, i32* %12
%91 = load i32, i32* %17
%92 = call zeroext i8 @ucShift(i8* %89, i32 %90, i32 %91)
%93 = getelementptr inbounds [128 x i8], [128 x i8]* %20, i64 0, i64 0
%94 = getelementptr inbounds [128 x i8], [128 x i8]* %21, i64 0, i64 0
%95 = load i32, i32* %12
%96 = call i32 @vAssign(i8* %93, i8* %94, i32 %95)
store i32 1, i32* %16
br label %97
97: ; preds = %118, %83
%98 = load i32, i32* %16
%99 = load i32, i32* %13
%100 = icmp slt i32 %98, %99
br i1 %100, label %101, label %121
101: ; preds = %97
%102 = getelementptr inbounds [128 x i8], [128 x i8]* %20, i64 0, i64 0
%103 = getelementptr inbounds [128 x i8], [128 x i8]* %21, i64 0, i64 0
%104 = load i32, i32* %12
%105 = load i32, i32* %13
%106 = call i32 @iAdd(i8* %102, i8* %103, i32 %104, i32 %105)
store i32 %106, i32* %14
%107 = load i32, i32* %14
%108 = icmp ne i32 %107, 0
br i1 %108, label %109, label %110
109: ; preds = %101
br label %121
110: ; preds = %101
%111 = getelementptr inbounds [128 x i8], [128 x i8]* %20, i64 0, i64 0
%112 = getelementptr inbounds [128 x i8], [128 x i8]* %18, i64 0, i64 0
%113 = load i32, i32* %12
%114 = call i64 @iComp(i8* %111, i8* %112, i32 %113)
%115 = icmp sgt i64 %114, 0
br i1 %115, label %116, label %117
116: ; preds = %110
br label %121
117: ; preds = %110
br label %118
118: ; preds = %117
%119 = load i32, i32* %16
%120 = add nsw i32 %119, 1
store i32 %120, i32* %16
br label %97
121: ; preds = %116, %109, %97
%122 = load i32, i32* %16
%123 = trunc i32 %122 to i8
%124 = load i8*, i8** %8
%125 = load i32, i32* %17
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds i8, i8* %124, i64 %126
store i8 %123, i8* %127
%128 = getelementptr inbounds [128 x i8], [128 x i8]* %21, i64 0, i64 0
%129 = load i32, i32* %16
%130 = trunc i32 %129 to i8
%131 = load i32, i32* %12
%132 = load i32, i32* %13
%133 = call i32 @iMultDigit(i8* %128, i8 zeroext %130, i32 %131, i32 %132)
%134 = getelementptr inbounds [128 x i8], [128 x i8]* %18, i64 0, i64 0
%135 = getelementptr inbounds [128 x i8], [128 x i8]* %21, i64 0, i64 0
%136 = load i32, i32* %12
%137 = load i32, i32* %13
%138 = call i32 @iSub(i8* %134, i8* %135, i32 %136, i32 %137)
br label %50
139: ; preds = %50
%140 = load i8*, i8** %9
%141 = getelementptr inbounds [128 x i8], [128 x i8]* %18, i64 0, i64 0
%142 = load i32, i32* %12
%143 = call i32 @vAssign(i8* %140, i8* %141, i32 %142)
store i32 0, i32* %7
br label %144
144: ; preds = %139, %41, %35, %31, %27
%145 = load i32, i32* %7
ret i32 %145
}

LLVM IR (-O2):
define i32 @iDiv(i8* %0, i8* %1, i8* %2, i8* %3, i32 %4, i32 %5) {
%7 = alloca [128 x i8]
%8 = alloca [128 x i8]
%9 = alloca [128 x i8]
%10 = alloca [128 x i8]
%11 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%12 = getelementptr inbounds [128 x i8], [128 x i8]* %8, i64 0, i64 0
%13 = getelementptr inbounds [128 x i8], [128 x i8]* %9, i64 0, i64 0
%14 = getelementptr inbounds [128 x i8], [128 x i8]* %10, i64 0, i64 0
%15 = add i32 %5, -17
%16 = icmp ult i32 %15, -15
br i1 %16, label %67, label %17
17: ; preds = %6
%18 = icmp ugt i32 %4, 128
br i1 %18, label %67, label %19
19: ; preds = %17
%20 = icmp eq i32 %4, 0
br i1 %20, label %67, label %21
21: ; preds = %19
%22 = tail call i64 @iIsZero(i8* %3, i32 %4)
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %67
24: ; preds = %21
%25 = tail call i32 @vSetZero(i8* %0, i32 %4)
%26 = call i32 @vAssign(i8* %11, i8* %2, i32 %4)
%27 = call i64 @iComp(i8* %11, i8* %3, i32 %4)
%28 = icmp sgt i64 %27, -1
br i1 %28, label %29, label %65
29: ; preds = %24, %56
%30 = call i32 @vAssign(i8* %12, i8* %3, i32 %4)
br label %31
31: ; preds = %29, %38
%32 = phi i32 [ %39, %38 ], [ 0, %29 ]
%33 = call zeroext i8 @ucShift(i8* %12, i32 %4, i32 1)
%34 = icmp eq i8 %33, 0
br i1 %34, label %35, label %41
35: ; preds = %31
%36 = call i64 @iComp(i8* %11, i8* %12, i32 %4)
%37 = icmp slt i64 %36, 0
br i1 %37, label %41, label %38
38: ; preds = %35
%39 = add nuw nsw i32 %32, 1
%40 = icmp eq i32 %39, %4
br i1 %40, label %41, label %31
41: ; preds = %38, %31, %35
%42 = phi i32 [ %32, %35 ], [ %32, %31 ], [ %4, %38 ]
%43 = call i32 @vAssign(i8* %14, i8* %3, i32 %4)
%44 = call zeroext i8 @ucShift(i8* %14, i32 %4, i32 %42)
%45 = call i32 @vAssign(i8* %13, i8* %14, i32 %4)
br label %46
46: ; preds = %41, %53
%47 = phi i32 [ %54, %53 ], [ 1, %41 ]
%48 = call i32 @iAdd(i8* %13, i8* %14, i32 %4, i32 %5)
%49 = icmp eq i32 %48, 0
br i1 %49, label %50, label %56
50: ; preds = %46
%51 = call i64 @iComp(i8* %13, i8* %11, i32 %4)
%52 = icmp sgt i64 %51, 0
br i1 %52, label %56, label %53
53: ; preds = %50
%54 = add nuw nsw i32 %47, 1
%55 = icmp eq i32 %54, %5
br i1 %55, label %56, label %46
56: ; preds = %53, %46, %50
%57 = phi i32 [ %47, %50 ], [ %47, %46 ], [ %5, %53 ]
%58 = trunc i32 %57 to i8
%59 = zext i32 %42 to i64
%60 = getelementptr inbounds i8, i8* %0, i64 %59
store i8 %58, i8* %60
%61 = call i32 @iMultDigit(i8* %14, i8 zeroext %58, i32 %4, i32 %5)
%62 = call i32 @iSub(i8* %11, i8* %14, i32 %4, i32 %5)
%63 = call i64 @iComp(i8* %11, i8* %3, i32 %4)
%64 = icmp sgt i64 %63, -1
br i1 %64, label %29, label %65
65: ; preds = %56, %24
%66 = call i32 @vAssign(i8* %1, i8* %11, i32 %4)
br label %67
67: ; preds = %21, %19, %17, %6, %65
%68 = phi i32 [ 0, %65 ], [ -1, %6 ], [ -2, %17 ], [ -3, %19 ], [ -3, %21 ]
ret i32 %68
}