{"type": "func", "start": 3021832, "end": 3021898, "name": "ExtendedLayer::setPosition", "pseudocode": "// \n// ExtendedLayer::setPosition from 0x2e1c08 to 0x2e1c4a (66 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 ExtendedLayer::setPosition(ExtendedLayer *a1, const cocos2d::CCPoint *a2)\n{\n  BoomScrollLayerDelegate *m_delegate; // r5\n  void (__fastcall *scrollLayerMoved)(BoomScrollLayerDelegate *__hidden, cocos2d::CCPoint); // r7\n  cocos2d::CCPoint v6; // [sp+4h] [bp-Ch] BYREF\n\n  LODWORD(v6.x) = a2;\n  cocos2d::CCNode::setPosition(a1, a2);\n  m_delegate = a1->m_delegate;\n  if ( m_delegate )\n  {\n    scrollLayerMoved = m_delegate->scrollLayerMoved;\n    cocos2d::CCPoint::CCPoint(&v6, a2);\n    ((void (__fastcall *)(BoomScrollLayerDelegate *, cocos2d::CCPoint *))scrollLayerMoved)(m_delegate, &v6);\n  }\n}", "assembly": "; \n; ExtendedLayer::setPosition from 0x2e1c08 to 0x2e1c4a (66 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          {R0-R8,LR}                                             ; +0x0, 0x2e1c08\nMOV             R5, R0                                                 ; +0x4, 0x2e1c0c\nLDR             R4, =(__stack_chk_guard_ptr - 0x2E1C16)                ; +0x6, 0x2e1c0e\nMOV             R8, R1                                                 ; +0x8, 0x2e1c10\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xa, 0x2e1c12\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xc, 0x2e1c14\nLDR             R3, [R4]                                               ; +0xe, 0x2e1c16\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x10, 0x2e1c18\nBL              _ZN7cocos2d6CCNode11setPositionERKNS_7CCPointE; cocos2d::CCNode::setPosition(cocos2d::CCPoint const&) ; +0x12, 0x2e1c1a\nLDR.W           R5, [R5,#0x13C]                                        ; +0x16, 0x2e1c1e\nCBZ             R5, loc_2E1C38                                         ; +0x1a, 0x2e1c22\nLDR             R3, [R5]                                               ; +0x1c, 0x2e1c24\nADD             R6, SP, #0x10+var_C                                    ; +0x1e, 0x2e1c26\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x20, 0x2e1c28\nMOV             R0, R6; this                                           ; +0x22, 0x2e1c2a\nLDR             R7, [R3,#8]                                            ; +0x24, 0x2e1c2c\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x26, 0x2e1c2e\nMOV             R0, R5                                                 ; +0x2a, 0x2e1c32\nMOV             R1, R6                                                 ; +0x2c, 0x2e1c34\nBLX             R7                                                     ; +0x2e, 0x2e1c36\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x30, 0x2e1c38\nLDR             R3, [R4]                                               ; +0x32, 0x2e1c3a\nCMP             R2, R3                                                 ; +0x34, 0x2e1c3c\nBEQ             loc_2E1C44                                             ; +0x36, 0x2e1c3e\nBLX             __stack_chk_fail                                       ; +0x38, 0x2e1c40\nADD             SP, SP, #0x10                                          ; +0x3c, 0x2e1c44\nPOP.W           {R4-R8,PC}                                             ; +0x3e, 0x2e1c46", "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"}