{"type": "func", "start": 4304250768, "end": 4304250978, "name": "Dropdown::onRowSelected", "pseudocode": "// \n// Dropdown::onRowSelected from 0x1008da790 to 0x1008da862 (210 bytes)\n// \n// 1 xrefs:\n// > Dropdown::openList @ 0x1008da29f\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:37:43 +0000\n// \n\nvoid __fastcall Dropdown::onRowSelected(__int64 a1, __int64 a2)\n{\n  int v3; // eax\n  __int64 v4; // rcx\n  __int64 v5; // rdi\n  __int64 v6; // rsi\n  int v7; // r14d\n  __int64 v8; // rsi\n  void (__fastcall ***v9)(_QWORD, __int64, _QWORD); // rdi\n\n  if ( a2 )\n  {\n    v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n    if ( v3 >= 0 )\n    {\n      v4 = *(_QWORD *)(a1 + 360);\n      if ( v3 < (int)(-1431655765 * ((unsigned __int64)(*(_QWORD *)(a1 + 368) - v4) >> 3)) )\n      {\n        *(_DWORD *)(a1 + 384) = v3;\n        v5 = *(_QWORD *)(a1 + 400);\n        if ( v5 )\n        {\n          v6 = v4 + 24LL * (unsigned int)v3;\n          v7 = v3;\n          if ( (*(_BYTE *)v6 & 1) != 0 )\n            v8 = *(_QWORD *)(v6 + 16);\n          else\n            v8 = v6 + 1;\n          (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 928LL))(v5, v8);\n          cocos2d::CCLabelBMFont::limitLabelWidth(\n            *(_QWORD *)(a1 + 400),\n            *(float *)(a1 + 476) + -24.0,\n            (__m128)0x3EE66666u,\n            (__m128)0x3E4CCCCDu);\n          v3 = v7;\n        }\n        v9 = *(void (__fastcall ****)(_QWORD, __int64, _QWORD))(a1 + 352);\n        if ( v9 )\n          (**v9)(v9, a1, (unsigned int)v3);\n      }\n    }\n  }\n}", "assembly": "; \n; Dropdown::onRowSelected from 0x1008da790 to 0x1008da862 (210 bytes)\n; \n; 1 xrefs:\n; > Dropdown::openList @ 0x1008da29f\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:37:43 +0000\n; \npush    rbp                                                            ; +0x0, 0x1008da790\nmov     rbp, rsp                                                       ; +0x1, 0x1008da791\npush    r14                                                            ; +0x4, 0x1008da794\npush    rbx                                                            ; +0x6, 0x1008da796\ntest    rsi, rsi                                                       ; +0x7, 0x1008da797\njz      loc_1008DA85D                                                  ; +0xa, 0x1008da79a\nmov     rbx, rdi                                                       ; +0x10, 0x1008da7a0\nmov     rax, [rsi]                                                     ; +0x13, 0x1008da7a3\nmov     rdi, rsi                                                       ; +0x16, 0x1008da7a6\ncall    qword ptr [rax+40h]                                            ; +0x19, 0x1008da7a9\ntest    eax, eax                                                       ; +0x1c, 0x1008da7ac\njs      loc_1008DA85D                                                  ; +0x1e, 0x1008da7ae\nmov     rcx, [rbx+168h]                                                ; +0x24, 0x1008da7b4\nmov     rdx, [rbx+170h]                                                ; +0x2b, 0x1008da7bb\nsub     rdx, rcx                                                       ; +0x32, 0x1008da7c2\nshr     rdx, 3                                                         ; +0x35, 0x1008da7c5\nimul    edx, 0AAAAAAABh                                                ; +0x39, 0x1008da7c9\ncmp     eax, edx                                                       ; +0x3f, 0x1008da7cf\njge     loc_1008DA85D                                                  ; +0x41, 0x1008da7d1\nmov     [rbx+180h], eax                                                ; +0x47, 0x1008da7d7\nmov     rdi, [rbx+190h]                                                ; +0x4d, 0x1008da7dd\ntest    rdi, rdi                                                       ; +0x54, 0x1008da7e4\njz      short loc_1008DA840                                            ; +0x57, 0x1008da7e7\nmov     edx, eax                                                       ; +0x59, 0x1008da7e9\nlea     rdx, [rdx+rdx*2]                                               ; +0x5b, 0x1008da7eb\nlea     rsi, [rcx+rdx*8]                                               ; +0x5f, 0x1008da7ef\ntest    byte ptr [rcx+rdx*8], 1                                        ; +0x63, 0x1008da7f3\njnz     short loc_1008DA801                                            ; +0x67, 0x1008da7f7\nmov     r14d, eax                                                      ; +0x69, 0x1008da7f9\ninc     rsi                                                            ; +0x6c, 0x1008da7fc\njmp     short loc_1008DA808                                            ; +0x6f, 0x1008da7ff\nmov     r14d, eax                                                      ; +0x71, 0x1008da801\nmov     rsi, [rsi+10h]                                                 ; +0x74, 0x1008da804\nmov     rax, [rdi]                                                     ; +0x78, 0x1008da808\ncall    qword ptr [rax+3A0h]                                           ; +0x7b, 0x1008da80b\nmov     rdi, [rbx+190h]                                                ; +0x81, 0x1008da811\nmovss   xmm0, dword ptr [rbx+1DCh]                                     ; +0x88, 0x1008da818\naddss   xmm0, cs:dword_100A037B0                                       ; +0x90, 0x1008da820\nmovss   xmm1, cs:dword_100A05D00                                       ; +0x98, 0x1008da828\nmovss   xmm2, cs:dword_100A03850                                       ; +0xa0, 0x1008da830\ncall    cocos2d__CCLabelBMFont__limitLabelWidth                        ; +0xa8, 0x1008da838\nmov     eax, r14d                                                      ; +0xad, 0x1008da83d\nmov     rdi, [rbx+160h]                                                ; +0xb0, 0x1008da840\ntest    rdi, rdi                                                       ; +0xb7, 0x1008da847\njz      short loc_1008DA85D                                            ; +0xba, 0x1008da84a\nmov     rcx, [rdi]                                                     ; +0xbc, 0x1008da84c\nmov     rcx, [rcx]                                                     ; +0xbf, 0x1008da84f\nmov     rsi, rbx                                                       ; +0xc2, 0x1008da852\nmov     edx, eax                                                       ; +0xc5, 0x1008da855\npop     rbx                                                            ; +0xc7, 0x1008da857\npop     r14                                                            ; +0xc8, 0x1008da858\npop     rbp                                                            ; +0xca, 0x1008da85a\njmp     rcx                                                            ; +0xcb, 0x1008da85b\npop     rbx                                                            ; +0xcd, 0x1008da85d\npop     r14                                                            ; +0xce, 0x1008da85e\npop     rbp                                                            ; +0xd0, 0x1008da860\nretn                                                                   ; +0xd1, 0x1008da861", "xrefs": ["Dropdown::openList @ 0x1008da29f"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}