{"type": "func", "start": 6013228, "end": 6013328, "name": "CCSpriteWithHue::initWithSpriteFrame", "pseudocode": "// \n// CCSpriteWithHue::initWithSpriteFrame from 0x5bc12c to 0x5bc190 (100 bytes)\n// \n// 5 xrefs:\n// > CCSpriteWithHue::createWithSpriteFrame @ 0x5bc640\n// > CCSpriteGrayscale::createWithSpriteFrame @ 0x5bd438\n// > <???> @ 0x45840\n// > <???> @ 0x1144de8\n// > <???> @ 0x1145388\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\nbool CCSpriteWithHue::initWithSpriteFrame(CCSpriteWithHue *a1, cocos2d::CCSpriteFrame *a2)\n{\n  bool (__fastcall *initWithTexture_0)(CCSpriteWithHue *__hidden, cocos2d::CCTexture2D *, const cocos2d::CCRect *); // x21\n  cocos2d::CCTexture2D *Texture; // x0\n\n  initWithTexture_0 = a1->initWithTexture_0;\n  Texture = cocos2d::CCSpriteFrame::getTexture(a2);\n  LOBYTE(initWithTexture_0) = initWithTexture_0(a1, Texture, &a2->m_obRect);\n  a1->setDisplayFrame(a1, a2);\n  return (char)initWithTexture_0;\n}", "assembly": "; \n; CCSpriteWithHue::initWithSpriteFrame from 0x5bc12c to 0x5bc190 (100 bytes)\n; \n; 5 xrefs:\n; > CCSpriteWithHue::createWithSpriteFrame @ 0x5bc640\n; > CCSpriteGrayscale::createWithSpriteFrame @ 0x5bd438\n; > <???> @ 0x45840\n; > <???> @ 0x1144de8\n; > <???> @ 0x1145388\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, 0x5bc12c\nMOV             X29, SP                                                ; +0x4, 0x5bc130\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x5bc134\nMOV             X19, X0                                                ; +0xc, 0x5bc138\nMOV             X20, X1                                                ; +0x10, 0x5bc13c\nMOV             X0, X1; this                                           ; +0x14, 0x5bc140\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x18, 0x5bc144\nLDR             X1, [X19]                                              ; +0x1c, 0x5bc148\nLDR             X21, [X1,#0x3E8]                                       ; +0x20, 0x5bc14c\nBL              _ZN7cocos2d13CCSpriteFrame10getTextureEv; cocos2d::CCSpriteFrame::getTexture(void) ; +0x24, 0x5bc150\nADD             X2, X20, #0x5C ; '\\'                                   ; +0x28, 0x5bc154\nMOV             X1, X0                                                 ; +0x2c, 0x5bc158\nMOV             X0, X19                                                ; +0x30, 0x5bc15c\nBLR             X21                                                    ; +0x34, 0x5bc160\nMOV             W21, W0                                                ; +0x38, 0x5bc164\nLDR             X2, [X19]                                              ; +0x3c, 0x5bc168\nMOV             X0, X19                                                ; +0x40, 0x5bc16c\nMOV             X1, X20                                                ; +0x44, 0x5bc170\nLDR             X2, [X2,#0x478]                                        ; +0x48, 0x5bc174\nBLR             X2                                                     ; +0x4c, 0x5bc178\nMOV             W0, W21                                                ; +0x50, 0x5bc17c\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x54, 0x5bc180\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x58, 0x5bc184\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x5c, 0x5bc188\nRET                                                                    ; +0x60, 0x5bc18c", "xrefs": ["CCSpriteWithHue::createWithSpriteFrame @ 0x5bc640", "CCSpriteGrayscale::createWithSpriteFrame @ 0x5bd438", "<???> @ 0x45840", "<???> @ 0x1144de8", "<???> @ 0x1145388"], "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"}