{"type": "func", "start": 5372905328, "end": 5372905626, "name": "SetupObjectOptionsPopup::onExtendedCollision", "pseudocode": "// \n// SetupObjectOptionsPopup::onExtendedCollision from 0x140400770 to 0x14040089a (298 bytes)\n// \n// 2 xrefs:\n// > SetupObjectOptionsPopup::init @ 0x1403ff0e0\n// > <???> @ 0x1406d87b0\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\nvoid SetupObjectOptionsPopup::onExtendedCollision(SetupObjectOptionsPopup *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // r14\n  GJBaseGameLayer *v4; // r14\n  bool v5; // si\n  GameObject *m_gameObject; // rbx\n  GameObject *v7; // rax\n  GameObject *v8; // rsi\n  bool m_extendedCollision; // bp\n  void *v10; // [rsp+50h] [rbp+18h]\n\n  v3 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v10 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v10);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v3 = qword_1406C2ED8;\n  }\n  v4 = *(GJBaseGameLayer **)(v3 + 528);\n  if ( v4 )\n  {\n    v5 = !a1->m_extendedCollision;\n    a1->m_extendedCollision = v5;\n    m_gameObject = a1->m_gameObject;\n    if ( m_gameObject )\n    {\n      if ( m_gameObject->m_hasExtendedCollision != v5 )\n      {\n        GJBaseGameLayer::removeObjectFromSection(v4, a1->m_gameObject);\n        m_gameObject->m_hasExtendedCollision = v5;\n        v4->addToSection(v4, m_gameObject);\n      }\n    }\n    else if ( cocos2d::CCArray::count(a1->m_gameObjects) )\n    {\n      do\n      {\n        v7 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, (unsigned int)m_gameObject);\n        v8 = v7;\n        m_extendedCollision = a1->m_extendedCollision;\n        if ( v7->m_hasExtendedCollision != m_extendedCollision )\n        {\n          GJBaseGameLayer::removeObjectFromSection(v4, v7);\n          v8->m_hasExtendedCollision = m_extendedCollision;\n          v4->addToSection(v4, v8);\n        }\n        LODWORD(m_gameObject) = (_DWORD)m_gameObject + 1;\n      }\n      while ( (unsigned int)m_gameObject < cocos2d::CCArray::count(a1->m_gameObjects) );\n    }\n  }\n}", "assembly": "; \n; SetupObjectOptionsPopup::onExtendedCollision from 0x140400770 to 0x14040089a (298 bytes)\n; \n; 2 xrefs:\n; > SetupObjectOptionsPopup::init @ 0x1403ff0e0\n; > <???> @ 0x1406d87b0\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140400770\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140400775\npush    rsi                                                            ; +0xa, 0x14040077a\npush    rdi                                                            ; +0xb, 0x14040077b\npush    r14                                                            ; +0xc, 0x14040077c\nsub     rsp, 20h                                                       ; +0xe, 0x14040077e\nmov     rdi, rcx                                                       ; +0x12, 0x140400782\nmov     r14, cs:qword_1406C2ED8                                        ; +0x15, 0x140400785\ntest    r14, r14                                                       ; +0x1c, 0x14040078c\njnz     short loc_1404007C0                                            ; +0x1f, 0x14040078f\nmov     ecx, 668h; Size                                                ; +0x21, 0x140400791\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x26, 0x140400796\nmov     [rsp+38h+arg_10], rax                                          ; +0x2b, 0x14040079b\nmov     rcx, rax                                                       ; +0x30, 0x1404007a0\ncall    sub_14017AB00                                                  ; +0x33, 0x1404007a3\nnop                                                                    ; +0x38, 0x1404007a8\nmov     cs:qword_1406C2ED8, rax                                        ; +0x39, 0x1404007a9\nmov     rdx, [rax]                                                     ; +0x40, 0x1404007b0\nmov     rcx, rax                                                       ; +0x43, 0x1404007b3\ncall    qword ptr [rdx+48h]                                            ; +0x46, 0x1404007b6\nmov     r14, cs:qword_1406C2ED8                                        ; +0x49, 0x1404007b9\nmov     r14, [r14+210h]                                                ; +0x50, 0x1404007c0\ntest    r14, r14                                                       ; +0x57, 0x1404007c7\njz      loc_140400887                                                  ; +0x5a, 0x1404007ca\ncmp     byte ptr [rdi+2A5h], 0                                         ; +0x60, 0x1404007d0\nsetz    sil                                                            ; +0x67, 0x1404007d7\nmov     [rdi+2A5h], sil                                                ; +0x6b, 0x1404007db\nmov     rbx, [rdi+280h]                                                ; +0x72, 0x1404007e2\ntest    rbx, rbx                                                       ; +0x79, 0x1404007e9\njz      short loc_14040081E                                            ; +0x7c, 0x1404007ec\ncmp     [rbx+280h], sil                                                ; +0x7e, 0x1404007ee\njz      loc_140400887                                                  ; +0x85, 0x1404007f5\nmov     rdx, rbx                                                       ; +0x8b, 0x1404007fb\nmov     rcx, r14                                                       ; +0x8e, 0x1404007fe\ncall    GJBaseGameLayer__removeObjectFromSection                       ; +0x91, 0x140400801\nmov     [rbx+280h], sil                                                ; +0x96, 0x140400806\nmov     rax, [r14]                                                     ; +0x9d, 0x14040080d\nmov     rdx, rbx                                                       ; +0xa0, 0x140400810\nmov     rcx, r14                                                       ; +0xa3, 0x140400813\ncall    qword ptr [rax+478h]                                           ; +0xa6, 0x140400816\njmp     short loc_140400887                                            ; +0xac, 0x14040081c\nmov     rcx, [rdi+288h]                                                ; +0xae, 0x14040081e\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xb5, 0x140400825\ntest    eax, eax                                                       ; +0xbb, 0x14040082b\njz      short loc_140400887                                            ; +0xbd, 0x14040082d\nnop                                                                    ; +0xbf, 0x14040082f\nmov     edx, ebx                                                       ; +0xc0, 0x140400830\nmov     rcx, [rdi+288h]                                                ; +0xc2, 0x140400832\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xc9, 0x140400839\nmov     rsi, rax                                                       ; +0xcf, 0x14040083f\nmovzx   ebp, byte ptr [rdi+2A5h]                                       ; +0xd2, 0x140400842\ncmp     [rax+280h], bpl                                                ; +0xd9, 0x140400849\njz      short loc_140400874                                            ; +0xe0, 0x140400850\nmov     rdx, rax                                                       ; +0xe2, 0x140400852\nmov     rcx, r14                                                       ; +0xe5, 0x140400855\ncall    GJBaseGameLayer__removeObjectFromSection                       ; +0xe8, 0x140400858\nmov     [rsi+280h], bpl                                                ; +0xed, 0x14040085d\nmov     r8, [r14]                                                      ; +0xf4, 0x140400864\nmov     rdx, rsi                                                       ; +0xf7, 0x140400867\nmov     rcx, r14                                                       ; +0xfa, 0x14040086a\ncall    qword ptr [r8+478h]                                            ; +0xfd, 0x14040086d\ninc     ebx                                                            ; +0x104, 0x140400874\nmov     rcx, [rdi+288h]                                                ; +0x106, 0x140400876\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x10d, 0x14040087d\ncmp     ebx, eax                                                       ; +0x113, 0x140400883\njb      short loc_140400830                                            ; +0x115, 0x140400885\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x117, 0x140400887\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x11c, 0x14040088c\nadd     rsp, 20h                                                       ; +0x121, 0x140400891\npop     r14                                                            ; +0x125, 0x140400895\npop     rdi                                                            ; +0x127, 0x140400897\npop     rsi                                                            ; +0x128, 0x140400898\nretn                                                                   ; +0x129, 0x140400899", "xrefs": ["SetupObjectOptionsPopup::init @ 0x1403ff0e0", "<???> @ 0x1406d87b0"], "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"}