{"type": "func", "start": 5370419152, "end": 5370419462, "name": "GameObject::getBoxOffset", "pseudocode": "// \n// GameObject::getBoxOffset from 0x1401a17d0 to 0x1401a1906 (310 bytes)\n// \n// 4 xrefs:\n// > GameObject::getObjectRect @ 0x140197779\n// > GameObject::updateOrientedBox @ 0x1401a159b\n// > GameObject::updateOrientedBox @ 0x1401a165b\n// > <???> @ 0x1406cbf7c\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\n// Hidden C++ exception states: #wind=1\nconst cocos2d::CCPoint *GameObject::getBoxOffset(GameObject *a1)\n{\n  __int64 v3; // rax\n  cocos2d::CCNode *m_pParent; // rcx\n  struct cocos2d::CCPoint v5; // rax\n  struct cocos2d::CCPoint v6; // rax\n  struct cocos2d::CCPoint v7; // [rsp+40h] [rbp+8h] BYREF\n  struct cocos2d::CCPoint v8; // [rsp+48h] [rbp+10h] BYREF\n  char v9; // [rsp+50h] [rbp+18h] BYREF\n  struct cocos2d::CCPoint v10; // [rsp+58h] [rbp+20h] BYREF\n\n  if ( cocos2d::CCPoint::equals(&a1->m_customBoxOffset) )\n    return &a1->m_customBoxOffset;\n  v3 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v7 = (struct cocos2d::CCPoint)operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(*(_QWORD *)&v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v3 = qword_1406C2ED8;\n  }\n  if ( *(_BYTE *)(v3 + 698) || a1->m_boxOffsetCalculated )\n  {\n    cocos2d::CCNode::convertToWorldSpace(a1, &v8);\n    cocos2d::CCNode::convertToWorldSpace(a1, &v7);\n    m_pParent = a1->m_pParent;\n    if ( m_pParent )\n    {\n      v5 = cocos2d::CCNode::convertToNodeSpace(m_pParent, &v10);\n      ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&v8, v5);\n      v6 = cocos2d::CCNode::convertToNodeSpace(a1->m_pParent, &v10);\n      ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&v7, v6);\n    }\n    cocos2d::CCPoint::operator-(&v8, &v9, &v7);\n    a1->m_boxOffsetCalculated = 0;\n    cocos2d::CCPoint::operator=(&a1->m_boxOffset, &v9);\n  }\n  return &a1->m_boxOffset;\n}", "assembly": "; \n; GameObject::getBoxOffset from 0x1401a17d0 to 0x1401a1906 (310 bytes)\n; \n; 4 xrefs:\n; > GameObject::getObjectRect @ 0x140197779\n; > GameObject::updateOrientedBox @ 0x1401a159b\n; > GameObject::updateOrientedBox @ 0x1401a165b\n; > <???> @ 0x1406cbf7c\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    rbx                                                            ; +0x0, 0x1401a17d0\npush    rdi                                                            ; +0x2, 0x1401a17d2\nsub     rsp, 28h                                                       ; +0x3, 0x1401a17d3\nmov     rbx, rcx                                                       ; +0x7, 0x1401a17d7\nlea     rdx, stru_1406C1C08                                            ; +0xa, 0x1401a17da\nadd     rcx, 2CCh                                                      ; +0x11, 0x1401a17e1\ncall    cs:?equals@CCPoint@cocos2d@@QEBA_NAEBV12@@Z; cocos2d::CCPoint::equals(cocos2d::CCPoint const &) ; +0x18, 0x1401a17e8\ntest    al, al                                                         ; +0x1e, 0x1401a17ee\njz      short loc_1401A1800                                            ; +0x20, 0x1401a17f0\nlea     rax, [rbx+2CCh]                                                ; +0x22, 0x1401a17f2\nadd     rsp, 28h                                                       ; +0x29, 0x1401a17f9\npop     rdi                                                            ; +0x2d, 0x1401a17fd\npop     rbx                                                            ; +0x2e, 0x1401a17fe\nretn                                                                   ; +0x2f, 0x1401a17ff\nmov     rax, cs:qword_1406C2ED8                                        ; +0x30, 0x1401a1800\ntest    rax, rax                                                       ; +0x37, 0x1401a1807\njnz     short loc_1401A183B                                            ; +0x3a, 0x1401a180a\nmov     ecx, 668h; Size                                                ; +0x3c, 0x1401a180c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x41, 0x1401a1811\nmov     [rsp+38h+arg_0], rax                                           ; +0x46, 0x1401a1816\nmov     rcx, rax                                                       ; +0x4b, 0x1401a181b\ncall    sub_14017AB00                                                  ; +0x4e, 0x1401a181e\nnop                                                                    ; +0x53, 0x1401a1823\nmov     cs:qword_1406C2ED8, rax                                        ; +0x54, 0x1401a1824\nmov     rdx, [rax]                                                     ; +0x5b, 0x1401a182b\nmov     rcx, rax                                                       ; +0x5e, 0x1401a182e\ncall    qword ptr [rdx+48h]                                            ; +0x61, 0x1401a1831\nmov     rax, cs:qword_1406C2ED8                                        ; +0x64, 0x1401a1834\ncmp     byte ptr [rax+2BAh], 0                                         ; +0x6b, 0x1401a183b\njnz     short loc_1401A1851                                            ; +0x72, 0x1401a1842\ncmp     byte ptr [rbx+2D4h], 0                                         ; +0x74, 0x1401a1844\njz      loc_1401A18F8                                                  ; +0x7b, 0x1401a184b\nlea     r8, [rbx+2CCh]                                                 ; +0x81, 0x1401a1851\nlea     rdx, [rsp+38h+arg_8]                                           ; +0x88, 0x1401a1858\nmov     rcx, rbx                                                       ; +0x8d, 0x1401a185d\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0x90, 0x1401a1860\nlea     r8, stru_1406C1C08                                             ; +0x96, 0x1401a1866\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x9d, 0x1401a186d\nmov     rcx, rbx                                                       ; +0xa2, 0x1401a1872\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0xa5, 0x1401a1875\nmov     rcx, [rbx+0D8h]                                                ; +0xab, 0x1401a187b\ntest    rcx, rcx                                                       ; +0xb2, 0x1401a1882\njz      short loc_1401A18CA                                            ; +0xb5, 0x1401a1885\nlea     r8, [rsp+38h+arg_8]                                            ; +0xb7, 0x1401a1887\nlea     rdx, [rsp+38h+arg_18]                                          ; +0xbc, 0x1401a188c\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0xc1, 0x1401a1891\nmov     rdx, rax                                                       ; +0xc7, 0x1401a1897\nlea     rcx, [rsp+38h+arg_8]                                           ; +0xca, 0x1401a189a\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xcf, 0x1401a189f\nlea     r8, [rsp+38h+arg_0]                                            ; +0xd5, 0x1401a18a5\nlea     rdx, [rsp+38h+arg_18]                                          ; +0xda, 0x1401a18aa\nmov     rcx, [rbx+0D8h]                                                ; +0xdf, 0x1401a18af\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0xe6, 0x1401a18b6\nmov     rdx, rax                                                       ; +0xec, 0x1401a18bc\nlea     rcx, [rsp+38h+arg_0]                                           ; +0xef, 0x1401a18bf\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xf4, 0x1401a18c4\nlea     r8, [rsp+38h+arg_0]                                            ; +0xfa, 0x1401a18ca\nlea     rdx, [rsp+38h+arg_10]                                          ; +0xff, 0x1401a18cf\nlea     rcx, [rsp+38h+arg_8]                                           ; +0x104, 0x1401a18d4\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x109, 0x1401a18d9\nmov     byte ptr [rbx+2D4h], 0                                         ; +0x10f, 0x1401a18df\nlea     rdx, [rsp+38h+arg_10]                                          ; +0x116, 0x1401a18e6\nlea     rcx, [rbx+2D8h]                                                ; +0x11b, 0x1401a18eb\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x122, 0x1401a18f2\nlea     rax, [rbx+2D8h]                                                ; +0x128, 0x1401a18f8\nadd     rsp, 28h                                                       ; +0x12f, 0x1401a18ff\npop     rdi                                                            ; +0x133, 0x1401a1903\npop     rbx                                                            ; +0x134, 0x1401a1904\nretn                                                                   ; +0x135, 0x1401a1905", "xrefs": ["GameObject::getObjectRect @ 0x140197779", "GameObject::updateOrientedBox @ 0x1401a159b", "GameObject::updateOrientedBox @ 0x1401a165b", "<???> @ 0x1406cbf7c"], "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"}