{"type": "func", "start": 3172352, "end": 3172398, "name": "CCSpriteWithHue::initWithSpriteFrame", "pseudocode": "// \n// CCSpriteWithHue::initWithSpriteFrame from 0x306800 to 0x30682e (46 bytes)\n// \n// 1 xrefs:\n// > CCSpriteGrayscale::createWithSpriteFrame @ 0x3072ee\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 *); // r6\n  cocos2d::CCTexture2D *Texture; // r0\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 0x306800 to 0x30682e (46 bytes)\n; \n; 1 xrefs:\n; > CCSpriteGrayscale::createWithSpriteFrame @ 0x3072ee\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\nLDR             R3, [R0]                                               ; +0x0, 0x306800\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x306802\nMOV             R4, R0                                                 ; +0x4, 0x306804\nMOV             R0, R1; this                                           ; +0x6, 0x306806\nMOV             R5, R1                                                 ; +0x8, 0x306808\nLDR.W           R6, [R3,#0x1F4]                                        ; +0xa, 0x30680a\nBL              _ZN7cocos2d13CCSpriteFrame10getTextureEv; cocos2d::CCSpriteFrame::getTexture(void) ; +0xe, 0x30680e\nADD.W           R2, R5, #0x58 ; 'X'                                    ; +0x12, 0x306812\nMOV             R1, R0                                                 ; +0x16, 0x306816\nMOV             R0, R4                                                 ; +0x18, 0x306818\nBLX             R6                                                     ; +0x1a, 0x30681a\nLDR             R3, [R4]                                               ; +0x1c, 0x30681c\nMOV             R1, R5                                                 ; +0x1e, 0x30681e\nLDR.W           R3, [R3,#0x23C]                                        ; +0x20, 0x306820\nMOV             R6, R0                                                 ; +0x24, 0x306824\nMOV             R0, R4                                                 ; +0x26, 0x306826\nBLX             R3                                                     ; +0x28, 0x306828\nMOV             R0, R6                                                 ; +0x2a, 0x30682a\nPOP             {R4-R6,PC}                                             ; +0x2c, 0x30682c", "xrefs": ["CCSpriteGrayscale::createWithSpriteFrame @ 0x3072ee"], "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"}