{"type": "func", "start": 6442465120, "end": 6442465256, "name": "sub_180003760", "pseudocode": "// \n// sub_180003760 from 0x180003760 to 0x1800037e8 (136 bytes)\n// \n// 8 xrefs:\n// > cocos2d::CCNode::nodeToParentTransformFast @ 0x180003d3d\n// > cocos2d::CCNode::nodeToParentTransformFast @ 0x180003d4e\n// > cocos2d::CCNode::nodeToParentTransformFast @ 0x180003d64\n// > cocos2d::CCNode::nodeToParentTransformFast @ 0x180003d75\n// > cocos2d::CCParticleSystem::initParticle @ 0x180066879\n// > cocos2d::CCParticleSystem::initParticle @ 0x180066884\n// > cocos2d::CCParticleSystem::initParticle @ 0x180066b20\n// > cocos2d::CCParticleSystem::initParticle @ 0x180066b2b\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\n__m128 __fastcall sub_180003760(int a1)\n{\n  int v1; // r9d\n  bool v2; // r8\n  unsigned __int8 v3; // cl\n  unsigned __int8 v4; // al\n  __m128 result; // xmm0\n\n  v1 = -a1;\n  if ( a1 > 0 )\n    v1 = a1;\n  v2 = a1 >= 0;\n  if ( v1 >= 360 )\n    v1 %= 360;\n  if ( v1 > 180 )\n    v2 = a1 < 0;\n  v3 = v1 + 76;\n  if ( v1 <= 180 )\n    v3 = v1;\n  v4 = -76 - v3;\n  if ( v3 <= 0x5Au )\n    v4 = v3;\n  result = (__m128)dword_1800E5850[v4];\n  if ( !v2 )\n    return _mm_xor_ps(result, (__m128)xmmword_1800E61C0);\n  return result;\n}", "assembly": "; \n; sub_180003760 from 0x180003760 to 0x1800037e8 (136 bytes)\n; \n; 8 xrefs:\n; > cocos2d::CCNode::nodeToParentTransformFast @ 0x180003d3d\n; > cocos2d::CCNode::nodeToParentTransformFast @ 0x180003d4e\n; > cocos2d::CCNode::nodeToParentTransformFast @ 0x180003d64\n; > cocos2d::CCNode::nodeToParentTransformFast @ 0x180003d75\n; > cocos2d::CCParticleSystem::initParticle @ 0x180066879\n; > cocos2d::CCParticleSystem::initParticle @ 0x180066884\n; > cocos2d::CCParticleSystem::initParticle @ 0x180066b20\n; > cocos2d::CCParticleSystem::initParticle @ 0x180066b2b\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\nmov     r9d, ecx                                                       ; +0x0, 0x180003760\nmov     r8d, ecx                                                       ; +0x3, 0x180003763\nneg     r9d                                                            ; +0x6, 0x180003766\ncmovs   r9d, ecx                                                       ; +0x9, 0x180003769\nshr     r8d, 1Fh                                                       ; +0xd, 0x18000376d\nxor     r8b, 1                                                         ; +0x11, 0x180003771\ncmp     r9d, 168h                                                      ; +0x15, 0x180003775\njl      short loc_18000379C                                            ; +0x1c, 0x18000377c\nmov     eax, 0B60B60B7h                                                ; +0x1e, 0x18000377e\nimul    r9d                                                            ; +0x23, 0x180003783\nadd     edx, r9d                                                       ; +0x26, 0x180003786\nsar     edx, 8                                                         ; +0x29, 0x180003789\nmov     eax, edx                                                       ; +0x2c, 0x18000378c\nshr     eax, 1Fh                                                       ; +0x2e, 0x18000378e\nadd     edx, eax                                                       ; +0x31, 0x180003791\nimul    eax, edx, 168h                                                 ; +0x33, 0x180003793\nsub     r9d, eax                                                       ; +0x39, 0x180003799\nmov     r10d, 0B4h                                                     ; +0x3c, 0x18000379c\ncmp     r9d, r10d                                                      ; +0x42, 0x1800037a2\njle     short loc_1800037AB                                            ; +0x45, 0x1800037a5\nxor     r8b, 1                                                         ; +0x47, 0x1800037a7\ncmp     r9d, r10d                                                      ; +0x4b, 0x1800037ab\nlea     eax, [r9+4Ch]                                                  ; +0x4e, 0x1800037ae\nmovzx   ecx, al                                                        ; +0x52, 0x1800037b2\nmovzx   eax, r9b                                                       ; +0x55, 0x1800037b5\ncmovle  ecx, eax                                                       ; +0x59, 0x1800037b9\nmovzx   edx, cl                                                        ; +0x5c, 0x1800037bc\nlea     rcx, dword_1800E5850                                           ; +0x5f, 0x1800037bf\nsub     r10b, dl                                                       ; +0x66, 0x1800037c6\ncmp     dl, 5Ah ; 'Z'                                                  ; +0x69, 0x1800037c9\nmovzx   eax, r10b                                                      ; +0x6c, 0x1800037cc\ncmovbe  eax, edx                                                       ; +0x70, 0x1800037d0\nmovzx   eax, al                                                        ; +0x73, 0x1800037d3\nmovss   xmm0, dword ptr [rcx+rax*4]                                    ; +0x76, 0x1800037d6\ntest    r8b, r8b                                                       ; +0x7b, 0x1800037db\njnz     short locret_1800037E7                                         ; +0x7e, 0x1800037de\nxorps   xmm0, cs:xmmword_1800E61C0                                     ; +0x80, 0x1800037e0\nretn                                                                   ; +0x87, 0x1800037e7", "xrefs": ["cocos2d::CCNode::nodeToParentTransformFast @ 0x180003d3d", "cocos2d::CCNode::nodeToParentTransformFast @ 0x180003d4e", "cocos2d::CCNode::nodeToParentTransformFast @ 0x180003d64", "cocos2d::CCNode::nodeToParentTransformFast @ 0x180003d75", "cocos2d::CCParticleSystem::initParticle @ 0x180066879", "cocos2d::CCParticleSystem::initParticle @ 0x180066884", "cocos2d::CCParticleSystem::initParticle @ 0x180066b20", "cocos2d::CCParticleSystem::initParticle @ 0x180066b2b"], "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"}