{"type": "func", "start": 5372883344, "end": 5372883712, "name": "SetGroupIDLayer::onArrow", "pseudocode": "// \n// SetGroupIDLayer::onArrow from 0x1403fb190 to 0x1403fb300 (368 bytes)\n// \n// 3 xrefs:\n// > SetGroupIDLayer::onArrowLeft @ 0x1403fb152\n// > SetGroupIDLayer::onArrowRight @ 0x1403fb182\n// > <???> @ 0x1406d83e4\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 SetGroupIDLayer::onArrow(SetGroupIDLayer *a1, int a2, int a3)\n{\n  int v4; // eax\n  int v5; // ecx\n  int v6; // eax\n  int v7; // ecx\n  int v8; // eax\n  int v9; // ecx\n  int v10; // eax\n  int v11; // ecx\n  int v12; // eax\n  int v13; // ecx\n  int m_zOrderValue; // ecx\n  int v15; // eax\n\n  switch ( a2 )\n  {\n    case 1:\n      v4 = 0;\n      v5 = a3 + a1->m_groupIDValue;\n      if ( v5 >= 0 )\n        v4 = v5;\n      a1->m_groupIDValue = v4;\n      SetGroupIDLayer::updateGroupIDLabel(a1);\n      return;\n    case 3:\n      v10 = 0;\n      v11 = a3 + a1->m_orderValue;\n      if ( v11 >= 0 )\n        v10 = v11;\n      a1->m_orderValue = v10;\n      SetGroupIDLayer::updateEditorOrder(a1);\n      SetGroupIDLayer::updateEditorOrderLabel(a1);\n      return;\n    case 4:\n      v12 = 0;\n      v13 = a3 + a1->m_channelValue;\n      if ( v13 >= 0 )\n        v12 = v13;\n      a1->m_channelValue = v12;\n      SetGroupIDLayer::updateOrderChannel(a1);\n      SetGroupIDLayer::updateOrderChannelLabel(a1);\n      return;\n    case 5:\n      v6 = 0;\n      v7 = a3 + a1->m_editorLayerValue;\n      if ( v7 >= 0 )\n        v6 = v7;\n      a1->m_editorLayerValue = v6;\n      SetGroupIDLayer::updateEditorLabel(a1);\n      SetGroupIDLayer::updateEditorLayerID(a1);\n      return;\n    case 6:\n      v8 = 0;\n      v9 = a3 + a1->m_editorLayer2Value;\n      if ( v9 >= 0 )\n        v8 = v9;\n      a1->m_editorLayer2Value = v8;\n      SetGroupIDLayer::updateEditorLabel2(a1);\n      SetGroupIDLayer::updateEditorLayerID2(a1);\n      return;\n    case 7:\n      m_zOrderValue = a1->m_zOrderValue;\n      if ( m_zOrderValue == -1000 )\n        m_zOrderValue = 0;\n      if ( a3 == 1 )\n      {\n        v15 = m_zOrderValue + 1;\n        if ( m_zOrderValue == -1 )\n          v15 = 1;\n      }\n      else\n      {\n        v15 = m_zOrderValue - 1;\n        if ( m_zOrderValue == 1 )\n        {\n          v15 = -1;\n          goto LABEL_26;\n        }\n      }\n      if ( v15 < -100 )\n      {\n        v15 = -100;\nLABEL_28:\n        a1->m_zOrderValue = v15;\n        SetGroupIDLayer::updateZOrderLabel(a1);\n        SetGroupIDLayer::updateZOrder(a1);\n        return;\n      }\nLABEL_26:\n      if ( v15 > 100 )\n        v15 = 100;\n      goto LABEL_28;\n    default:\n      return;\n  }\n}", "assembly": "; \n; SetGroupIDLayer::onArrow from 0x1403fb190 to 0x1403fb300 (368 bytes)\n; \n; 3 xrefs:\n; > SetGroupIDLayer::onArrowLeft @ 0x1403fb152\n; > SetGroupIDLayer::onArrowRight @ 0x1403fb182\n; > <???> @ 0x1406d83e4\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, 0x1403fb190\nsub     rsp, 20h                                                       ; +0x2, 0x1403fb192\ndec     edx; switch 7 cases                                            ; +0x6, 0x1403fb196\nmov     rbx, rcx                                                       ; +0x8, 0x1403fb198\ncmp     edx, 6                                                         ; +0xb, 0x1403fb19b\nja      def_1403FB1B8; jumptable 00000001403FB1B8 default case, case 2 ; +0xe, 0x1403fb19e\nmovsxd  rax, edx                                                       ; +0x14, 0x1403fb1a4\nlea     rcx, cs:140000000h                                             ; +0x17, 0x1403fb1a7\nmov     edx, ds:(jpt_1403FB1B8 - 140000000h)[rcx+rax*4]                ; +0x1e, 0x1403fb1ae\nadd     rdx, rcx                                                       ; +0x25, 0x1403fb1b5\njmp     rdx; switch jump                                               ; +0x28, 0x1403fb1b8\nmov     ecx, [rbx+2E4h]; jumptable 00000001403FB1B8 case 1             ; +0x2a, 0x1403fb1ba\nxor     eax, eax                                                       ; +0x30, 0x1403fb1c0\nadd     ecx, r8d                                                       ; +0x32, 0x1403fb1c2\ncmovns  eax, ecx                                                       ; +0x35, 0x1403fb1c5\nmov     rcx, rbx                                                       ; +0x38, 0x1403fb1c8\nmov     [rbx+2E4h], eax                                                ; +0x3b, 0x1403fb1cb\nadd     rsp, 20h                                                       ; +0x41, 0x1403fb1d1\npop     rbx                                                            ; +0x45, 0x1403fb1d5\njmp     SetGroupIDLayer__updateGroupIDLabel                            ; +0x46, 0x1403fb1d6\nmov     ecx, [rbx+2E8h]; jumptable 00000001403FB1B8 case 5             ; +0x4b, 0x1403fb1db\nxor     eax, eax                                                       ; +0x51, 0x1403fb1e1\nadd     ecx, r8d                                                       ; +0x53, 0x1403fb1e3\ncmovns  eax, ecx                                                       ; +0x56, 0x1403fb1e6\nmov     rcx, rbx                                                       ; +0x59, 0x1403fb1e9\nmov     [rbx+2E8h], eax                                                ; +0x5c, 0x1403fb1ec\ncall    SetGroupIDLayer__updateEditorLabel                             ; +0x62, 0x1403fb1f2\nmov     rcx, rbx                                                       ; +0x67, 0x1403fb1f7\nadd     rsp, 20h                                                       ; +0x6a, 0x1403fb1fa\npop     rbx                                                            ; +0x6e, 0x1403fb1fe\njmp     SetGroupIDLayer__updateEditorLayerID                           ; +0x6f, 0x1403fb1ff\nmov     ecx, [rbx+2ECh]; jumptable 00000001403FB1B8 case 6             ; +0x74, 0x1403fb204\nxor     eax, eax                                                       ; +0x7a, 0x1403fb20a\nadd     ecx, r8d                                                       ; +0x7c, 0x1403fb20c\ncmovns  eax, ecx                                                       ; +0x7f, 0x1403fb20f\nmov     rcx, rbx                                                       ; +0x82, 0x1403fb212\nmov     [rbx+2ECh], eax                                                ; +0x85, 0x1403fb215\ncall    SetGroupIDLayer__updateEditorLabel2                            ; +0x8b, 0x1403fb21b\nmov     rcx, rbx                                                       ; +0x90, 0x1403fb220\nadd     rsp, 20h                                                       ; +0x93, 0x1403fb223\npop     rbx                                                            ; +0x97, 0x1403fb227\njmp     SetGroupIDLayer__updateEditorLayerID2                          ; +0x98, 0x1403fb228\nmov     ecx, [rbx+2F8h]; jumptable 00000001403FB1B8 case 3             ; +0x9d, 0x1403fb22d\nxor     eax, eax                                                       ; +0xa3, 0x1403fb233\nadd     ecx, r8d                                                       ; +0xa5, 0x1403fb235\ncmovns  eax, ecx                                                       ; +0xa8, 0x1403fb238\nmov     rcx, rbx                                                       ; +0xab, 0x1403fb23b\nmov     [rbx+2F8h], eax                                                ; +0xae, 0x1403fb23e\ncall    SetGroupIDLayer__updateEditorOrder                             ; +0xb4, 0x1403fb244\nmov     rcx, rbx                                                       ; +0xb9, 0x1403fb249\nadd     rsp, 20h                                                       ; +0xbc, 0x1403fb24c\npop     rbx                                                            ; +0xc0, 0x1403fb250\njmp     SetGroupIDLayer__updateEditorOrderLabel                        ; +0xc1, 0x1403fb251\nmov     ecx, [rbx+2DCh]; jumptable 00000001403FB1B8 case 4             ; +0xc6, 0x1403fb256\nxor     eax, eax                                                       ; +0xcc, 0x1403fb25c\nadd     ecx, r8d                                                       ; +0xce, 0x1403fb25e\ncmovns  eax, ecx                                                       ; +0xd1, 0x1403fb261\nmov     rcx, rbx                                                       ; +0xd4, 0x1403fb264\nmov     [rbx+2DCh], eax                                                ; +0xd7, 0x1403fb267\ncall    SetGroupIDLayer__updateOrderChannel                            ; +0xdd, 0x1403fb26d\nmov     rcx, rbx                                                       ; +0xe2, 0x1403fb272\nadd     rsp, 20h                                                       ; +0xe5, 0x1403fb275\npop     rbx                                                            ; +0xe9, 0x1403fb279\njmp     SetGroupIDLayer__updateOrderChannelLabel                       ; +0xea, 0x1403fb27a\nmov     ecx, [rbx+2F0h]; jumptable 00000001403FB1B8 case 7             ; +0xef, 0x1403fb27f\nxor     eax, eax                                                       ; +0xf5, 0x1403fb285\ncmp     ecx, 0FFFFFC18h                                                ; +0xf7, 0x1403fb287\ncmovz   ecx, eax                                                       ; +0xfd, 0x1403fb28d\ncmp     r8d, 1                                                         ; +0x100, 0x1403fb290\njnz     short loc_1403FB2AD                                            ; +0x104, 0x1403fb294\nlea     eax, [rcx+1]                                                   ; +0x106, 0x1403fb296\nmov     ecx, r8d                                                       ; +0x109, 0x1403fb299\ntest    eax, eax                                                       ; +0x10c, 0x1403fb29c\ncmovz   eax, ecx                                                       ; +0x10e, 0x1403fb29e\ncmp     eax, 0FFFFFF9Ch                                                ; +0x111, 0x1403fb2a1\njge     short loc_1403FB2B9                                            ; +0x114, 0x1403fb2a4\nmov     eax, 0FFFFFF9Ch                                                ; +0x116, 0x1403fb2a6\njmp     short loc_1403FB2C3                                            ; +0x11b, 0x1403fb2ab\nlea     eax, [rcx-1]                                                   ; +0x11d, 0x1403fb2ad\ntest    eax, eax                                                       ; +0x120, 0x1403fb2b0\njnz     short loc_1403FB2A1                                            ; +0x122, 0x1403fb2b2\nmov     eax, 0FFFFFFFFh                                                ; +0x124, 0x1403fb2b4\ncmp     eax, 64h ; 'd'                                                 ; +0x129, 0x1403fb2b9\njle     short loc_1403FB2C3                                            ; +0x12c, 0x1403fb2bc\nmov     eax, 64h ; 'd'                                                 ; +0x12e, 0x1403fb2be\nmov     rcx, rbx                                                       ; +0x133, 0x1403fb2c3\nmov     [rbx+2F0h], eax                                                ; +0x136, 0x1403fb2c6\ncall    SetGroupIDLayer__updateZOrderLabel                             ; +0x13c, 0x1403fb2cc\nmov     rcx, rbx                                                       ; +0x141, 0x1403fb2d1\nadd     rsp, 20h                                                       ; +0x144, 0x1403fb2d4\npop     rbx                                                            ; +0x148, 0x1403fb2d8\njmp     SetGroupIDLayer__updateZOrder                                  ; +0x149, 0x1403fb2d9\nadd     rsp, 20h; jumptable 00000001403FB1B8 default case, case 2      ; +0x14e, 0x1403fb2de\npop     rbx                                                            ; +0x152, 0x1403fb2e2\nretn                                                                   ; +0x153, 0x1403fb2e3\ndd offset loc_1403FB1BA - 140000000h; jump table for switch statement  ; +0x154, 0x1403fb2e4", "xrefs": ["SetGroupIDLayer::onArrowLeft @ 0x1403fb152", "SetGroupIDLayer::onArrowRight @ 0x1403fb182", "<???> @ 0x1406d83e4"], "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"}