{"type": "func", "start": 6443169600, "end": 6443169677, "name": "cocos2d::CCTMXLayer::atlasIndexForExistantZ", "pseudocode": "// \n// cocos2d::CCTMXLayer::atlasIndexForExistantZ from 0x1800af740 to 0x1800af78d (77 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c2388\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:22:19 +0000\n// \n\nunsigned __int64 __fastcall cocos2d::CCTMXLayer::atlasIndexForExistantZ(cocos2d::CCTMXLayer *this, int a2)\n{\n  int Key; // [rsp+48h] [rbp+10h] BYREF\n\n  Key = a2;\n  return ((unsigned __int64)bsearch(\n                              &Key,\n                              *(const void **)(*((_QWORD *)this + 59) + 16LL),\n                              **((unsigned int **)this + 59),\n                              8u,\n                              CompareFunction)\n        - *(_QWORD *)(*((_QWORD *)this + 59) + 16LL)) >> 3;\n}", "assembly": "; \n; cocos2d::CCTMXLayer::atlasIndexForExistantZ from 0x1800af740 to 0x1800af78d (77 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c2388\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:22:19 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800af740\nsub     rsp, 30h                                                       ; +0x2, 0x1800af742\nmov     [rsp+38h+Key], edx                                             ; +0x6, 0x1800af746\nlea     rax, CompareFunction                                           ; +0xa, 0x1800af74a\nmov     rdx, [rcx+1D8h]                                                ; +0x11, 0x1800af751\nmov     rbx, rcx                                                       ; +0x18, 0x1800af758\nmov     r9d, 8; SizeOfElements                                         ; +0x1b, 0x1800af75b\nmov     [rsp+38h+CompareFunction], rax; CompareFunction                ; +0x21, 0x1800af761\nlea     rcx, [rsp+38h+Key]; Key                                        ; +0x26, 0x1800af766\nmov     r8d, [rdx]; NumOfElements                                      ; +0x2b, 0x1800af76b\nmov     rdx, [rdx+10h]; Base                                           ; +0x2e, 0x1800af76e\ncall    cs:bsearch                                                     ; +0x32, 0x1800af772\nmov     rcx, [rbx+1D8h]                                                ; +0x38, 0x1800af778\nsub     rax, [rcx+10h]                                                 ; +0x3f, 0x1800af77f\nshr     rax, 3                                                         ; +0x43, 0x1800af783\nadd     rsp, 30h                                                       ; +0x47, 0x1800af787\npop     rbx                                                            ; +0x4b, 0x1800af78b\nretn                                                                   ; +0x4c, 0x1800af78c", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c2388"], "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"}