{"type": "func", "start": 5369158272, "end": 5369158413, "name": "GameToolbox::highestChildZ", "pseudocode": "// \n// GameToolbox::highestChildZ from 0x14006da80 to 0x14006db0d (141 bytes)\n// \n// 8 xrefs:\n// > CCTextInputNode::openEditMenu @ 0x14005957d\n// > FLAlertLayer::show @ 0x14005b987\n// > FLAlertLayer::show @ 0x14005b9a2\n// > FLAlertLayer::show @ 0x14005ba5a\n// > FLAlertLayer::show @ 0x14005ba75\n// > <???> @ 0x140889774\n// > <???> @ 0x1408897cc\n// > <???> @ 0x140911648\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 11:25:48 +0000\n// \n\n__int64 __fastcall GameToolbox::highestChildZ(__int64 a1)\n{\n  int v1; // esi\n  __int64 v2; // rax\n  unsigned int *v3; // rbx\n  __int64 v4; // rax\n  _QWORD *v5; // rbx\n  _QWORD *i; // rbp\n  __int64 v7; // rdi\n\n  v1 = 0;\n  if ( !a1 )\n    return 0;\n  v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 480LL))(a1);\n  if ( !v2 )\n    return 0;\n  v3 = *(unsigned int **)(v2 + 56);\n  v4 = *v3;\n  if ( (_DWORD)v4 )\n  {\n    v5 = *((_QWORD **)v3 + 2);\n    for ( i = &v5[v4 - 1]; v5 <= i; ++v5 )\n    {\n      v7 = *v5;\n      if ( !*v5 )\n        break;\n      if ( v1 <= (*(int (__fastcall **)(_QWORD))(*(_QWORD *)v7 + 96LL))(*v5) )\n        v1 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 96LL))(v7);\n    }\n  }\n  return (unsigned int)v1;\n}", "assembly": "; \n; GameToolbox::highestChildZ from 0x14006da80 to 0x14006db0d (141 bytes)\n; \n; 8 xrefs:\n; > CCTextInputNode::openEditMenu @ 0x14005957d\n; > FLAlertLayer::show @ 0x14005b987\n; > FLAlertLayer::show @ 0x14005b9a2\n; > FLAlertLayer::show @ 0x14005ba5a\n; > FLAlertLayer::show @ 0x14005ba75\n; > <???> @ 0x140889774\n; > <???> @ 0x1408897cc\n; > <???> @ 0x140911648\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 11:25:48 +0000\n; \npush    rsi                                                            ; +0x0, 0x14006da80\nsub     rsp, 20h                                                       ; +0x2, 0x14006da82\nxor     esi, esi                                                       ; +0x6, 0x14006da86\ntest    rcx, rcx                                                       ; +0x8, 0x14006da88\njz      short loc_14006DB05                                            ; +0xb, 0x14006da8b\nmov     rax, [rcx]                                                     ; +0xd, 0x14006da8d\ncall    qword ptr [rax+1E0h]                                           ; +0x10, 0x14006da90\ntest    rax, rax                                                       ; +0x16, 0x14006da96\njz      short loc_14006DB05                                            ; +0x19, 0x14006da99\nmov     [rsp+28h+arg_0], rbx                                           ; +0x1b, 0x14006da9b\nmov     rbx, [rax+38h]                                                 ; +0x20, 0x14006daa0\nmov     eax, [rbx]                                                     ; +0x24, 0x14006daa4\ntest    eax, eax                                                       ; +0x26, 0x14006daa6\njz      short loc_14006DAF8                                            ; +0x28, 0x14006daa8\nmov     rbx, [rbx+10h]                                                 ; +0x2a, 0x14006daaa\nmov     [rsp+28h+arg_8], rbp                                           ; +0x2e, 0x14006daae\nlea     rbp, [rax-1]                                                   ; +0x33, 0x14006dab3\nlea     rbp, [rbx+rbp*8]                                               ; +0x37, 0x14006dab7\ncmp     rbx, rbp                                                       ; +0x3b, 0x14006dabb\nja      short loc_14006DAF3                                            ; +0x3e, 0x14006dabe\nmov     [rsp+28h+arg_10], rdi                                          ; +0x40, 0x14006dac0\nmov     rdi, [rbx]                                                     ; +0x45, 0x14006dac5\ntest    rdi, rdi                                                       ; +0x48, 0x14006dac8\njz      short loc_14006DAEE                                            ; +0x4b, 0x14006dacb\nmov     rax, [rdi]                                                     ; +0x4d, 0x14006dacd\nmov     rcx, rdi                                                       ; +0x50, 0x14006dad0\ncall    qword ptr [rax+60h]                                            ; +0x53, 0x14006dad3\ncmp     esi, eax                                                       ; +0x56, 0x14006dad6\njg      short loc_14006DAE5                                            ; +0x58, 0x14006dad8\nmov     rax, [rdi]                                                     ; +0x5a, 0x14006dada\nmov     rcx, rdi                                                       ; +0x5d, 0x14006dadd\ncall    qword ptr [rax+60h]                                            ; +0x60, 0x14006dae0\nmov     esi, eax                                                       ; +0x63, 0x14006dae3\nadd     rbx, 8                                                         ; +0x65, 0x14006dae5\ncmp     rbx, rbp                                                       ; +0x69, 0x14006dae9\njbe     short loc_14006DAC5                                            ; +0x6c, 0x14006daec\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x6e, 0x14006daee\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x73, 0x14006daf3\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x78, 0x14006daf8\nmov     eax, esi                                                       ; +0x7d, 0x14006dafd\nadd     rsp, 20h                                                       ; +0x7f, 0x14006daff\npop     rsi                                                            ; +0x83, 0x14006db03\nretn                                                                   ; +0x84, 0x14006db04\nxor     eax, eax                                                       ; +0x85, 0x14006db05\nadd     rsp, 20h                                                       ; +0x87, 0x14006db07\npop     rsi                                                            ; +0x8b, 0x14006db0b\nretn                                                                   ; +0x8c, 0x14006db0c", "xrefs": ["CCTextInputNode::openEditMenu @ 0x14005957d", "FLAlertLayer::show @ 0x14005b987", "FLAlertLayer::show @ 0x14005b9a2", "FLAlertLayer::show @ 0x14005ba5a", "FLAlertLayer::show @ 0x14005ba75", "<???> @ 0x140889774", "<???> @ 0x1408897cc", "<???> @ 0x140911648"], "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"}