{"type": "func", "start": 6443172096, "end": 6443172234, "name": "cocos2d::CCTMXLayer::positionForHexAt", "pseudocode": "// \n// cocos2d::CCTMXLayer::positionForHexAt from 0x1800b0100 to 0x1800b018a (138 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c240c\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\nfloat *__fastcall cocos2d::CCTMXLayer::positionForHexAt(float *a1, float *a2, float *a3)\n{\n  float v4; // xmm0_4\n\n  v4 = 0.0;\n  if ( (int)*a3 % 2 == 1 )\n    v4 = (float)-a1[93] * 0.5;\n  kmVec2Fill(\n    a2,\n    (float)((float)(*a3 * a1[92]) * 3.0) * 0.25,\n    (float)((float)((float)(a1[91] - a3[1]) - 1.0) * a1[93]) + v4);\n  return a2;\n}", "assembly": "; \n; cocos2d::CCTMXLayer::positionForHexAt from 0x1800b0100 to 0x1800b018a (138 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c240c\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; \npush    rbx                                                            ; +0x0, 0x1800b0100\nsub     rsp, 20h                                                       ; +0x2, 0x1800b0102\nmovss   xmm1, dword ptr [r8]                                           ; +0x6, 0x1800b0106\nmov     rbx, rdx                                                       ; +0xb, 0x1800b010b\ncvttss2si eax, xmm1                                                    ; +0xe, 0x1800b010e\nxorps   xmm0, xmm0                                                     ; +0x12, 0x1800b0112\nand     eax, 80000001h                                                 ; +0x15, 0x1800b0115\njge     short loc_1800B0123                                            ; +0x1a, 0x1800b011a\ndec     eax                                                            ; +0x1c, 0x1800b011c\nor      eax, 0FFFFFFFEh                                                ; +0x1e, 0x1800b011e\ninc     eax                                                            ; +0x21, 0x1800b0121\ncmp     eax, 1                                                         ; +0x23, 0x1800b0123\njnz     short loc_1800B013F                                            ; +0x26, 0x1800b0126\nmovss   xmm0, dword ptr [rcx+174h]                                     ; +0x28, 0x1800b0128\nxorps   xmm0, cs:xmmword_1800EC220                                     ; +0x30, 0x1800b0130\nmulss   xmm0, cs:dword_1800EC358                                       ; +0x37, 0x1800b0137\nmulss   xmm1, dword ptr [rcx+170h]                                     ; +0x3f, 0x1800b013f\nmovss   xmm2, dword ptr [rcx+16Ch]                                     ; +0x47, 0x1800b0147\nsubss   xmm2, dword ptr [r8+4]                                         ; +0x4f, 0x1800b014f\nmulss   xmm1, cs:Y                                                     ; +0x55, 0x1800b0155\nsubss   xmm2, cs:flt_1800EC208                                         ; +0x5d, 0x1800b015d\nmulss   xmm1, cs:dword_1800EE454                                       ; +0x65, 0x1800b0165\nmulss   xmm2, dword ptr [rcx+174h]                                     ; +0x6d, 0x1800b016d\nmov     rcx, rbx                                                       ; +0x75, 0x1800b0175\naddss   xmm2, xmm0                                                     ; +0x78, 0x1800b0178\ncall    kmVec2Fill                                                     ; +0x7c, 0x1800b017c\nmov     rax, rbx                                                       ; +0x81, 0x1800b0181\nadd     rsp, 20h                                                       ; +0x84, 0x1800b0184\npop     rbx                                                            ; +0x88, 0x1800b0188\nretn                                                                   ; +0x89, 0x1800b0189", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c240c"], "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"}