{"type": "func", "start": 6443176000, "end": 6443176115, "name": "cocos2d::CCTMXLayer::vertexZForPos", "pseudocode": "// \n// cocos2d::CCTMXLayer::vertexZForPos from 0x1800b1040 to 0x1800b10b3 (115 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCTMXLayer::setupTileSprite @ 0x1800b089b\n// > cocos2d::CCTMXLayer::tileAt @ 0x1800b0db0\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c2550\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:19 +0000\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) - *((float *)a2 + 1));\n  if ( v2 == 2 )\n    return (unsigned int)(int)(float)-(float)((float)(int)(float)(*((float *)this + 91) + *((float *)this + 90))\n                                            - (float)(*((float *)a2 + 1) + *(float *)a2));\n  return 0;\n}", "assembly": "; \n; cocos2d::CCTMXLayer::vertexZForPos from 0x1800b1040 to 0x1800b10b3 (115 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCTMXLayer::setupTileSprite @ 0x1800b089b\n; > cocos2d::CCTMXLayer::tileAt @ 0x1800b0db0\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c2550\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:19 +0000\n; \ncmp     byte ptr [rcx+1C8h], 0                                         ; +0x0, 0x1800b1040\njz      short loc_1800B10AC                                            ; +0x7, 0x1800b1047\nmov     eax, [rcx+188h]                                                ; +0x9, 0x1800b1049\ntest    eax, eax                                                       ; +0xf, 0x1800b104f\njz      short loc_1800B1093                                            ; +0x11, 0x1800b1051\ncmp     eax, 2                                                         ; +0x13, 0x1800b1053\njnz     short loc_1800B1090                                            ; +0x16, 0x1800b1056\nmovss   xmm0, dword ptr [rcx+16Ch]                                     ; +0x18, 0x1800b1058\nxorps   xmm1, xmm1                                                     ; +0x20, 0x1800b1060\naddss   xmm0, dword ptr [rcx+168h]                                     ; +0x23, 0x1800b1063\ncvttss2si rcx, xmm0                                                    ; +0x2b, 0x1800b106b\nmovss   xmm0, dword ptr [rdx+4]                                        ; +0x30, 0x1800b1070\naddss   xmm0, dword ptr [rdx]                                          ; +0x35, 0x1800b1075\nmov     ecx, ecx                                                       ; +0x39, 0x1800b1079\ncvtsi2ss xmm1, rcx                                                     ; +0x3b, 0x1800b107b\nsubss   xmm1, xmm0                                                     ; +0x40, 0x1800b1080\nxorps   xmm1, cs:xmmword_1800EC220                                     ; +0x44, 0x1800b1084\ncvttss2si eax, xmm1                                                    ; +0x4b, 0x1800b108b\nretn                                                                   ; +0x4f, 0x1800b108f\nxor     eax, eax                                                       ; +0x50, 0x1800b1090\nretn                                                                   ; +0x52, 0x1800b1092\nmovss   xmm0, dword ptr [rcx+16Ch]                                     ; +0x53, 0x1800b1093\nsubss   xmm0, dword ptr [rdx+4]                                        ; +0x5b, 0x1800b109b\nxorps   xmm0, cs:xmmword_1800EC220                                     ; +0x60, 0x1800b10a0\ncvttss2si eax, xmm0                                                    ; +0x67, 0x1800b10a7\nretn                                                                   ; +0x6b, 0x1800b10ab\nmov     eax, [rcx+1C4h]                                                ; +0x6c, 0x1800b10ac\nretn                                                                   ; +0x72, 0x1800b10b2", "xrefs": ["cocos2d::CCTMXLayer::setupTileSprite @ 0x1800b089b", "cocos2d::CCTMXLayer::tileAt @ 0x1800b0db0", "<???> @ 0x18014cf68", "<???> @ 0x1801c2550"], "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"}