{"type": "func", "start": 4301192992, "end": 4301193045, "name": "CCSpriteWithHue::createWithSpriteFrameName", "pseudocode": "// \n// CCSpriteWithHue::createWithSpriteFrameName from 0x1005eff20 to 0x1005eff55 (53 bytes)\n// \n// 4 xrefs:\n// > RewardUnlockLayer::init @ 0x10021c372\n// > GJShopLayer::init @ 0x10032354c\n// > GJShopLayer::init @ 0x1003237f6\n// > SecretLayer5::init @ 0x10047a7ae\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\nCCSpriteWithHue *__fastcall CCSpriteWithHue::createWithSpriteFrameName(__int64 a1)\n{\n  cocos2d::CCSpriteFrameCache *v1; // rax\n  const char *v2; // rbx\n  cocos2d::CCSpriteFrame *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 CCSpriteWithHue::createWithSpriteFrame(v3);\n}", "assembly": "; \n; CCSpriteWithHue::createWithSpriteFrameName from 0x1005eff20 to 0x1005eff55 (53 bytes)\n; \n; 4 xrefs:\n; > RewardUnlockLayer::init @ 0x10021c372\n; > GJShopLayer::init @ 0x10032354c\n; > GJShopLayer::init @ 0x1003237f6\n; > SecretLayer5::init @ 0x10047a7ae\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    rbp                                                            ; +0x0, 0x1005eff20\nmov     rbp, rsp                                                       ; +0x1, 0x1005eff21\npush    rbx                                                            ; +0x4, 0x1005eff24\npush    rax                                                            ; +0x5, 0x1005eff25\nmov     rbx, rdi                                                       ; +0x6, 0x1005eff26\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0x9, 0x1005eff29\ntest    byte ptr [rbx], 1                                              ; +0xe, 0x1005eff2e\njz      short loc_1005EFF39                                            ; +0x11, 0x1005eff31\nmov     rbx, [rbx+10h]                                                 ; +0x13, 0x1005eff33\njmp     short loc_1005EFF3C                                            ; +0x17, 0x1005eff37\ninc     rbx                                                            ; +0x19, 0x1005eff39\nmov     rdi, rax                                                       ; +0x1c, 0x1005eff3c\nmov     rsi, rbx                                                       ; +0x1f, 0x1005eff3f\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x22, 0x1005eff42\nmov     rdi, rax                                                       ; +0x27, 0x1005eff47\nadd     rsp, 8                                                         ; +0x2a, 0x1005eff4a\npop     rbx                                                            ; +0x2e, 0x1005eff4e\npop     rbp                                                            ; +0x2f, 0x1005eff4f\njmp     CCSpriteWithHue__createWithSpriteFrame                         ; +0x30, 0x1005eff50", "xrefs": ["RewardUnlockLayer::init @ 0x10021c372", "GJShopLayer::init @ 0x10032354c", "GJShopLayer::init @ 0x1003237f6", "SecretLayer5::init @ 0x10047a7ae"], "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"}