{"type": "func", "start": 6443157728, "end": 6443157866, "name": "cocos2d::CCTMXLayer::positionForHexAt", "pseudocode": "// \n// cocos2d::CCTMXLayer::positionForHexAt from 0x1800ac8e0 to 0x1800ac96a (138 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b8148\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\nstruct cocos2d::CCPoint *__fastcall cocos2d::CCTMXLayer::positionForHexAt(\n        cocos2d::CCTMXLayer *this,\n        struct cocos2d::CCPoint *a2,\n        float *a3)\n{\n  float v4; // xmm0_4\n\n  v4 = 0.0;\n  if ( (int)*a3 % 2 == 1 )\n    v4 = (float)-*((float *)this + 93) * 0.5;\n  kmVec2Fill(\n    (float *)a2,\n    (float)((float)(*a3 * *((float *)this + 92)) * 3.0) * 0.25,\n    (float)((float)((float)(*((float *)this + 91) - a3[1]) - 1.0) * *((float *)this + 93)) + v4);\n  return a2;\n}", "assembly": "; \n; cocos2d::CCTMXLayer::positionForHexAt from 0x1800ac8e0 to 0x1800ac96a (138 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b8148\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\npush    rbx                                                            ; +0x0, 0x1800ac8e0\nsub     rsp, 20h                                                       ; +0x2, 0x1800ac8e2\nmovss   xmm1, dword ptr [r8]                                           ; +0x6, 0x1800ac8e6\nmov     rbx, rdx                                                       ; +0xb, 0x1800ac8eb\ncvttss2si eax, xmm1                                                    ; +0xe, 0x1800ac8ee\nxorps   xmm0, xmm0                                                     ; +0x12, 0x1800ac8f2\nand     eax, 80000001h                                                 ; +0x15, 0x1800ac8f5\njge     short loc_1800AC903                                            ; +0x1a, 0x1800ac8fa\ndec     eax                                                            ; +0x1c, 0x1800ac8fc\nor      eax, 0FFFFFFFEh                                                ; +0x1e, 0x1800ac8fe\ninc     eax                                                            ; +0x21, 0x1800ac901\ncmp     eax, 1                                                         ; +0x23, 0x1800ac903\njnz     short loc_1800AC91F                                            ; +0x26, 0x1800ac906\nmovss   xmm0, dword ptr [rcx+174h]                                     ; +0x28, 0x1800ac908\nxorps   xmm0, cs:xmmword_1800E61C0                                     ; +0x30, 0x1800ac910\nmulss   xmm0, cs:dword_1800E6308                                       ; +0x37, 0x1800ac917\nmulss   xmm1, dword ptr [rcx+170h]                                     ; +0x3f, 0x1800ac91f\nmovss   xmm2, dword ptr [rcx+16Ch]                                     ; +0x47, 0x1800ac927\nsubss   xmm2, dword ptr [r8+4]                                         ; +0x4f, 0x1800ac92f\nmulss   xmm1, cs:flt_1800E6700                                         ; +0x55, 0x1800ac935\nsubss   xmm2, cs:flt_1800E61A8                                         ; +0x5d, 0x1800ac93d\nmulss   xmm1, cs:dword_1800E83F4                                       ; +0x65, 0x1800ac945\nmulss   xmm2, dword ptr [rcx+174h]                                     ; +0x6d, 0x1800ac94d\nmov     rcx, rbx                                                       ; +0x75, 0x1800ac955\naddss   xmm2, xmm0                                                     ; +0x78, 0x1800ac958\ncall    kmVec2Fill                                                     ; +0x7c, 0x1800ac95c\nmov     rax, rbx                                                       ; +0x81, 0x1800ac961\nadd     rsp, 20h                                                       ; +0x84, 0x1800ac964\npop     rbx                                                            ; +0x88, 0x1800ac968\nretn                                                                   ; +0x89, 0x1800ac969", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b8148"], "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"}