{"type": "func", "start": 6443155280, "end": 6443155357, "name": "cocos2d::CCTMXLayer::atlasIndexForExistantZ", "pseudocode": "// \n// cocos2d::CCTMXLayer::atlasIndexForExistantZ from 0x1800abf50 to 0x1800abf9d (77 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b80c4\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\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 0x1800abf50 to 0x1800abf9d (77 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b80c4\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, 0x1800abf50\nsub     rsp, 30h                                                       ; +0x2, 0x1800abf52\nmov     [rsp+38h+Key], edx                                             ; +0x6, 0x1800abf56\nlea     rax, CompareFunction                                           ; +0xa, 0x1800abf5a\nmov     rdx, [rcx+1D8h]                                                ; +0x11, 0x1800abf61\nmov     rbx, rcx                                                       ; +0x18, 0x1800abf68\nmov     r9d, 8; SizeOfElements                                         ; +0x1b, 0x1800abf6b\nmov     [rsp+38h+CompareFunction], rax; CompareFunction                ; +0x21, 0x1800abf71\nlea     rcx, [rsp+38h+Key]; Key                                        ; +0x26, 0x1800abf76\nmov     r8d, [rdx]; NumOfElements                                      ; +0x2b, 0x1800abf7b\nmov     rdx, [rdx+10h]; Base                                           ; +0x2e, 0x1800abf7e\ncall    cs:bsearch                                                     ; +0x32, 0x1800abf82\nmov     rcx, [rbx+1D8h]                                                ; +0x38, 0x1800abf88\nsub     rax, [rcx+10h]                                                 ; +0x3f, 0x1800abf8f\nshr     rax, 3                                                         ; +0x43, 0x1800abf93\nadd     rsp, 30h                                                       ; +0x47, 0x1800abf97\npop     rbx                                                            ; +0x4b, 0x1800abf9b\nretn                                                                   ; +0x4c, 0x1800abf9c", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b80c4"], "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"}