{"type": "func", "start": 4297294708, "end": 4297294916, "name": "CCSpriteWithHue::createWithSpriteFrame", "pseudocode": "// \n// CCSpriteWithHue::createWithSpriteFrame from 0x100238374 to 0x100238444 (208 bytes)\n// \n// 1 xrefs:\n// > CCSpriteWithHue::createWithSpriteFrameName @ 0x100238490\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 CCSpriteWithHue::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_100903D50;\n    *v3 = &off_100903D50;\n    v3[40] = off_100904250;\n    v3[43] = off_1009042D0;\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; CCSpriteWithHue::createWithSpriteFrame from 0x100238374 to 0x100238444 (208 bytes)\n; \n; 1 xrefs:\n; > CCSpriteWithHue::createWithSpriteFrameName @ 0x100238490\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, 0x100238374\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100238378\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10023837c\nADD             X29, SP, #0x20                                         ; +0xc, 0x100238380\nMOV             X20, X0                                                ; +0x10, 0x100238384\nADRP            X1, #__ZSt7nothrow_ptr@PAGE                            ; +0x14, 0x100238388\nLDR             X1, [X1,#__ZSt7nothrow_ptr@PAGEOFF]; std::nothrow_t *  ; +0x18, 0x10023838c\nMOV             W0, #0x298; __sz                                       ; +0x1c, 0x100238390\nBL              __ZnwmRKSt9nothrow_t; operator new(ulong,std::nothrow_t const&) ; +0x20, 0x100238394\nMOV             X19, X0                                                ; +0x24, 0x100238398\nCBZ             X0, loc_100238430                                      ; +0x28, 0x10023839c\nMOV             X0, X19; void *                                        ; +0x2c, 0x1002383a0\nMOV             W1, #0x298; size_t                                     ; +0x30, 0x1002383a4\nBL              _bzero                                                 ; +0x34, 0x1002383a8\nMOV             X0, X19                                                ; +0x38, 0x1002383ac\nBL              cocos2d__CCSprite__CCSprite                            ; +0x3c, 0x1002383b0\nADRL            X8, off_100903D50                                      ; +0x40, 0x1002383b4\nSTR             X8, [X19]                                              ; +0x48, 0x1002383bc\nADD             X9, X8, #(off_100904250 - 0x100903D50)                 ; +0x4c, 0x1002383c0\nSTR             X9, [X19,#0x140]                                       ; +0x50, 0x1002383c4\nADD             X9, X8, #(off_1009042D0 - 0x100903D50)                 ; +0x54, 0x1002383c8\nSTR             X9, [X19,#0x158]                                       ; +0x58, 0x1002383cc\nCBZ             X20, loc_100238420                                     ; +0x5c, 0x1002383d0\nMOV             X0, X20                                                ; +0x60, 0x1002383d4\nBL              cocos2d__CCSpriteFrame__getTexture                     ; +0x64, 0x1002383d8\nMOV             X1, X0                                                 ; +0x68, 0x1002383dc\nLDR             X8, [X19]                                              ; +0x6c, 0x1002383e0\nLDR             X8, [X8,#0x3F8]                                        ; +0x70, 0x1002383e4\nADD             X2, X20, #0x5C ; '\\'                                   ; +0x74, 0x1002383e8\nMOV             X0, X19                                                ; +0x78, 0x1002383ec\nBLR             X8                                                     ; +0x7c, 0x1002383f0\nMOV             X21, X0                                                ; +0x80, 0x1002383f4\nLDR             X8, [X19]                                              ; +0x84, 0x1002383f8\nLDR             X8, [X8,#0x488]                                        ; +0x88, 0x1002383fc\nMOV             X0, X19                                                ; +0x8c, 0x100238400\nMOV             X1, X20                                                ; +0x90, 0x100238404\nBLR             X8                                                     ; +0x94, 0x100238408\nTBZ             W21, #0, loc_10023841C                                 ; +0x98, 0x10023840c\nMOV             X0, X19                                                ; +0x9c, 0x100238410\nBL              cocos2d__CCObject__autorelease                         ; +0xa0, 0x100238414\nB               loc_100238430                                          ; +0xa4, 0x100238418\nLDR             X8, [X19]                                              ; +0xa8, 0x10023841c\nLDR             X8, [X8,#0x10]                                         ; +0xac, 0x100238420\nMOV             X0, X19                                                ; +0xb0, 0x100238424\nBLR             X8                                                     ; +0xb4, 0x100238428\nMOV             X19, #0                                                ; +0xb8, 0x10023842c\nMOV             X0, X19                                                ; +0xbc, 0x100238430\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xc0, 0x100238434\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xc4, 0x100238438\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xc8, 0x10023843c\nRET                                                                    ; +0xcc, 0x100238440", "xrefs": ["CCSpriteWithHue::createWithSpriteFrameName @ 0x100238490"], "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"}