{"type": "func", "start": 4298638704, "end": 4298638852, "name": "GJDifficultySprite::create", "pseudocode": "// \n// GJDifficultySprite::create from 0x100380570 to 0x100380604 (148 bytes)\n// \n// 7 xrefs:\n// > sub_10002A788 @ 0x10002addc\n// > RateStarsLayer::init @ 0x100088cd4\n// > LevelCell::loadCustomLevelCell @ 0x100134b0c\n// > StarInfoPopup::init @ 0x10023239c\n// > sub_100245DF0 @ 0x10024614c\n// > sub_10051E954 @ 0x10051ed9c\n// > sub_10052B0F4 @ 0x10052b224\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:03:30 +0000\n// \n\n_QWORD *__fastcall GJDifficultySprite::create(__int64 a1, __int64 a2)\n{\n  _QWORD *v4; // x19\n\n  v4 = operator new(0x258u);\n  cocos2d::CCSprite::CCSprite((__int64)v4);\n  *v4 = &off_10093C940;\n  v4[40] = off_10093CE28;\n  v4[43] = off_10093CEA8;\n  *((_DWORD *)v4 + 149) = 0;\n  if ( (unsigned int)sub_100380618(v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease((__int64)v4);\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD *))(*v4 + 16LL))(v4);\n    return nullptr;\n  }\n  return v4;\n}", "assembly": "; \n; GJDifficultySprite::create from 0x100380570 to 0x100380604 (148 bytes)\n; \n; 7 xrefs:\n; > sub_10002A788 @ 0x10002addc\n; > RateStarsLayer::init @ 0x100088cd4\n; > LevelCell::loadCustomLevelCell @ 0x100134b0c\n; > StarInfoPopup::init @ 0x10023239c\n; > sub_100245DF0 @ 0x10024614c\n; > sub_10051E954 @ 0x10051ed9c\n; > sub_10052B0F4 @ 0x10052b224\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:03:30 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100380570\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100380574\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100380578\nADD             X29, SP, #0x20                                         ; +0xc, 0x10038057c\nMOV             X20, X1                                                ; +0x10, 0x100380580\nMOV             X21, X0                                                ; +0x14, 0x100380584\nMOV             W0, #0x258; __sz                                       ; +0x18, 0x100380588\nBL              __Znwm; operator new(ulong)                            ; +0x1c, 0x10038058c\nMOV             X19, X0                                                ; +0x20, 0x100380590\nBL              cocos2d__CCSprite__CCSprite                            ; +0x24, 0x100380594\nADRL            X8, unk_10093C930                                      ; +0x28, 0x100380598\nADD             X9, X8, #(off_10093C940 - 0x10093C930)                 ; +0x30, 0x1003805a0\nSTR             X9, [X19]                                              ; +0x34, 0x1003805a4\nADD             X9, X8, #(off_10093CE28 - 0x10093C930)                 ; +0x38, 0x1003805a8\nSTR             X9, [X19,#0x140]                                       ; +0x3c, 0x1003805ac\nADD             X8, X8, #(off_10093CEA8 - 0x10093C930)                 ; +0x40, 0x1003805b0\nSTR             X8, [X19,#0x158]                                       ; +0x44, 0x1003805b4\nSTR             WZR, [X19,#0x254]                                      ; +0x48, 0x1003805b8\nMOV             X0, X19                                                ; +0x4c, 0x1003805bc\nMOV             X1, X21                                                ; +0x50, 0x1003805c0\nMOV             X2, X20                                                ; +0x54, 0x1003805c4\nBL              sub_100380618                                          ; +0x58, 0x1003805c8\nCBZ             W0, loc_1003805DC                                      ; +0x5c, 0x1003805cc\nMOV             X0, X19                                                ; +0x60, 0x1003805d0\nBL              cocos2d__CCObject__autorelease                         ; +0x64, 0x1003805d4\nB               loc_1003805F0                                          ; +0x68, 0x1003805d8\nLDR             X8, [X19]                                              ; +0x6c, 0x1003805dc\nLDR             X8, [X8,#0x10]                                         ; +0x70, 0x1003805e0\nMOV             X0, X19                                                ; +0x74, 0x1003805e4\nBLR             X8                                                     ; +0x78, 0x1003805e8\nMOV             X19, #0                                                ; +0x7c, 0x1003805ec\nMOV             X0, X19                                                ; +0x80, 0x1003805f0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x84, 0x1003805f4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x88, 0x1003805f8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x8c, 0x1003805fc\nRET                                                                    ; +0x90, 0x100380600", "xrefs": ["sub_10002A788 @ 0x10002addc", "RateStarsLayer::init @ 0x100088cd4", "LevelCell::loadCustomLevelCell @ 0x100134b0c", "StarInfoPopup::init @ 0x10023239c", "sub_100245DF0 @ 0x10024614c", "sub_10051E954 @ 0x10051ed9c", "sub_10052B0F4 @ 0x10052b224"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}