{"type": "func", "start": 6442475872, "end": 6442476050, "name": "cocos2d::CCAffineTransformInvert", "pseudocode": "// \n// cocos2d::CCAffineTransformInvert from 0x180006160 to 0x180006212 (178 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCNode::parentToNodeTransform @ 0x180004483\n// > cocos2d::CCNode::worldToNodeTransform @ 0x1800058de\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ad8a0\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\ncocos2d *__fastcall cocos2d::CCAffineTransformInvert(\n        cocos2d *this,\n        struct cocos2d::CCAffineTransform *retstr,\n        const struct cocos2d::CCAffineTransform *a3)\n{\n  float d; // xmm5_4\n  float c; // xmm4_4\n  float ty; // xmm2_4\n  float tx; // xmm3_4\n  float v8; // xmm6_4\n  float v9; // xmm0_4\n  float v10; // xmm1_4\n  float v11; // xmm2_4\n\n  d = retstr->d;\n  c = retstr->c;\n  ty = retstr->ty;\n  tx = retstr->tx;\n  v8 = 1.0 / (float)((float)(retstr->a * d) - (float)(retstr->b * c));\n  *(float *)this = d * v8;\n  *((float *)this + 1) = (float)-v8 * retstr->b;\n  v9 = retstr->a * v8;\n  *((float *)this + 2) = (float)-v8 * c;\n  v10 = ty;\n  v11 = ty * retstr->a;\n  *((float *)this + 3) = v9;\n  *((float *)this + 5) = (float)((float)(tx * retstr->b) - v11) * v8;\n  *((float *)this + 4) = (float)((float)(v10 * c) - (float)(tx * d)) * v8;\n  return this;\n}", "assembly": "; \n; cocos2d::CCAffineTransformInvert from 0x180006160 to 0x180006212 (178 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCNode::parentToNodeTransform @ 0x180004483\n; > cocos2d::CCNode::worldToNodeTransform @ 0x1800058de\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ad8a0\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\nsub     rsp, 18h                                                       ; +0x0, 0x180006160\nmovss   xmm5, dword ptr [rdx+0Ch]                                      ; +0x4, 0x180006164\nmov     rax, rcx                                                       ; +0x9, 0x180006169\nmovss   xmm4, dword ptr [rdx+8]                                        ; +0xc, 0x18000616c\nmovss   xmm1, dword ptr [rdx]                                          ; +0x11, 0x180006171\nmovss   xmm0, dword ptr [rdx+4]                                        ; +0x15, 0x180006175\nmovss   xmm2, dword ptr [rdx+14h]                                      ; +0x1a, 0x18000617a\nmovss   xmm3, dword ptr [rdx+10h]                                      ; +0x1f, 0x18000617f\nmulss   xmm0, xmm4                                                     ; +0x24, 0x180006184\nmulss   xmm1, xmm5                                                     ; +0x28, 0x180006188\nmovaps  [rsp+18h+var_18], xmm6                                         ; +0x2c, 0x18000618c\nmovss   xmm6, cs:flt_1800E61A8                                         ; +0x30, 0x180006190\nsubss   xmm1, xmm0                                                     ; +0x38, 0x180006198\nmovaps  xmm0, xmm5                                                     ; +0x3c, 0x18000619c\ndivss   xmm6, xmm1                                                     ; +0x3f, 0x18000619f\nmulss   xmm0, xmm6                                                     ; +0x43, 0x1800061a3\nmovaps  xmm1, xmm6                                                     ; +0x47, 0x1800061a7\nxorps   xmm1, cs:xmmword_1800E61C0                                     ; +0x4a, 0x1800061aa\nmovss   dword ptr [rcx], xmm0                                          ; +0x51, 0x1800061b1\nmovaps  xmm0, xmm1                                                     ; +0x55, 0x1800061b5\nmulss   xmm0, dword ptr [rdx+4]                                        ; +0x58, 0x1800061b8\nmulss   xmm1, xmm4                                                     ; +0x5d, 0x1800061bd\nmovss   dword ptr [rcx+4], xmm0                                        ; +0x61, 0x1800061c1\nmovss   xmm0, dword ptr [rdx]                                          ; +0x66, 0x1800061c6\nmulss   xmm0, xmm6                                                     ; +0x6a, 0x1800061ca\nmovss   dword ptr [rcx+8], xmm1                                        ; +0x6e, 0x1800061ce\nmovaps  xmm1, xmm2                                                     ; +0x73, 0x1800061d3\nmulss   xmm2, dword ptr [rdx]                                          ; +0x76, 0x1800061d6\nmovss   dword ptr [rcx+0Ch], xmm0                                      ; +0x7a, 0x1800061da\nmovaps  xmm0, xmm3                                                     ; +0x7f, 0x1800061df\nmulss   xmm3, dword ptr [rdx+4]                                        ; +0x82, 0x1800061e2\nmulss   xmm1, xmm4                                                     ; +0x87, 0x1800061e7\nmulss   xmm0, xmm5                                                     ; +0x8b, 0x1800061eb\nsubss   xmm3, xmm2                                                     ; +0x8f, 0x1800061ef\nsubss   xmm1, xmm0                                                     ; +0x93, 0x1800061f3\nmulss   xmm3, xmm6                                                     ; +0x97, 0x1800061f7\nmulss   xmm1, xmm6                                                     ; +0x9b, 0x1800061fb\nmovaps  xmm6, [rsp+18h+var_18]                                         ; +0x9f, 0x1800061ff\nmovss   dword ptr [rcx+14h], xmm3                                      ; +0xa3, 0x180006203\nmovss   dword ptr [rcx+10h], xmm1                                      ; +0xa8, 0x180006208\nadd     rsp, 18h                                                       ; +0xad, 0x18000620d\nretn                                                                   ; +0xb1, 0x180006211", "xrefs": ["cocos2d::CCNode::parentToNodeTransform @ 0x180004483", "cocos2d::CCNode::worldToNodeTransform @ 0x1800058de", "<???> @ 0x1801438a8", "<???> @ 0x1801ad8a0"], "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"}