{"type": "func", "start": 6443145872, "end": 6443145983, "name": "cocos2d::CCTexture2D::stringForFormat", "pseudocode": "// \n// cocos2d::CCTexture2D::stringForFormat from 0x1800a9a90 to 0x1800a9aff (111 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x18014cf68\n// \n// This function is hookable on this platform (idp: pc, 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:22:17 +0000\n// \n\nconst char *__fastcall cocos2d::CCTexture2D::stringForFormat(cocos2d::CCTexture2D *this)\n{\n  const char *result; // rax\n\n  switch ( *((_DWORD *)this + 15) )\n  {\n    case 0:\n      result = \"RGBA8888\";\n      break;\n    case 1:\n      result = \"RGB888\";\n      break;\n    case 2:\n      result = \"RGB565\";\n      break;\n    case 3:\n      result = \"A8\";\n      break;\n    case 4:\n      result = \"I8\";\n      break;\n    case 5:\n      result = \"AI88\";\n      break;\n    case 6:\n      result = \"RGBA4444\";\n      break;\n    case 7:\n      result = \"RGB5A1\";\n      break;\n    case 8:\n      result = \"PVRTC4\";\n      break;\n    case 9:\n      result = \"PVRTC2\";\n      break;\n    default:\n      result = nullptr;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCTexture2D::stringForFormat from 0x1800a9a90 to 0x1800a9aff (111 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x18014cf68\n; \n; This function is hookable on this platform (idp: pc, 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:22:17 +0000\n; \nmovsxd  rax, dword ptr [rcx+3Ch]                                       ; +0x0, 0x1800a9a90\ncmp     eax, 9; switch 10 cases                                        ; +0x4, 0x1800a9a94\nja      short def_1800A9AAA; jumptable 00000001800A9AAA default case   ; +0x7, 0x1800a9a97\nlea     rdx, cs:180000000h                                             ; +0x9, 0x1800a9a99\nmov     ecx, ds:(jpt_1800A9AAA - 180000000h)[rdx+rax*4]                ; +0x10, 0x1800a9aa0\nadd     rcx, rdx                                                       ; +0x17, 0x1800a9aa7\njmp     rcx; switch jump                                               ; +0x1a, 0x1800a9aaa\nlea     rax, aRgba8888; jumptable 00000001800A9AAA case 0              ; +0x1c, 0x1800a9aac\nretn                                                                   ; +0x23, 0x1800a9ab3\nlea     rax, aRgb888; jumptable 00000001800A9AAA case 1                ; +0x24, 0x1800a9ab4\nretn                                                                   ; +0x2b, 0x1800a9abb\nlea     rax, aRgb565; jumptable 00000001800A9AAA case 2                ; +0x2c, 0x1800a9abc\nretn                                                                   ; +0x33, 0x1800a9ac3\nlea     rax, aRgba4444; jumptable 00000001800A9AAA case 6              ; +0x34, 0x1800a9ac4\nretn                                                                   ; +0x3b, 0x1800a9acb\nlea     rax, aRgb5a1; jumptable 00000001800A9AAA case 7                ; +0x3c, 0x1800a9acc\nretn                                                                   ; +0x43, 0x1800a9ad3\nlea     rax, aAi88; jumptable 00000001800A9AAA case 5                  ; +0x44, 0x1800a9ad4\nretn                                                                   ; +0x4b, 0x1800a9adb\nlea     rax, aA8; jumptable 00000001800A9AAA case 3                    ; +0x4c, 0x1800a9adc\nretn                                                                   ; +0x53, 0x1800a9ae3\nlea     rax, aI8; jumptable 00000001800A9AAA case 4                    ; +0x54, 0x1800a9ae4\nretn                                                                   ; +0x5b, 0x1800a9aeb\nlea     rax, aPvrtc4; jumptable 00000001800A9AAA case 8                ; +0x5c, 0x1800a9aec\nretn                                                                   ; +0x63, 0x1800a9af3\nlea     rax, aPvrtc2; jumptable 00000001800A9AAA case 9                ; +0x64, 0x1800a9af4\nretn                                                                   ; +0x6b, 0x1800a9afb\nxor     eax, eax; jumptable 00000001800A9AAA default case              ; +0x6c, 0x1800a9afc\nretn                                                                   ; +0x6e, 0x1800a9afe", "xrefs": ["<???> @ 0x18014cf68"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}