{"type": "func", "start": 5372638880, "end": 5372639100, "name": "GJSpecialColorSelect::onSelectColor", "pseudocode": "// \n// GJSpecialColorSelect::onSelectColor from 0x1403bf6a0 to 0x1403bf77c (220 bytes)\n// \n// 4 xrefs:\n// > GJSpecialColorSelect::init @ 0x1403bf507\n// > <???> @ 0x1408c1d74\n// > <???> @ 0x1408c1da8\n// > <???> @ 0x140923f78\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:31:28 +0000\n// \n\nvoid __fastcall GJSpecialColorSelect::onSelectColor(__int64 a1, __int64 a2)\n{\n  unsigned int v4; // edi\n  __int64 i; // rbp\n  struct cocos2d::CCObject *v6; // rbx\n  int v7; // eax\n  const char *v8; // rdx\n\n  *(_DWORD *)(a1 + 672) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  v4 = 0;\n  for ( i = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 952LL))(a2);\n        v4 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 680));\n        ++v4 )\n  {\n    v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 680), v4);\n    v7 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v6 + 56LL))(v6);\n    v8 = \"GJ_button_05.png\";\n    if ( v7 != 1008 )\n      v8 = \"GJ_button_04.png\";\n    ButtonSprite::updateBGImage((__int64)v6, v8);\n  }\n  if ( i )\n    ButtonSprite::updateBGImage(i, \"GJ_button_02.png\");\n}", "assembly": "; \n; GJSpecialColorSelect::onSelectColor from 0x1403bf6a0 to 0x1403bf77c (220 bytes)\n; \n; 4 xrefs:\n; > GJSpecialColorSelect::init @ 0x1403bf507\n; > <???> @ 0x1408c1d74\n; > <???> @ 0x1408c1da8\n; > <???> @ 0x140923f78\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:31:28 +0000\n; \npush    rbp                                                            ; +0x0, 0x1403bf6a0\nsub     rsp, 20h                                                       ; +0x2, 0x1403bf6a2\nmov     rax, [rdx]                                                     ; +0x6, 0x1403bf6a6\nmov     [rsp+28h+arg_0], rbx                                           ; +0x9, 0x1403bf6a9\nmov     rbx, rdx                                                       ; +0xe, 0x1403bf6ae\nmov     [rsp+28h+arg_8], rsi                                           ; +0x11, 0x1403bf6b1\nmov     rsi, rcx                                                       ; +0x16, 0x1403bf6b6\nmov     rcx, rdx                                                       ; +0x19, 0x1403bf6b9\nmov     [rsp+28h+arg_10], rdi                                          ; +0x1c, 0x1403bf6bc\ncall    qword ptr [rax+38h]                                            ; +0x21, 0x1403bf6c1\nmov     [rsi+2A0h], eax                                                ; +0x24, 0x1403bf6c4\nmov     rcx, rbx                                                       ; +0x2a, 0x1403bf6ca\nmov     rax, [rbx]                                                     ; +0x2d, 0x1403bf6cd\ncall    qword ptr [rax+3B8h]                                           ; +0x30, 0x1403bf6d0\nmov     rcx, [rsi+2A8h]                                                ; +0x36, 0x1403bf6d6\nxor     edi, edi                                                       ; +0x3d, 0x1403bf6dd\nmov     rbp, rax                                                       ; +0x3f, 0x1403bf6df\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x42, 0x1403bf6e2\ntest    eax, eax                                                       ; +0x48, 0x1403bf6e8\njz      short loc_1403BF74E                                            ; +0x4a, 0x1403bf6ea\nmov     [rsp+28h+arg_18], r14                                          ; +0x4c, 0x1403bf6ec\nlea     r14, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x51, 0x1403bf6f1\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x58, 0x1403bf6f8\nmov     rcx, [rsi+2A8h]                                                ; +0x60, 0x1403bf700\nmov     edx, edi                                                       ; +0x67, 0x1403bf707\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x69, 0x1403bf709\nmov     rbx, rax                                                       ; +0x6f, 0x1403bf70f\nmov     rcx, [rax]                                                     ; +0x72, 0x1403bf712\nmov     rdx, [rcx+38h]                                                 ; +0x75, 0x1403bf715\nmov     rcx, rax                                                       ; +0x79, 0x1403bf719\ncall    rdx                                                            ; +0x7c, 0x1403bf71c\ncmp     eax, 3F0h                                                      ; +0x7e, 0x1403bf71e\nlea     rdx, aGjButton05Png; \"GJ_button_05.png\"                        ; +0x83, 0x1403bf723\nmov     rcx, rbx                                                       ; +0x8a, 0x1403bf72a\ncmovnz  rdx, r14                                                       ; +0x8d, 0x1403bf72d\ncall    ButtonSprite__updateBGImage                                    ; +0x91, 0x1403bf731\nmov     rcx, [rsi+2A8h]                                                ; +0x96, 0x1403bf736\ninc     edi                                                            ; +0x9d, 0x1403bf73d\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x9f, 0x1403bf73f\ncmp     edi, eax                                                       ; +0xa5, 0x1403bf745\njb      short loc_1403BF700                                            ; +0xa7, 0x1403bf747\nmov     r14, [rsp+28h+arg_18]                                          ; +0xa9, 0x1403bf749\nmov     rdi, [rsp+28h+arg_10]                                          ; +0xae, 0x1403bf74e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xb3, 0x1403bf753\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb8, 0x1403bf758\ntest    rbp, rbp                                                       ; +0xbd, 0x1403bf75d\njz      short loc_1403BF776                                            ; +0xc0, 0x1403bf760\nlea     rdx, aGjButton02Png; \"GJ_button_02.png\"                        ; +0xc2, 0x1403bf762\nmov     rcx, rbp                                                       ; +0xc9, 0x1403bf769\nadd     rsp, 20h                                                       ; +0xcc, 0x1403bf76c\npop     rbp                                                            ; +0xd0, 0x1403bf770\njmp     ButtonSprite__updateBGImage                                    ; +0xd1, 0x1403bf771\nadd     rsp, 20h                                                       ; +0xd6, 0x1403bf776\npop     rbp                                                            ; +0xda, 0x1403bf77a\nretn                                                                   ; +0xdb, 0x1403bf77b", "xrefs": ["GJSpecialColorSelect::init @ 0x1403bf507", "<???> @ 0x1408c1d74", "<???> @ 0x1408c1da8", "<???> @ 0x140923f78"], "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"}