{"type": "func", "start": 4296685104, "end": 4296685156, "name": "CCSpriteWithHue::createWithSpriteFrameName", "pseudocode": "// \n// CCSpriteWithHue::createWithSpriteFrameName from 0x1001a3630 to 0x1001a3664 (52 bytes)\n// \n// 4 xrefs:\n// > SecretLayer5::init @ 0x10007454c\n// > GJShopLayer::init @ 0x10014a9f8\n// > GJShopLayer::init @ 0x10014ac44\n// > RewardUnlockLayer::init @ 0x1001c5314\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 *v2; // x0\n  const char *v3; // x1\n  cocos2d::CCSpriteFrame *v4; // x0\n\n  v2 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n  if ( *(char *)(a1 + 23) >= 0 )\n    v3 = (const char *)a1;\n  else\n    v3 = *(const char **)a1;\n  v4 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v2, v3);\n  return CCSpriteWithHue::createWithSpriteFrame(v4);\n}", "assembly": "; \n; CCSpriteWithHue::createWithSpriteFrameName from 0x1001a3630 to 0x1001a3664 (52 bytes)\n; \n; 4 xrefs:\n; > SecretLayer5::init @ 0x10007454c\n; > GJShopLayer::init @ 0x10014a9f8\n; > GJShopLayer::init @ 0x10014ac44\n; > RewardUnlockLayer::init @ 0x1001c5314\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1001a3630\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001a3634\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001a3638\nMOV             X19, X0                                                ; +0xc, 0x1001a363c\nBL              cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache    ; +0x10, 0x1001a3640\nLDRSB           W8, [X19,#0x17]                                        ; +0x14, 0x1001a3644\nLDR             X9, [X19]                                              ; +0x18, 0x1001a3648\nCMP             W8, #0                                                 ; +0x1c, 0x1001a364c\nCSEL            X1, X9, X19, LT                                        ; +0x20, 0x1001a3650\nBL              cocos2d__CCSpriteFrameCache__spriteFrameByName         ; +0x24, 0x1001a3654\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x28, 0x1001a3658\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x2c, 0x1001a365c\nB               CCSpriteWithHue__createWithSpriteFrame                 ; +0x30, 0x1001a3660", "xrefs": ["SecretLayer5::init @ 0x10007454c", "GJShopLayer::init @ 0x10014a9f8", "GJShopLayer::init @ 0x10014ac44", "RewardUnlockLayer::init @ 0x1001c5314"], "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"}