{"type": "func", "start": 4930588, "end": 4930688, "name": "GJDifficultySprite::create", "pseudocode": "// \n// GJDifficultySprite::create from 0x4b3c1c to 0x4b3c80 (100 bytes)\n// \n// 5 xrefs:\n// > LevelCell::loadCustomLevelCell @ 0x332790\n// > LevelInfoLayer::setupLevelInfo @ 0x3b389c\n// > GJRateLevelLayer::init @ 0x45495e\n// > RateStarsLayer::init @ 0x455d86\n// > StarInfoPopup::init @ 0x4c8bac\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\nGJDifficultySprite *GJDifficultySprite::create(int a1, GJDifficultyName a2)\n{\n  GJDifficultySprite *v4; // r4\n  GJDifficultySprite_vtbl *v5; // r3\n  int *v6; // r0\n\n  v4 = (GJDifficultySprite *)operator new(0x200u);\n  cocos2d::CCSprite::CCSprite(v4);\n  v4->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJDifficultySprite_vtbl *)&off_A6B030;\n  v4->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A6B29C;\n  v4->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_A6B2DC;\n  v4->m_featureState = 0;\n  if ( GJDifficultySprite::init(v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n  }\n  else\n  {\n    v5 = v4->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v6 = (int *)v4;\n    v4 = nullptr;\n    v5->~GJDifficultySprite_0((GJDifficultySprite *)v6);\n  }\n  return v4;\n}", "assembly": "; \n; GJDifficultySprite::create from 0x4b3c1c to 0x4b3c80 (100 bytes)\n; \n; 5 xrefs:\n; > LevelCell::loadCustomLevelCell @ 0x332790\n; > LevelInfoLayer::setupLevelInfo @ 0x3b389c\n; > GJRateLevelLayer::init @ 0x45495e\n; > RateStarsLayer::init @ 0x455d86\n; > StarInfoPopup::init @ 0x4c8bac\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            {R4-R6,LR}                                             ; +0x0, 0x4b3c1c\nMOV             R6, R0                                                 ; +0x2, 0x4b3c1e\nMOV.W           R0, #0x200; unsigned int                               ; +0x4, 0x4b3c20\nMOV             R5, R1                                                 ; +0x8, 0x4b3c24\nBL              _Znwj; operator new(uint)                              ; +0xa, 0x4b3c26\nMOV             R4, R0                                                 ; +0xe, 0x4b3c2a\nBL              _ZN7cocos2d8CCSpriteC2Ev; cocos2d::CCSprite::CCSprite(void) ; +0x10, 0x4b3c2c\nLDR             R3, =(_ZTV18GJDifficultySprite_ptr - 0x4B3C3A)         ; +0x14, 0x4b3c30\nMOV             R0, R4                                                 ; +0x16, 0x4b3c32\nMOV             R1, R6                                                 ; +0x18, 0x4b3c34\nADD             R3, PC; _ZTV18GJDifficultySprite_ptr                   ; +0x1a, 0x4b3c36\nLDR             R3, [R3]; `vtable for'GJDifficultySprite ...           ; +0x1c, 0x4b3c38\nADD.W           R2, R3, #8                                             ; +0x1e, 0x4b3c3a\nSTR             R2, [R4]                                               ; +0x22, 0x4b3c3e\nADD.W           R2, R3, #0x274                                         ; +0x24, 0x4b3c40\nADD.W           R3, R3, #0x2B4                                         ; +0x28, 0x4b3c44\nSTR.W           R2, [R4,#0x108]                                        ; +0x2c, 0x4b3c48\nMOV             R2, R5                                                 ; +0x30, 0x4b3c4c\nSTR.W           R3, [R4,#0x118]                                        ; +0x32, 0x4b3c4e\nMOVS            R3, #0                                                 ; +0x36, 0x4b3c52\nSTR.W           R3, [R4,#0x1FC]                                        ; +0x38, 0x4b3c54\nBL              _ZN18GJDifficultySprite4initEi16GJDifficultyName; GJDifficultySprite::init(int,GJDifficultyName) ; +0x3c, 0x4b3c58\nMOV             R5, R0                                                 ; +0x40, 0x4b3c5c\nCBZ             R0, loc_4B3C72                                         ; +0x42, 0x4b3c5e\nMOV             R0, R4; this                                           ; +0x44, 0x4b3c60\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x46, 0x4b3c62\nB               loc_4B3C7C                                             ; +0x4a, 0x4b3c66\nMOV             R0, R4; p                                              ; +0x4c, 0x4b3c68\nBL              _ZdlPv; operator delete(void *)                        ; +0x4e, 0x4b3c6a\nBL              __cxa_end_cleanup                                      ; +0x52, 0x4b3c6e\nLDR             R3, [R4]                                               ; +0x56, 0x4b3c72\nMOV             R0, R4                                                 ; +0x58, 0x4b3c74\nMOV             R4, R5                                                 ; +0x5a, 0x4b3c76\nLDR             R3, [R3,#8]                                            ; +0x5c, 0x4b3c78\nBLX             R3                                                     ; +0x5e, 0x4b3c7a\nMOV             R0, R4                                                 ; +0x60, 0x4b3c7c\nPOP             {R4-R6,PC}                                             ; +0x62, 0x4b3c7e", "xrefs": ["LevelCell::loadCustomLevelCell @ 0x332790", "LevelInfoLayer::setupLevelInfo @ 0x3b389c", "GJRateLevelLayer::init @ 0x45495e", "RateStarsLayer::init @ 0x455d86", "StarInfoPopup::init @ 0x4c8bac"], "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"}