{"type": "func", "start": 4300905552, "end": 4300905675, "name": "GameObject::updateCustomScaleX", "pseudocode": "// \n// GameObject::updateCustomScaleX from 0x1005a9c50 to 0x1005a9ccb (123 bytes)\n// \n// 22 xrefs:\n// > EditorUI::onCreateObject @ 0x100034f5f\n// > EditorUI::createObject @ 0x10003a532\n// > EditorUI::scaleXChanged @ 0x10003f657\n// > EditorUI::scaleObjects @ 0x10003f9ad\n// > EditorUI::scaleObjects @ 0x10003f9f1\n// > sub_10003FCC0 @ 0x10003fcf6\n// > EditorUI::transformObjects @ 0x100040b25\n// > EditorUI::addObjectsToSmartTemplate @ 0x1000425c7\n// > EditorUI::createPrefab @ 0x100043a44\n// > EditorUI::createPrefab @ 0x100043a93\n// > EditorUI::processSmartObjectsFromType @ 0x1000442a3\n// > EditorUI::processSmartObjectsFromType @ 0x100044528\n// > EditorUI::createNewKeyframeAnim @ 0x100045623\n// > EditorUI::createLoop @ 0x100045b69\n// > EditorUI::createLoop @ 0x100045d43\n// > PlayLayer::addObject @ 0x1000b245d\n// > PlayLayer::addObject @ 0x1000b295b\n// > GameObjectCopy::resetObject @ 0x1000e33c9\n// > EditorUI::createOutlines @ 0x100614e2e\n// > EditorUI::createOutlines @ 0x100614ee9\n// > EditorUI::createRockBases @ 0x100615c0b\n// > EditorUI::createRockBases @ 0x100615d28\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// local variable allocation has failed, the output may be wrong!\nvoid __fastcall GameObject::updateCustomScaleX(GameObject *a1, float a2)\n{\n  __m128 v2; // xmm0\n  __m128 v3; // xmm2\n\n  v2.f32[0] = a2 * 1000.0;\n  v3 = _mm_or_ps(_mm_and_ps((__m128)xmmword_1008150B0, v2), (__m128)xmmword_1008150C0);\n  v3.f32[0] = v3.f32[0] + v2.f32[0];\n  v2.f32[0] = _mm_cvtepi32_ps(_mm_cvttps_epi32(_mm_round_ss((__m128)0LL, v3, 11))).f32[0] / 1000.0;\n  LODWORD(a1->m_scaleX) = v2.i32[0];\n  LODWORD(a1->m_customScaleX) = v2.i32[0];\n  a1->m_fScaleX = 0.0;\n  ((void (__fastcall *)(GameObject *, float))a1->setRScaleX)(a1, 1.0);\n  a1->m_isDirty = 1;\n  a1->m_isObjectRectDirty = 1;\n}", "assembly": "; \n; GameObject::updateCustomScaleX from 0x1005a9c50 to 0x1005a9ccb (123 bytes)\n; \n; 22 xrefs:\n; > EditorUI::onCreateObject @ 0x100034f5f\n; > EditorUI::createObject @ 0x10003a532\n; > EditorUI::scaleXChanged @ 0x10003f657\n; > EditorUI::scaleObjects @ 0x10003f9ad\n; > EditorUI::scaleObjects @ 0x10003f9f1\n; > sub_10003FCC0 @ 0x10003fcf6\n; > EditorUI::transformObjects @ 0x100040b25\n; > EditorUI::addObjectsToSmartTemplate @ 0x1000425c7\n; > EditorUI::createPrefab @ 0x100043a44\n; > EditorUI::createPrefab @ 0x100043a93\n; > EditorUI::processSmartObjectsFromType @ 0x1000442a3\n; > EditorUI::processSmartObjectsFromType @ 0x100044528\n; > EditorUI::createNewKeyframeAnim @ 0x100045623\n; > EditorUI::createLoop @ 0x100045b69\n; > EditorUI::createLoop @ 0x100045d43\n; > PlayLayer::addObject @ 0x1000b245d\n; > PlayLayer::addObject @ 0x1000b295b\n; > GameObjectCopy::resetObject @ 0x1000e33c9\n; > EditorUI::createOutlines @ 0x100614e2e\n; > EditorUI::createOutlines @ 0x100614ee9\n; > EditorUI::createRockBases @ 0x100615c0b\n; > EditorUI::createRockBases @ 0x100615d28\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\npush    rbp                                                            ; +0x0, 0x1005a9c50\nmov     rbp, rsp                                                       ; +0x1, 0x1005a9c51\npush    rbx                                                            ; +0x4, 0x1005a9c54\npush    rax                                                            ; +0x5, 0x1005a9c55\nmov     rbx, rdi                                                       ; +0x6, 0x1005a9c56\nmovss   xmm1, cs:dword_1008152B8                                       ; +0x9, 0x1005a9c59\nmulss   xmm0, xmm1                                                     ; +0x11, 0x1005a9c61\nmovaps  xmm2, cs:xmmword_1008150B0                                     ; +0x15, 0x1005a9c65\nandps   xmm2, xmm0                                                     ; +0x1c, 0x1005a9c6c\norps    xmm2, cs:xmmword_1008150C0                                     ; +0x1f, 0x1005a9c6f\naddss   xmm2, xmm0                                                     ; +0x26, 0x1005a9c76\nxorps   xmm0, xmm0                                                     ; +0x2a, 0x1005a9c7a\nroundss xmm0, xmm2, 0Bh                                                ; +0x2d, 0x1005a9c7d\ncvttps2dq xmm0, xmm0                                                   ; +0x33, 0x1005a9c83\ncvtdq2ps xmm0, xmm0                                                    ; +0x37, 0x1005a9c87\ndivss   xmm0, xmm1                                                     ; +0x3a, 0x1005a9c8a\nmovss   dword ptr [rdi+480h], xmm0                                     ; +0x3e, 0x1005a9c8e\nmovss   dword ptr [rdi+3DCh], xmm0                                     ; +0x46, 0x1005a9c96\nmov     dword ptr [rdi+40h], 0                                         ; +0x4e, 0x1005a9c9e\nmov     rax, [rdi]                                                     ; +0x55, 0x1005a9ca5\nmovss   xmm0, cs:alpha                                                 ; +0x58, 0x1005a9ca8\ncall    qword ptr [rax+590h]                                           ; +0x60, 0x1005a9cb0\nmov     byte ptr [rbx+348h], 1                                         ; +0x66, 0x1005a9cb6\nmov     byte ptr [rbx+360h], 1                                         ; +0x6d, 0x1005a9cbd\nadd     rsp, 8                                                         ; +0x74, 0x1005a9cc4\npop     rbx                                                            ; +0x78, 0x1005a9cc8\npop     rbp                                                            ; +0x79, 0x1005a9cc9\nretn                                                                   ; +0x7a, 0x1005a9cca", "xrefs": ["EditorUI::onCreateObject @ 0x100034f5f", "EditorUI::createObject @ 0x10003a532", "EditorUI::scaleXChanged @ 0x10003f657", "EditorUI::scaleObjects @ 0x10003f9ad", "EditorUI::scaleObjects @ 0x10003f9f1", "sub_10003FCC0 @ 0x10003fcf6", "EditorUI::transformObjects @ 0x100040b25", "EditorUI::addObjectsToSmartTemplate @ 0x1000425c7", "EditorUI::createPrefab @ 0x100043a44", "EditorUI::createPrefab @ 0x100043a93", "EditorUI::processSmartObjectsFromType @ 0x1000442a3", "EditorUI::processSmartObjectsFromType @ 0x100044528", "EditorUI::createNewKeyframeAnim @ 0x100045623", "EditorUI::createLoop @ 0x100045b69", "EditorUI::createLoop @ 0x100045d43", "PlayLayer::addObject @ 0x1000b245d", "PlayLayer::addObject @ 0x1000b295b", "GameObjectCopy::resetObject @ 0x1000e33c9", "EditorUI::createOutlines @ 0x100614e2e", "EditorUI::createOutlines @ 0x100614ee9", "EditorUI::createRockBases @ 0x100615c0b", "EditorUI::createRockBases @ 0x100615d28"], "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"}