{"type": "func", "start": 5689676, "end": 5689804, "name": "ExtendedLayer::setPosition", "pseudocode": "// \n// ExtendedLayer::setPosition from 0x56d14c to 0x56d1cc (128 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x4c128\n// > <???> @ 0x1135a18\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 ExtendedLayer::setPosition(ExtendedLayer *a1, const cocos2d::CCPoint *a2)\n{\n  BoomScrollLayerDelegate *m_delegate; // x20\n  const cocos2d::CCPoint *v5; // x1\n  void (__fastcall *scrollLayerMoved)(BoomScrollLayerDelegate *__hidden, cocos2d::CCPoint); // x22\n  cocos2d::CCPoint v7; // [xsp+30h] [xbp+30h] BYREF\n\n  cocos2d::CCNode::setPosition(a1, a2);\n  m_delegate = a1->m_delegate;\n  if ( m_delegate )\n  {\n    v5 = a2;\n    scrollLayerMoved = m_delegate->scrollLayerMoved;\n    cocos2d::CCPoint::CCPoint(&v7, v5);\n    ((void (__fastcall *)(BoomScrollLayerDelegate *, cocos2d::CCPoint *))scrollLayerMoved)(m_delegate, &v7);\n  }\n}", "assembly": "; \n; ExtendedLayer::setPosition from 0x56d14c to 0x56d1cc (128 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x4c128\n; > <???> @ 0x1135a18\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\nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x56d14c\nMOV             X29, SP                                                ; +0x4, 0x56d150\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x56d154\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x56d158\nMOV             X20, X0                                                ; +0x10, 0x56d15c\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x14, 0x56d160\nMOV             X22, X1                                                ; +0x18, 0x56d164\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x56d168\nLDR             X2, [X2]                                               ; +0x20, 0x56d16c\nSTR             X2, [X29,#0x40+var_8]                                  ; +0x24, 0x56d170\nBL              _ZN7cocos2d6CCNode11setPositionERKNS_7CCPointE; cocos2d::CCNode::setPosition(cocos2d::CCPoint const&) ; +0x28, 0x56d174\nLDR             X20, [X20,#0x198]                                      ; +0x2c, 0x56d178\nCBZ             X20, loc_56D1A4                                        ; +0x30, 0x56d17c\nLDR             X2, [X20]                                              ; +0x34, 0x56d180\nADD             X21, X29, #0x40+var_10                                 ; +0x38, 0x56d184\nMOV             X1, X22; cocos2d::CCPoint *                            ; +0x3c, 0x56d188\nMOV             X0, X21; this                                          ; +0x40, 0x56d18c\nLDR             X22, [X2,#0x10]                                        ; +0x44, 0x56d190\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x48, 0x56d194\nMOV             X0, X20                                                ; +0x4c, 0x56d198\nMOV             X1, X21                                                ; +0x50, 0x56d19c\nBLR             X22                                                    ; +0x54, 0x56d1a0\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x58, 0x56d1a4\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x5c, 0x56d1a8\nLDR             X0, [X19]                                              ; +0x60, 0x56d1ac\nCMP             X1, X0                                                 ; +0x64, 0x56d1b0\nB.NE            loc_56D1C8                                             ; +0x68, 0x56d1b4\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x6c, 0x56d1b8\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x70, 0x56d1bc\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x74, 0x56d1c0\nRET                                                                    ; +0x78, 0x56d1c4\nBL              .__stack_chk_fail                                      ; +0x7c, 0x56d1c8", "xrefs": ["<???> @ 0x4c128", "<???> @ 0x1135a18"], "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"}