{"type": "func", "start": 6442465248, "end": 6442465396, "name": "sub_1800037E0", "pseudocode": "// \n// sub_1800037E0 from 0x1800037e0 to 0x180003874 (148 bytes)\n// \n// 8 xrefs:\n// > cocos2d::CCNode::nodeToParentTransformFast @ 0x180003dcd\n// > cocos2d::CCNode::nodeToParentTransformFast @ 0x180003dde\n// > cocos2d::CCNode::nodeToParentTransformFast @ 0x180003df4\n// > cocos2d::CCNode::nodeToParentTransformFast @ 0x180003e05\n// > cocos2d::CCParticleSystem::initParticle @ 0x180068b1d\n// > cocos2d::CCParticleSystem::initParticle @ 0x180068b28\n// > cocos2d::CCParticleSystem::initParticle @ 0x180068dc4\n// > cocos2d::CCParticleSystem::initParticle @ 0x180068dcf\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:21:17 +0000\n// \n\n__m128 __fastcall sub_1800037E0(int a1)\n{\n  int v1; // r8d\n  unsigned int v2; // r9d\n  unsigned __int8 v3; // cl\n  unsigned __int8 v4; // dl\n  unsigned __int8 v5; // cl\n  __m128 result; // xmm0\n  char v7; // cl\n\n  v1 = -a1;\n  if ( a1 > 0 )\n    v1 = a1;\n  v2 = (unsigned int)a1 >> 31;\n  if ( v1 >= 360 )\n    v1 %= 360;\n  v3 = v1 + 76;\n  if ( v1 <= 180 )\n    v3 = v1;\n  v4 = v3;\n  v5 = -76 - v3;\n  if ( v4 <= 0x5Au )\n    v5 = v4;\n  result = (__m128)dword_1800EB890[v5];\n  v7 = v2;\n  if ( v1 <= 180 )\n    v7 = v2 ^ 1;\n  if ( !v7 )\n    return _mm_xor_ps(result, (__m128)xmmword_1800EC220);\n  return result;\n}", "assembly": "; \n; sub_1800037E0 from 0x1800037e0 to 0x180003874 (148 bytes)\n; \n; 8 xrefs:\n; > cocos2d::CCNode::nodeToParentTransformFast @ 0x180003dcd\n; > cocos2d::CCNode::nodeToParentTransformFast @ 0x180003dde\n; > cocos2d::CCNode::nodeToParentTransformFast @ 0x180003df4\n; > cocos2d::CCNode::nodeToParentTransformFast @ 0x180003e05\n; > cocos2d::CCParticleSystem::initParticle @ 0x180068b1d\n; > cocos2d::CCParticleSystem::initParticle @ 0x180068b28\n; > cocos2d::CCParticleSystem::initParticle @ 0x180068dc4\n; > cocos2d::CCParticleSystem::initParticle @ 0x180068dcf\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:21:17 +0000\n; \nmov     r8d, ecx                                                       ; +0x0, 0x1800037e0\nmov     r9d, ecx                                                       ; +0x3, 0x1800037e3\nneg     r8d                                                            ; +0x6, 0x1800037e6\ncmovs   r8d, ecx                                                       ; +0x9, 0x1800037e9\nshr     r9d, 1Fh                                                       ; +0xd, 0x1800037ed\nmovzx   r10d, r9b                                                      ; +0x11, 0x1800037f1\nxor     r10b, 1                                                        ; +0x15, 0x1800037f5\ncmp     r8d, 168h                                                      ; +0x19, 0x1800037f9\njl      short loc_180003820                                            ; +0x20, 0x180003800\nmov     eax, 0B60B60B7h                                                ; +0x22, 0x180003802\nimul    r8d                                                            ; +0x27, 0x180003807\nadd     edx, r8d                                                       ; +0x2a, 0x18000380a\nsar     edx, 8                                                         ; +0x2d, 0x18000380d\nmov     eax, edx                                                       ; +0x30, 0x180003810\nshr     eax, 1Fh                                                       ; +0x32, 0x180003812\nadd     edx, eax                                                       ; +0x35, 0x180003815\nimul    eax, edx, 168h                                                 ; +0x37, 0x180003817\nsub     r8d, eax                                                       ; +0x3d, 0x18000381d\ncmp     r8d, 0B4h                                                      ; +0x40, 0x180003820\nmovzx   edx, r8b                                                       ; +0x47, 0x180003827\nlea     eax, [rdx+4Ch]                                                 ; +0x4b, 0x18000382b\nmovzx   ecx, al                                                        ; +0x4e, 0x18000382e\nmov     eax, 0B4h                                                      ; +0x51, 0x180003831\ncmovle  ecx, edx                                                       ; +0x56, 0x180003836\nmovzx   edx, cl                                                        ; +0x59, 0x180003839\nsub     al, dl                                                         ; +0x5c, 0x18000383c\nmovzx   ecx, al                                                        ; +0x5e, 0x18000383e\ncmp     dl, 5Ah ; 'Z'                                                  ; +0x61, 0x180003841\ncmovbe  ecx, edx                                                       ; +0x64, 0x180003844\ncmp     r8d, 0B4h                                                      ; +0x67, 0x180003847\nmovzx   eax, cl                                                        ; +0x6e, 0x18000384e\nlea     rcx, dword_1800EB890                                           ; +0x71, 0x180003851\nmovss   xmm0, dword ptr [rcx+rax*4]                                    ; +0x78, 0x180003858\nmovzx   ecx, r9b                                                       ; +0x7d, 0x18000385d\nmovzx   eax, r10b                                                      ; +0x81, 0x180003861\ncmovle  ecx, eax                                                       ; +0x85, 0x180003865\ntest    cl, cl                                                         ; +0x88, 0x180003868\njnz     short locret_180003873                                         ; +0x8a, 0x18000386a\nxorps   xmm0, cs:xmmword_1800EC220                                     ; +0x8c, 0x18000386c\nretn                                                                   ; +0x93, 0x180003873", "xrefs": ["cocos2d::CCNode::nodeToParentTransformFast @ 0x180003dcd", "cocos2d::CCNode::nodeToParentTransformFast @ 0x180003dde", "cocos2d::CCNode::nodeToParentTransformFast @ 0x180003df4", "cocos2d::CCNode::nodeToParentTransformFast @ 0x180003e05", "cocos2d::CCParticleSystem::initParticle @ 0x180068b1d", "cocos2d::CCParticleSystem::initParticle @ 0x180068b28", "cocos2d::CCParticleSystem::initParticle @ 0x180068dc4", "cocos2d::CCParticleSystem::initParticle @ 0x180068dcf"], "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"}