{"type": "func", "start": 6443141360, "end": 6443141423, "name": "cocos2d::CCTexture2D::bitsPerPixelForFormat", "pseudocode": "// \n// cocos2d::CCTexture2D::bitsPerPixelForFormat from 0x1800a88f0 to 0x1800a892f (63 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCTexture2D::bitsPerPixelForFormat @ 0x1800a8963\n// > cocos2d::CCTexture2D::initWithData @ 0x1800a9182\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:16 +0000\n// \n\n__int64 __fastcall cocos2d::CCTexture2D::bitsPerPixelForFormat(__int64 a1, int a2)\n{\n  __int64 result; // rax\n\n  switch ( a2 )\n  {\n    case 0:\n    case 1:\n      result = 32;\n      break;\n    case 2:\n    case 5:\n    case 6:\n    case 7:\n      result = 16;\n      break;\n    case 3:\n    case 4:\n      result = 8;\n      break;\n    case 8:\n      result = 4;\n      break;\n    case 9:\n      result = 2;\n      break;\n    default:\n      result = 0xFFFFFFFFLL;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCTexture2D::bitsPerPixelForFormat from 0x1800a88f0 to 0x1800a892f (63 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCTexture2D::bitsPerPixelForFormat @ 0x1800a8963\n; > cocos2d::CCTexture2D::initWithData @ 0x1800a9182\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:16 +0000\n; \ncmp     edx, 9; switch 10 cases                                        ; +0x0, 0x1800a88f0\nja      short def_1800A8909; jumptable 00000001800A8909 default case   ; +0x3, 0x1800a88f3\nmovsxd  rax, edx                                                       ; +0x5, 0x1800a88f5\nlea     rdx, cs:180000000h                                             ; +0x8, 0x1800a88f8\nmov     ecx, ds:(jpt_1800A8909 - 180000000h)[rdx+rax*4]                ; +0xf, 0x1800a88ff\nadd     rcx, rdx                                                       ; +0x16, 0x1800a8906\njmp     rcx; switch jump                                               ; +0x19, 0x1800a8909\nmov     eax, 20h ; ' '; jumptable 00000001800A8909 cases 0,1           ; +0x1b, 0x1800a890b\nretn                                                                   ; +0x20, 0x1800a8910\nmov     eax, 10h; jumptable 00000001800A8909 cases 2,5-7               ; +0x21, 0x1800a8911\nretn                                                                   ; +0x26, 0x1800a8916\nmov     eax, 8; jumptable 00000001800A8909 cases 3,4                   ; +0x27, 0x1800a8917\nretn                                                                   ; +0x2c, 0x1800a891c\nmov     eax, 4; jumptable 00000001800A8909 case 8                      ; +0x2d, 0x1800a891d\nretn                                                                   ; +0x32, 0x1800a8922\nmov     eax, 2; jumptable 00000001800A8909 case 9                      ; +0x33, 0x1800a8923\nretn                                                                   ; +0x38, 0x1800a8928\nmov     eax, 0FFFFFFFFh; jumptable 00000001800A8909 default case       ; +0x39, 0x1800a8929\nretn                                                                   ; +0x3e, 0x1800a892e", "xrefs": ["cocos2d::CCTexture2D::bitsPerPixelForFormat @ 0x1800a8963", "cocos2d::CCTexture2D::initWithData @ 0x1800a9182", "<???> @ 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"}