{"type": "func", "start": 6443130752, "end": 6443130863, "name": "cocos2d::CCTexture2D::stringForFormat", "pseudocode": "// \n// cocos2d::CCTexture2D::stringForFormat from 0x1800a5f80 to 0x1800a5fef (111 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1801438a8\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\nconst char *__fastcall cocos2d::CCTexture2D::stringForFormat(cocos2d::CCTexture2D *this)\n{\n  const char *result; // rax\n\n  switch ( this->m_ePixelFormat )\n  {\n    case kCCTexture2DPixelFormat_RGBA8888:\n      result = \"RGBA8888\";\n      break;\n    case kCCTexture2DPixelFormat_RGB888:\n      result = \"RGB888\";\n      break;\n    case kCCTexture2DPixelFormat_RGB565:\n      result = \"RGB565\";\n      break;\n    case kCCTexture2DPixelFormat_A8:\n      result = \"A8\";\n      break;\n    case kCCTexture2DPixelFormat_I8:\n      result = \"I8\";\n      break;\n    case kCCTexture2DPixelFormat_AI88:\n      result = \"AI88\";\n      break;\n    case kCCTexture2DPixelFormat_RGBA4444:\n      result = \"RGBA4444\";\n      break;\n    case kCCTexture2DPixelFormat_RGB5A1:\n      result = \"RGB5A1\";\n      break;\n    case kCCTexture2DPixelFormat_PVRTC4:\n      result = \"PVRTC4\";\n      break;\n    case kCCTexture2DPixelFormat_PVRTC2:\n      result = \"PVRTC2\";\n      break;\n    default:\n      result = nullptr;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCTexture2D::stringForFormat from 0x1800a5f80 to 0x1800a5fef (111 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1801438a8\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\nmovsxd  rax, dword ptr [rcx+3Ch]                                       ; +0x0, 0x1800a5f80\ncmp     eax, 9; switch 10 cases                                        ; +0x4, 0x1800a5f84\nja      short def_1800A5F9A; jumptable 00000001800A5F9A default case   ; +0x7, 0x1800a5f87\nlea     rdx, cs:180000000h                                             ; +0x9, 0x1800a5f89\nmov     ecx, ds:(jpt_1800A5F9A - 180000000h)[rdx+rax*4]                ; +0x10, 0x1800a5f90\nadd     rcx, rdx                                                       ; +0x17, 0x1800a5f97\njmp     rcx; switch jump                                               ; +0x1a, 0x1800a5f9a\nlea     rax, aRgba8888; jumptable 00000001800A5F9A case 0              ; +0x1c, 0x1800a5f9c\nretn                                                                   ; +0x23, 0x1800a5fa3\nlea     rax, aRgb888; jumptable 00000001800A5F9A case 1                ; +0x24, 0x1800a5fa4\nretn                                                                   ; +0x2b, 0x1800a5fab\nlea     rax, aRgb565; jumptable 00000001800A5F9A case 2                ; +0x2c, 0x1800a5fac\nretn                                                                   ; +0x33, 0x1800a5fb3\nlea     rax, aRgba4444; jumptable 00000001800A5F9A case 6              ; +0x34, 0x1800a5fb4\nretn                                                                   ; +0x3b, 0x1800a5fbb\nlea     rax, aRgb5a1; jumptable 00000001800A5F9A case 7                ; +0x3c, 0x1800a5fbc\nretn                                                                   ; +0x43, 0x1800a5fc3\nlea     rax, aAi88; jumptable 00000001800A5F9A case 5                  ; +0x44, 0x1800a5fc4\nretn                                                                   ; +0x4b, 0x1800a5fcb\nlea     rax, aA8; jumptable 00000001800A5F9A case 3                    ; +0x4c, 0x1800a5fcc\nretn                                                                   ; +0x53, 0x1800a5fd3\nlea     rax, aI8; jumptable 00000001800A5F9A case 4                    ; +0x54, 0x1800a5fd4\nretn                                                                   ; +0x5b, 0x1800a5fdb\nlea     rax, aPvrtc4; jumptable 00000001800A5F9A case 8                ; +0x5c, 0x1800a5fdc\nretn                                                                   ; +0x63, 0x1800a5fe3\nlea     rax, aPvrtc2; jumptable 00000001800A5F9A case 9                ; +0x64, 0x1800a5fe4\nretn                                                                   ; +0x6b, 0x1800a5feb\nxor     eax, eax; jumptable 00000001800A5F9A default case              ; +0x6c, 0x1800a5fec\nretn                                                                   ; +0x6e, 0x1800a5fee", "xrefs": ["<???> @ 0x1801438a8"], "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"}