{"type": "func", "start": 4297297096, "end": 4297297304, "name": "CCSpriteGrayscale::createWithSpriteFrame", "pseudocode": "// \n// CCSpriteGrayscale::createWithSpriteFrame from 0x100238cc8 to 0x100238d98 (208 bytes)\n// \n// 1 xrefs:\n// > CCSpriteGrayscale::createWithSpriteFrameName @ 0x100238de4\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:01:20 +0000\n// \n\n__int64 (__fastcall ***__fastcall CCSpriteGrayscale::createWithSpriteFrame(__int64 a1))()\n{\n  __int64 (__fastcall ***v2)(); // x0\n  __int64 (__fastcall ***v3)(); // x19\n  __int64 (__fastcall **v4)(); // x8\n  __int64 Texture; // x0\n  char v6; // w21\n\n  v2 = (__int64 (__fastcall ***)())operator new(0x298u, &std::nothrow);\n  v3 = v2;\n  if ( v2 )\n  {\n    bzero(v2, 0x298u);\n    cocos2d::CCSprite::CCSprite(v3);\n    v4 = &off_100904318;\n    *v3 = &off_100904318;\n    v3[40] = off_100904818;\n    v3[43] = off_100904898;\n    if ( a1 )\n    {\n      Texture = cocos2d::CCSpriteFrame::getTexture(a1);\n      v6 = ((__int64 (__fastcall *)(__int64 (__fastcall ***)(), __int64, __int64))(*v3)[127])(v3, Texture, a1 + 92);\n      ((void (__fastcall *)(__int64 (__fastcall ***)(), __int64))(*v3)[145])(v3, a1);\n      if ( (v6 & 1) != 0 )\n      {\n        cocos2d::CCObject::autorelease((__int64)v3);\n        return v3;\n      }\n      v4 = *v3;\n    }\n    ((void (__fastcall *)(__int64 (__fastcall ***)()))v4[2])(v3);\n    return nullptr;\n  }\n  return v3;\n}", "assembly": "; \n; CCSpriteGrayscale::createWithSpriteFrame from 0x100238cc8 to 0x100238d98 (208 bytes)\n; \n; 1 xrefs:\n; > CCSpriteGrayscale::createWithSpriteFrameName @ 0x100238de4\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:01:20 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100238cc8\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100238ccc\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100238cd0\nADD             X29, SP, #0x20                                         ; +0xc, 0x100238cd4\nMOV             X20, X0                                                ; +0x10, 0x100238cd8\nADRP            X1, #__ZSt7nothrow_ptr@PAGE                            ; +0x14, 0x100238cdc\nLDR             X1, [X1,#__ZSt7nothrow_ptr@PAGEOFF]; std::nothrow_t *  ; +0x18, 0x100238ce0\nMOV             W0, #0x298; __sz                                       ; +0x1c, 0x100238ce4\nBL              __ZnwmRKSt9nothrow_t; operator new(ulong,std::nothrow_t const&) ; +0x20, 0x100238ce8\nMOV             X19, X0                                                ; +0x24, 0x100238cec\nCBZ             X0, loc_100238D84                                      ; +0x28, 0x100238cf0\nMOV             X0, X19; void *                                        ; +0x2c, 0x100238cf4\nMOV             W1, #0x298; size_t                                     ; +0x30, 0x100238cf8\nBL              _bzero                                                 ; +0x34, 0x100238cfc\nMOV             X0, X19                                                ; +0x38, 0x100238d00\nBL              cocos2d__CCSprite__CCSprite                            ; +0x3c, 0x100238d04\nADRL            X8, off_100904318                                      ; +0x40, 0x100238d08\nSTR             X8, [X19]                                              ; +0x48, 0x100238d10\nADD             X9, X8, #(off_100904818 - 0x100904318)                 ; +0x4c, 0x100238d14\nSTR             X9, [X19,#0x140]                                       ; +0x50, 0x100238d18\nADD             X9, X8, #(off_100904898 - 0x100904318)                 ; +0x54, 0x100238d1c\nSTR             X9, [X19,#0x158]                                       ; +0x58, 0x100238d20\nCBZ             X20, loc_100238D74                                     ; +0x5c, 0x100238d24\nMOV             X0, X20                                                ; +0x60, 0x100238d28\nBL              cocos2d__CCSpriteFrame__getTexture                     ; +0x64, 0x100238d2c\nMOV             X1, X0                                                 ; +0x68, 0x100238d30\nLDR             X8, [X19]                                              ; +0x6c, 0x100238d34\nLDR             X8, [X8,#0x3F8]                                        ; +0x70, 0x100238d38\nADD             X2, X20, #0x5C ; '\\'                                   ; +0x74, 0x100238d3c\nMOV             X0, X19                                                ; +0x78, 0x100238d40\nBLR             X8                                                     ; +0x7c, 0x100238d44\nMOV             X21, X0                                                ; +0x80, 0x100238d48\nLDR             X8, [X19]                                              ; +0x84, 0x100238d4c\nLDR             X8, [X8,#0x488]                                        ; +0x88, 0x100238d50\nMOV             X0, X19                                                ; +0x8c, 0x100238d54\nMOV             X1, X20                                                ; +0x90, 0x100238d58\nBLR             X8                                                     ; +0x94, 0x100238d5c\nTBZ             W21, #0, loc_100238D70                                 ; +0x98, 0x100238d60\nMOV             X0, X19                                                ; +0x9c, 0x100238d64\nBL              cocos2d__CCObject__autorelease                         ; +0xa0, 0x100238d68\nB               loc_100238D84                                          ; +0xa4, 0x100238d6c\nLDR             X8, [X19]                                              ; +0xa8, 0x100238d70\nLDR             X8, [X8,#0x10]                                         ; +0xac, 0x100238d74\nMOV             X0, X19                                                ; +0xb0, 0x100238d78\nBLR             X8                                                     ; +0xb4, 0x100238d7c\nMOV             X19, #0                                                ; +0xb8, 0x100238d80\nMOV             X0, X19                                                ; +0xbc, 0x100238d84\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xc0, 0x100238d88\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xc4, 0x100238d8c\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xc8, 0x100238d90\nRET                                                                    ; +0xcc, 0x100238d94", "xrefs": ["CCSpriteGrayscale::createWithSpriteFrameName @ 0x100238de4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}