{"type": "func", "start": 3675688, "end": 3675796, "name": "EditorUI::sliderChanged", "pseudocode": "// \n// EditorUI::sliderChanged from 0x381628 to 0x381694 (108 bytes)\n// \n// 0 xrefs:\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 EditorUI::sliderChanged(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  float Value; // r0\n  cocos2d::CCLayer *m_objectLayer; // r7\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8\n  float v6; // r9\n  const cocos2d::CCPoint *v7; // r0\n  cocos2d::CCPoint v8; // [sp+4h] [bp-10h] BYREF\n\n  Value = SliderThumb::getValue((SliderThumb *)a2);\n  m_objectLayer = a1->m_editorLayer->m_objectLayer;\n  setPosition = m_objectLayer->setPosition;\n  v6 = EditorUI::xPosFromValue(a1, Value);\n  v7 = a1->m_editorLayer->m_objectLayer->getPosition(a1->m_editorLayer->m_objectLayer);\n  cocos2d::CCPoint::CCPoint(&v8, COERCE_FLOAT(LODWORD(v6) ^ 0x80000000), v7->y);\n  setPosition(m_objectLayer, &v8);\n  EditorUI::constrainGameLayerPosition(a1);\n}", "assembly": "; \n; EditorUI::sliderChanged from 0x381628 to 0x381694 (108 bytes)\n; \n; 0 xrefs:\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.W          {R4-R9,LR}                                             ; +0x0, 0x381628\nSUB             SP, SP, #0x14                                          ; +0x4, 0x38162c\nLDR             R4, =(__stack_chk_guard_ptr - 0x38163A)                ; +0x6, 0x38162e\nMOV             R5, R0                                                 ; +0x8, 0x381630\nMOV             R0, R1; this                                           ; +0xa, 0x381632\nADD             R6, SP, #0x14+var_10                                   ; +0xc, 0x381634\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x381636\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x381638\nLDR             R3, [R4]                                               ; +0x12, 0x38163a\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x14, 0x38163c\nBL              _ZN11SliderThumb8getValueEv; SliderThumb::getValue(void) ; +0x16, 0x38163e\nLDR.W           R3, [R5,#0x340]                                        ; +0x1a, 0x381642\nLDR.W           R7, [R3,#0x9F0]                                        ; +0x1e, 0x381646\nLDR             R3, [R7]                                               ; +0x22, 0x38164a\nLDR.W           R8, [R3,#0x5C]                                         ; +0x24, 0x38164c\nMOV             R1, R0; float                                          ; +0x28, 0x381650\nMOV             R0, R5; this                                           ; +0x2a, 0x381652\nBL              _ZN8EditorUI13xPosFromValueEf; EditorUI::xPosFromValue(float) ; +0x2c, 0x381654\nLDR.W           R3, [R5,#0x340]                                        ; +0x30, 0x381658\nMOV             R9, R0                                                 ; +0x34, 0x38165c\nLDR.W           R0, [R3,#0x9F0]                                        ; +0x36, 0x38165e\nLDR             R3, [R0]                                               ; +0x3a, 0x381662\nLDR             R3, [R3,#0x60]                                         ; +0x3c, 0x381664\nBLX             R3                                                     ; +0x3e, 0x381666\nEOR.W           R1, R9, #0x80000000; float                             ; +0x40, 0x381668\nMOV             R3, R0                                                 ; +0x44, 0x38166c\nMOV             R0, R6; this                                           ; +0x46, 0x38166e\nLDR             R2, [R3,#4]; float                                     ; +0x48, 0x381670\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x4a, 0x381672\nMOV             R0, R7                                                 ; +0x4e, 0x381676\nMOV             R1, R6                                                 ; +0x50, 0x381678\nBLX             R8                                                     ; +0x52, 0x38167a\nMOV             R0, R5; this                                           ; +0x54, 0x38167c\nBL              _ZN8EditorUI26constrainGameLayerPositionEv; EditorUI::constrainGameLayerPosition(void) ; +0x56, 0x38167e\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x5a, 0x381682\nLDR             R3, [R4]                                               ; +0x5c, 0x381684\nCMP             R2, R3                                                 ; +0x5e, 0x381686\nBEQ             loc_38168E                                             ; +0x60, 0x381688\nBLX             __stack_chk_fail                                       ; +0x62, 0x38168a\nADD             SP, SP, #0x14                                          ; +0x66, 0x38168e\nPOP.W           {R4-R9,PC}                                             ; +0x68, 0x381690", "xrefs": [], "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"}