{"type": "func", "start": 9281204, "end": 9281392, "name": "GJDifficultySprite::create", "pseudocode": "// \n// GJDifficultySprite::create from 0x8d9eb4 to 0x8d9f70 (188 bytes)\n// \n// 6 xrefs:\n// > LevelCell::loadCustomLevelCell @ 0x610530\n// > LevelInfoLayer::setupLevelInfo @ 0x6dac54\n// > GJRateLevelLayer::init @ 0x822e78\n// > RateStarsLayer::init @ 0x824e3c\n// > StarInfoPopup::init @ 0x900724\n// > <???> @ 0xc00f0\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  __int64 v4; // x19\n\n  v4 = operator new(0x258u);\n  cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v4);\n  *(_DWORD *)(v4 + 596) = 0;\n  *(_QWORD *)v4 = &off_1193FD0;\n  *(_QWORD *)(v4 + 320) = &off_11944A8;\n  *(_QWORD *)(v4 + 344) = &off_1194528;\n  if ( GJDifficultySprite::init((GJDifficultySprite *)v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);\n    return (GJDifficultySprite *)v4;\n  }\n  else\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 16LL))(v4);\n    return nullptr;\n  }\n}", "assembly": "; \n; GJDifficultySprite::create from 0x8d9eb4 to 0x8d9f70 (188 bytes)\n; \n; 6 xrefs:\n; > LevelCell::loadCustomLevelCell @ 0x610530\n; > LevelInfoLayer::setupLevelInfo @ 0x6dac54\n; > GJRateLevelLayer::init @ 0x822e78\n; > RateStarsLayer::init @ 0x824e3c\n; > StarInfoPopup::init @ 0x900724\n; > <???> @ 0xc00f0\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             X29, X30, [SP,#var_30]!                                ; +0x0, 0x8d9eb4\nMOV             X29, SP                                                ; +0x4, 0x8d9eb8\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x8, 0x8d9ebc\nMOV             W21, W0                                                ; +0xc, 0x8d9ec0\nMOV             X0, #0x258; unsigned __int64                           ; +0x10, 0x8d9ec4\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x14, 0x8d9ec8\nMOV             W20, W1                                                ; +0x18, 0x8d9ecc\nBL              _Znwm; operator new(ulong)                             ; +0x1c, 0x8d9ed0\nMOV             X19, X0                                                ; +0x20, 0x8d9ed4\nBL              _ZN7cocos2d8CCSpriteC2Ev; cocos2d::CCSprite::CCSprite(void) ; +0x24, 0x8d9ed8\nADRP            X3, #_ZTV18GJDifficultySprite_ptr@PAGE                 ; +0x28, 0x8d9edc\nMOV             X0, X19                                                ; +0x2c, 0x8d9ee0\nMOV             W1, W21                                                ; +0x30, 0x8d9ee4\nMOV             W2, W20                                                ; +0x34, 0x8d9ee8\nLDR             X3, [X3,#_ZTV18GJDifficultySprite_ptr@PAGEOFF]; `vtable for'GJDifficultySprite ... ; +0x38, 0x8d9eec\nSTR             WZR, [X19,#0x254]                                      ; +0x3c, 0x8d9ef0\nADD             X5, X3, #0x10                                          ; +0x40, 0x8d9ef4\nADD             X4, X3, #0x4E8                                         ; +0x44, 0x8d9ef8\nSTR             X5, [X19]                                              ; +0x48, 0x8d9efc\nADD             X3, X3, #0x568                                         ; +0x4c, 0x8d9f00\nSTR             X4, [X19,#0x140]                                       ; +0x50, 0x8d9f04\nSTR             X3, [X19,#0x158]                                       ; +0x54, 0x8d9f08\nBL              _ZN18GJDifficultySprite4initEi16GJDifficultyName; GJDifficultySprite::init(int,GJDifficultyName) ; +0x58, 0x8d9f0c\nUXTB            W0, W0                                                 ; +0x5c, 0x8d9f10\nCBZ             W0, loc_8D9F34                                         ; +0x60, 0x8d9f14\nMOV             X0, X19; this                                          ; +0x64, 0x8d9f18\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x68, 0x8d9f1c\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x6c, 0x8d9f20\nMOV             X0, X19                                                ; +0x70, 0x8d9f24\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x74, 0x8d9f28\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x78, 0x8d9f2c\nRET                                                                    ; +0x7c, 0x8d9f30\nLDR             X1, [X19]                                              ; +0x80, 0x8d9f34\nMOV             X0, X19                                                ; +0x84, 0x8d9f38\nMOV             X19, #0                                                ; +0x88, 0x8d9f3c\nLDR             X1, [X1,#0x10]                                         ; +0x8c, 0x8d9f40\nBLR             X1                                                     ; +0x90, 0x8d9f44\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x94, 0x8d9f48\nMOV             X0, X19                                                ; +0x98, 0x8d9f4c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x9c, 0x8d9f50\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xa0, 0x8d9f54\nRET                                                                    ; +0xa4, 0x8d9f58\nMOV             X20, X0                                                ; +0xa8, 0x8d9f5c\nMOV             X0, X19; p                                             ; +0xac, 0x8d9f60\nBL              _ZdlPv; operator delete(void *)                        ; +0xb0, 0x8d9f64\nMOV             X0, X20                                                ; +0xb4, 0x8d9f68\nBL              _Unwind_Resume                                         ; +0xb8, 0x8d9f6c", "xrefs": ["LevelCell::loadCustomLevelCell @ 0x610530", "LevelInfoLayer::setupLevelInfo @ 0x6dac54", "GJRateLevelLayer::init @ 0x822e78", "RateStarsLayer::init @ 0x824e3c", "StarInfoPopup::init @ 0x900724", "<???> @ 0xc00f0"], "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"}