{"type": "func", "start": 7744052, "end": 7744220, "name": "AccountBanPopup::banStateText", "pseudocode": "// \n// AccountBanPopup::banStateText from 0x762a34 to 0x762adc (168 bytes)\n// \n// 1 xrefs:\n// > AccountBanPopup::refreshBanRows @ 0x762b4a\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:59:05 +0000\n// \n\nAccountBanPopup *__fastcall AccountBanPopup::banStateText(AccountBanPopup *this, int a2)\n{\n  AccountBanPopup *v3; // r4\n  size_t v4; // r2\n  const char *v5; // r1\n  int v6; // r0\n  int v7; // r1\n  __int16 *v8; // r2\n  char *v9; // r0\n  cocos2d::CCString *v10; // r0\n  const char *CString; // r0\n  const char *v12; // r5\n  size_t v13; // r0\n\n  v3 = this;\n  if ( a2 >= 0 )\n  {\n    if ( !a2 )\n    {\n      v4 = 0;\n      *(_DWORD *)this = 0;\n      *((_DWORD *)this + 1) = 0;\n      v5 = (const char *)&unk_B6B226;\n      *((_DWORD *)this + 2) = a2;\n      goto LABEL_21;\n    }\n    v6 = a2 / 86400;\n    v7 = a2 / 86400;\n    if ( v6 )\n    {\n      if ( v6 == 1 )\n        v8 = (__int16 *)&unk_B6B226;\n      else\n        v8 = &a1i2r3e45s789g[8];\n      v9 = \"%i day%s left\";\n    }\n    else\n    {\n      v7 = a2 / 3600;\n      if ( !(a2 / 3600) )\n      {\n        if ( a2 <= 119 )\n          v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                       (cocos2d::CCString *)\"%i min left\",\n                                       (const char *)&dword_0 + 1);\n        else\n          v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                       (cocos2d::CCString *)\"%i min left\",\n                                       (const char *)(a2 / 60));\n        goto LABEL_20;\n      }\n      if ( a2 / 3600 == 1 )\n        v8 = (__int16 *)&unk_B6B226;\n      else\n        v8 = &a1i2r3e45s789g[8];\n      v9 = \"%i hour%s left\";\n    }\n    v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v9, (const char *)v7, v8);\nLABEL_20:\n    CString = (const char *)cocos2d::CCString::getCString(v10);\n    *(_DWORD *)v3 = 0;\n    *((_DWORD *)v3 + 1) = 0;\n    *((_DWORD *)v3 + 2) = 0;\n    v12 = CString;\n    v13 = strlen(CString);\n    v5 = v12;\n    v4 = v13;\n    this = v3;\n    goto LABEL_21;\n  }\n  v4 = 9;\n  *(_DWORD *)this = 0;\n  *((_DWORD *)this + 1) = 0;\n  v5 = \"Permanent\";\n  *((_DWORD *)this + 2) = 0;\nLABEL_21:\n  std::string::__init((int *)this, v5, v4);\n  return v3;\n}", "assembly": "; \n; AccountBanPopup::banStateText from 0x762a34 to 0x762adc (168 bytes)\n; \n; 1 xrefs:\n; > AccountBanPopup::refreshBanRows @ 0x762b4a\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:59:05 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x762a34\nSUBS            R5, R1, #0                                             ; +0x2, 0x762a36\nMOV             R4, R0                                                 ; +0x4, 0x762a38\nBGE             loc_762A4C                                             ; +0x6, 0x762a3a\nLDR             R1, =(aPermanent - 0x762A4A); \"Permanent\"              ; +0x8, 0x762a3c\nMOVS            R3, #0                                                 ; +0xa, 0x762a3e\nMOVS            R2, #9                                                 ; +0xc, 0x762a40\nSTR             R3, [R0]                                               ; +0xe, 0x762a42\nSTR             R3, [R0,#4]                                            ; +0x10, 0x762a44\nADD             R1, PC; \"Permanent\"                                    ; +0x12, 0x762a46\nSTR             R3, [R0,#8]                                            ; +0x14, 0x762a48\nB               loc_762AD4                                             ; +0x16, 0x762a4a\nBNE             loc_762A5C                                             ; +0x18, 0x762a4c\nLDR             R1, =(unk_B6B226 - 0x762A5A)                           ; +0x1a, 0x762a4e\nMOV             R2, R5                                                 ; +0x1c, 0x762a50\nSTR             R5, [R0]                                               ; +0x1e, 0x762a52\nSTR             R5, [R0,#4]                                            ; +0x20, 0x762a54\nADD             R1, PC; unk_B6B226                                     ; +0x22, 0x762a56\nSTR             R5, [R0,#8]                                            ; +0x24, 0x762a58\nB               loc_762AD4                                             ; +0x26, 0x762a5a\nLDR             R1, =0x15180                                           ; +0x28, 0x762a5c\nMOV             R0, R5                                                 ; +0x2a, 0x762a5e\nBLX             __aeabi_idiv                                           ; +0x2c, 0x762a60\nMOV             R1, R0                                                 ; +0x30, 0x762a64\nCBZ             R0, loc_762A7C                                         ; +0x32, 0x762a66\nCMP             R0, #1                                                 ; +0x34, 0x762a68\nBEQ             loc_762A72                                             ; +0x36, 0x762a6a\nLDR             R2, =(a1i2r3e45s789g+0x10 - 0x762A72); \"s789g\"         ; +0x38, 0x762a6c\nADD             R2, PC; \"s789g\"                                        ; +0x3a, 0x762a6e\nB               loc_762A76                                             ; +0x3c, 0x762a70\nLDR             R2, =(unk_B6B226 - 0x762A78)                           ; +0x3e, 0x762a72\nADD             R2, PC; unk_B6B226                                     ; +0x40, 0x762a74\nLDR             R0, =(aIDaySLeft - 0x762A7C); \"%i day%s left\"          ; +0x42, 0x762a76\nADD             R0, PC; \"%i day%s left\"                                ; +0x44, 0x762a78\nB               loc_762A9C                                             ; +0x46, 0x762a7a\nMOV.W           R1, #0xE10                                             ; +0x48, 0x762a7c\nMOV             R0, R5                                                 ; +0x4c, 0x762a80\nBLX             __aeabi_idiv                                           ; +0x4e, 0x762a82\nMOV             R1, R0; char *                                         ; +0x52, 0x762a86\nCBZ             R0, loc_762AA2                                         ; +0x54, 0x762a88\nCMP             R0, #1                                                 ; +0x56, 0x762a8a\nBEQ             loc_762A94                                             ; +0x58, 0x762a8c\nLDR             R2, =(a1i2r3e45s789g+0x10 - 0x762A94); \"s789g\"         ; +0x5a, 0x762a8e\nADD             R2, PC; \"s789g\"                                        ; +0x5c, 0x762a90\nB               loc_762A98                                             ; +0x5e, 0x762a92\nLDR             R2, =(unk_B6B226 - 0x762A9A)                           ; +0x60, 0x762a94\nADD             R2, PC; unk_B6B226                                     ; +0x62, 0x762a96\nLDR             R0, =(aIHourSLeft - 0x762A9E); \"%i hour%s left\"        ; +0x64, 0x762a98\nADD             R0, PC; \"%i hour%s left\"                               ; +0x66, 0x762a9a\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x68, 0x762a9c\nB               loc_762ABC                                             ; +0x6c, 0x762aa0\nCMP             R5, #0x77 ; 'w'                                        ; +0x6e, 0x762aa2\nBLE             loc_762AB2                                             ; +0x70, 0x762aa4\nMOVS            R1, #0x3C ; '<'                                        ; +0x72, 0x762aa6\nMOV             R0, R5                                                 ; +0x74, 0x762aa8\nBLX             __aeabi_idiv                                           ; +0x76, 0x762aaa\nMOV             R1, R0                                                 ; +0x7a, 0x762aae\nB               loc_762AB4                                             ; +0x7c, 0x762ab0\nMOVS            R1, #(dword_0+1); char *                               ; +0x7e, 0x762ab2\nLDR             R0, =(aIMinLeft - 0x762ABA); \"%i min left\"             ; +0x80, 0x762ab4\nADD             R0, PC; \"%i min left\"                                  ; +0x82, 0x762ab6\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x84, 0x762ab8\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x88, 0x762abc\nMOVS            R3, #0                                                 ; +0x8c, 0x762ac0\nSTR             R3, [R4]                                               ; +0x8e, 0x762ac2\nSTR             R3, [R4,#4]                                            ; +0x90, 0x762ac4\nSTR             R3, [R4,#8]                                            ; +0x92, 0x762ac6\nMOV             R5, R0                                                 ; +0x94, 0x762ac8\nBLX             strlen                                                 ; +0x96, 0x762aca\nMOV             R1, R5                                                 ; +0x9a, 0x762ace\nMOV             R2, R0                                                 ; +0x9c, 0x762ad0\nMOV             R0, R4                                                 ; +0x9e, 0x762ad2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xa0, 0x762ad4\nMOV             R0, R4                                                 ; +0xa4, 0x762ad8\nPOP             {R3-R5,PC}                                             ; +0xa6, 0x762ada", "xrefs": ["AccountBanPopup::refreshBanRows @ 0x762b4a"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}