{"type": "func", "start": 6853176, "end": 6853304, "name": "ExtendedLayer::setPosition", "pseudocode": "// \n// ExtendedLayer::setPosition from 0x689238 to 0x6892b8 (128 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x6ad38\n// > <???> @ 0x14130e8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:50:32 +0000\n// \n\n__int64 __fastcall ExtendedLayer::setPosition(ExtendedLayer *this, const cocos2d::CCPoint *a2)\n{\n  __int64 v4; // x20\n  const cocos2d::CCPoint *v5; // x1\n  void (__fastcall *v6)(__int64, _BYTE *); // x22\n  _BYTE v8[8]; // [xsp+30h] [xbp+30h] BYREF\n\n  cocos2d::CCNode::setPosition(this, a2);\n  v4 = *((_QWORD *)this + 51);\n  if ( v4 )\n  {\n    v5 = a2;\n    v6 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v4 + 16LL);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, v5);\n    v6(v4, v8);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; ExtendedLayer::setPosition from 0x689238 to 0x6892b8 (128 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x6ad38\n; > <???> @ 0x14130e8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:50:32 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x689238\nMOV             X29, SP                                                ; +0x4, 0x68923c\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x689240\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x689244\nMOV             X20, X0                                                ; +0x10, 0x689248\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x14, 0x68924c\nMOV             X22, X1                                                ; +0x18, 0x689250\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x689254\nLDR             X2, [X2]                                               ; +0x20, 0x689258\nSTR             X2, [X29,#0x40+var_8]                                  ; +0x24, 0x68925c\nBL              _ZN7cocos2d6CCNode11setPositionERKNS_7CCPointE; cocos2d::CCNode::setPosition(cocos2d::CCPoint const&) ; +0x28, 0x689260\nLDR             X20, [X20,#0x198]                                      ; +0x2c, 0x689264\nCBZ             X20, loc_689290                                        ; +0x30, 0x689268\nLDR             X2, [X20]                                              ; +0x34, 0x68926c\nADD             X21, X29, #0x40+var_10                                 ; +0x38, 0x689270\nMOV             X1, X22; cocos2d::CCPoint *                            ; +0x3c, 0x689274\nMOV             X0, X21; this                                          ; +0x40, 0x689278\nLDR             X22, [X2,#0x10]                                        ; +0x44, 0x68927c\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x48, 0x689280\nMOV             X0, X20                                                ; +0x4c, 0x689284\nMOV             X1, X21                                                ; +0x50, 0x689288\nBLR             X22                                                    ; +0x54, 0x68928c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x58, 0x689290\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x5c, 0x689294\nLDR             X0, [X19]                                              ; +0x60, 0x689298\nCMP             X1, X0                                                 ; +0x64, 0x68929c\nB.NE            loc_6892B4                                             ; +0x68, 0x6892a0\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x6c, 0x6892a4\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x70, 0x6892a8\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x74, 0x6892ac\nRET                                                                    ; +0x78, 0x6892b0\nBL              .__stack_chk_fail                                      ; +0x7c, 0x6892b4", "xrefs": ["<???> @ 0x6ad38", "<???> @ 0x14130e8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}