{"type": "func", "start": 4302062176, "end": 4302062229, "name": "CCSpriteGrayscale::createWithSpriteFrameName", "pseudocode": "// \n// CCSpriteGrayscale::createWithSpriteFrameName from 0x1006c4260 to 0x1006c4295 (53 bytes)\n// \n// 11 xrefs:\n// > RewardUnlockLayer::init @ 0x1001ffa02\n// > LevelAreaInnerLayer::init @ 0x100266ecc\n// > CreatorLayer::init @ 0x10028287a\n// > GJPathPage::init @ 0x1002e9f8b\n// > GJPathPage::init @ 0x1002ea69c\n// > GJPathSprite::changeToLockedArt @ 0x1002ec735\n// > LevelListLayer::updateStatsArt @ 0x10034a25d\n// > GauntletSprite::addLockedSprite @ 0x10037fe3b\n// > SecretLayer5::init @ 0x10046f14b\n// > sub_1004E8E80 @ 0x1004e8f2f\n// > ProfilePage::loadPageFromUserInfo @ 0x1008a0f8c\n// \n// This function is hookable on this platform (idp: pc, 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 12:35:33 +0000\n// \n\n__int64 (__fastcall ***__fastcall CCSpriteGrayscale::createWithSpriteFrameName(__int64 a1))()\n{\n  __int64 v1; // rax\n  const char *v2; // rbx\n  __int64 v3; // rax\n\n  v1 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n  if ( (*(_BYTE *)a1 & 1) != 0 )\n    v2 = *(const char **)(a1 + 16);\n  else\n    v2 = (const char *)(a1 + 1);\n  v3 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v1, v2);\n  return CCSpriteGrayscale::createWithSpriteFrame(v3);\n}", "assembly": "; \n; CCSpriteGrayscale::createWithSpriteFrameName from 0x1006c4260 to 0x1006c4295 (53 bytes)\n; \n; 11 xrefs:\n; > RewardUnlockLayer::init @ 0x1001ffa02\n; > LevelAreaInnerLayer::init @ 0x100266ecc\n; > CreatorLayer::init @ 0x10028287a\n; > GJPathPage::init @ 0x1002e9f8b\n; > GJPathPage::init @ 0x1002ea69c\n; > GJPathSprite::changeToLockedArt @ 0x1002ec735\n; > LevelListLayer::updateStatsArt @ 0x10034a25d\n; > GauntletSprite::addLockedSprite @ 0x10037fe3b\n; > SecretLayer5::init @ 0x10046f14b\n; > sub_1004E8E80 @ 0x1004e8f2f\n; > ProfilePage::loadPageFromUserInfo @ 0x1008a0f8c\n; \n; This function is hookable on this platform (idp: pc, 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 12:35:33 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006c4260\nmov     rbp, rsp                                                       ; +0x1, 0x1006c4261\npush    rbx                                                            ; +0x4, 0x1006c4264\npush    rax                                                            ; +0x5, 0x1006c4265\nmov     rbx, rdi                                                       ; +0x6, 0x1006c4266\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0x9, 0x1006c4269\ntest    byte ptr [rbx], 1                                              ; +0xe, 0x1006c426e\njz      short loc_1006C4279                                            ; +0x11, 0x1006c4271\nmov     rbx, [rbx+10h]                                                 ; +0x13, 0x1006c4273\njmp     short loc_1006C427C                                            ; +0x17, 0x1006c4277\ninc     rbx                                                            ; +0x19, 0x1006c4279\nmov     rdi, rax                                                       ; +0x1c, 0x1006c427c\nmov     rsi, rbx                                                       ; +0x1f, 0x1006c427f\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x22, 0x1006c4282\nmov     rdi, rax                                                       ; +0x27, 0x1006c4287\nadd     rsp, 8                                                         ; +0x2a, 0x1006c428a\npop     rbx                                                            ; +0x2e, 0x1006c428e\npop     rbp                                                            ; +0x2f, 0x1006c428f\njmp     CCSpriteGrayscale__createWithSpriteFrame                       ; +0x30, 0x1006c4290", "xrefs": ["RewardUnlockLayer::init @ 0x1001ffa02", "LevelAreaInnerLayer::init @ 0x100266ecc", "CreatorLayer::init @ 0x10028287a", "GJPathPage::init @ 0x1002e9f8b", "GJPathPage::init @ 0x1002ea69c", "GJPathSprite::changeToLockedArt @ 0x1002ec735", "LevelListLayer::updateStatsArt @ 0x10034a25d", "GauntletSprite::addLockedSprite @ 0x10037fe3b", "SecretLayer5::init @ 0x10046f14b", "sub_1004E8E80 @ 0x1004e8f2f", "ProfilePage::loadPageFromUserInfo @ 0x1008a0f8c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}