{"type": "func", "start": 5370381904, "end": 5370382045, "name": "GameObject::updateCustomScaleX", "pseudocode": "// \n// GameObject::updateCustomScaleX from 0x140198650 to 0x1401986dd (141 bytes)\n// \n// 16 xrefs:\n// > EditorUI::createObject @ 0x14010ff90\n// > EditorUI::scaleXChanged @ 0x140114f9f\n// > EditorUI::scaleObjects @ 0x140121761\n// > EditorUI::transformObjects @ 0x140121dcf\n// > EditorUI::createOutlines @ 0x14012f308\n// > EditorUI::createOutlines @ 0x14012f3cf\n// > EditorUI::createRockBases @ 0x14012fc4a\n// > EditorUI::createRockBases @ 0x14012fd74\n// > GameObject::resetObject @ 0x140190788\n// > GameObject::objectFromVector @ 0x14019dc25\n// > GameObject::objectFromVector @ 0x14019dc90\n// > GameObject::duplicateValues @ 0x1401a1f43\n// > GameObjectCopy::resetObject @ 0x1402e8abc\n// > PlayLayer::addObject @ 0x1403ae256\n// > PlayLayer::addObject @ 0x1403ae91e\n// > <???> @ 0x1406cbc28\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\nvoid GameObject::updateCustomScaleX(GameObject *a1, float a2)\n{\n  float v2; // xmm1_4\n  float v4; // xmm0_4\n  GameObject_vtbl *v5; // rax\n  float v6; // xmm0_4\n\n  v2 = a2 * 1000.0;\n  if ( v2 < 0.0 )\n    v4 = ceilf(v2 - 0.5);\n  else\n    v4 = floorf(v2 + 0.5);\n  a1->m_fScaleX = 0.0;\n  v5 = a1->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v6 = (float)(int)v4 / 1000.0;\n  a1->m_scaleX = v6;\n  a1->m_customScaleX = v6;\n  ((void (__fastcall *)(GameObject *))v5->setRScaleX)(a1);\n  a1->m_isDirty = 1;\n  a1->m_isObjectRectDirty = 1;\n}", "assembly": "; \n; GameObject::updateCustomScaleX from 0x140198650 to 0x1401986dd (141 bytes)\n; \n; 16 xrefs:\n; > EditorUI::createObject @ 0x14010ff90\n; > EditorUI::scaleXChanged @ 0x140114f9f\n; > EditorUI::scaleObjects @ 0x140121761\n; > EditorUI::transformObjects @ 0x140121dcf\n; > EditorUI::createOutlines @ 0x14012f308\n; > EditorUI::createOutlines @ 0x14012f3cf\n; > EditorUI::createRockBases @ 0x14012fc4a\n; > EditorUI::createRockBases @ 0x14012fd74\n; > GameObject::resetObject @ 0x140190788\n; > GameObject::objectFromVector @ 0x14019dc25\n; > GameObject::objectFromVector @ 0x14019dc90\n; > GameObject::duplicateValues @ 0x1401a1f43\n; > GameObjectCopy::resetObject @ 0x1402e8abc\n; > PlayLayer::addObject @ 0x1403ae256\n; > PlayLayer::addObject @ 0x1403ae91e\n; > <???> @ 0x1406cbc28\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    rbx                                                            ; +0x0, 0x140198650\nsub     rsp, 20h                                                       ; +0x2, 0x140198652\nmulss   xmm1, cs:dword_14062350C                                       ; +0x6, 0x140198656\nxorps   xmm0, xmm0                                                     ; +0xe, 0x14019865e\nmov     rbx, rcx                                                       ; +0x11, 0x140198661\ncomiss  xmm1, xmm0                                                     ; +0x14, 0x140198664\njb      short loc_14019867B                                            ; +0x17, 0x140198667\naddss   xmm1, cs:dword_140622B08                                       ; +0x19, 0x140198669\nmovaps  xmm0, xmm1; X                                                  ; +0x21, 0x140198671\ncall    floorf                                                         ; +0x24, 0x140198674\njmp     short loc_14019868B                                            ; +0x29, 0x140198679\nsubss   xmm1, cs:dword_140622B08                                       ; +0x2b, 0x14019867b\nmovaps  xmm0, xmm1; X                                                  ; +0x33, 0x140198683\ncall    ceilf                                                          ; +0x36, 0x140198686\nmovss   xmm1, cs:flt_140622C24                                         ; +0x3b, 0x14019868b\nmov     rcx, rbx                                                       ; +0x43, 0x140198693\ncvttss2si eax, xmm0                                                    ; +0x46, 0x140198696\nmov     dword ptr [rbx+40h], 0                                         ; +0x4a, 0x14019869a\nmovd    xmm0, eax                                                      ; +0x51, 0x1401986a1\nmov     rax, [rbx]                                                     ; +0x55, 0x1401986a5\ncvtdq2ps xmm0, xmm0                                                    ; +0x58, 0x1401986a8\ndivss   xmm0, cs:dword_14062350C                                       ; +0x5b, 0x1401986ab\nmovss   dword ptr [rbx+488h], xmm0                                     ; +0x63, 0x1401986b3\nmovss   dword ptr [rbx+3E4h], xmm0                                     ; +0x6b, 0x1401986bb\ncall    qword ptr [rax+4F8h]                                           ; +0x73, 0x1401986c3\nmov     byte ptr [rbx+350h], 1                                         ; +0x79, 0x1401986c9\nmov     byte ptr [rbx+368h], 1                                         ; +0x80, 0x1401986d0\nadd     rsp, 20h                                                       ; +0x87, 0x1401986d7\npop     rbx                                                            ; +0x8b, 0x1401986db\nretn                                                                   ; +0x8c, 0x1401986dc", "xrefs": ["EditorUI::createObject @ 0x14010ff90", "EditorUI::scaleXChanged @ 0x140114f9f", "EditorUI::scaleObjects @ 0x140121761", "EditorUI::transformObjects @ 0x140121dcf", "EditorUI::createOutlines @ 0x14012f308", "EditorUI::createOutlines @ 0x14012f3cf", "EditorUI::createRockBases @ 0x14012fc4a", "EditorUI::createRockBases @ 0x14012fd74", "GameObject::resetObject @ 0x140190788", "GameObject::objectFromVector @ 0x14019dc25", "GameObject::objectFromVector @ 0x14019dc90", "GameObject::duplicateValues @ 0x1401a1f43", "GameObjectCopy::resetObject @ 0x1402e8abc", "PlayLayer::addObject @ 0x1403ae256", "PlayLayer::addObject @ 0x1403ae91e", "<???> @ 0x1406cbc28"], "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"}