{"type": "func", "start": 5373751472, "end": 5373751719, "name": "GJUINode::updateButtonPositions", "pseudocode": "// \n// GJUINode::updateButtonPositions from 0x1404cf0b0 to 0x1404cf1a7 (247 bytes)\n// \n// 12 xrefs:\n// > UIOptionsLayer::valueDidChange @ 0x1402a335f\n// > UIOptionsLayer::valueDidChange @ 0x1402a33bf\n// > UIOptionsLayer::valueDidChange @ 0x1402a341f\n// > UIOptionsLayer::valueDidChange @ 0x1402a347f\n// > UIOptionsLayer::valueDidChange @ 0x1402a3619\n// > UIOptionsLayer::valueDidChange @ 0x1402a3643\n// > GJUINode::init @ 0x1404cecef\n// > GJUINode::init @ 0x1404ced07\n// > GJUINode::init @ 0x1404cedbd\n// > <???> @ 0x1406a9f28\n// > <???> @ 0x1406a9f38\n// > <???> @ 0x1406dd598\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 GJUINode::updateButtonPositions(GJUINode *a1)\n{\n  cocos2d::CCSprite *m_firstSprite; // rcx\n  cocos2d::CCSprite_vtbl *v3; // rax\n  double v4; // xmm0_8\n  cocos2d::CCSprite *v5; // rax\n  float m_radius; // xmm7_4\n  float v7; // xmm8_4\n  cocos2d::CCSprite_vtbl *v8; // rbx\n  __int64 v9; // rax\n  float v10; // xmm0_4\n  cocos2d::CCSprite_vtbl *v11; // rbx\n  const cocos2d::CCPoint *v12; // rax\n\n  if ( a1->m_secondSprite )\n  {\n    m_firstSprite = a1->m_firstSprite;\n    v3 = m_firstSprite->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    if ( a1->m_modeB )\n    {\n      v3->setPosition_0(m_firstSprite, &stru_1406C2E00);\n    }\n    else\n    {\n      v4 = ((double (*)(void))v3->getScale)();\n      v5 = a1->m_firstSprite;\n      m_radius = a1->m_radius;\n      v7 = *(float *)&v4 * v5->m_obRect.size.width;\n      v8 = v5->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n      cocos2d::CCPoint::CCPoint(*(float *)&v4, (float)((float)-v7 * 0.5) - m_radius);\n      v10 = ((float (__fastcall *)(cocos2d::CCSprite *, __int64))v8->setPosition_0)(a1->m_firstSprite, v9);\n      v11 = a1->m_secondSprite->__vftable;\n      cocos2d::CCPoint::CCPoint(v10, (float)(v7 * 0.5) + m_radius);\n      v11->setPosition_0(a1->m_secondSprite, v12);\n    }\n  }\n}", "assembly": "; \n; GJUINode::updateButtonPositions from 0x1404cf0b0 to 0x1404cf1a7 (247 bytes)\n; \n; 12 xrefs:\n; > UIOptionsLayer::valueDidChange @ 0x1402a335f\n; > UIOptionsLayer::valueDidChange @ 0x1402a33bf\n; > UIOptionsLayer::valueDidChange @ 0x1402a341f\n; > UIOptionsLayer::valueDidChange @ 0x1402a347f\n; > UIOptionsLayer::valueDidChange @ 0x1402a3619\n; > UIOptionsLayer::valueDidChange @ 0x1402a3643\n; > GJUINode::init @ 0x1404cecef\n; > GJUINode::init @ 0x1404ced07\n; > GJUINode::init @ 0x1404cedbd\n; > <???> @ 0x1406a9f28\n; > <???> @ 0x1406a9f38\n; > <???> @ 0x1406dd598\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    rdi                                                            ; +0x0, 0x1404cf0b0\nsub     rsp, 40h                                                       ; +0x2, 0x1404cf0b2\ncmp     qword ptr [rcx+148h], 0                                        ; +0x6, 0x1404cf0b6\nmov     rdi, rcx                                                       ; +0xe, 0x1404cf0be\njz      loc_1404CF1A1                                                  ; +0x11, 0x1404cf0c1\ncmp     byte ptr [rdi+17Dh], 0                                         ; +0x17, 0x1404cf0c7\nmov     rcx, [rcx+140h]                                                ; +0x1e, 0x1404cf0ce\nmov     rax, [rcx]                                                     ; +0x25, 0x1404cf0d5\njz      short loc_1404CF0ED                                            ; +0x28, 0x1404cf0d8\nlea     rdx, stru_1406C2E00                                            ; +0x2a, 0x1404cf0da\nadd     rsp, 40h                                                       ; +0x31, 0x1404cf0e1\npop     rdi                                                            ; +0x35, 0x1404cf0e5\njmp     qword ptr [rax+0B8h]                                           ; +0x36, 0x1404cf0e6\nmov     [rsp+48h+arg_8], rbx                                           ; +0x3d, 0x1404cf0ed\nmovaps  [rsp+48h+var_18], xmm7                                         ; +0x42, 0x1404cf0f2\nmovaps  [rsp+48h+var_28], xmm8                                         ; +0x47, 0x1404cf0f7\ncall    qword ptr [rax+0A8h]                                           ; +0x4d, 0x1404cf0fd\nmov     rax, [rdi+140h]                                                ; +0x53, 0x1404cf103\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x5a, 0x1404cf10a\nmovss   xmm7, dword ptr [rdi+174h]                                     ; +0x5f, 0x1404cf10f\nmovaps  xmm8, xmm0                                                     ; +0x67, 0x1404cf117\nxorps   xmm2, xmm2                                                     ; +0x6b, 0x1404cf11b\nmulss   xmm8, dword ptr [rax+1B0h]                                     ; +0x6e, 0x1404cf11e\nmov     rbx, [rax]                                                     ; +0x77, 0x1404cf127\nmovaps  xmm1, xmm8                                                     ; +0x7a, 0x1404cf12a\nxorps   xmm1, cs:xmmword_1406243F0                                     ; +0x7e, 0x1404cf12e\nmulss   xmm1, cs:dword_140622B08                                       ; +0x85, 0x1404cf135\nsubss   xmm1, xmm7                                                     ; +0x8d, 0x1404cf13d\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x91, 0x1404cf141\nmov     rcx, [rdi+140h]                                                ; +0x97, 0x1404cf147\nmov     rdx, rax                                                       ; +0x9e, 0x1404cf14e\ncall    qword ptr [rbx+0B8h]                                           ; +0xa1, 0x1404cf151\nmulss   xmm8, cs:dword_140622B08                                       ; +0xa7, 0x1404cf157\nlea     rcx, [rsp+48h+arg_0]                                           ; +0xb0, 0x1404cf160\nmov     rax, [rdi+148h]                                                ; +0xb5, 0x1404cf165\nxorps   xmm2, xmm2                                                     ; +0xbc, 0x1404cf16c\naddss   xmm8, xmm7                                                     ; +0xbf, 0x1404cf16f\nmov     rbx, [rax]                                                     ; +0xc4, 0x1404cf174\nmovaps  xmm1, xmm8                                                     ; +0xc7, 0x1404cf177\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xcb, 0x1404cf17b\nmov     rcx, [rdi+148h]                                                ; +0xd1, 0x1404cf181\nmov     rdx, rax                                                       ; +0xd8, 0x1404cf188\ncall    qword ptr [rbx+0B8h]                                           ; +0xdb, 0x1404cf18b\nmovaps  xmm8, [rsp+48h+var_28]                                         ; +0xe1, 0x1404cf191\nmovaps  xmm7, [rsp+48h+var_18]                                         ; +0xe7, 0x1404cf197\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xec, 0x1404cf19c\nadd     rsp, 40h                                                       ; +0xf1, 0x1404cf1a1\npop     rdi                                                            ; +0xf5, 0x1404cf1a5\nretn                                                                   ; +0xf6, 0x1404cf1a6", "xrefs": ["UIOptionsLayer::valueDidChange @ 0x1402a335f", "UIOptionsLayer::valueDidChange @ 0x1402a33bf", "UIOptionsLayer::valueDidChange @ 0x1402a341f", "UIOptionsLayer::valueDidChange @ 0x1402a347f", "UIOptionsLayer::valueDidChange @ 0x1402a3619", "UIOptionsLayer::valueDidChange @ 0x1402a3643", "GJUINode::init @ 0x1404cecef", "GJUINode::init @ 0x1404ced07", "GJUINode::init @ 0x1404cedbd", "<???> @ 0x1406a9f28", "<???> @ 0x1406a9f38", "<???> @ 0x1406dd598"], "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"}