
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void __gmpf_pow_ui(mpf_ptr r,mpf_srcptr b,ulong e)

{
  int iVar1;
  mp_bitcnt_t mVar2;
  uint uVar3;
  int in_GS_OFFSET;
  mpf_t t;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (e < 2) {
    if (e == 0) {
      __gmpf_set_ui(r,1);
    }
    else {
      __gmpf_set(r,b);
    }
  }
  else {
    uVar3 = 0x1f;
    if (e != 0) {
      for (; e >> uVar3 == 0; uVar3 = uVar3 - 1) {
      }
    }
    uVar3 = 0x1f - (uVar3 ^ 0x1f);
    mVar2 = __gmpf_get_prec(r);
    __gmpf_init2(t,mVar2 + uVar3);
    __gmpf_set(t,b);
    while (uVar3 = uVar3 - 1, uVar3 != 0) {
      while( true ) {
        __gmpf_mul(t,t,t);
        if ((e >> (uVar3 & 0x1f) & 1) == 0) break;
        __gmpf_mul(t,t,b);
        uVar3 = uVar3 - 1;
        if (uVar3 == 0) goto LAB_000220f6;
      }
    }
LAB_000220f6:
    if ((e & 1) == 0) {
      __gmpf_mul(r,t,t);
    }
    else {
      __gmpf_mul(t,t,t);
      __gmpf_mul(r,t,b);
    }
    __gmpf_clear(t);
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



void __gmpf_pow_ui(undefined4 param_1,uint param_2)

{
  int iVar1;
  uint uVar2;
  int in_GS_OFFSET;
  undefined4 unaff_retaddr;
  undefined1 auStack_34 [16];
  int local_24;
  undefined4 uStack_14;
  
  uStack_14 = 0x22059;
  entry();
  local_24 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_2 < 2) {
    if (param_2 == 0) {
      __gmpf_set_ui(unaff_retaddr,1);
    }
    else {
      __gmpf_set(unaff_retaddr,param_1);
    }
  }
  else {
    uVar2 = 0x1f;
    if (param_2 != 0) {
      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {
      }
    }
    uVar2 = 0x1f - (uVar2 ^ 0x1f);
    iVar1 = __gmpf_get_prec(unaff_retaddr);
    __gmpf_init2(auStack_34,iVar1 + uVar2);
    __gmpf_set(auStack_34,param_1);
    while (uVar2 = uVar2 - 1, uVar2 != 0) {
      while( true ) {
        __gmpf_mul(auStack_34,auStack_34,auStack_34);
        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;
        __gmpf_mul(auStack_34,auStack_34,param_1);
        uVar2 = uVar2 - 1;
        if (uVar2 == 0) goto LAB_000220f6;
      }
    }
LAB_000220f6:
    if ((param_2 & 1) == 0) {
      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);
    }
    else {
      __gmpf_mul(auStack_34,auStack_34,auStack_34);
      __gmpf_mul(unaff_retaddr,auStack_34,param_1);
    }
    __gmpf_clear(auStack_34);
  }
  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00079d30();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001c340
ADD EBX,0x76fa7
SUB ESP,0x3c
MOV EAX,dword ptr [ESP + 0x50]
MOV EDX,dword ptr [ESP + 0x54]
MOV EDI,dword ptr [ESP + 0x58]
MOV dword ptr [ESP + 0xc],EAX
MOV dword ptr [ESP + 0x8],EDX
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x2c],ECX
XOR ECX,ECX
CMP EDI,0x1
JBE 0x00022158
SUB ESP,0xc
BSR EAX,EDI
MOV ESI,0x1f
PUSH dword ptr [ESP + 0x18]
XOR EAX,0x1f
SUB ESI,EAX
CALL 0x0001b400
POP EDX
POP ECX
ADD EAX,ESI
PUSH EAX
LEA EBP,[ESP + 0x28]
PUSH EBP
CALL 0x0001bd70
POP EAX
POP EDX
PUSH dword ptr [ESP + 0x10]
PUSH EBP
CALL 0x0001b280
ADD ESP,0x10
LEA ESI,[ESI]
NOP
SUB ESI,0x1
JZ 0x000220f6
SUB ESP,0x4
PUSH EBP
PUSH EBP
PUSH EBP
CALL 0x0001bc20
ADD ESP,0x10
BT EDI,ESI
JNC 0x000220c8
SUB ESP,0x4
PUSH dword ptr [ESP + 0xc]
PUSH EBP
PUSH EBP
CALL 0x0001bc20
ADD ESP,0x10
SUB ESI,0x1
JNZ 0x000220cd
AND EDI,0x1
JNZ 0x00022130
SUB ESP,0x4
PUSH EBP
PUSH EBP
PUSH dword ptr [ESP + 0x18]
CALL 0x0001bc20
ADD ESP,0x10
SUB ESP,0xc
PUSH EBP
CALL 0x0001b3e0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x2c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00022185
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH EBP
PUSH EBP
PUSH EBP
CALL 0x0001bc20
ADD ESP,0xc
PUSH dword ptr [ESP + 0xc]
PUSH EBP
PUSH dword ptr [ESP + 0x18]
CALL 0x0001bc20
ADD ESP,0x10
JMP 0x0002210c
TEST EDI,EDI
JNZ 0x00022170
SUB ESP,0x8
PUSH 0x1
PUSH EAX
CALL 0x0001b710
ADD ESP,0x10
JMP 0x00022118
SUB ESP,0x8
PUSH dword ptr [ESP + 0x10]
PUSH dword ptr [ESP + 0x18]
CALL 0x0001b280
ADD ESP,0x10
JMP 0x00022118
CALL 0x00079d30
(translation_unit "void __gmpf_pow_ui(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  undefined1 auStack_34 [16];\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22059;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 < 2) {\n    if (param_2 == 0) {\n      __gmpf_set_ui(unaff_retaddr,1);\n    }\n    else {\n      __gmpf_set(unaff_retaddr,param_1);\n    }\n  }\n  else {\n    uVar2 = 0x1f;\n    if (param_2 != 0) {\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }\n    uVar2 = 0x1f - (uVar2 ^ 0x1f);\n    iVar1 = __gmpf_get_prec(unaff_retaddr);\n    __gmpf_init2(auStack_34,iVar1 + uVar2);\n    __gmpf_set(auStack_34,param_1);\n    while (uVar2 = uVar2 - 1, uVar2 != 0) {\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }\n    __gmpf_clear(auStack_34);\n  }\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00079d30();\n}\n\n" (function_definition "void __gmpf_pow_ui(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  undefined1 auStack_34 [16];\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22059;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 < 2) {\n    if (param_2 == 0) {\n      __gmpf_set_ui(unaff_retaddr,1);\n    }\n    else {\n      __gmpf_set(unaff_retaddr,param_1);\n    }\n  }\n  else {\n    uVar2 = 0x1f;\n    if (param_2 != 0) {\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }\n    uVar2 = 0x1f - (uVar2 ^ 0x1f);\n    iVar1 = __gmpf_get_prec(unaff_retaddr);\n    __gmpf_init2(auStack_34,iVar1 + uVar2);\n    __gmpf_set(auStack_34,param_1);\n    while (uVar2 = uVar2 - 1, uVar2 != 0) {\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }\n    __gmpf_clear(auStack_34);\n  }\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00079d30();\n}" primitive_type (function_declarator "__gmpf_pow_ui(undefined4 param_1,uint param_2)" identifier (parameter_list "(undefined4 param_1,uint param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  undefined1 auStack_34 [16];\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22059;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 < 2) {\n    if (param_2 == 0) {\n      __gmpf_set_ui(unaff_retaddr,1);\n    }\n    else {\n      __gmpf_set(unaff_retaddr,param_1);\n    }\n  }\n  else {\n    uVar2 = 0x1f;\n    if (param_2 != 0) {\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }\n    uVar2 = 0x1f - (uVar2 ^ 0x1f);\n    iVar1 = __gmpf_get_prec(unaff_retaddr);\n    __gmpf_init2(auStack_34,iVar1 + uVar2);\n    __gmpf_set(auStack_34,param_1);\n    while (uVar2 = uVar2 - 1, uVar2 != 0) {\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }\n    __gmpf_clear(auStack_34);\n  }\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00079d30();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 unaff_retaddr;" type_identifier identifier ;) (declaration "undefined1 auStack_34 [16];" type_identifier (array_declarator "auStack_34 [16]" identifier [ number_literal ]) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x22059;" (assignment_expression "uStack_14 = 0x22059" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_24 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_2 < 2) {\n    if (param_2 == 0) {\n      __gmpf_set_ui(unaff_retaddr,1);\n    }\n    else {\n      __gmpf_set(unaff_retaddr,param_1);\n    }\n  }\n  else {\n    uVar2 = 0x1f;\n    if (param_2 != 0) {\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }\n    uVar2 = 0x1f - (uVar2 ^ 0x1f);\n    iVar1 = __gmpf_get_prec(unaff_retaddr);\n    __gmpf_init2(auStack_34,iVar1 + uVar2);\n    __gmpf_set(auStack_34,param_1);\n    while (uVar2 = uVar2 - 1, uVar2 != 0) {\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }\n    __gmpf_clear(auStack_34);\n  }" if (parenthesized_expression "(param_2 < 2)" ( (binary_expression "param_2 < 2" identifier < number_literal) )) (compound_statement "{\n    if (param_2 == 0) {\n      __gmpf_set_ui(unaff_retaddr,1);\n    }\n    else {\n      __gmpf_set(unaff_retaddr,param_1);\n    }\n  }" { (if_statement "if (param_2 == 0) {\n      __gmpf_set_ui(unaff_retaddr,1);\n    }\n    else {\n      __gmpf_set(unaff_retaddr,param_1);\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      __gmpf_set_ui(unaff_retaddr,1);\n    }" { (expression_statement "__gmpf_set_ui(unaff_retaddr,1);" (call_expression "__gmpf_set_ui(unaff_retaddr,1)" identifier (argument_list "(unaff_retaddr,1)" ( identifier , number_literal ))) ;) }) (else_clause "else {\n      __gmpf_set(unaff_retaddr,param_1);\n    }" else (compound_statement "{\n      __gmpf_set(unaff_retaddr,param_1);\n    }" { (expression_statement "__gmpf_set(unaff_retaddr,param_1);" (call_expression "__gmpf_set(unaff_retaddr,param_1)" identifier (argument_list "(unaff_retaddr,param_1)" ( identifier , identifier ))) ;) }))) }) (else_clause "else {\n    uVar2 = 0x1f;\n    if (param_2 != 0) {\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }\n    uVar2 = 0x1f - (uVar2 ^ 0x1f);\n    iVar1 = __gmpf_get_prec(unaff_retaddr);\n    __gmpf_init2(auStack_34,iVar1 + uVar2);\n    __gmpf_set(auStack_34,param_1);\n    while (uVar2 = uVar2 - 1, uVar2 != 0) {\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }\n    __gmpf_clear(auStack_34);\n  }" else (compound_statement "{\n    uVar2 = 0x1f;\n    if (param_2 != 0) {\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }\n    uVar2 = 0x1f - (uVar2 ^ 0x1f);\n    iVar1 = __gmpf_get_prec(unaff_retaddr);\n    __gmpf_init2(auStack_34,iVar1 + uVar2);\n    __gmpf_set(auStack_34,param_1);\n    while (uVar2 = uVar2 - 1, uVar2 != 0) {\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }\n    __gmpf_clear(auStack_34);\n  }" { (expression_statement "uVar2 = 0x1f;" (assignment_expression "uVar2 = 0x1f" identifier = number_literal) ;) (if_statement "if (param_2 != 0) {\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }" { (for_statement "for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }" for ( ; (binary_expression "param_2 >> uVar2 == 0" (binary_expression "param_2 >> uVar2" identifier >> identifier) == number_literal) ; (assignment_expression "uVar2 = uVar2 - 1" identifier = (binary_expression "uVar2 - 1" identifier - number_literal)) ) (compound_statement "{\n      }" { })) })) (expression_statement "uVar2 = 0x1f - (uVar2 ^ 0x1f);" (assignment_expression "uVar2 = 0x1f - (uVar2 ^ 0x1f)" identifier = (binary_expression "0x1f - (uVar2 ^ 0x1f)" number_literal - (parenthesized_expression "(uVar2 ^ 0x1f)" ( (binary_expression "uVar2 ^ 0x1f" identifier ^ number_literal) )))) ;) (expression_statement "iVar1 = __gmpf_get_prec(unaff_retaddr);" (assignment_expression "iVar1 = __gmpf_get_prec(unaff_retaddr)" identifier = (call_expression "__gmpf_get_prec(unaff_retaddr)" identifier (argument_list "(unaff_retaddr)" ( identifier )))) ;) (expression_statement "__gmpf_init2(auStack_34,iVar1 + uVar2);" (call_expression "__gmpf_init2(auStack_34,iVar1 + uVar2)" identifier (argument_list "(auStack_34,iVar1 + uVar2)" ( identifier , (binary_expression "iVar1 + uVar2" identifier + identifier) ))) ;) (expression_statement "__gmpf_set(auStack_34,param_1);" (call_expression "__gmpf_set(auStack_34,param_1)" identifier (argument_list "(auStack_34,param_1)" ( identifier , identifier ))) ;) (while_statement "while (uVar2 = uVar2 - 1, uVar2 != 0) {\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }" while (parenthesized_expression "(uVar2 = uVar2 - 1, uVar2 != 0)" ( (comma_expression "uVar2 = uVar2 - 1, uVar2 != 0" (assignment_expression "uVar2 = uVar2 - 1" identifier = (binary_expression "uVar2 - 1" identifier - number_literal)) , (binary_expression "uVar2 != 0" identifier != number_literal)) )) (compound_statement "{\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }" { (while_statement "while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }" { (expression_statement "__gmpf_mul(auStack_34,auStack_34,auStack_34);" (call_expression "__gmpf_mul(auStack_34,auStack_34,auStack_34)" identifier (argument_list "(auStack_34,auStack_34,auStack_34)" ( identifier , identifier , identifier ))) ;) (if_statement "if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;" if (parenthesized_expression "((param_2 >> (uVar2 & 0x1f) & 1) == 0)" ( (binary_expression "(param_2 >> (uVar2 & 0x1f) & 1) == 0" (parenthesized_expression "(param_2 >> (uVar2 & 0x1f) & 1)" ( (binary_expression "param_2 >> (uVar2 & 0x1f) & 1" (binary_expression "param_2 >> (uVar2 & 0x1f)" identifier >> (parenthesized_expression "(uVar2 & 0x1f)" ( (binary_expression "uVar2 & 0x1f" identifier & number_literal) ))) & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "__gmpf_mul(auStack_34,auStack_34,param_1);" (call_expression "__gmpf_mul(auStack_34,auStack_34,param_1)" identifier (argument_list "(auStack_34,auStack_34,param_1)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar2 = uVar2 - 1;" (assignment_expression "uVar2 = uVar2 - 1" identifier = (binary_expression "uVar2 - 1" identifier - number_literal)) ;) (if_statement "if (uVar2 == 0) goto LAB_000220f6;" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000220f6;" goto statement_identifier ;)) })) })) (labeled_statement "LAB_000220f6:\n    if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }" statement_identifier : (if_statement "if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }" if (parenthesized_expression "((param_2 & 1) == 0)" ( (binary_expression "(param_2 & 1) == 0" (parenthesized_expression "(param_2 & 1)" ( (binary_expression "param_2 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }" { (expression_statement "__gmpf_mul(unaff_retaddr,auStack_34,auStack_34);" (call_expression "__gmpf_mul(unaff_retaddr,auStack_34,auStack_34)" identifier (argument_list "(unaff_retaddr,auStack_34,auStack_34)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }" else (compound_statement "{\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }" { (expression_statement "__gmpf_mul(auStack_34,auStack_34,auStack_34);" (call_expression "__gmpf_mul(auStack_34,auStack_34,auStack_34)" identifier (argument_list "(auStack_34,auStack_34,auStack_34)" ( identifier , identifier , identifier ))) ;) (expression_statement "__gmpf_mul(unaff_retaddr,auStack_34,param_1);" (call_expression "__gmpf_mul(unaff_retaddr,auStack_34,param_1)" identifier (argument_list "(unaff_retaddr,auStack_34,param_1)" ( identifier , identifier , identifier ))) ;) })))) (expression_statement "__gmpf_clear(auStack_34);" (call_expression "__gmpf_clear(auStack_34)" identifier (argument_list "(auStack_34)" ( identifier ))) ;) }))) (if_statement "if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_24 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_24 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_00079d30();" (call_expression "FUN_00079d30()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid __gmpf_pow_ui(mpf_ptr r,mpf_srcptr b,ulong e)\n\n{\n  int iVar1;\n  mp_bitcnt_t mVar2;\n  uint uVar3;\n  int in_GS_OFFSET;\n  mpf_t t;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (e < 2) {\n    if (e == 0) {\n      __gmpf_set_ui(r,1);\n    }\n    else {\n      __gmpf_set(r,b);\n    }\n  }\n  else {\n    uVar3 = 0x1f;\n    if (e != 0) {\n      for (; e >> uVar3 == 0; uVar3 = uVar3 - 1) {\n      }\n    }\n    uVar3 = 0x1f - (uVar3 ^ 0x1f);\n    mVar2 = __gmpf_get_prec(r);\n    __gmpf_init2(t,mVar2 + uVar3);\n    __gmpf_set(t,b);\n    while (uVar3 = uVar3 - 1, uVar3 != 0) {\n      while( true ) {\n        __gmpf_mul(t,t,t);\n        if ((e >> (uVar3 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(t,t,b);\n        uVar3 = uVar3 - 1;\n        if (uVar3 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((e & 1) == 0) {\n      __gmpf_mul(r,t,t);\n    }\n    else {\n      __gmpf_mul(t,t,t);\n      __gmpf_mul(r,t,b);\n    }\n    __gmpf_clear(t);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void __gmpf_pow_ui(mpf_ptr r,mpf_srcptr b,ulong e)\n\n{\n  int iVar1;\n  mp_bitcnt_t mVar2;\n  uint uVar3;\n  int in_GS_OFFSET;\n  mpf_t t;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (e < 2) {\n    if (e == 0) {\n      __gmpf_set_ui(r,1);\n    }\n    else {\n      __gmpf_set(r,b);\n    }\n  }\n  else {\n    uVar3 = 0x1f;\n    if (e != 0) {\n      for (; e >> uVar3 == 0; uVar3 = uVar3 - 1) {\n      }\n    }\n    uVar3 = 0x1f - (uVar3 ^ 0x1f);\n    mVar2 = __gmpf_get_prec(r);\n    __gmpf_init2(t,mVar2 + uVar3);\n    __gmpf_set(t,b);\n    while (uVar3 = uVar3 - 1, uVar3 != 0) {\n      while( true ) {\n        __gmpf_mul(t,t,t);\n        if ((e >> (uVar3 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(t,t,b);\n        uVar3 = uVar3 - 1;\n        if (uVar3 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((e & 1) == 0) {\n      __gmpf_mul(r,t,t);\n    }\n    else {\n      __gmpf_mul(t,t,t);\n      __gmpf_mul(r,t,b);\n    }\n    __gmpf_clear(t);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "__gmpf_pow_ui(mpf_ptr r,mpf_srcptr b,ulong e)" identifier (parameter_list "(mpf_ptr r,mpf_srcptr b,ulong e)" ( (parameter_declaration "mpf_ptr r" type_identifier identifier) , (parameter_declaration "mpf_srcptr b" type_identifier identifier) , (parameter_declaration "ulong e" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  mp_bitcnt_t mVar2;\n  uint uVar3;\n  int in_GS_OFFSET;\n  mpf_t t;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (e < 2) {\n    if (e == 0) {\n      __gmpf_set_ui(r,1);\n    }\n    else {\n      __gmpf_set(r,b);\n    }\n  }\n  else {\n    uVar3 = 0x1f;\n    if (e != 0) {\n      for (; e >> uVar3 == 0; uVar3 = uVar3 - 1) {\n      }\n    }\n    uVar3 = 0x1f - (uVar3 ^ 0x1f);\n    mVar2 = __gmpf_get_prec(r);\n    __gmpf_init2(t,mVar2 + uVar3);\n    __gmpf_set(t,b);\n    while (uVar3 = uVar3 - 1, uVar3 != 0) {\n      while( true ) {\n        __gmpf_mul(t,t,t);\n        if ((e >> (uVar3 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(t,t,b);\n        uVar3 = uVar3 - 1;\n        if (uVar3 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((e & 1) == 0) {\n      __gmpf_mul(r,t,t);\n    }\n    else {\n      __gmpf_mul(t,t,t);\n      __gmpf_mul(r,t,b);\n    }\n    __gmpf_clear(t);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "mp_bitcnt_t mVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "mpf_t t;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (e < 2) {\n    if (e == 0) {\n      __gmpf_set_ui(r,1);\n    }\n    else {\n      __gmpf_set(r,b);\n    }\n  }\n  else {\n    uVar3 = 0x1f;\n    if (e != 0) {\n      for (; e >> uVar3 == 0; uVar3 = uVar3 - 1) {\n      }\n    }\n    uVar3 = 0x1f - (uVar3 ^ 0x1f);\n    mVar2 = __gmpf_get_prec(r);\n    __gmpf_init2(t,mVar2 + uVar3);\n    __gmpf_set(t,b);\n    while (uVar3 = uVar3 - 1, uVar3 != 0) {\n      while( true ) {\n        __gmpf_mul(t,t,t);\n        if ((e >> (uVar3 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(t,t,b);\n        uVar3 = uVar3 - 1;\n        if (uVar3 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((e & 1) == 0) {\n      __gmpf_mul(r,t,t);\n    }\n    else {\n      __gmpf_mul(t,t,t);\n      __gmpf_mul(r,t,b);\n    }\n    __gmpf_clear(t);\n  }" if (parenthesized_expression "(e < 2)" ( (binary_expression "e < 2" identifier < number_literal) )) (compound_statement "{\n    if (e == 0) {\n      __gmpf_set_ui(r,1);\n    }\n    else {\n      __gmpf_set(r,b);\n    }\n  }" { (if_statement "if (e == 0) {\n      __gmpf_set_ui(r,1);\n    }\n    else {\n      __gmpf_set(r,b);\n    }" if (parenthesized_expression "(e == 0)" ( (binary_expression "e == 0" identifier == number_literal) )) (compound_statement "{\n      __gmpf_set_ui(r,1);\n    }" { (expression_statement "__gmpf_set_ui(r,1);" (call_expression "__gmpf_set_ui(r,1)" identifier (argument_list "(r,1)" ( identifier , number_literal ))) ;) }) (else_clause "else {\n      __gmpf_set(r,b);\n    }" else (compound_statement "{\n      __gmpf_set(r,b);\n    }" { (expression_statement "__gmpf_set(r,b);" (call_expression "__gmpf_set(r,b)" identifier (argument_list "(r,b)" ( identifier , identifier ))) ;) }))) }) (else_clause "else {\n    uVar3 = 0x1f;\n    if (e != 0) {\n      for (; e >> uVar3 == 0; uVar3 = uVar3 - 1) {\n      }\n    }\n    uVar3 = 0x1f - (uVar3 ^ 0x1f);\n    mVar2 = __gmpf_get_prec(r);\n    __gmpf_init2(t,mVar2 + uVar3);\n    __gmpf_set(t,b);\n    while (uVar3 = uVar3 - 1, uVar3 != 0) {\n      while( true ) {\n        __gmpf_mul(t,t,t);\n        if ((e >> (uVar3 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(t,t,b);\n        uVar3 = uVar3 - 1;\n        if (uVar3 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((e & 1) == 0) {\n      __gmpf_mul(r,t,t);\n    }\n    else {\n      __gmpf_mul(t,t,t);\n      __gmpf_mul(r,t,b);\n    }\n    __gmpf_clear(t);\n  }" else (compound_statement "{\n    uVar3 = 0x1f;\n    if (e != 0) {\n      for (; e >> uVar3 == 0; uVar3 = uVar3 - 1) {\n      }\n    }\n    uVar3 = 0x1f - (uVar3 ^ 0x1f);\n    mVar2 = __gmpf_get_prec(r);\n    __gmpf_init2(t,mVar2 + uVar3);\n    __gmpf_set(t,b);\n    while (uVar3 = uVar3 - 1, uVar3 != 0) {\n      while( true ) {\n        __gmpf_mul(t,t,t);\n        if ((e >> (uVar3 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(t,t,b);\n        uVar3 = uVar3 - 1;\n        if (uVar3 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((e & 1) == 0) {\n      __gmpf_mul(r,t,t);\n    }\n    else {\n      __gmpf_mul(t,t,t);\n      __gmpf_mul(r,t,b);\n    }\n    __gmpf_clear(t);\n  }" { (expression_statement "uVar3 = 0x1f;" (assignment_expression "uVar3 = 0x1f" identifier = number_literal) ;) (if_statement "if (e != 0) {\n      for (; e >> uVar3 == 0; uVar3 = uVar3 - 1) {\n      }\n    }" if (parenthesized_expression "(e != 0)" ( (binary_expression "e != 0" identifier != number_literal) )) (compound_statement "{\n      for (; e >> uVar3 == 0; uVar3 = uVar3 - 1) {\n      }\n    }" { (for_statement "for (; e >> uVar3 == 0; uVar3 = uVar3 - 1) {\n      }" for ( ; (binary_expression "e >> uVar3 == 0" (binary_expression "e >> uVar3" identifier >> identifier) == number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n      }" { })) })) (expression_statement "uVar3 = 0x1f - (uVar3 ^ 0x1f);" (assignment_expression "uVar3 = 0x1f - (uVar3 ^ 0x1f)" identifier = (binary_expression "0x1f - (uVar3 ^ 0x1f)" number_literal - (parenthesized_expression "(uVar3 ^ 0x1f)" ( (binary_expression "uVar3 ^ 0x1f" identifier ^ number_literal) )))) ;) (expression_statement "mVar2 = __gmpf_get_prec(r);" (assignment_expression "mVar2 = __gmpf_get_prec(r)" identifier = (call_expression "__gmpf_get_prec(r)" identifier (argument_list "(r)" ( identifier )))) ;) (expression_statement "__gmpf_init2(t,mVar2 + uVar3);" (call_expression "__gmpf_init2(t,mVar2 + uVar3)" identifier (argument_list "(t,mVar2 + uVar3)" ( identifier , (binary_expression "mVar2 + uVar3" identifier + identifier) ))) ;) (expression_statement "__gmpf_set(t,b);" (call_expression "__gmpf_set(t,b)" identifier (argument_list "(t,b)" ( identifier , identifier ))) ;) (while_statement "while (uVar3 = uVar3 - 1, uVar3 != 0) {\n      while( true ) {\n        __gmpf_mul(t,t,t);\n        if ((e >> (uVar3 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(t,t,b);\n        uVar3 = uVar3 - 1;\n        if (uVar3 == 0) goto LAB_000220f6;\n      }\n    }" while (parenthesized_expression "(uVar3 = uVar3 - 1, uVar3 != 0)" ( (comma_expression "uVar3 = uVar3 - 1, uVar3 != 0" (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) , (binary_expression "uVar3 != 0" identifier != number_literal)) )) (compound_statement "{\n      while( true ) {\n        __gmpf_mul(t,t,t);\n        if ((e >> (uVar3 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(t,t,b);\n        uVar3 = uVar3 - 1;\n        if (uVar3 == 0) goto LAB_000220f6;\n      }\n    }" { (while_statement "while( true ) {\n        __gmpf_mul(t,t,t);\n        if ((e >> (uVar3 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(t,t,b);\n        uVar3 = uVar3 - 1;\n        if (uVar3 == 0) goto LAB_000220f6;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        __gmpf_mul(t,t,t);\n        if ((e >> (uVar3 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(t,t,b);\n        uVar3 = uVar3 - 1;\n        if (uVar3 == 0) goto LAB_000220f6;\n      }" { (expression_statement "__gmpf_mul(t,t,t);" (call_expression "__gmpf_mul(t,t,t)" identifier (argument_list "(t,t,t)" ( identifier , identifier , identifier ))) ;) (if_statement "if ((e >> (uVar3 & 0x1f) & 1) == 0) break;" if (parenthesized_expression "((e >> (uVar3 & 0x1f) & 1) == 0)" ( (binary_expression "(e >> (uVar3 & 0x1f) & 1) == 0" (parenthesized_expression "(e >> (uVar3 & 0x1f) & 1)" ( (binary_expression "e >> (uVar3 & 0x1f) & 1" (binary_expression "e >> (uVar3 & 0x1f)" identifier >> (parenthesized_expression "(uVar3 & 0x1f)" ( (binary_expression "uVar3 & 0x1f" identifier & number_literal) ))) & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "__gmpf_mul(t,t,b);" (call_expression "__gmpf_mul(t,t,b)" identifier (argument_list "(t,t,b)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar3 = uVar3 - 1;" (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ;) (if_statement "if (uVar3 == 0) goto LAB_000220f6;" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000220f6;" goto statement_identifier ;)) })) })) (labeled_statement "LAB_000220f6:\n    if ((e & 1) == 0) {\n      __gmpf_mul(r,t,t);\n    }\n    else {\n      __gmpf_mul(t,t,t);\n      __gmpf_mul(r,t,b);\n    }" statement_identifier : (if_statement "if ((e & 1) == 0) {\n      __gmpf_mul(r,t,t);\n    }\n    else {\n      __gmpf_mul(t,t,t);\n      __gmpf_mul(r,t,b);\n    }" if (parenthesized_expression "((e & 1) == 0)" ( (binary_expression "(e & 1) == 0" (parenthesized_expression "(e & 1)" ( (binary_expression "e & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      __gmpf_mul(r,t,t);\n    }" { (expression_statement "__gmpf_mul(r,t,t);" (call_expression "__gmpf_mul(r,t,t)" identifier (argument_list "(r,t,t)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n      __gmpf_mul(t,t,t);\n      __gmpf_mul(r,t,b);\n    }" else (compound_statement "{\n      __gmpf_mul(t,t,t);\n      __gmpf_mul(r,t,b);\n    }" { (expression_statement "__gmpf_mul(t,t,t);" (call_expression "__gmpf_mul(t,t,t)" identifier (argument_list "(t,t,t)" ( identifier , identifier , identifier ))) ;) (expression_statement "__gmpf_mul(r,t,b);" (call_expression "__gmpf_mul(r,t,b)" identifier (argument_list "(r,t,b)" ( identifier , identifier , identifier ))) ;) })))) (expression_statement "__gmpf_clear(t);" (call_expression "__gmpf_clear(t)" identifier (argument_list "(t)" ( identifier ))) ;) }))) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void __gmpf_pow_ui(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  undefined1 auStack_34 [16];\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22059;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 < 2) {\n    if (param_2 == 0) {\n      __gmpf_set_ui(unaff_retaddr,1);\n    }\n    else {\n      __gmpf_set(unaff_retaddr,param_1);\n    }\n  }\n  else {\n    uVar2 = 0x1f;\n    if (param_2 != 0) {\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }\n    uVar2 = 0x1f - (uVar2 ^ 0x1f);\n    iVar1 = __gmpf_get_prec(unaff_retaddr);\n    __gmpf_init2(auStack_34,iVar1 + uVar2);\n    __gmpf_set(auStack_34,param_1);\n    while (uVar2 = uVar2 - 1, uVar2 != 0) {\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }\n    __gmpf_clear(auStack_34);\n  }\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00079d30();\n}\n\n" (function_definition "void __gmpf_pow_ui(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  undefined1 auStack_34 [16];\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22059;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 < 2) {\n    if (param_2 == 0) {\n      __gmpf_set_ui(unaff_retaddr,1);\n    }\n    else {\n      __gmpf_set(unaff_retaddr,param_1);\n    }\n  }\n  else {\n    uVar2 = 0x1f;\n    if (param_2 != 0) {\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }\n    uVar2 = 0x1f - (uVar2 ^ 0x1f);\n    iVar1 = __gmpf_get_prec(unaff_retaddr);\n    __gmpf_init2(auStack_34,iVar1 + uVar2);\n    __gmpf_set(auStack_34,param_1);\n    while (uVar2 = uVar2 - 1, uVar2 != 0) {\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }\n    __gmpf_clear(auStack_34);\n  }\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00079d30();\n}" primitive_type (function_declarator "__gmpf_pow_ui(undefined4 param_1,uint param_2)" identifier (parameter_list "(undefined4 param_1,uint param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  undefined1 auStack_34 [16];\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22059;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 < 2) {\n    if (param_2 == 0) {\n      __gmpf_set_ui(unaff_retaddr,1);\n    }\n    else {\n      __gmpf_set(unaff_retaddr,param_1);\n    }\n  }\n  else {\n    uVar2 = 0x1f;\n    if (param_2 != 0) {\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }\n    uVar2 = 0x1f - (uVar2 ^ 0x1f);\n    iVar1 = __gmpf_get_prec(unaff_retaddr);\n    __gmpf_init2(auStack_34,iVar1 + uVar2);\n    __gmpf_set(auStack_34,param_1);\n    while (uVar2 = uVar2 - 1, uVar2 != 0) {\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }\n    __gmpf_clear(auStack_34);\n  }\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00079d30();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 unaff_retaddr;" type_identifier identifier ;) (declaration "undefined1 auStack_34 [16];" type_identifier (array_declarator "auStack_34 [16]" identifier [ number_literal ]) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x22059;" (assignment_expression "uStack_14 = 0x22059" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_24 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_2 < 2) {\n    if (param_2 == 0) {\n      __gmpf_set_ui(unaff_retaddr,1);\n    }\n    else {\n      __gmpf_set(unaff_retaddr,param_1);\n    }\n  }\n  else {\n    uVar2 = 0x1f;\n    if (param_2 != 0) {\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }\n    uVar2 = 0x1f - (uVar2 ^ 0x1f);\n    iVar1 = __gmpf_get_prec(unaff_retaddr);\n    __gmpf_init2(auStack_34,iVar1 + uVar2);\n    __gmpf_set(auStack_34,param_1);\n    while (uVar2 = uVar2 - 1, uVar2 != 0) {\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }\n    __gmpf_clear(auStack_34);\n  }" if (parenthesized_expression "(param_2 < 2)" ( (binary_expression "param_2 < 2" identifier < number_literal) )) (compound_statement "{\n    if (param_2 == 0) {\n      __gmpf_set_ui(unaff_retaddr,1);\n    }\n    else {\n      __gmpf_set(unaff_retaddr,param_1);\n    }\n  }" { (if_statement "if (param_2 == 0) {\n      __gmpf_set_ui(unaff_retaddr,1);\n    }\n    else {\n      __gmpf_set(unaff_retaddr,param_1);\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      __gmpf_set_ui(unaff_retaddr,1);\n    }" { (expression_statement "__gmpf_set_ui(unaff_retaddr,1);" (call_expression "__gmpf_set_ui(unaff_retaddr,1)" identifier (argument_list "(unaff_retaddr,1)" ( identifier , number_literal ))) ;) }) (else_clause "else {\n      __gmpf_set(unaff_retaddr,param_1);\n    }" else (compound_statement "{\n      __gmpf_set(unaff_retaddr,param_1);\n    }" { (expression_statement "__gmpf_set(unaff_retaddr,param_1);" (call_expression "__gmpf_set(unaff_retaddr,param_1)" identifier (argument_list "(unaff_retaddr,param_1)" ( identifier , identifier ))) ;) }))) }) (else_clause "else {\n    uVar2 = 0x1f;\n    if (param_2 != 0) {\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }\n    uVar2 = 0x1f - (uVar2 ^ 0x1f);\n    iVar1 = __gmpf_get_prec(unaff_retaddr);\n    __gmpf_init2(auStack_34,iVar1 + uVar2);\n    __gmpf_set(auStack_34,param_1);\n    while (uVar2 = uVar2 - 1, uVar2 != 0) {\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }\n    __gmpf_clear(auStack_34);\n  }" else (compound_statement "{\n    uVar2 = 0x1f;\n    if (param_2 != 0) {\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }\n    uVar2 = 0x1f - (uVar2 ^ 0x1f);\n    iVar1 = __gmpf_get_prec(unaff_retaddr);\n    __gmpf_init2(auStack_34,iVar1 + uVar2);\n    __gmpf_set(auStack_34,param_1);\n    while (uVar2 = uVar2 - 1, uVar2 != 0) {\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }\n    __gmpf_clear(auStack_34);\n  }" { (expression_statement "uVar2 = 0x1f;" (assignment_expression "uVar2 = 0x1f" identifier = number_literal) ;) (if_statement "if (param_2 != 0) {\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }" { (for_statement "for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }" for ( ; (binary_expression "param_2 >> uVar2 == 0" (binary_expression "param_2 >> uVar2" identifier >> identifier) == number_literal) ; (assignment_expression "uVar2 = uVar2 - 1" identifier = (binary_expression "uVar2 - 1" identifier - number_literal)) ) (compound_statement "{\n      }" { })) })) (expression_statement "uVar2 = 0x1f - (uVar2 ^ 0x1f);" (assignment_expression "uVar2 = 0x1f - (uVar2 ^ 0x1f)" identifier = (binary_expression "0x1f - (uVar2 ^ 0x1f)" number_literal - (parenthesized_expression "(uVar2 ^ 0x1f)" ( (binary_expression "uVar2 ^ 0x1f" identifier ^ number_literal) )))) ;) (expression_statement "iVar1 = __gmpf_get_prec(unaff_retaddr);" (assignment_expression "iVar1 = __gmpf_get_prec(unaff_retaddr)" identifier = (call_expression "__gmpf_get_prec(unaff_retaddr)" identifier (argument_list "(unaff_retaddr)" ( identifier )))) ;) (expression_statement "__gmpf_init2(auStack_34,iVar1 + uVar2);" (call_expression "__gmpf_init2(auStack_34,iVar1 + uVar2)" identifier (argument_list "(auStack_34,iVar1 + uVar2)" ( identifier , (binary_expression "iVar1 + uVar2" identifier + identifier) ))) ;) (expression_statement "__gmpf_set(auStack_34,param_1);" (call_expression "__gmpf_set(auStack_34,param_1)" identifier (argument_list "(auStack_34,param_1)" ( identifier , identifier ))) ;) (while_statement "while (uVar2 = uVar2 - 1, uVar2 != 0) {\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }" while (parenthesized_expression "(uVar2 = uVar2 - 1, uVar2 != 0)" ( (comma_expression "uVar2 = uVar2 - 1, uVar2 != 0" (assignment_expression "uVar2 = uVar2 - 1" identifier = (binary_expression "uVar2 - 1" identifier - number_literal)) , (binary_expression "uVar2 != 0" identifier != number_literal)) )) (compound_statement "{\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }" { (while_statement "while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }" { (expression_statement "__gmpf_mul(auStack_34,auStack_34,auStack_34);" (call_expression "__gmpf_mul(auStack_34,auStack_34,auStack_34)" identifier (argument_list "(auStack_34,auStack_34,auStack_34)" ( identifier , identifier , identifier ))) ;) (if_statement "if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;" if (parenthesized_expression "((param_2 >> (uVar2 & 0x1f) & 1) == 0)" ( (binary_expression "(param_2 >> (uVar2 & 0x1f) & 1) == 0" (parenthesized_expression "(param_2 >> (uVar2 & 0x1f) & 1)" ( (binary_expression "param_2 >> (uVar2 & 0x1f) & 1" (binary_expression "param_2 >> (uVar2 & 0x1f)" identifier >> (parenthesized_expression "(uVar2 & 0x1f)" ( (binary_expression "uVar2 & 0x1f" identifier & number_literal) ))) & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "__gmpf_mul(auStack_34,auStack_34,param_1);" (call_expression "__gmpf_mul(auStack_34,auStack_34,param_1)" identifier (argument_list "(auStack_34,auStack_34,param_1)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar2 = uVar2 - 1;" (assignment_expression "uVar2 = uVar2 - 1" identifier = (binary_expression "uVar2 - 1" identifier - number_literal)) ;) (if_statement "if (uVar2 == 0) goto LAB_000220f6;" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000220f6;" goto statement_identifier ;)) })) })) (labeled_statement "LAB_000220f6:\n    if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }" statement_identifier : (if_statement "if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }" if (parenthesized_expression "((param_2 & 1) == 0)" ( (binary_expression "(param_2 & 1) == 0" (parenthesized_expression "(param_2 & 1)" ( (binary_expression "param_2 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }" { (expression_statement "__gmpf_mul(unaff_retaddr,auStack_34,auStack_34);" (call_expression "__gmpf_mul(unaff_retaddr,auStack_34,auStack_34)" identifier (argument_list "(unaff_retaddr,auStack_34,auStack_34)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }" else (compound_statement "{\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }" { (expression_statement "__gmpf_mul(auStack_34,auStack_34,auStack_34);" (call_expression "__gmpf_mul(auStack_34,auStack_34,auStack_34)" identifier (argument_list "(auStack_34,auStack_34,auStack_34)" ( identifier , identifier , identifier ))) ;) (expression_statement "__gmpf_mul(unaff_retaddr,auStack_34,param_1);" (call_expression "__gmpf_mul(unaff_retaddr,auStack_34,param_1)" identifier (argument_list "(unaff_retaddr,auStack_34,param_1)" ( identifier , identifier , identifier ))) ;) })))) (expression_statement "__gmpf_clear(auStack_34);" (call_expression "__gmpf_clear(auStack_34)" identifier (argument_list "(auStack_34)" ( identifier ))) ;) }))) (if_statement "if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_24 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_24 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00079d30();" (call_expression "FUN_00079d30()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (for_statement for ( ; (binary_expression (binary_expression IDENT >> IDENT) == LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { })) })) (expression_statement (assignment_expression IDENT = (binary_expression LIT - (parenthesized_expression ( (binary_expression IDENT ^ LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT - LIT)) , (binary_expression IDENT != LIT)) )) (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT >> (parenthesized_expression ( (binary_expression IDENT & LIT) ))) & LIT) )) == LIT) )) (break_statement break ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void __gmpf_pow_ui(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  undefined1 auStack_34 [16];\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22059;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 < 2) {\n    if (param_2 == 0) {\n      __gmpf_set_ui(unaff_retaddr,1);\n    }\n    else {\n      __gmpf_set(unaff_retaddr,param_1);\n    }\n  }\n  else {\n    uVar2 = 0x1f;\n    if (param_2 != 0) {\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }\n    uVar2 = 0x1f - (uVar2 ^ 0x1f);\n    iVar1 = __gmpf_get_prec(unaff_retaddr);\n    __gmpf_init2(auStack_34,iVar1 + uVar2);\n    __gmpf_set(auStack_34,param_1);\n    while (uVar2 = uVar2 - 1, uVar2 != 0) {\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }\n    __gmpf_clear(auStack_34);\n  }\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00079d30();\n}" (primitive_type "void") (function_declarator "__gmpf_pow_ui(undefined4 param_1,uint param_2)" (identifier "__gmpf_pow_ui") (parameter_list "(undefined4 param_1,uint param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  undefined1 auStack_34 [16];\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22059;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 < 2) {\n    if (param_2 == 0) {\n      __gmpf_set_ui(unaff_retaddr,1);\n    }\n    else {\n      __gmpf_set(unaff_retaddr,param_1);\n    }\n  }\n  else {\n    uVar2 = 0x1f;\n    if (param_2 != 0) {\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }\n    uVar2 = 0x1f - (uVar2 ^ 0x1f);\n    iVar1 = __gmpf_get_prec(unaff_retaddr);\n    __gmpf_init2(auStack_34,iVar1 + uVar2);\n    __gmpf_set(auStack_34,param_1);\n    while (uVar2 = uVar2 - 1, uVar2 != 0) {\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }\n    __gmpf_clear(auStack_34);\n  }\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00079d30();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 unaff_retaddr;" (type_identifier "undefined4") (identifier "unaff_retaddr") (; ";")) (declaration "undefined1 auStack_34 [16];" (type_identifier "undefined1") (array_declarator "auStack_34 [16]" (identifier "auStack_34") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x22059;" (assignment_expression "uStack_14 = 0x22059" (identifier "uStack_14") (= "=") (number_literal "0x22059")) (; ";")) (expression_statement "entry();" (call_expression "entry()" (identifier "entry") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_24 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_24") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_2 < 2) {\n    if (param_2 == 0) {\n      __gmpf_set_ui(unaff_retaddr,1);\n    }\n    else {\n      __gmpf_set(unaff_retaddr,param_1);\n    }\n  }\n  else {\n    uVar2 = 0x1f;\n    if (param_2 != 0) {\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }\n    uVar2 = 0x1f - (uVar2 ^ 0x1f);\n    iVar1 = __gmpf_get_prec(unaff_retaddr);\n    __gmpf_init2(auStack_34,iVar1 + uVar2);\n    __gmpf_set(auStack_34,param_1);\n    while (uVar2 = uVar2 - 1, uVar2 != 0) {\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }\n    __gmpf_clear(auStack_34);\n  }" (if "if") (parenthesized_expression "(param_2 < 2)" (( "(") (binary_expression "param_2 < 2" (identifier "param_2") (< "<") (number_literal "2")) () ")")) (compound_statement "{\n    if (param_2 == 0) {\n      __gmpf_set_ui(unaff_retaddr,1);\n    }\n    else {\n      __gmpf_set(unaff_retaddr,param_1);\n    }\n  }" ({ "{") (if_statement "if (param_2 == 0) {\n      __gmpf_set_ui(unaff_retaddr,1);\n    }\n    else {\n      __gmpf_set(unaff_retaddr,param_1);\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      __gmpf_set_ui(unaff_retaddr,1);\n    }" ({ "{") (expression_statement "__gmpf_set_ui(unaff_retaddr,1);" (call_expression "__gmpf_set_ui(unaff_retaddr,1)" (identifier "__gmpf_set_ui") (argument_list "(unaff_retaddr,1)" (( "(") (identifier "unaff_retaddr") (, ",") (number_literal "1") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      __gmpf_set(unaff_retaddr,param_1);\n    }" (else "else") (compound_statement "{\n      __gmpf_set(unaff_retaddr,param_1);\n    }" ({ "{") (expression_statement "__gmpf_set(unaff_retaddr,param_1);" (call_expression "__gmpf_set(unaff_retaddr,param_1)" (identifier "__gmpf_set") (argument_list "(unaff_retaddr,param_1)" (( "(") (identifier "unaff_retaddr") (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    uVar2 = 0x1f;\n    if (param_2 != 0) {\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }\n    uVar2 = 0x1f - (uVar2 ^ 0x1f);\n    iVar1 = __gmpf_get_prec(unaff_retaddr);\n    __gmpf_init2(auStack_34,iVar1 + uVar2);\n    __gmpf_set(auStack_34,param_1);\n    while (uVar2 = uVar2 - 1, uVar2 != 0) {\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }\n    __gmpf_clear(auStack_34);\n  }" (else "else") (compound_statement "{\n    uVar2 = 0x1f;\n    if (param_2 != 0) {\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }\n    uVar2 = 0x1f - (uVar2 ^ 0x1f);\n    iVar1 = __gmpf_get_prec(unaff_retaddr);\n    __gmpf_init2(auStack_34,iVar1 + uVar2);\n    __gmpf_set(auStack_34,param_1);\n    while (uVar2 = uVar2 - 1, uVar2 != 0) {\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }\nLAB_000220f6:\n    if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }\n    __gmpf_clear(auStack_34);\n  }" ({ "{") (expression_statement "uVar2 = 0x1f;" (assignment_expression "uVar2 = 0x1f" (identifier "uVar2") (= "=") (number_literal "0x1f")) (; ";")) (if_statement "if (param_2 != 0) {\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }\n    }" ({ "{") (for_statement "for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {\n      }" (for "for") (( "(") (; ";") (binary_expression "param_2 >> uVar2 == 0" (binary_expression "param_2 >> uVar2" (identifier "param_2") (>> ">>") (identifier "uVar2")) (== "==") (number_literal "0")) (; ";") (assignment_expression "uVar2 = uVar2 - 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 - 1" (identifier "uVar2") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n      }" ({ "{") (} "}"))) (} "}"))) (expression_statement "uVar2 = 0x1f - (uVar2 ^ 0x1f);" (assignment_expression "uVar2 = 0x1f - (uVar2 ^ 0x1f)" (identifier "uVar2") (= "=") (binary_expression "0x1f - (uVar2 ^ 0x1f)" (number_literal "0x1f") (- "-") (parenthesized_expression "(uVar2 ^ 0x1f)" (( "(") (binary_expression "uVar2 ^ 0x1f" (identifier "uVar2") (^ "^") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "iVar1 = __gmpf_get_prec(unaff_retaddr);" (assignment_expression "iVar1 = __gmpf_get_prec(unaff_retaddr)" (identifier "iVar1") (= "=") (call_expression "__gmpf_get_prec(unaff_retaddr)" (identifier "__gmpf_get_prec") (argument_list "(unaff_retaddr)" (( "(") (identifier "unaff_retaddr") () ")")))) (; ";")) (expression_statement "__gmpf_init2(auStack_34,iVar1 + uVar2);" (call_expression "__gmpf_init2(auStack_34,iVar1 + uVar2)" (identifier "__gmpf_init2") (argument_list "(auStack_34,iVar1 + uVar2)" (( "(") (identifier "auStack_34") (, ",") (binary_expression "iVar1 + uVar2" (identifier "iVar1") (+ "+") (identifier "uVar2")) () ")"))) (; ";")) (expression_statement "__gmpf_set(auStack_34,param_1);" (call_expression "__gmpf_set(auStack_34,param_1)" (identifier "__gmpf_set") (argument_list "(auStack_34,param_1)" (( "(") (identifier "auStack_34") (, ",") (identifier "param_1") () ")"))) (; ";")) (while_statement "while (uVar2 = uVar2 - 1, uVar2 != 0) {\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }" (while "while") (parenthesized_expression "(uVar2 = uVar2 - 1, uVar2 != 0)" (( "(") (comma_expression "uVar2 = uVar2 - 1, uVar2 != 0" (assignment_expression "uVar2 = uVar2 - 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 - 1" (identifier "uVar2") (- "-") (number_literal "1"))) (, ",") (binary_expression "uVar2 != 0" (identifier "uVar2") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n      while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }\n    }" ({ "{") (while_statement "while( true ) {\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        __gmpf_mul(auStack_34,auStack_34,auStack_34);\n        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;\n        __gmpf_mul(auStack_34,auStack_34,param_1);\n        uVar2 = uVar2 - 1;\n        if (uVar2 == 0) goto LAB_000220f6;\n      }" ({ "{") (expression_statement "__gmpf_mul(auStack_34,auStack_34,auStack_34);" (call_expression "__gmpf_mul(auStack_34,auStack_34,auStack_34)" (identifier "__gmpf_mul") (argument_list "(auStack_34,auStack_34,auStack_34)" (( "(") (identifier "auStack_34") (, ",") (identifier "auStack_34") (, ",") (identifier "auStack_34") () ")"))) (; ";")) (if_statement "if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;" (if "if") (parenthesized_expression "((param_2 >> (uVar2 & 0x1f) & 1) == 0)" (( "(") (binary_expression "(param_2 >> (uVar2 & 0x1f) & 1) == 0" (parenthesized_expression "(param_2 >> (uVar2 & 0x1f) & 1)" (( "(") (binary_expression "param_2 >> (uVar2 & 0x1f) & 1" (binary_expression "param_2 >> (uVar2 & 0x1f)" (identifier "param_2") (>> ">>") (parenthesized_expression "(uVar2 & 0x1f)" (( "(") (binary_expression "uVar2 & 0x1f" (identifier "uVar2") (& "&") (number_literal "0x1f")) () ")"))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "__gmpf_mul(auStack_34,auStack_34,param_1);" (call_expression "__gmpf_mul(auStack_34,auStack_34,param_1)" (identifier "__gmpf_mul") (argument_list "(auStack_34,auStack_34,param_1)" (( "(") (identifier "auStack_34") (, ",") (identifier "auStack_34") (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "uVar2 = uVar2 - 1;" (assignment_expression "uVar2 = uVar2 - 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 - 1" (identifier "uVar2") (- "-") (number_literal "1"))) (; ";")) (if_statement "if (uVar2 == 0) goto LAB_000220f6;" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000220f6;" (goto "goto") (statement_identifier "LAB_000220f6") (; ";"))) (} "}"))) (} "}"))) (labeled_statement "LAB_000220f6:\n    if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }" (statement_identifier "LAB_000220f6") (: ":") (if_statement "if ((param_2 & 1) == 0) {\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }\n    else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }" (if "if") (parenthesized_expression "((param_2 & 1) == 0)" (( "(") (binary_expression "(param_2 & 1) == 0" (parenthesized_expression "(param_2 & 1)" (( "(") (binary_expression "param_2 & 1" (identifier "param_2") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);\n    }" ({ "{") (expression_statement "__gmpf_mul(unaff_retaddr,auStack_34,auStack_34);" (call_expression "__gmpf_mul(unaff_retaddr,auStack_34,auStack_34)" (identifier "__gmpf_mul") (argument_list "(unaff_retaddr,auStack_34,auStack_34)" (( "(") (identifier "unaff_retaddr") (, ",") (identifier "auStack_34") (, ",") (identifier "auStack_34") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }" (else "else") (compound_statement "{\n      __gmpf_mul(auStack_34,auStack_34,auStack_34);\n      __gmpf_mul(unaff_retaddr,auStack_34,param_1);\n    }" ({ "{") (expression_statement "__gmpf_mul(auStack_34,auStack_34,auStack_34);" (call_expression "__gmpf_mul(auStack_34,auStack_34,auStack_34)" (identifier "__gmpf_mul") (argument_list "(auStack_34,auStack_34,auStack_34)" (( "(") (identifier "auStack_34") (, ",") (identifier "auStack_34") (, ",") (identifier "auStack_34") () ")"))) (; ";")) (expression_statement "__gmpf_mul(unaff_retaddr,auStack_34,param_1);" (call_expression "__gmpf_mul(unaff_retaddr,auStack_34,param_1)" (identifier "__gmpf_mul") (argument_list "(unaff_retaddr,auStack_34,param_1)" (( "(") (identifier "unaff_retaddr") (, ",") (identifier "auStack_34") (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))))) (expression_statement "__gmpf_clear(auStack_34);" (call_expression "__gmpf_clear(auStack_34)" (identifier "__gmpf_clear") (argument_list "(auStack_34)" (( "(") (identifier "auStack_34") () ")"))) (; ";")) (} "}")))) (if_statement "if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_24 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_24 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_24") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00079d30();" (call_expression "FUN_00079d30()" (identifier "FUN_00079d30") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void function_1(type_1 r,type_2 b,type_3 var_2)

{
  int var_11;
  type_4 var_8;
  type_5 var_5;
  int var_1;
  type_6 t;
  
  var_11 = *(int *)(var_1 + 0x14);
  if (var_2 < 2) {
    if (var_2 == 0) {
      var_3(r,1);
    }
    else {
      var_4(r,b);
    }
  }
  else {
    var_5 = 0x1f;
    if (var_2 != 0) {
      for (; var_2 >> var_5 == 0; var_5 = var_5 - 1) {
      }
    }
    var_5 = 0x1f - (var_5 ^ 0x1f);
    var_8 = var_6(r);
    var_7(t,var_8 + var_5);
    var_4(t,b);
    while (var_5 = var_5 - 1, var_5 != 0) {
      while( true ) {
        var_9(t,t,t);
        if ((var_2 >> (var_5 & 0x1f) & 1) == 0) break;
        var_9(t,t,b);
        var_5 = var_5 - 1;
        if (var_5 == 0) goto LAB_000220f6;
      }
    }
LAB_000220f6:
    if ((var_2 & 1) == 0) {
      var_9(r,t,t);
    }
    else {
      var_9(t,t,t);
      var_9(r,t,b);
    }
    var_10(t);
  }
  if (var_11 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_12();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (for_statement condition: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal)))) body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))) right: (number_literal))) consequence: (break_statement)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

void MASKED(undefined4 param_1,uint param_2)

{
  int iVar1;
  uint uVar2;
  int in_GS_OFFSET;
  undefined4 unaff_retaddr;
  undefined1 auStack_34 [16];
  int local_24;
  undefined4 uStack_14;
  
  uStack_14 = 0x22059;
  entry();
  local_24 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_2 < 2) {
    if (param_2 == 0) {
      __gmpf_set_ui(unaff_retaddr,1);
    }
    else {
      __gmpf_set(unaff_retaddr,param_1);
    }
  }
  else {
    uVar2 = 0x1f;
    if (param_2 != 0) {
      for (; param_2 >> uVar2 == 0; uVar2 = uVar2 - 1) {
      }
    }
    uVar2 = 0x1f - (uVar2 ^ 0x1f);
    iVar1 = __gmpf_get_prec(unaff_retaddr);
    __gmpf_init2(auStack_34,iVar1 + uVar2);
    __gmpf_set(auStack_34,param_1);
    while (uVar2 = uVar2 - 1, uVar2 != 0) {
      while( true ) {
        __gmpf_mul(auStack_34,auStack_34,auStack_34);
        if ((param_2 >> (uVar2 & 0x1f) & 1) == 0) break;
        __gmpf_mul(auStack_34,auStack_34,param_1);
        uVar2 = uVar2 - 1;
        if (uVar2 == 0) goto LAB_000220f6;
      }
    }
LAB_000220f6:
    if ((param_2 & 1) == 0) {
      __gmpf_mul(unaff_retaddr,auStack_34,auStack_34);
    }
    else {
      __gmpf_mul(auStack_34,auStack_34,auStack_34);
      __gmpf_mul(unaff_retaddr,auStack_34,param_1);
    }
    __gmpf_clear(auStack_34);
  }
  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00079d30();
}

