{"type": "func", "start": 4138112, "end": 4138198, "name": "CCSpriteWithHue::initWithTexture", "pseudocode": "// \n// CCSpriteWithHue::initWithTexture from 0x3f2480 to 0x3f24d6 (86 bytes)\n// \n// 1 xrefs:\n// > CCSpriteGrayscale::createWithTexture @ 0x3f2de4\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:47:14 +0000\n// \n\nint __fastcall CCSpriteWithHue::initWithTexture(CCSpriteWithHue *this, cocos2d::CCTexture2D *a2)\n{\n  _BYTE v5[8]; // [sp+4h] [bp-8h] BYREF\n  _BYTE v6[8]; // [sp+Ch] [bp+0h] BYREF\n  _BYTE v7[8]; // [sp+14h] [bp+8h] BYREF\n\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v6, (const cocos2d::CCRect *)&unk_D2B4F4);\n  (*(void (__fastcall **)(_BYTE *, cocos2d::CCTexture2D *))(*(_DWORD *)a2 + 72))(v5, a2);\n  cocos2d::CCSize::operator=(v7, v5);\n  return (*(int (__fastcall **)(CCSpriteWithHue *, cocos2d::CCTexture2D *, _BYTE *))(*(_DWORD *)this + 508))(\n           this,\n           a2,\n           v6);\n}", "assembly": "; \n; CCSpriteWithHue::initWithTexture from 0x3f2480 to 0x3f24d6 (86 bytes)\n; \n; 1 xrefs:\n; > CCSpriteGrayscale::createWithTexture @ 0x3f2de4\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:47:14 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x3f2480\nSUB             SP, SP, #0x20                                          ; +0x4, 0x3f2484\nLDR             R4, =(__stack_chk_guard_ptr - 0x3F2492)                ; +0x6, 0x3f2486\nMOV             R6, R1                                                 ; +0x8, 0x3f2488\nADD             R7, SP, #0xC                                           ; +0xa, 0x3f248a\nLDR             R1, =(unk_D2B4F4 - 0x3F2498)                           ; +0xc, 0x3f248c\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x3f248e\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x3f2490\nMOV             R8, R0                                                 ; +0x12, 0x3f2492\nADD             R1, PC; unk_D2B4F4 ; cocos2d::CCRect *                 ; +0x14, 0x3f2494\nMOV             R0, R7; this                                           ; +0x16, 0x3f2496\nLDR             R3, [R4]                                               ; +0x18, 0x3f2498\nADD             R5, SP, #0x20+var_1C                                   ; +0x1a, 0x3f249a\nSTR             R3, [SP,#0x20+var_4]                                   ; +0x1c, 0x3f249c\nBL              _ZN7cocos2d6CCRectC1ERKS0_; cocos2d::CCRect::CCRect(cocos2d::CCRect const&) ; +0x1e, 0x3f249e\nLDR             R3, [R6]                                               ; +0x22, 0x3f24a2\nMOV             R0, R5                                                 ; +0x24, 0x3f24a4\nMOV             R1, R6                                                 ; +0x26, 0x3f24a6\nLDR             R3, [R3,#0x48]                                         ; +0x28, 0x3f24a8\nBLX             R3                                                     ; +0x2a, 0x3f24aa\nMOV             R1, R5                                                 ; +0x2c, 0x3f24ac\nADD             R0, SP, #0x20+var_C                                    ; +0x2e, 0x3f24ae\nBL              _ZN7cocos2d6CCSizeaSERKS0_; cocos2d::CCSize::operator=(cocos2d::CCSize const&) ; +0x30, 0x3f24b0\nLDR.W           R3, [R8]                                               ; +0x34, 0x3f24b4\nMOV             R2, R7                                                 ; +0x38, 0x3f24b8\nMOV             R0, R8                                                 ; +0x3a, 0x3f24ba\nMOV             R1, R6                                                 ; +0x3c, 0x3f24bc\nLDR.W           R3, [R3,#0x1FC]                                        ; +0x3e, 0x3f24be\nBLX             R3                                                     ; +0x42, 0x3f24c2\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x44, 0x3f24c4\nLDR             R3, [R4]                                               ; +0x46, 0x3f24c6\nCMP             R2, R3                                                 ; +0x48, 0x3f24c8\nBEQ             loc_3F24D0                                             ; +0x4a, 0x3f24ca\nBLX             __stack_chk_fail                                       ; +0x4c, 0x3f24cc\nADD             SP, SP, #0x20 ; ' '                                    ; +0x50, 0x3f24d0\nPOP.W           {R4-R8,PC}                                             ; +0x52, 0x3f24d2", "xrefs": ["CCSpriteGrayscale::createWithTexture @ 0x3f2de4"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}