{"type": "func", "start": 3952708, "end": 3952858, "name": "CCContentLayer::create", "pseudocode": "// \n// CCContentLayer::create from 0x3c5044 to 0x3c50da (150 bytes)\n// \n// 1 xrefs:\n// > CCScrollLayerExt::CCScrollLayerExt @ 0x3c86f6\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:46:33 +0000\n// \n\n_DWORD *__fastcall CCContentLayer::create(int a1, int a2, int a3)\n{\n  _DWORD *v6; // r4\n\n  v6 = (_DWORD *)operator new(0x1B8u);\n  memset(v6, 0, 0x1B8u);\n  cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v6);\n  *v6 = &off_C83B70;\n  v6[66] = &off_C83E04;\n  v6[67] = &off_C83E3C;\n  v6[68] = &off_C83E48;\n  v6[69] = &off_C83E58;\n  v6[70] = &off_C83E6C;\n  v6[79] = &off_C83E84;\n  v6[83] = &off_C83EC4;\n  if ( cocos2d::CCLayerColor::initWithColor(v6, a1, a2, a3) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);\n    return v6;\n  }\n  else\n  {\n    (*(void (__fastcall **)(_DWORD *))(*v6 + 8))(v6);\n    return nullptr;\n  }\n}", "assembly": "; \n; CCContentLayer::create from 0x3c5044 to 0x3c50da (150 bytes)\n; \n; 1 xrefs:\n; > CCScrollLayerExt::CCScrollLayerExt @ 0x3c86f6\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:46:33 +0000\n; \nPUSH            {R3-R7,LR}                                             ; +0x0, 0x3c5044\nMOV             R7, R0                                                 ; +0x2, 0x3c5046\nMOV.W           R0, #0x1B8; unsigned int                               ; +0x4, 0x3c5048\nMOV             R6, R1                                                 ; +0x8, 0x3c504c\nMOV             R5, R2                                                 ; +0xa, 0x3c504e\nBL              _Znwj; operator new(uint)                              ; +0xc, 0x3c5050\nMOVS            R1, #0; int                                            ; +0x10, 0x3c5054\nMOV.W           R2, #0x1B8; size_t                                     ; +0x12, 0x3c5056\nMOV             R4, R0                                                 ; +0x16, 0x3c505a\nBLX             memset                                                 ; +0x18, 0x3c505c\nMOV             R0, R4; this                                           ; +0x1c, 0x3c5060\nBL              _ZN7cocos2d12CCLayerColorC2Ev; cocos2d::CCLayerColor::CCLayerColor(void) ; +0x1e, 0x3c5062\nLDR             R3, =(_ZTV14CCContentLayer_ptr - 0x3C5070)             ; +0x22, 0x3c5066\nMOV             R0, R4                                                 ; +0x24, 0x3c5068\nMOV             R1, R7                                                 ; +0x26, 0x3c506a\nADD             R3, PC; _ZTV14CCContentLayer_ptr                       ; +0x28, 0x3c506c\nLDR             R3, [R3]; `vtable for'CCContentLayer ...               ; +0x2a, 0x3c506e\nADD.W           R2, R3, #8                                             ; +0x2c, 0x3c5070\nSTR             R2, [R4]                                               ; +0x30, 0x3c5074\nADD.W           R2, R3, #0x29C                                         ; +0x32, 0x3c5076\nSTR.W           R2, [R4,#0x108]                                        ; +0x36, 0x3c507a\nADD.W           R2, R3, #0x2D4                                         ; +0x3a, 0x3c507e\nSTR.W           R2, [R4,#0x10C]                                        ; +0x3e, 0x3c5082\nADD.W           R2, R3, #0x2E0                                         ; +0x42, 0x3c5086\nSTR.W           R2, [R4,#0x110]                                        ; +0x46, 0x3c508a\nADD.W           R2, R3, #0x2F0                                         ; +0x4a, 0x3c508e\nSTR.W           R2, [R4,#0x114]                                        ; +0x4e, 0x3c5092\nADD.W           R2, R3, #0x304                                         ; +0x52, 0x3c5096\nSTR.W           R2, [R4,#0x118]                                        ; +0x56, 0x3c509a\nADD.W           R2, R3, #0x31C                                         ; +0x5a, 0x3c509e\nADD.W           R3, R3, #0x35C                                         ; +0x5e, 0x3c50a2\nSTR.W           R2, [R4,#0x13C]                                        ; +0x62, 0x3c50a6\nMOV             R2, R6                                                 ; +0x66, 0x3c50aa\nSTR.W           R3, [R4,#0x14C]                                        ; +0x68, 0x3c50ac\nMOV             R3, R5                                                 ; +0x6c, 0x3c50b0\nBL              _ZN7cocos2d12CCLayerColor13initWithColorERKNS_10_ccColor4BEff; cocos2d::CCLayerColor::initWithColor(cocos2d::_ccColor4B const&,float,float) ; +0x6e, 0x3c50b2\nMOV             R5, R0                                                 ; +0x72, 0x3c50b6\nCBZ             R0, loc_3C50CE                                         ; +0x74, 0x3c50b8\nMOV             R0, R4; this                                           ; +0x76, 0x3c50ba\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x78, 0x3c50bc\nMOV             R0, R4                                                 ; +0x7c, 0x3c50c0\nPOP             {R3-R7,PC}                                             ; +0x7e, 0x3c50c2\nMOV             R0, R4; void *                                         ; +0x80, 0x3c50c4\nBL              _ZdlPv; operator delete(void *)                        ; +0x82, 0x3c50c6\nBL              __cxa_end_cleanup                                      ; +0x86, 0x3c50ca\nLDR             R3, [R4]                                               ; +0x8a, 0x3c50ce\nMOV             R0, R4                                                 ; +0x8c, 0x3c50d0\nLDR             R3, [R3,#8]                                            ; +0x8e, 0x3c50d2\nBLX             R3                                                     ; +0x90, 0x3c50d4\nMOV             R0, R5                                                 ; +0x92, 0x3c50d6\nPOP             {R3-R7,PC}                                             ; +0x94, 0x3c50d8", "xrefs": ["CCScrollLayerExt::CCScrollLayerExt @ 0x3c86f6"], "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"}