{"type": "func", "start": 4375772, "end": 4375876, "name": "ArtistCell::onNewgrounds", "pseudocode": "// \n// ArtistCell::onNewgrounds from 0x42c4dc to 0x42c544 (104 bytes)\n// \n// 0 xrefs:\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:48:10 +0000\n// \n\ncocos2d::CCApplication *__fastcall ArtistCell::onNewgrounds(\n        cocos2d::CCApplication *this,\n        cocos2d::CCObject *a2,\n        char *a3,\n        int a4)\n{\n  cocos2d::CCApplication *v4; // r7\n  int *v5; // r6\n  void (__fastcall *v6)(int *, char *); // r8\n  char *v7; // r1\n  _DWORD v8[2]; // [sp+0h] [bp-10h] BYREF\n  char *v9; // [sp+8h] [bp-8h]\n  int v10; // [sp+Ch] [bp-4h]\n\n  v8[0] = this;\n  v8[1] = a2;\n  v9 = a3;\n  v10 = a4;\n  v4 = this;\n  if ( *((_DWORD *)this + 105) )\n  {\n    v5 = (int *)cocos2d::CCApplication::sharedApplication(this);\n    v6 = *(void (__fastcall **)(int *, char *))(*v5 + 52);\n    sub_42C208(v8, *((_DWORD *)v4 + 105), 2, *v5);\n    if ( (v8[0] & 1) != 0 )\n      v7 = v9;\n    else\n      v7 = (char *)v8 + 1;\n    v6(v5, v7);\n    return (cocos2d::CCApplication *)std::string::~string((int)v8);\n  }\n  return this;\n}", "assembly": "; \n; ArtistCell::onNewgrounds from 0x42c4dc to 0x42c544 (104 bytes)\n; \n; 0 xrefs:\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:48:10 +0000\n; \nPUSH.W          {R0-R8,LR}                                             ; +0x0, 0x42c4dc\nMOV             R7, R0                                                 ; +0x4, 0x42c4e0\nLDR             R3, =(__stack_chk_guard_ptr - 0x42C4E8)                ; +0x6, 0x42c4e2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x8, 0x42c4e4\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xa, 0x42c4e6\nLDR             R2, [R3]                                               ; +0xc, 0x42c4e8\nMOV             R4, R3                                                 ; +0xe, 0x42c4ea\nSTR             R2, [SP,#0x10+var_4]                                   ; +0x10, 0x42c4ec\nLDR.W           R2, [R0,#0x1A4]                                        ; +0x12, 0x42c4ee\nCBZ             R2, loc_42C532                                         ; +0x16, 0x42c4f2\nBL              _ZN7cocos2d13CCApplication17sharedApplicationEv; cocos2d::CCApplication::sharedApplication(void) ; +0x18, 0x42c4f4\nLDR.W           R1, [R7,#0x1A4]                                        ; +0x1c, 0x42c4f8\nMOVS            R2, #2                                                 ; +0x20, 0x42c4fc\nMOV             R5, SP                                                 ; +0x22, 0x42c4fe\nLDR             R3, [R0]                                               ; +0x24, 0x42c500\nMOV             R6, R0                                                 ; +0x26, 0x42c502\nMOV             R0, SP                                                 ; +0x28, 0x42c504\nLDR.W           R8, [R3,#0x34]                                         ; +0x2a, 0x42c506\nBL              sub_42C208                                             ; +0x2e, 0x42c50a\nLDRB.W          R3, [SP,#0x10+var_10]                                  ; +0x32, 0x42c50e\nMOV             R0, R6                                                 ; +0x36, 0x42c512\nLSLS            R3, R3, #0x1F                                          ; +0x38, 0x42c514\nITE PL                                                                 ; +0x3a, 0x42c516\nADDPL.W         R1, SP, #0x10+var_F                                    ; +0x3c, 0x42c518\nLDRMI           R1, [SP,#0x10+var_8]                                   ; +0x40, 0x42c51c\nBLX             R8                                                     ; +0x42, 0x42c51e\nMOV             R0, SP                                                 ; +0x44, 0x42c520\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x46, 0x42c522\nB               loc_42C532                                             ; +0x4a, 0x42c526\nMOV             R0, R5                                                 ; +0x4c, 0x42c528\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x4e, 0x42c52a\nBL              __cxa_end_cleanup                                      ; +0x52, 0x42c52e\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x56, 0x42c532\nLDR             R3, [R4]                                               ; +0x58, 0x42c534\nCMP             R2, R3                                                 ; +0x5a, 0x42c536\nBEQ             loc_42C53E                                             ; +0x5c, 0x42c538\nBLX             __stack_chk_fail                                       ; +0x5e, 0x42c53a\nADD             SP, SP, #0x10                                          ; +0x62, 0x42c53e\nPOP.W           {R4-R8,PC}                                             ; +0x64, 0x42c540", "xrefs": [], "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"}