{"type": "func", "start": 5372001808, "end": 5372001972, "name": "SelectSettingLayer::onSelect", "pseudocode": "// \n// SelectSettingLayer::onSelect from 0x140323e10 to 0x140323eb4 (164 bytes)\n// \n// 2 xrefs:\n// > SelectSettingLayer::init @ 0x140323617\n// > <???> @ 0x1406d4d54\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\nvoid SelectSettingLayer::onSelect(SelectSettingLayer *a1, cocos2d::CCObject *a2)\n{\n  unsigned int i; // ebx\n  int *p_m_unknown2; // rcx\n  void (__fastcall *v5)(int *, _BYTE *); // r8\n  _BYTE *v6; // rdx\n  _BYTE v7[3]; // [rsp+30h] [rbp+8h] BYREF\n\n  if ( a2 )\n    a1->m_settingID = a2->getTag(a2);\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_settingSprites); ++i )\n  {\n    p_m_unknown2 = &cocos2d::CCArray::objectAtIndex(a1->m_settingSprites, i)[5].m_unknown2;\n    v5 = **(void (__fastcall ***)(int *, _BYTE *))p_m_unknown2;\n    if ( a1->m_settingID == i )\n    {\n      v6 = &unk_140529B78;\n    }\n    else\n    {\n      memset(v7, 125, sizeof(v7));\n      v6 = v7;\n    }\n    v5(p_m_unknown2, v6);\n  }\n}", "assembly": "; \n; SelectSettingLayer::onSelect from 0x140323e10 to 0x140323eb4 (164 bytes)\n; \n; 2 xrefs:\n; > SelectSettingLayer::init @ 0x140323617\n; > <???> @ 0x1406d4d54\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140323e10\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140323e15\npush    rdi                                                            ; +0xa, 0x140323e1a\nsub     rsp, 20h                                                       ; +0xb, 0x140323e1b\nmov     rdi, rcx                                                       ; +0xf, 0x140323e1f\ntest    rdx, rdx                                                       ; +0x12, 0x140323e22\njz      short loc_140323E36                                            ; +0x15, 0x140323e25\nmov     rax, [rdx]                                                     ; +0x17, 0x140323e27\nmov     rcx, rdx                                                       ; +0x1a, 0x140323e2a\ncall    qword ptr [rax+38h]                                            ; +0x1d, 0x140323e2d\nmov     [rdi+280h], eax                                                ; +0x20, 0x140323e30\nmov     rcx, [rdi+278h]                                                ; +0x26, 0x140323e36\nxor     ebx, ebx                                                       ; +0x2d, 0x140323e3d\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2f, 0x140323e3f\ntest    eax, eax                                                       ; +0x35, 0x140323e45\njz      short loc_140323EA4                                            ; +0x37, 0x140323e47\nnop     dword ptr [rax+00000000h]                                      ; +0x39, 0x140323e49\nmov     rcx, [rdi+278h]                                                ; +0x40, 0x140323e50\nmov     edx, ebx                                                       ; +0x47, 0x140323e57\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x49, 0x140323e59\nlea     rcx, [rax+140h]                                                ; +0x4f, 0x140323e5f\nmov     rax, [rcx]                                                     ; +0x56, 0x140323e66\nmov     r8, [rax]                                                      ; +0x59, 0x140323e69\ncmp     [rdi+280h], ebx                                                ; +0x5c, 0x140323e6c\njz      short loc_140323E87                                            ; +0x62, 0x140323e72\nmov     [rsp+28h+arg_0], 7D7Dh                                         ; +0x64, 0x140323e74\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x6b, 0x140323e7b\nmov     [rsp+28h+arg_2], 7Dh ; '}'                                     ; +0x70, 0x140323e80\njmp     short loc_140323E8E                                            ; +0x75, 0x140323e85\nlea     rdx, unk_140529B78                                             ; +0x77, 0x140323e87\ncall    r8                                                             ; +0x7e, 0x140323e8e\nmov     rcx, [rdi+278h]                                                ; +0x81, 0x140323e91\ninc     ebx                                                            ; +0x88, 0x140323e98\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x8a, 0x140323e9a\ncmp     ebx, eax                                                       ; +0x90, 0x140323ea0\njb      short loc_140323E50                                            ; +0x92, 0x140323ea2\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x94, 0x140323ea4\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x99, 0x140323ea9\nadd     rsp, 20h                                                       ; +0x9e, 0x140323eae\npop     rdi                                                            ; +0xa2, 0x140323eb2\nretn                                                                   ; +0xa3, 0x140323eb3", "xrefs": ["SelectSettingLayer::init @ 0x140323617", "<???> @ 0x1406d4d54"], "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"}