{"type": "func", "start": 3279336, "end": 3279516, "name": "CCURLObject::create", "pseudocode": "// \n// CCURLObject::create from 0x3209e8 to 0x320a9c (180 bytes)\n// \n// 23 xrefs:\n// > SupportLayer::onSFX @ 0x42c2a0\n// > SupportLayer::onSFX @ 0x42c2d4\n// > SupportLayer::onSFX @ 0x42c308\n// > SupportLayer::onSFX @ 0x42c33c\n// > SupportLayer::onSFX @ 0x42c370\n// > SupportLayer::onSFX @ 0x42c3a4\n// > SupportLayer::onLinks @ 0x42c4aa\n// > SupportLayer::onLinks @ 0x42c4de\n// > SupportLayer::onLinks @ 0x42c512\n// > SupportLayer::onLinks @ 0x42c546\n// > SupportLayer::onLinks @ 0x42c57a\n// > SupportLayer::onLinks @ 0x42c5ae\n// > SupportLayer::onLinks @ 0x42c5e2\n// > SupportLayer::onLinks @ 0x42c616\n// > SupportLayer::onLinks @ 0x42c64a\n// > SupportLayer::onLinks @ 0x42c67e\n// > MusicDownloadManager::parseSFXLibrary @ 0x45ab3e\n// > LevelAreaInnerLayer::onInfo @ 0x56badc\n// > LevelAreaInnerLayer::onInfo @ 0x56bb10\n// > LevelAreaInnerLayer::onInfo @ 0x56bb44\n// > LevelAreaInnerLayer::onInfo @ 0x56bb78\n// > LevelAreaInnerLayer::onInfo @ 0x56bbac\n// > LevelAreaInnerLayer::onInfo @ 0x56bbe0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\ncocos2d::CCObject *__fastcall CCURLObject::create(int a1, int a2, int a3, int a4)\n{\n  cocos2d::CCObject *v6; // r4\n  int v7; // r6\n  cocos2d::CCObject_vtbl *v8; // r3\n  cocos2d::CCObject *v9; // r0\n  int v11; // [sp+4h] [bp-Ch] BYREF\n  _DWORD v12[2]; // [sp+8h] [bp-8h] BYREF\n\n  v11 = a2;\n  v12[0] = a3;\n  v12[1] = a4;\n  v6 = (cocos2d::CCObject *)operator new(0x3Cu);\n  memset(v6, 0, 0x3Cu);\n  cocos2d::CCObject::CCObject(v6);\n  v6->__vftable = (cocos2d::CCObject_vtbl *)&off_A45E50;\n  v6[1].__vftable = (cocos2d::CCObject_vtbl *)&unk_ACDDA8;\n  v6[1].m_uID = (unsigned int)&unk_ACDDA8;\n  sub_775C20(&v11, a1);\n  sub_775C20(v12, a2);\n  v7 = CCURLObject::init((int)v6, (int)&v11, (int)v12);\n  sub_774008(v12);\n  sub_774008(&v11);\n  if ( v7 )\n  {\n    cocos2d::CCObject::autorelease(v6);\n  }\n  else\n  {\n    v8 = v6->__vftable;\n    v9 = v6;\n    v6 = nullptr;\n    v8->~CCObject_0(v9);\n  }\n  return v6;\n}", "assembly": "; \n; CCURLObject::create from 0x3209e8 to 0x320a9c (180 bytes)\n; \n; 23 xrefs:\n; > SupportLayer::onSFX @ 0x42c2a0\n; > SupportLayer::onSFX @ 0x42c2d4\n; > SupportLayer::onSFX @ 0x42c308\n; > SupportLayer::onSFX @ 0x42c33c\n; > SupportLayer::onSFX @ 0x42c370\n; > SupportLayer::onSFX @ 0x42c3a4\n; > SupportLayer::onLinks @ 0x42c4aa\n; > SupportLayer::onLinks @ 0x42c4de\n; > SupportLayer::onLinks @ 0x42c512\n; > SupportLayer::onLinks @ 0x42c546\n; > SupportLayer::onLinks @ 0x42c57a\n; > SupportLayer::onLinks @ 0x42c5ae\n; > SupportLayer::onLinks @ 0x42c5e2\n; > SupportLayer::onLinks @ 0x42c616\n; > SupportLayer::onLinks @ 0x42c64a\n; > SupportLayer::onLinks @ 0x42c67e\n; > MusicDownloadManager::parseSFXLibrary @ 0x45ab3e\n; > LevelAreaInnerLayer::onInfo @ 0x56badc\n; > LevelAreaInnerLayer::onInfo @ 0x56bb10\n; > LevelAreaInnerLayer::onInfo @ 0x56bb44\n; > LevelAreaInnerLayer::onInfo @ 0x56bb78\n; > LevelAreaInnerLayer::onInfo @ 0x56bbac\n; > LevelAreaInnerLayer::onInfo @ 0x56bbe0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH.W          {R0-R8,LR}                                             ; +0x0, 0x3209e8\nMOV             R7, R0                                                 ; +0x4, 0x3209ec\nLDR             R5, =(__stack_chk_guard_ptr - 0x3209F8)                ; +0x6, 0x3209ee\nMOVS            R0, #0x3C ; '<'; unsigned int                          ; +0x8, 0x3209f0\nMOV             R6, R1                                                 ; +0xa, 0x3209f2\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x3209f4\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x3209f6\nLDR             R3, [R5]                                               ; +0x10, 0x3209f8\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x12, 0x3209fa\nBL              _Znwj; operator new(uint)                              ; +0x14, 0x3209fc\nMOVS            R1, #0; int                                            ; +0x18, 0x320a00\nMOVS            R2, #0x3C ; '<'; size_t                                ; +0x1a, 0x320a02\nMOV             R4, R0                                                 ; +0x1c, 0x320a04\nBLX             memset                                                 ; +0x1e, 0x320a06\nMOV             R0, R4; this                                           ; +0x22, 0x320a0a\nBL              _ZN7cocos2d8CCObjectC2Ev; cocos2d::CCObject::CCObject(void) ; +0x24, 0x320a0c\nLDR             R3, =(_ZTV11CCURLObject_ptr - 0x320A1C)                ; +0x28, 0x320a10\nADD.W           R8, SP, #0x10+var_C                                    ; +0x2a, 0x320a12\nMOV             R1, R7                                                 ; +0x2e, 0x320a16\nADD             R3, PC; _ZTV11CCURLObject_ptr                          ; +0x30, 0x320a18\nLDR             R3, [R3]; `vtable for'CCURLObject ...                  ; +0x32, 0x320a1a\nMOV             R0, R8                                                 ; +0x34, 0x320a1c\nADDS            R3, #8                                                 ; +0x36, 0x320a1e\nSTR             R3, [R4]                                               ; +0x38, 0x320a20\nLDR             R3, =(off_AB5BA0 - 0x320A28)                           ; +0x3a, 0x320a22\nADD             R3, PC; off_AB5BA0                                     ; +0x3c, 0x320a24\nLDR             R3, [R3]; dword_ACDD9C                                 ; +0x3e, 0x320a26\nADDS            R3, #0xC                                               ; +0x40, 0x320a28\nSTR             R3, [R4,#0x34]                                         ; +0x42, 0x320a2a\nSTR             R3, [R4,#0x38]                                         ; +0x44, 0x320a2c\nBL              sub_775C20                                             ; +0x46, 0x320a2e\nADD             R7, SP, #0x10+var_8                                    ; +0x4a, 0x320a32\nMOV             R1, R6                                                 ; +0x4c, 0x320a34\nMOV             R0, R7                                                 ; +0x4e, 0x320a36\nBL              sub_775C20                                             ; +0x50, 0x320a38\nB               loc_320A40                                             ; +0x54, 0x320a3c\nB               loc_320A8C                                             ; +0x56, 0x320a3e\nMOV             R0, R4                                                 ; +0x58, 0x320a40\nMOV             R1, R8                                                 ; +0x5a, 0x320a42\nMOV             R2, R7                                                 ; +0x5c, 0x320a44\nBL              _ZN11CCURLObject4initESsSs; CCURLObject::init(std::string,std::string) ; +0x5e, 0x320a46\nMOV             R6, R0                                                 ; +0x62, 0x320a4a\nMOV             R0, R7                                                 ; +0x64, 0x320a4c\nBL              sub_774008                                             ; +0x66, 0x320a4e\nMOV             R0, R8                                                 ; +0x6a, 0x320a52\nBL              sub_774008                                             ; +0x6c, 0x320a54\nCBZ             R6, loc_320A6A                                         ; +0x70, 0x320a58\nMOV             R0, R4; this                                           ; +0x72, 0x320a5a\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x74, 0x320a5c\nB               loc_320A74                                             ; +0x78, 0x320a60\nMOV             R0, R7                                                 ; +0x7a, 0x320a62\nBL              sub_774008                                             ; +0x7c, 0x320a64\nB               loc_320A8C                                             ; +0x80, 0x320a68\nLDR             R3, [R4]                                               ; +0x82, 0x320a6a\nMOV             R0, R4                                                 ; +0x84, 0x320a6c\nMOV             R4, R6                                                 ; +0x86, 0x320a6e\nLDR             R3, [R3,#8]                                            ; +0x88, 0x320a70\nBLX             R3                                                     ; +0x8a, 0x320a72\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x8c, 0x320a74\nMOV             R0, R4                                                 ; +0x8e, 0x320a76\nLDR             R3, [R5]                                               ; +0x90, 0x320a78\nCMP             R2, R3                                                 ; +0x92, 0x320a7a\nBEQ             loc_320A96                                             ; +0x94, 0x320a7c\nBLX             __stack_chk_fail                                       ; +0x96, 0x320a7e\nMOV             R0, R4; p                                              ; +0x9a, 0x320a82\nBL              _ZdlPv; operator delete(void *)                        ; +0x9c, 0x320a84\nB               loc_320A92                                             ; +0xa0, 0x320a88\nB               loc_320A92                                             ; +0xa2, 0x320a8a\nMOV             R0, R8                                                 ; +0xa4, 0x320a8c\nBL              sub_774008                                             ; +0xa6, 0x320a8e\nBL              __cxa_end_cleanup                                      ; +0xaa, 0x320a92\nADD             SP, SP, #0x10                                          ; +0xae, 0x320a96\nPOP.W           {R4-R8,PC}                                             ; +0xb0, 0x320a98", "xrefs": ["SupportLayer::onSFX @ 0x42c2a0", "SupportLayer::onSFX @ 0x42c2d4", "SupportLayer::onSFX @ 0x42c308", "SupportLayer::onSFX @ 0x42c33c", "SupportLayer::onSFX @ 0x42c370", "SupportLayer::onSFX @ 0x42c3a4", "SupportLayer::onLinks @ 0x42c4aa", "SupportLayer::onLinks @ 0x42c4de", "SupportLayer::onLinks @ 0x42c512", "SupportLayer::onLinks @ 0x42c546", "SupportLayer::onLinks @ 0x42c57a", "SupportLayer::onLinks @ 0x42c5ae", "SupportLayer::onLinks @ 0x42c5e2", "SupportLayer::onLinks @ 0x42c616", "SupportLayer::onLinks @ 0x42c64a", "SupportLayer::onLinks @ 0x42c67e", "MusicDownloadManager::parseSFXLibrary @ 0x45ab3e", "LevelAreaInnerLayer::onInfo @ 0x56badc", "LevelAreaInnerLayer::onInfo @ 0x56bb10", "LevelAreaInnerLayer::onInfo @ 0x56bb44", "LevelAreaInnerLayer::onInfo @ 0x56bb78", "LevelAreaInnerLayer::onInfo @ 0x56bbac", "LevelAreaInnerLayer::onInfo @ 0x56bbe0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}