{"type": "func", "start": 4285548, "end": 4285734, "name": "CCURLObject::create", "pseudocode": "// \n// CCURLObject::create from 0x41646c to 0x416526 (186 bytes)\n// \n// 25 xrefs:\n// > SupportLayer::onSFX @ 0x5396ea\n// > SupportLayer::onSFX @ 0x53973a\n// > SupportLayer::onSFX @ 0x539786\n// > SupportLayer::onSFX @ 0x5397d2\n// > SupportLayer::onSFX @ 0x53981e\n// > SupportLayer::onSFX @ 0x53986a\n// > SupportLayer::onLinks @ 0x539d1e\n// > SupportLayer::onLinks @ 0x539d60\n// > SupportLayer::onLinks @ 0x539da0\n// > SupportLayer::onLinks @ 0x539de0\n// > SupportLayer::onLinks @ 0x539e20\n// > SupportLayer::onLinks @ 0x539e60\n// > SupportLayer::onLinks @ 0x539ea0\n// > SupportLayer::onLinks @ 0x539ee0\n// > SupportLayer::onLinks @ 0x539f20\n// > SupportLayer::onLinks @ 0x539f60\n// > SupportLayer::onLinks @ 0x539fa2\n// > MusicDownloadManager::parseSFXLibrary @ 0x571fe8\n// > MusicDownloadManager::parseSFXLibrary @ 0x5722e8\n// > LevelAreaInnerLayer::onInfo @ 0x6a40fa\n// > LevelAreaInnerLayer::onInfo @ 0x6a414a\n// > LevelAreaInnerLayer::onInfo @ 0x6a4196\n// > LevelAreaInnerLayer::onInfo @ 0x6a41e2\n// > LevelAreaInnerLayer::onInfo @ 0x6a422e\n// > LevelAreaInnerLayer::onInfo @ 0x6a427a\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:47:41 +0000\n// \n\nint *__fastcall CCURLObject::create(int a1, int a2)\n{\n  int *v4; // r4\n  int v5; // r8\n  int v6; // r3\n  int *v7; // r0\n  int v9[3]; // [sp+4h] [bp-1Ch] BYREF\n  int v10[3]; // [sp+10h] [bp-10h] BYREF\n\n  v4 = (int *)operator new(0x4Cu);\n  memset(v4, 0, 0x4Cu);\n  cocos2d::CCObject::CCObject((cocos2d::CCObject *)v4);\n  *v4 = (int)&off_C8E370;\n  v4[13] = 0;\n  v4[14] = 0;\n  v4[15] = 0;\n  v4[16] = 0;\n  v4[17] = 0;\n  v4[18] = 0;\n  std::string::basic_string(v9, a1);\n  std::string::basic_string(v10, a2);\n  v5 = CCURLObject::init((int)v4, (unsigned __int8 *)v9, (unsigned __int8 *)v10);\n  std::string::~string((int)v10);\n  std::string::~string((int)v9);\n  if ( v5 )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);\n  }\n  else\n  {\n    v6 = *v4;\n    v7 = v4;\n    v4 = nullptr;\n    (*(void (__fastcall **)(int *))(v6 + 8))(v7);\n  }\n  return v4;\n}", "assembly": "; \n; CCURLObject::create from 0x41646c to 0x416526 (186 bytes)\n; \n; 25 xrefs:\n; > SupportLayer::onSFX @ 0x5396ea\n; > SupportLayer::onSFX @ 0x53973a\n; > SupportLayer::onSFX @ 0x539786\n; > SupportLayer::onSFX @ 0x5397d2\n; > SupportLayer::onSFX @ 0x53981e\n; > SupportLayer::onSFX @ 0x53986a\n; > SupportLayer::onLinks @ 0x539d1e\n; > SupportLayer::onLinks @ 0x539d60\n; > SupportLayer::onLinks @ 0x539da0\n; > SupportLayer::onLinks @ 0x539de0\n; > SupportLayer::onLinks @ 0x539e20\n; > SupportLayer::onLinks @ 0x539e60\n; > SupportLayer::onLinks @ 0x539ea0\n; > SupportLayer::onLinks @ 0x539ee0\n; > SupportLayer::onLinks @ 0x539f20\n; > SupportLayer::onLinks @ 0x539f60\n; > SupportLayer::onLinks @ 0x539fa2\n; > MusicDownloadManager::parseSFXLibrary @ 0x571fe8\n; > MusicDownloadManager::parseSFXLibrary @ 0x5722e8\n; > LevelAreaInnerLayer::onInfo @ 0x6a40fa\n; > LevelAreaInnerLayer::onInfo @ 0x6a414a\n; > LevelAreaInnerLayer::onInfo @ 0x6a4196\n; > LevelAreaInnerLayer::onInfo @ 0x6a41e2\n; > LevelAreaInnerLayer::onInfo @ 0x6a422e\n; > LevelAreaInnerLayer::onInfo @ 0x6a427a\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:47:41 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x41646c\nSUB             SP, SP, #0x20                                          ; +0x4, 0x416470\nLDR             R5, =(__stack_chk_guard_ptr - 0x41647E)                ; +0x6, 0x416472\nMOV             R7, R0                                                 ; +0x8, 0x416474\nMOVS            R0, #0x4C ; 'L'; unsigned int                          ; +0xa, 0x416476\nMOV             R8, R1                                                 ; +0xc, 0x416478\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x41647a\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x41647c\nLDR             R3, [R5]                                               ; +0x12, 0x41647e\nSTR             R3, [SP,#0x20+var_4]                                   ; +0x14, 0x416480\nBL              _Znwj; operator new(uint)                              ; +0x16, 0x416482\nMOVS            R1, #0; int                                            ; +0x1a, 0x416486\nMOVS            R2, #0x4C ; 'L'; size_t                                ; +0x1c, 0x416488\nMOV             R4, R0                                                 ; +0x1e, 0x41648a\nBLX             memset                                                 ; +0x20, 0x41648c\nMOV             R0, R4; this                                           ; +0x24, 0x416490\nBL              _ZN7cocos2d8CCObjectC2Ev; cocos2d::CCObject::CCObject(void) ; +0x26, 0x416492\nLDR             R3, =(_ZTV11CCURLObject_ptr - 0x4164A0)                ; +0x2a, 0x416496\nADD             R6, SP, #0x20+var_1C                                   ; +0x2c, 0x416498\nMOV             R1, R7                                                 ; +0x2e, 0x41649a\nADD             R3, PC; _ZTV11CCURLObject_ptr                          ; +0x30, 0x41649c\nLDR             R3, [R3]; `vtable for'CCURLObject ...                  ; +0x32, 0x41649e\nMOV             R0, R6                                                 ; +0x34, 0x4164a0\nADDS            R3, #8                                                 ; +0x36, 0x4164a2\nSTR             R3, [R4]                                               ; +0x38, 0x4164a4\nMOVS            R3, #0                                                 ; +0x3a, 0x4164a6\nSTR             R3, [R4,#0x34]                                         ; +0x3c, 0x4164a8\nSTR             R3, [R4,#0x38]                                         ; +0x3e, 0x4164aa\nSTR             R3, [R4,#0x3C]                                         ; +0x40, 0x4164ac\nSTR             R3, [R4,#0x40]                                         ; +0x42, 0x4164ae\nSTR             R3, [R4,#0x44]                                         ; +0x44, 0x4164b0\nSTR             R3, [R4,#0x48]                                         ; +0x46, 0x4164b2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x48, 0x4164b4\nADD             R7, SP, #0x20+var_10                                   ; +0x4c, 0x4164b8\nMOV             R1, R8                                                 ; +0x4e, 0x4164ba\nMOV             R0, R7                                                 ; +0x50, 0x4164bc\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x52, 0x4164be\nB               loc_4164C6                                             ; +0x56, 0x4164c2\nB               loc_416516                                             ; +0x58, 0x4164c4\nMOV             R0, R4                                                 ; +0x5a, 0x4164c6\nMOV             R1, R6                                                 ; +0x5c, 0x4164c8\nMOV             R2, R7                                                 ; +0x5e, 0x4164ca\nBL              _ZN11CCURLObject4initENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES6_; CCURLObject::init(std::string,std::string) ; +0x60, 0x4164cc\nMOV             R8, R0                                                 ; +0x64, 0x4164d0\nMOV             R0, R7                                                 ; +0x66, 0x4164d2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x68, 0x4164d4\nMOV             R0, R6                                                 ; +0x6c, 0x4164d8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x6e, 0x4164da\nCMP.W           R8, #0                                                 ; +0x72, 0x4164de\nBEQ             loc_4164F4                                             ; +0x76, 0x4164e2\nMOV             R0, R4; this                                           ; +0x78, 0x4164e4\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x7a, 0x4164e6\nB               loc_4164FE                                             ; +0x7e, 0x4164ea\nMOV             R0, R7                                                 ; +0x80, 0x4164ec\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x82, 0x4164ee\nB               loc_416516                                             ; +0x86, 0x4164f2\nLDR             R3, [R4]                                               ; +0x88, 0x4164f4\nMOV             R0, R4                                                 ; +0x8a, 0x4164f6\nMOV             R4, R8                                                 ; +0x8c, 0x4164f8\nLDR             R3, [R3,#8]                                            ; +0x8e, 0x4164fa\nBLX             R3                                                     ; +0x90, 0x4164fc\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x92, 0x4164fe\nMOV             R0, R4                                                 ; +0x94, 0x416500\nLDR             R3, [R5]                                               ; +0x96, 0x416502\nCMP             R2, R3                                                 ; +0x98, 0x416504\nBEQ             loc_416520                                             ; +0x9a, 0x416506\nBLX             __stack_chk_fail                                       ; +0x9c, 0x416508\nMOV             R0, R4; void *                                         ; +0xa0, 0x41650c\nBL              _ZdlPv; operator delete(void *)                        ; +0xa2, 0x41650e\nB               loc_41651C                                             ; +0xa6, 0x416512\nB               loc_41651C                                             ; +0xa8, 0x416514\nMOV             R0, R6                                                 ; +0xaa, 0x416516\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xac, 0x416518\nBL              __cxa_end_cleanup                                      ; +0xb0, 0x41651c\nADD             SP, SP, #0x20 ; ' '                                    ; +0xb4, 0x416520\nPOP.W           {R4-R8,PC}                                             ; +0xb6, 0x416522", "xrefs": ["SupportLayer::onSFX @ 0x5396ea", "SupportLayer::onSFX @ 0x53973a", "SupportLayer::onSFX @ 0x539786", "SupportLayer::onSFX @ 0x5397d2", "SupportLayer::onSFX @ 0x53981e", "SupportLayer::onSFX @ 0x53986a", "SupportLayer::onLinks @ 0x539d1e", "SupportLayer::onLinks @ 0x539d60", "SupportLayer::onLinks @ 0x539da0", "SupportLayer::onLinks @ 0x539de0", "SupportLayer::onLinks @ 0x539e20", "SupportLayer::onLinks @ 0x539e60", "SupportLayer::onLinks @ 0x539ea0", "SupportLayer::onLinks @ 0x539ee0", "SupportLayer::onLinks @ 0x539f20", "SupportLayer::onLinks @ 0x539f60", "SupportLayer::onLinks @ 0x539fa2", "MusicDownloadManager::parseSFXLibrary @ 0x571fe8", "MusicDownloadManager::parseSFXLibrary @ 0x5722e8", "LevelAreaInnerLayer::onInfo @ 0x6a40fa", "LevelAreaInnerLayer::onInfo @ 0x6a414a", "LevelAreaInnerLayer::onInfo @ 0x6a4196", "LevelAreaInnerLayer::onInfo @ 0x6a41e2", "LevelAreaInnerLayer::onInfo @ 0x6a422e", "LevelAreaInnerLayer::onInfo @ 0x6a427a"], "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"}