{"type": "func", "start": 4297035152, "end": 4297035275, "name": "CustomizeObjectLayer::getButtonByTag", "pseudocode": "// \n// CustomizeObjectLayer::getButtonByTag from 0x1001f8d90 to 0x1001f8e0b (123 bytes)\n// \n// 0 xrefs:\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\nButtonSprite *__fastcall CustomizeObjectLayer::getButtonByTag(CustomizeObjectLayer *a1, int a2)\n{\n  ButtonSprite *v2; // rbx\n  unsigned int v3; // r12d\n  ButtonSprite *v4; // r13\n\n  v2 = nullptr;\n  if ( (unsigned int)sub_100720070(a1->m_colorButtons) )\n  {\n    v3 = 0;\n    while ( 1 )\n    {\n      v4 = (ButtonSprite *)sub_1007200C0(a1->m_colorButtons, v3);\n      if ( ((unsigned int (__fastcall *)(ButtonSprite *))v4->getTag)(v4) == a2 )\n        break;\n      if ( ++v3 >= (unsigned int)sub_100720070(a1->m_colorButtons) )\n        return v2;\n    }\n    return v4;\n  }\n  return v2;\n}", "assembly": "; \n; CustomizeObjectLayer::getButtonByTag from 0x1001f8d90 to 0x1001f8e0b (123 bytes)\n; \n; 0 xrefs:\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, 0x1001f8d90\nmov     rbp, rsp                                                       ; +0x1, 0x1001f8d91\npush    r15                                                            ; +0x4, 0x1001f8d94\npush    r14                                                            ; +0x6, 0x1001f8d96\npush    r13                                                            ; +0x8, 0x1001f8d98\npush    r12                                                            ; +0xa, 0x1001f8d9a\npush    rbx                                                            ; +0xc, 0x1001f8d9c\npush    rax                                                            ; +0xd, 0x1001f8d9d\nmov     r14d, esi                                                      ; +0xe, 0x1001f8d9e\nmov     r15, rdi                                                       ; +0x11, 0x1001f8da1\nmov     rdi, [rdi+2A8h]                                                ; +0x14, 0x1001f8da4\ncall    sub_100720070                                                  ; +0x1b, 0x1001f8dab\nxor     ebx, ebx                                                       ; +0x20, 0x1001f8db0\ntest    eax, eax                                                       ; +0x22, 0x1001f8db2\njz      short loc_1001F8DF9                                            ; +0x24, 0x1001f8db4\nxor     r12d, r12d                                                     ; +0x26, 0x1001f8db6\nnop     dword ptr [rax+00000000h]                                      ; +0x29, 0x1001f8db9\nmov     rdi, [r15+2A8h]                                                ; +0x30, 0x1001f8dc0\nmov     esi, r12d                                                      ; +0x37, 0x1001f8dc7\ncall    sub_1007200C0                                                  ; +0x3a, 0x1001f8dca\nmov     r13, rax                                                       ; +0x3f, 0x1001f8dcf\nmov     rax, [rax]                                                     ; +0x42, 0x1001f8dd2\nmov     rdi, r13                                                       ; +0x45, 0x1001f8dd5\ncall    qword ptr [rax+40h]                                            ; +0x48, 0x1001f8dd8\ncmp     eax, r14d                                                      ; +0x4b, 0x1001f8ddb\njz      short loc_1001F8DF6                                            ; +0x4e, 0x1001f8dde\ninc     r12d                                                           ; +0x50, 0x1001f8de0\nmov     rdi, [r15+2A8h]                                                ; +0x53, 0x1001f8de3\ncall    sub_100720070                                                  ; +0x5a, 0x1001f8dea\ncmp     r12d, eax                                                      ; +0x5f, 0x1001f8def\njb      short loc_1001F8DC0                                            ; +0x62, 0x1001f8df2\njmp     short loc_1001F8DF9                                            ; +0x64, 0x1001f8df4\nmov     rbx, r13                                                       ; +0x66, 0x1001f8df6\nmov     rax, rbx                                                       ; +0x69, 0x1001f8df9\nadd     rsp, 8                                                         ; +0x6c, 0x1001f8dfc\npop     rbx                                                            ; +0x70, 0x1001f8e00\npop     r12                                                            ; +0x71, 0x1001f8e01\npop     r13                                                            ; +0x73, 0x1001f8e03\npop     r14                                                            ; +0x75, 0x1001f8e05\npop     r15                                                            ; +0x77, 0x1001f8e07\npop     rbp                                                            ; +0x79, 0x1001f8e09\nretn                                                                   ; +0x7a, 0x1001f8e0a", "xrefs": [], "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"}