{"type": "func", "start": 4301763488, "end": 4301763611, "name": "GameObject::updateCustomScaleX", "pseudocode": "// \n// GameObject::updateCustomScaleX from 0x10067b3a0 to 0x10067b41b (123 bytes)\n// \n// 23 xrefs:\n// > EditorUI::onCreateObject @ 0x10001118f\n// > EditorUI::createObject @ 0x100011d02\n// > EditorUI::addObjectsToSmartTemplate @ 0x100013797\n// > EditorUI::createPrefab @ 0x1000149da\n// > EditorUI::createPrefab @ 0x100014a23\n// > EditorUI::processSmartObjectsFromType @ 0x100015373\n// > EditorUI::processSmartObjectsFromType @ 0x1000155f8\n// > EditorUI::createNewKeyframeAnim @ 0x100016703\n// > EditorUI::createLoop @ 0x100016c49\n// > EditorUI::createLoop @ 0x100016e23\n// > EditorUI::createGradientFromSelection @ 0x1000176f3\n// > PlayLayer::addObject @ 0x10007f9eb\n// > PlayLayer::addObject @ 0x10007fed9\n// > GameObjectCopy::resetObject @ 0x1000b2f29\n// > EditorUI::scaleObjects @ 0x10061042d\n// > EditorUI::scaleObjects @ 0x100610471\n// > EditorUI::transformObjects @ 0x100610b35\n// > EditorUI::scaleXChanged @ 0x100613127\n// > sub_1006131A0 @ 0x1006131d6\n// > EditorUI::createOutlines @ 0x1006f18be\n// > EditorUI::createOutlines @ 0x1006f1979\n// > EditorUI::createRockBases @ 0x1006f266d\n// > EditorUI::createRockBases @ 0x1006f278f\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 12:35:03 +0000\n// \n\n__int64 __fastcall GameObject::updateCustomScaleX(__int64 a1, __m128 a2)\n{\n  __m128 v2; // xmm2\n  float v3; // xmm0_4\n  __int64 result; // rax\n\n  a2.f32[0] = a2.f32[0] * 1000.0;\n  v2 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, a2), (__m128)xmmword_100A03600);\n  v2.f32[0] = v2.f32[0] + a2.f32[0];\n  v3 = _mm_cvtepi32_ps(_mm_cvttps_epi32(_mm_round_ss((__m128)0LL, v2, 11))).f32[0] / 1000.0;\n  *(float *)(a1 + 1152) = v3;\n  *(float *)(a1 + 988) = v3;\n  *(_DWORD *)(a1 + 64) = 0;\n  result = (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)a1 + 1440LL))(a1, 1.0);\n  *(_BYTE *)(a1 + 840) = 1;\n  *(_BYTE *)(a1 + 864) = 1;\n  return result;\n}", "assembly": "; \n; GameObject::updateCustomScaleX from 0x10067b3a0 to 0x10067b41b (123 bytes)\n; \n; 23 xrefs:\n; > EditorUI::onCreateObject @ 0x10001118f\n; > EditorUI::createObject @ 0x100011d02\n; > EditorUI::addObjectsToSmartTemplate @ 0x100013797\n; > EditorUI::createPrefab @ 0x1000149da\n; > EditorUI::createPrefab @ 0x100014a23\n; > EditorUI::processSmartObjectsFromType @ 0x100015373\n; > EditorUI::processSmartObjectsFromType @ 0x1000155f8\n; > EditorUI::createNewKeyframeAnim @ 0x100016703\n; > EditorUI::createLoop @ 0x100016c49\n; > EditorUI::createLoop @ 0x100016e23\n; > EditorUI::createGradientFromSelection @ 0x1000176f3\n; > PlayLayer::addObject @ 0x10007f9eb\n; > PlayLayer::addObject @ 0x10007fed9\n; > GameObjectCopy::resetObject @ 0x1000b2f29\n; > EditorUI::scaleObjects @ 0x10061042d\n; > EditorUI::scaleObjects @ 0x100610471\n; > EditorUI::transformObjects @ 0x100610b35\n; > EditorUI::scaleXChanged @ 0x100613127\n; > sub_1006131A0 @ 0x1006131d6\n; > EditorUI::createOutlines @ 0x1006f18be\n; > EditorUI::createOutlines @ 0x1006f1979\n; > EditorUI::createRockBases @ 0x1006f266d\n; > EditorUI::createRockBases @ 0x1006f278f\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 12:35:03 +0000\n; \npush    rbp                                                            ; +0x0, 0x10067b3a0\nmov     rbp, rsp                                                       ; +0x1, 0x10067b3a1\npush    rbx                                                            ; +0x4, 0x10067b3a4\npush    rax                                                            ; +0x5, 0x10067b3a5\nmov     rbx, rdi                                                       ; +0x6, 0x10067b3a6\nmovss   xmm1, cs:dword_100A03738                                       ; +0x9, 0x10067b3a9\nmulss   xmm0, xmm1                                                     ; +0x11, 0x10067b3b1\nmovaps  xmm2, cs:xmmword_100A035F0                                     ; +0x15, 0x10067b3b5\nandps   xmm2, xmm0                                                     ; +0x1c, 0x10067b3bc\norps    xmm2, cs:xmmword_100A03600                                     ; +0x1f, 0x10067b3bf\naddss   xmm2, xmm0                                                     ; +0x26, 0x10067b3c6\nxorps   xmm0, xmm0                                                     ; +0x2a, 0x10067b3ca\nroundss xmm0, xmm2, 0Bh                                                ; +0x2d, 0x10067b3cd\ncvttps2dq xmm0, xmm0                                                   ; +0x33, 0x10067b3d3\ncvtdq2ps xmm0, xmm0                                                    ; +0x37, 0x10067b3d7\ndivss   xmm0, xmm1                                                     ; +0x3a, 0x10067b3da\nmovss   dword ptr [rdi+480h], xmm0                                     ; +0x3e, 0x10067b3de\nmovss   dword ptr [rdi+3DCh], xmm0                                     ; +0x46, 0x10067b3e6\nmov     dword ptr [rdi+40h], 0                                         ; +0x4e, 0x10067b3ee\nmov     rax, [rdi]                                                     ; +0x55, 0x10067b3f5\nmovss   xmm0, cs:alpha                                                 ; +0x58, 0x10067b3f8\ncall    qword ptr [rax+5A0h]                                           ; +0x60, 0x10067b400\nmov     byte ptr [rbx+348h], 1                                         ; +0x66, 0x10067b406\nmov     byte ptr [rbx+360h], 1                                         ; +0x6d, 0x10067b40d\nadd     rsp, 8                                                         ; +0x74, 0x10067b414\npop     rbx                                                            ; +0x78, 0x10067b418\npop     rbp                                                            ; +0x79, 0x10067b419\nretn                                                                   ; +0x7a, 0x10067b41a", "xrefs": ["EditorUI::onCreateObject @ 0x10001118f", "EditorUI::createObject @ 0x100011d02", "EditorUI::addObjectsToSmartTemplate @ 0x100013797", "EditorUI::createPrefab @ 0x1000149da", "EditorUI::createPrefab @ 0x100014a23", "EditorUI::processSmartObjectsFromType @ 0x100015373", "EditorUI::processSmartObjectsFromType @ 0x1000155f8", "EditorUI::createNewKeyframeAnim @ 0x100016703", "EditorUI::createLoop @ 0x100016c49", "EditorUI::createLoop @ 0x100016e23", "EditorUI::createGradientFromSelection @ 0x1000176f3", "PlayLayer::addObject @ 0x10007f9eb", "PlayLayer::addObject @ 0x10007fed9", "GameObjectCopy::resetObject @ 0x1000b2f29", "EditorUI::scaleObjects @ 0x10061042d", "EditorUI::scaleObjects @ 0x100610471", "EditorUI::transformObjects @ 0x100610b35", "EditorUI::scaleXChanged @ 0x100613127", "sub_1006131A0 @ 0x1006131d6", "EditorUI::createOutlines @ 0x1006f18be", "EditorUI::createOutlines @ 0x1006f1979", "EditorUI::createRockBases @ 0x1006f266d", "EditorUI::createRockBases @ 0x1006f278f"], "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"}