{"type": "func", "start": 6443161568, "end": 6443161683, "name": "cocos2d::CCTMXLayer::vertexZForPos", "pseudocode": "// \n// cocos2d::CCTMXLayer::vertexZForPos from 0x1800ad7e0 to 0x1800ad853 (115 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCTMXLayer::setupTileSprite @ 0x1800ad03d\n// > cocos2d::CCTMXLayer::tileAt @ 0x1800ad553\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b828c\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\n__int64 __fastcall cocos2d::CCTMXLayer::vertexZForPos(cocos2d::CCTMXLayer *this, const struct cocos2d::CCPoint *a2)\n{\n  int v2; // eax\n\n  if ( !*((_BYTE *)this + 456) )\n    return *((unsigned int *)this + 113);\n  v2 = *((_DWORD *)this + 98);\n  if ( !v2 )\n    return (unsigned int)(int)(float)-(float)(*((float *)this + 91) - a2->y);\n  if ( v2 == 2 )\n    return (unsigned int)(int)(float)-(float)((float)(int)(float)(*((float *)this + 91) + *((float *)this + 90))\n                                            - (float)(a2->y + a2->x));\n  return 0;\n}", "assembly": "; \n; cocos2d::CCTMXLayer::vertexZForPos from 0x1800ad7e0 to 0x1800ad853 (115 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCTMXLayer::setupTileSprite @ 0x1800ad03d\n; > cocos2d::CCTMXLayer::tileAt @ 0x1800ad553\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b828c\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\ncmp     byte ptr [rcx+1C8h], 0                                         ; +0x0, 0x1800ad7e0\njz      short loc_1800AD84C                                            ; +0x7, 0x1800ad7e7\nmov     eax, [rcx+188h]                                                ; +0x9, 0x1800ad7e9\ntest    eax, eax                                                       ; +0xf, 0x1800ad7ef\njz      short loc_1800AD833                                            ; +0x11, 0x1800ad7f1\ncmp     eax, 2                                                         ; +0x13, 0x1800ad7f3\njnz     short loc_1800AD830                                            ; +0x16, 0x1800ad7f6\nmovss   xmm0, dword ptr [rcx+16Ch]                                     ; +0x18, 0x1800ad7f8\nxorps   xmm1, xmm1                                                     ; +0x20, 0x1800ad800\naddss   xmm0, dword ptr [rcx+168h]                                     ; +0x23, 0x1800ad803\ncvttss2si rcx, xmm0                                                    ; +0x2b, 0x1800ad80b\nmovss   xmm0, dword ptr [rdx+4]                                        ; +0x30, 0x1800ad810\naddss   xmm0, dword ptr [rdx]                                          ; +0x35, 0x1800ad815\nmov     ecx, ecx                                                       ; +0x39, 0x1800ad819\ncvtsi2ss xmm1, rcx                                                     ; +0x3b, 0x1800ad81b\nsubss   xmm1, xmm0                                                     ; +0x40, 0x1800ad820\nxorps   xmm1, cs:xmmword_1800E61C0                                     ; +0x44, 0x1800ad824\ncvttss2si eax, xmm1                                                    ; +0x4b, 0x1800ad82b\nretn                                                                   ; +0x4f, 0x1800ad82f\nxor     eax, eax                                                       ; +0x50, 0x1800ad830\nretn                                                                   ; +0x52, 0x1800ad832\nmovss   xmm0, dword ptr [rcx+16Ch]                                     ; +0x53, 0x1800ad833\nsubss   xmm0, dword ptr [rdx+4]                                        ; +0x5b, 0x1800ad83b\nxorps   xmm0, cs:xmmword_1800E61C0                                     ; +0x60, 0x1800ad840\ncvttss2si eax, xmm0                                                    ; +0x67, 0x1800ad847\nretn                                                                   ; +0x6b, 0x1800ad84b\nmov     eax, [rcx+1C4h]                                                ; +0x6c, 0x1800ad84c\nretn                                                                   ; +0x72, 0x1800ad852", "xrefs": ["cocos2d::CCTMXLayer::setupTileSprite @ 0x1800ad03d", "cocos2d::CCTMXLayer::tileAt @ 0x1800ad553", "<???> @ 0x1801438a8", "<???> @ 0x1801b828c"], "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"}