{"type": "func", "start": 6442866912, "end": 6442867117, "name": "sub_1800658E0", "pseudocode": "// \n// sub_1800658E0 from 0x1800658e0 to 0x1800659ad (205 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCParticleSystem::initParticle @ 0x1800669b7\n// > cocos2d::CCParticleSystem::initParticle @ 0x180066b55\n// > cocos2d::CCParticleSystem::update @ 0x180069972\n// > cocos2d::CCParticleSystem::update @ 0x180069b8a\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\nfloat __fastcall sub_1800658E0(float a1, float a2)\n{\n  float result; // xmm0_4\n\n  result = 0.0;\n  if ( a2 == 0.0 )\n  {\n    if ( a1 <= 0.0 )\n    {\n      if ( a1 < 0.0 )\n        return -1.5707964;\n    }\n    else\n    {\n      return 1.5707964;\n    }\n  }\n  else if ( fabs(a2) < fabs(a1) )\n  {\n    return COERCE_FLOAT(LODWORD(a1) & 0x80000000 | 0x3FC90FDB)\n         - (float)((float)(0.97239411 - (float)((float)((float)(a2 / a1) * 0.19194795) * (float)(a2 / a1)))\n                 * (float)(a2 / a1));\n  }\n  else\n  {\n    return COERCE_FLOAT((LODWORD(a2) >> 31) * (LODWORD(a1) & 0x80000000 | 0x40490FDB))\n         + (float)((float)(0.97239411 - (float)((float)((float)(a1 / a2) * 0.19194795) * (float)(a1 / a2)))\n                 * (float)(a1 / a2));\n  }\n  return result;\n}", "assembly": "; \n; sub_1800658E0 from 0x1800658e0 to 0x1800659ad (205 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCParticleSystem::initParticle @ 0x1800669b7\n; > cocos2d::CCParticleSystem::initParticle @ 0x180066b55\n; > cocos2d::CCParticleSystem::update @ 0x180069972\n; > cocos2d::CCParticleSystem::update @ 0x180069b8a\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\nmovaps  xmm3, xmm0                                                     ; +0x0, 0x1800658e0\nmovaps  xmm4, xmm1                                                     ; +0x3, 0x1800658e3\nxorps   xmm0, xmm0                                                     ; +0x6, 0x1800658e6\nucomiss xmm4, xmm0                                                     ; +0x9, 0x1800658e9\njp      short loc_180065910                                            ; +0xc, 0x1800658ec\njnz     short loc_180065910                                            ; +0xe, 0x1800658ee\ncomiss  xmm3, xmm0                                                     ; +0x10, 0x1800658f0\njbe     short loc_1800658FE                                            ; +0x13, 0x1800658f3\nmovss   xmm0, cs:dword_1800E840C                                       ; +0x15, 0x1800658f5\nretn                                                                   ; +0x1d, 0x1800658fd\ncomiss  xmm0, xmm3                                                     ; +0x1e, 0x1800658fe\njbe     locret_1800659AC                                               ; +0x21, 0x180065901\nmovss   xmm0, cs:dword_1800EA128                                       ; +0x27, 0x180065907\nretn                                                                   ; +0x2f, 0x18006590f\nmovss   xmm1, cs:dword_1800FFA38                                       ; +0x30, 0x180065910\nmovaps  xmm2, xmm4                                                     ; +0x38, 0x180065918\nandps   xmm2, cs:xmmword_1800E6560                                     ; +0x3b, 0x18006591b\nmovaps  xmm0, xmm3                                                     ; +0x42, 0x180065922\nandps   xmm0, cs:xmmword_1800E6560                                     ; +0x45, 0x180065925\ncomiss  xmm2, xmm0                                                     ; +0x4c, 0x18006592c\nmovss   [rsp+arg_8], xmm3                                              ; +0x4f, 0x18006592f\nmovss   [rsp+arg_10], xmm4                                             ; +0x55, 0x180065935\njb      short loc_18006597B                                            ; +0x5b, 0x18006593b\nmov     ecx, [rsp+arg_8]                                               ; +0x5d, 0x18006593d\nmov     eax, [rsp+arg_10]                                              ; +0x61, 0x180065941\nand     ecx, 0C0490FDBh                                                ; +0x65, 0x180065945\ndivss   xmm3, xmm4                                                     ; +0x6b, 0x18006594b\nor      ecx, 40490FDBh                                                 ; +0x6f, 0x18006594f\nshr     eax, 1Fh                                                       ; +0x75, 0x180065955\nimul    ecx, eax                                                       ; +0x78, 0x180065958\nmovaps  xmm0, xmm3                                                     ; +0x7b, 0x18006595b\nmulss   xmm0, cs:dword_1800FFA2C                                       ; +0x7e, 0x18006595e\nmulss   xmm0, xmm3                                                     ; +0x86, 0x180065966\nsubss   xmm1, xmm0                                                     ; +0x8a, 0x18006596a\nmovd    xmm0, ecx                                                      ; +0x8e, 0x18006596e\nmulss   xmm1, xmm3                                                     ; +0x92, 0x180065972\naddss   xmm0, xmm1                                                     ; +0x96, 0x180065976\nretn                                                                   ; +0x9a, 0x18006597a\nmov     eax, [rsp+arg_8]                                               ; +0x9b, 0x18006597b\ndivss   xmm4, xmm3                                                     ; +0x9f, 0x18006597f\nand     eax, 0BFC90FDBh                                                ; +0xa3, 0x180065983\nor      eax, 3FC90FDBh                                                 ; +0xa8, 0x180065988\nmovaps  xmm0, xmm4                                                     ; +0xad, 0x18006598d\nmulss   xmm0, cs:dword_1800FFA2C                                       ; +0xb0, 0x180065990\nmulss   xmm0, xmm4                                                     ; +0xb8, 0x180065998\nsubss   xmm1, xmm0                                                     ; +0xbc, 0x18006599c\nmovd    xmm0, eax                                                      ; +0xc0, 0x1800659a0\nmulss   xmm1, xmm4                                                     ; +0xc4, 0x1800659a4\nsubss   xmm0, xmm1                                                     ; +0xc8, 0x1800659a8\nretn                                                                   ; +0xcc, 0x1800659ac", "xrefs": ["cocos2d::CCParticleSystem::initParticle @ 0x1800669b7", "cocos2d::CCParticleSystem::initParticle @ 0x180066b55", "cocos2d::CCParticleSystem::update @ 0x180069972", "cocos2d::CCParticleSystem::update @ 0x180069b8a"], "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"}