{"type": "func", "start": 4299992800, "end": 4299993037, "name": "GJUINode::updateDragRadius", "pseudocode": "// \n// GJUINode::updateDragRadius from 0x1004caee0 to 0x1004cafcd (237 bytes)\n// \n// 2 xrefs:\n// > UIOptionsLayer::valueDidChange @ 0x1002b48bb\n// > UIOptionsLayer::valueDidChange @ 0x1002b4a46\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 __fastcall GJUINode::updateDragRadius(GJUINode *a1, float a2)\n{\n  cocos2d::CCSprite *m_firstSprite; // rax\n  cocos2d::CCSprite_vtbl *v3; // rcx\n  float v4; // xmm0_4\n  cocos2d::CCSprite *v5; // rbx\n  cocos2d::CCSprite *m_secondSprite; // rbx\n  float v7; // [rsp-30h] [rbp-30h] BYREF\n  float m_radius; // [rsp-28h] [rbp-28h]\n  float v9; // [rsp-24h] [rbp-24h]\n\n  a1->m_radius = fmaxf(a2, 0.0);\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      ((void (__fastcall *)(cocos2d::CCSprite *, double *))v3->setPosition)(a1->m_firstSprite, &dbl_1009A2038);\n    }\n    else\n    {\n      v4 = ((float (__fastcall *)(cocos2d::CCSprite *))v3->getScale)(m_firstSprite);\n      v5 = a1->m_firstSprite;\n      v9 = v4 * v5->m_obRect.size.width;\n      m_radius = a1->m_radius;\n      sub_10028CBE0(&v7, (float)(-0.5 * v9) - m_radius, 0.0);\n      ((void (__fastcall *)(cocos2d::CCSprite *, float *))v5->setPosition)(v5, &v7);\n      m_secondSprite = a1->m_secondSprite;\n      sub_10028CBE0(&v7, (float)(v9 * 0.5) + m_radius, 0.0);\n      ((void (__fastcall *)(cocos2d::CCSprite *, float *))m_secondSprite->setPosition)(m_secondSprite, &v7);\n    }\n  }\n}", "assembly": "; \n; GJUINode::updateDragRadius from 0x1004caee0 to 0x1004cafcd (237 bytes)\n; \n; 2 xrefs:\n; > UIOptionsLayer::valueDidChange @ 0x1002b48bb\n; > UIOptionsLayer::valueDidChange @ 0x1002b4a46\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\nxorps   xmm1, xmm1                                                     ; +0x0, 0x1004caee0\nmaxss   xmm0, xmm1                                                     ; +0x3, 0x1004caee3\nmovss   dword ptr [rdi+174h], xmm0                                     ; +0x7, 0x1004caee7\ncmp     qword ptr [rdi+148h], 0                                        ; +0xf, 0x1004caeef\njz      locret_1004CAFCC                                               ; +0x17, 0x1004caef7\nmov     rax, [rdi+140h]                                                ; +0x1d, 0x1004caefd\nmov     rcx, [rax]                                                     ; +0x24, 0x1004caf04\ncmp     byte ptr [rdi+17Dh], 1                                         ; +0x27, 0x1004caf07\njnz     short loc_1004CAF23                                            ; +0x2e, 0x1004caf0e\nmov     rcx, [rcx+0B8h]                                                ; +0x30, 0x1004caf10\nlea     rsi, dbl_1009A2038                                             ; +0x37, 0x1004caf17\nmov     rdi, rax                                                       ; +0x3e, 0x1004caf1e\njmp     rcx                                                            ; +0x41, 0x1004caf21\npush    rbp                                                            ; +0x43, 0x1004caf23\nmov     rbp, rsp                                                       ; +0x44, 0x1004caf24\npush    r15                                                            ; +0x47, 0x1004caf27\npush    r14                                                            ; +0x49, 0x1004caf29\npush    rbx                                                            ; +0x4b, 0x1004caf2b\nsub     rsp, 18h                                                       ; +0x4c, 0x1004caf2c\nmov     r15, rdi                                                       ; +0x50, 0x1004caf30\nmov     rdi, rax                                                       ; +0x53, 0x1004caf33\ncall    qword ptr [rcx+0A8h]                                           ; +0x56, 0x1004caf36\nmovaps  xmm1, xmm0                                                     ; +0x5c, 0x1004caf3c\nmov     rbx, [r15+140h]                                                ; +0x5f, 0x1004caf3f\nmulss   xmm1, dword ptr [rbx+1B0h]                                     ; +0x66, 0x1004caf46\nmovss   dword ptr [rbp-1Ch], xmm1                                      ; +0x6e, 0x1004caf4e\nmovss   xmm2, dword ptr [r15+174h]                                     ; +0x73, 0x1004caf53\nmovss   dword ptr [rbp-20h], xmm2                                      ; +0x7c, 0x1004caf5c\nmovss   xmm0, cs:dword_100815248                                       ; +0x81, 0x1004caf61\nmulss   xmm0, xmm1                                                     ; +0x89, 0x1004caf69\nsubss   xmm0, xmm2                                                     ; +0x8d, 0x1004caf6d\nlea     r14, [rbp-28h]                                                 ; +0x91, 0x1004caf71\nxorps   xmm1, xmm1                                                     ; +0x95, 0x1004caf75\nmov     rdi, r14                                                       ; +0x98, 0x1004caf78\ncall    sub_10028CBE0                                                  ; +0x9b, 0x1004caf7b\nmov     rax, [rbx]                                                     ; +0xa0, 0x1004caf80\nmov     rdi, rbx                                                       ; +0xa3, 0x1004caf83\nmov     rsi, r14                                                       ; +0xa6, 0x1004caf86\ncall    qword ptr [rax+0B8h]                                           ; +0xa9, 0x1004caf89\nmov     rbx, [r15+148h]                                                ; +0xaf, 0x1004caf8f\nmovss   xmm0, dword ptr [rbp-1Ch]                                      ; +0xb6, 0x1004caf96\nmulss   xmm0, cs:dword_100814FA8                                       ; +0xbb, 0x1004caf9b\naddss   xmm0, dword ptr [rbp-20h]                                      ; +0xc3, 0x1004cafa3\nxorps   xmm1, xmm1                                                     ; +0xc8, 0x1004cafa8\nmov     rdi, r14                                                       ; +0xcb, 0x1004cafab\ncall    sub_10028CBE0                                                  ; +0xce, 0x1004cafae\nmov     rax, [rbx]                                                     ; +0xd3, 0x1004cafb3\nmov     rdi, rbx                                                       ; +0xd6, 0x1004cafb6\nmov     rsi, r14                                                       ; +0xd9, 0x1004cafb9\ncall    qword ptr [rax+0B8h]                                           ; +0xdc, 0x1004cafbc\nadd     rsp, 18h                                                       ; +0xe2, 0x1004cafc2\npop     rbx                                                            ; +0xe6, 0x1004cafc6\npop     r14                                                            ; +0xe7, 0x1004cafc7\npop     r15                                                            ; +0xe9, 0x1004cafc9\npop     rbp                                                            ; +0xeb, 0x1004cafcb\nretn                                                                   ; +0xec, 0x1004cafcc", "xrefs": ["UIOptionsLayer::valueDidChange @ 0x1002b48bb", "UIOptionsLayer::valueDidChange @ 0x1002b4a46"], "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"}