{"type": "func", "start": 4298004176, "end": 4298004324, "name": "GJDifficultySprite::create", "pseudocode": "// \n// GJDifficultySprite::create from 0x1002e56d0 to 0x1002e5764 (148 bytes)\n// \n// 5 xrefs:\n// > LevelInfoLayer::setupLevelInfo @ 0x1000273e4\n// > RateStarsLayer::init @ 0x100080520\n// > LevelCell::loadCustomLevelCell @ 0x10010d9b0\n// > StarInfoPopup::init @ 0x10019ddb0\n// > GJRateLevelLayer::init @ 0x1001b105c\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 *__fastcall GJDifficultySprite::create(int a1, GJDifficultyName a2)\n{\n  GJDifficultySprite *v4; // x19\n\n  v4 = (GJDifficultySprite *)operator new(0x258u);\n  cocos2d::CCSprite::CCSprite((__int64)v4);\n  v4->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJDifficultySprite_vtbl *)&off_1007E5048;\n  v4->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_1007E5520;\n  v4->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)off_1007E55A0;\n  v4->m_featureState = 0;\n  if ( GJDifficultySprite::init(v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n  }\n  else\n  {\n    ((void (__fastcall *)(GJDifficultySprite *))v4->~GJDifficultySprite_0)(v4);\n    return nullptr;\n  }\n  return v4;\n}", "assembly": "; \n; GJDifficultySprite::create from 0x1002e56d0 to 0x1002e5764 (148 bytes)\n; \n; 5 xrefs:\n; > LevelInfoLayer::setupLevelInfo @ 0x1000273e4\n; > RateStarsLayer::init @ 0x100080520\n; > LevelCell::loadCustomLevelCell @ 0x10010d9b0\n; > StarInfoPopup::init @ 0x10019ddb0\n; > GJRateLevelLayer::init @ 0x1001b105c\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1002e56d0\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1002e56d4\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1002e56d8\nADD             X29, SP, #0x20                                         ; +0xc, 0x1002e56dc\nMOV             X20, X1                                                ; +0x10, 0x1002e56e0\nMOV             X21, X0                                                ; +0x14, 0x1002e56e4\nMOV             W0, #0x258; __sz                                       ; +0x18, 0x1002e56e8\nBL              __Znwm; operator new(ulong)                            ; +0x1c, 0x1002e56ec\nMOV             X19, X0                                                ; +0x20, 0x1002e56f0\nBL              cocos2d__CCSprite__CCSprite                            ; +0x24, 0x1002e56f4\nADRL            X8, unk_1007E5038                                      ; +0x28, 0x1002e56f8\nADD             X9, X8, #(off_1007E5048 - 0x1007E5038)                 ; +0x30, 0x1002e5700\nSTR             X9, [X19]                                              ; +0x34, 0x1002e5704\nADD             X9, X8, #(off_1007E5520 - 0x1007E5038)                 ; +0x38, 0x1002e5708\nSTR             X9, [X19,#0x140]                                       ; +0x3c, 0x1002e570c\nADD             X8, X8, #(off_1007E55A0 - 0x1007E5038)                 ; +0x40, 0x1002e5710\nSTR             X8, [X19,#0x158]                                       ; +0x44, 0x1002e5714\nSTR             WZR, [X19,#0x254]                                      ; +0x48, 0x1002e5718\nMOV             X0, X19                                                ; +0x4c, 0x1002e571c\nMOV             X1, X21                                                ; +0x50, 0x1002e5720\nMOV             X2, X20                                                ; +0x54, 0x1002e5724\nBL              GJDifficultySprite__init                               ; +0x58, 0x1002e5728\nCBZ             W0, loc_1002E573C                                      ; +0x5c, 0x1002e572c\nMOV             X0, X19                                                ; +0x60, 0x1002e5730\nBL              cocos2d__CCObject__autorelease                         ; +0x64, 0x1002e5734\nB               loc_1002E5750                                          ; +0x68, 0x1002e5738\nLDR             X8, [X19]                                              ; +0x6c, 0x1002e573c\nLDR             X8, [X8,#0x10]                                         ; +0x70, 0x1002e5740\nMOV             X0, X19                                                ; +0x74, 0x1002e5744\nBLR             X8                                                     ; +0x78, 0x1002e5748\nMOV             X19, #0                                                ; +0x7c, 0x1002e574c\nMOV             X0, X19                                                ; +0x80, 0x1002e5750\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x84, 0x1002e5754\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x88, 0x1002e5758\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x8c, 0x1002e575c\nRET                                                                    ; +0x90, 0x1002e5760", "xrefs": ["LevelInfoLayer::setupLevelInfo @ 0x1000273e4", "RateStarsLayer::init @ 0x100080520", "LevelCell::loadCustomLevelCell @ 0x10010d9b0", "StarInfoPopup::init @ 0x10019ddb0", "GJRateLevelLayer::init @ 0x1001b105c"], "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"}