{"type": "func", "start": 5370382048, "end": 5370382189, "name": "GameObject::updateCustomScaleY", "pseudocode": "// \n// GameObject::updateCustomScaleY from 0x1401986e0 to 0x14019876d (141 bytes)\n// \n// 16 xrefs:\n// > EditorUI::createObject @ 0x14010ffa0\n// > EditorUI::scaleYChanged @ 0x14011504f\n// > EditorUI::scaleObjects @ 0x140121771\n// > EditorUI::transformObjects @ 0x140121ddb\n// > EditorUI::createOutlines @ 0x14012f318\n// > EditorUI::createOutlines @ 0x14012f3df\n// > EditorUI::createRockBases @ 0x14012fc5b\n// > EditorUI::createRockBases @ 0x14012fd85\n// > GameObject::resetObject @ 0x1401907a7\n// > GameObject::objectFromVector @ 0x14019dc38\n// > GameObject::objectFromVector @ 0x14019dc9b\n// > GameObject::duplicateValues @ 0x1401a1f66\n// > GameObjectCopy::resetObject @ 0x1402e8aca\n// > PlayLayer::addObject @ 0x1403ae266\n// > PlayLayer::addObject @ 0x1403ae92e\n// > <???> @ 0x1406cbc34\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::updateCustomScaleY(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_fScaleY = 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_scaleY = v6;\n  a1->m_customScaleY = v6;\n  ((void (__fastcall *)(GameObject *))v5->setRScaleY)(a1);\n  a1->m_isDirty = 1;\n  a1->m_isObjectRectDirty = 1;\n}", "assembly": "; \n; GameObject::updateCustomScaleY from 0x1401986e0 to 0x14019876d (141 bytes)\n; \n; 16 xrefs:\n; > EditorUI::createObject @ 0x14010ffa0\n; > EditorUI::scaleYChanged @ 0x14011504f\n; > EditorUI::scaleObjects @ 0x140121771\n; > EditorUI::transformObjects @ 0x140121ddb\n; > EditorUI::createOutlines @ 0x14012f318\n; > EditorUI::createOutlines @ 0x14012f3df\n; > EditorUI::createRockBases @ 0x14012fc5b\n; > EditorUI::createRockBases @ 0x14012fd85\n; > GameObject::resetObject @ 0x1401907a7\n; > GameObject::objectFromVector @ 0x14019dc38\n; > GameObject::objectFromVector @ 0x14019dc9b\n; > GameObject::duplicateValues @ 0x1401a1f66\n; > GameObjectCopy::resetObject @ 0x1402e8aca\n; > PlayLayer::addObject @ 0x1403ae266\n; > PlayLayer::addObject @ 0x1403ae92e\n; > <???> @ 0x1406cbc34\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, 0x1401986e0\nsub     rsp, 20h                                                       ; +0x2, 0x1401986e2\nmulss   xmm1, cs:dword_14062350C                                       ; +0x6, 0x1401986e6\nxorps   xmm0, xmm0                                                     ; +0xe, 0x1401986ee\nmov     rbx, rcx                                                       ; +0x11, 0x1401986f1\ncomiss  xmm1, xmm0                                                     ; +0x14, 0x1401986f4\njb      short loc_14019870B                                            ; +0x17, 0x1401986f7\naddss   xmm1, cs:dword_140622B08                                       ; +0x19, 0x1401986f9\nmovaps  xmm0, xmm1; X                                                  ; +0x21, 0x140198701\ncall    floorf                                                         ; +0x24, 0x140198704\njmp     short loc_14019871B                                            ; +0x29, 0x140198709\nsubss   xmm1, cs:dword_140622B08                                       ; +0x2b, 0x14019870b\nmovaps  xmm0, xmm1; X                                                  ; +0x33, 0x140198713\ncall    ceilf                                                          ; +0x36, 0x140198716\nmovss   xmm1, cs:flt_140622C24                                         ; +0x3b, 0x14019871b\nmov     rcx, rbx                                                       ; +0x43, 0x140198723\ncvttss2si eax, xmm0                                                    ; +0x46, 0x140198726\nmov     dword ptr [rbx+44h], 0                                         ; +0x4a, 0x14019872a\nmovd    xmm0, eax                                                      ; +0x51, 0x140198731\nmov     rax, [rbx]                                                     ; +0x55, 0x140198735\ncvtdq2ps xmm0, xmm0                                                    ; +0x58, 0x140198738\ndivss   xmm0, cs:dword_14062350C                                       ; +0x5b, 0x14019873b\nmovss   dword ptr [rbx+48Ch], xmm0                                     ; +0x63, 0x140198743\nmovss   dword ptr [rbx+3E8h], xmm0                                     ; +0x6b, 0x14019874b\ncall    qword ptr [rax+500h]                                           ; +0x73, 0x140198753\nmov     byte ptr [rbx+350h], 1                                         ; +0x79, 0x140198759\nmov     byte ptr [rbx+368h], 1                                         ; +0x80, 0x140198760\nadd     rsp, 20h                                                       ; +0x87, 0x140198767\npop     rbx                                                            ; +0x8b, 0x14019876b\nretn                                                                   ; +0x8c, 0x14019876c", "xrefs": ["EditorUI::createObject @ 0x14010ffa0", "EditorUI::scaleYChanged @ 0x14011504f", "EditorUI::scaleObjects @ 0x140121771", "EditorUI::transformObjects @ 0x140121ddb", "EditorUI::createOutlines @ 0x14012f318", "EditorUI::createOutlines @ 0x14012f3df", "EditorUI::createRockBases @ 0x14012fc5b", "EditorUI::createRockBases @ 0x14012fd85", "GameObject::resetObject @ 0x1401907a7", "GameObject::objectFromVector @ 0x14019dc38", "GameObject::objectFromVector @ 0x14019dc9b", "GameObject::duplicateValues @ 0x1401a1f66", "GameObjectCopy::resetObject @ 0x1402e8aca", "PlayLayer::addObject @ 0x1403ae266", "PlayLayer::addObject @ 0x1403ae92e", "<???> @ 0x1406cbc34"], "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"}