{"type": "func", "start": 4297616016, "end": 4297616307, "name": "CollisionBlockPopup::onItemIDArrow", "pseudocode": "// \n// CollisionBlockPopup::onItemIDArrow from 0x100286a90 to 0x100286bb3 (291 bytes)\n// \n// 2 xrefs:\n// > CollisionBlockPopup::init @ 0x10028647c\n// > CollisionBlockPopup::init @ 0x10028652a\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 __fastcall CollisionBlockPopup::onItemIDArrow(CollisionBlockPopup *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCArray *m_gameObjects; // rdi\n  int v4; // eax\n  int v5; // ecx\n  int v6; // eax\n  EffectGameObject *m_gameObject; // rcx\n  unsigned int v8; // r14d\n  __int64 v9; // r14\n  unsigned int v10; // r15d\n  GameObject *v11; // rax\n\n  m_gameObjects = (cocos2d::CCArray *)a2;\n  v4 = a1->m_blockID + 2 * (((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) != 1) - 1;\n  v5 = 0;\n  if ( v4 > 0 )\n    v5 = v4;\n  v6 = 9999;\n  if ( v5 < 9999 )\n    v6 = v5;\n  a1->m_blockID = v6;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_itemID = v6;\n    goto LABEL_12;\n  }\n  m_gameObjects = a1->m_gameObjects;\n  if ( m_gameObjects && (unsigned int)sub_100720070(m_gameObjects) )\n  {\n    v8 = 0;\n    do\n    {\n      a2 = (cocos2d::CCObject *)v8;\n      *(_DWORD *)(sub_1007200C0(a1->m_gameObjects, v8++) + 1680) = a1->m_blockID;\n      m_gameObjects = a1->m_gameObjects;\n    }\n    while ( v8 < (unsigned int)sub_100720070(m_gameObjects) );\n  }\n  if ( a1->m_gameObject )\n  {\nLABEL_12:\n    v9 = sub_10071F9E0(m_gameObjects, a2);\n    sub_10071FCD0(v9, a1->m_gameObject);\n    if ( !v9 )\n      goto LABEL_16;\n    goto LABEL_13;\n  }\n  v9 = (__int64)a1->m_gameObjects;\n  if ( !v9 )\n    goto LABEL_16;\nLABEL_13:\n  if ( (unsigned int)sub_100720070(v9) )\n  {\n    v10 = 0;\n    do\n    {\n      v11 = (GameObject *)sub_1007200C0(v9, v10);\n      LevelEditorLayer::updateObjectLabel(v11);\n      ++v10;\n    }\n    while ( v10 < (unsigned int)sub_100720070(v9) );\n  }\nLABEL_16:\n  CollisionBlockPopup::updateTextInputLabel(a1);\n}", "assembly": "; \n; CollisionBlockPopup::onItemIDArrow from 0x100286a90 to 0x100286bb3 (291 bytes)\n; \n; 2 xrefs:\n; > CollisionBlockPopup::init @ 0x10028647c\n; > CollisionBlockPopup::init @ 0x10028652a\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    rbp                                                            ; +0x0, 0x100286a90\nmov     rbp, rsp                                                       ; +0x1, 0x100286a91\npush    r15                                                            ; +0x4, 0x100286a94\npush    r14                                                            ; +0x6, 0x100286a96\npush    rbx                                                            ; +0x8, 0x100286a98\npush    rax                                                            ; +0x9, 0x100286a99\nmov     rbx, rdi                                                       ; +0xa, 0x100286a9a\nmov     rax, [rsi]                                                     ; +0xd, 0x100286a9d\nmov     rdi, rsi                                                       ; +0x10, 0x100286aa0\ncall    qword ptr [rax+40h]                                            ; +0x13, 0x100286aa3\nxor     ecx, ecx                                                       ; +0x16, 0x100286aa6\ncmp     eax, 1                                                         ; +0x18, 0x100286aa8\nsetnz   cl                                                             ; +0x1b, 0x100286aab\nmov     eax, [rbx+298h]                                                ; +0x1e, 0x100286aae\nlea     eax, [rax+rcx*2]                                               ; +0x24, 0x100286ab4\ndec     eax                                                            ; +0x27, 0x100286ab7\nxor     ecx, ecx                                                       ; +0x29, 0x100286ab9\ntest    eax, eax                                                       ; +0x2b, 0x100286abb\ncmovg   ecx, eax                                                       ; +0x2d, 0x100286abd\ncmp     ecx, 270Fh                                                     ; +0x30, 0x100286ac0\nmov     eax, 270Fh                                                     ; +0x36, 0x100286ac6\ncmovl   eax, ecx                                                       ; +0x3b, 0x100286acb\nmov     [rbx+298h], eax                                                ; +0x3e, 0x100286ace\nmov     rcx, [rbx+280h]                                                ; +0x44, 0x100286ad4\ntest    rcx, rcx                                                       ; +0x4b, 0x100286adb\njz      short loc_100286AE8                                            ; +0x4e, 0x100286ade\nmov     [rcx+690h], eax                                                ; +0x50, 0x100286ae0\njmp     short loc_100286B39                                            ; +0x56, 0x100286ae6\nmov     rdi, [rbx+288h]                                                ; +0x58, 0x100286ae8\ntest    rdi, rdi                                                       ; +0x5f, 0x100286aef\njz      short loc_100286B2F                                            ; +0x62, 0x100286af2\ncall    sub_100720070                                                  ; +0x64, 0x100286af4\ntest    eax, eax                                                       ; +0x69, 0x100286af9\njz      short loc_100286B2F                                            ; +0x6b, 0x100286afb\nxor     r14d, r14d                                                     ; +0x6d, 0x100286afd\nmov     rdi, [rbx+288h]                                                ; +0x70, 0x100286b00\nmov     esi, r14d                                                      ; +0x77, 0x100286b07\ncall    sub_1007200C0                                                  ; +0x7a, 0x100286b0a\nmov     ecx, [rbx+298h]                                                ; +0x7f, 0x100286b0f\nmov     [rax+690h], ecx                                                ; +0x85, 0x100286b15\ninc     r14d                                                           ; +0x8b, 0x100286b1b\nmov     rdi, [rbx+288h]                                                ; +0x8e, 0x100286b1e\ncall    sub_100720070                                                  ; +0x95, 0x100286b25\ncmp     r14d, eax                                                      ; +0x9a, 0x100286b2a\njb      short loc_100286B00                                            ; +0x9d, 0x100286b2d\ncmp     qword ptr [rbx+280h], 0                                        ; +0x9f, 0x100286b2f\njz      short loc_100286BA5                                            ; +0xa7, 0x100286b37\ncall    sub_10071F9E0                                                  ; +0xa9, 0x100286b39\nmov     r14, rax                                                       ; +0xae, 0x100286b3e\nmov     rsi, [rbx+280h]                                                ; +0xb1, 0x100286b41\nmov     rdi, rax                                                       ; +0xb8, 0x100286b48\ncall    sub_10071FCD0                                                  ; +0xbb, 0x100286b4b\ntest    r14, r14                                                       ; +0xc0, 0x100286b50\njz      short loc_100286B93                                            ; +0xc3, 0x100286b53\nmov     rdi, r14                                                       ; +0xc5, 0x100286b55\ncall    sub_100720070                                                  ; +0xc8, 0x100286b58\ntest    eax, eax                                                       ; +0xcd, 0x100286b5d\njz      short loc_100286B93                                            ; +0xcf, 0x100286b5f\nxor     r15d, r15d                                                     ; +0xd1, 0x100286b61\nnop     word ptr [rax+rax+00000000h]                                   ; +0xd4, 0x100286b64\nmov     rdi, r14                                                       ; +0xe0, 0x100286b70\nmov     esi, r15d                                                      ; +0xe3, 0x100286b73\ncall    sub_1007200C0                                                  ; +0xe6, 0x100286b76\nmov     rdi, rax                                                       ; +0xeb, 0x100286b7b\ncall    LevelEditorLayer__updateObjectLabel                            ; +0xee, 0x100286b7e\ninc     r15d                                                           ; +0xf3, 0x100286b83\nmov     rdi, r14                                                       ; +0xf6, 0x100286b86\ncall    sub_100720070                                                  ; +0xf9, 0x100286b89\ncmp     r15d, eax                                                      ; +0xfe, 0x100286b8e\njb      short loc_100286B70                                            ; +0x101, 0x100286b91\nmov     rdi, rbx                                                       ; +0x103, 0x100286b93\nadd     rsp, 8                                                         ; +0x106, 0x100286b96\npop     rbx                                                            ; +0x10a, 0x100286b9a\npop     r14                                                            ; +0x10b, 0x100286b9b\npop     r15                                                            ; +0x10d, 0x100286b9d\npop     rbp                                                            ; +0x10f, 0x100286b9f\njmp     CollisionBlockPopup__updateTextInputLabel                      ; +0x110, 0x100286ba0\nmov     r14, [rbx+288h]                                                ; +0x115, 0x100286ba5\ntest    r14, r14                                                       ; +0x11c, 0x100286bac\njnz     short loc_100286B55                                            ; +0x11f, 0x100286baf\njmp     short loc_100286B93                                            ; +0x121, 0x100286bb1", "xrefs": ["CollisionBlockPopup::init @ 0x10028647c", "CollisionBlockPopup::init @ 0x10028652a"], "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"}