{"type": "func", "start": 4301417168, "end": 4301417381, "name": "GJSpecialColorSelect::onSelectColor", "pseudocode": "// \n// GJSpecialColorSelect::onSelectColor from 0x100626ad0 to 0x100626ba5 (213 bytes)\n// \n// 1 xrefs:\n// > GJSpecialColorSelect::init @ 0x100626865\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 __fastcall GJSpecialColorSelect::onSelectColor(GJSpecialColorSelect *a1, cocos2d::CCObject *a2)\n{\n  unsigned int v2; // r15d\n  ButtonSprite *v3; // r12\n  const char *v4; // rsi\n  ButtonSprite *v5; // [rsp+0h] [rbp-30h]\n\n  a1->m_colorID = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);\n  v5 = (ButtonSprite *)((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2);\n  if ( (unsigned int)sub_100720070(a1->m_buttonSprites) )\n  {\n    v2 = 0;\n    do\n    {\n      v3 = (ButtonSprite *)sub_1007200C0(a1->m_buttonSprites, v2);\n      v4 = \"GJ_button_04.png\";\n      if ( ((unsigned int (__fastcall *)(ButtonSprite *))v3->getTag)(v3) == 1008 )\n        v4 = \"GJ_button_05.png\";\n      ButtonSprite::updateBGImage(v3, v4);\n      ++v2;\n    }\n    while ( v2 < (unsigned int)sub_100720070(a1->m_buttonSprites) );\n  }\n  if ( v5 )\n    ButtonSprite::updateBGImage(v5, \"GJ_button_02.png\");\n}", "assembly": "; \n; GJSpecialColorSelect::onSelectColor from 0x100626ad0 to 0x100626ba5 (213 bytes)\n; \n; 1 xrefs:\n; > GJSpecialColorSelect::init @ 0x100626865\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    rbp                                                            ; +0x0, 0x100626ad0\nmov     rbp, rsp                                                       ; +0x1, 0x100626ad1\npush    r15                                                            ; +0x4, 0x100626ad4\npush    r14                                                            ; +0x6, 0x100626ad6\npush    r13                                                            ; +0x8, 0x100626ad8\npush    r12                                                            ; +0xa, 0x100626ada\npush    rbx                                                            ; +0xc, 0x100626adc\npush    rax                                                            ; +0xd, 0x100626add\nmov     r14, rsi                                                       ; +0xe, 0x100626ade\nmov     rbx, rdi                                                       ; +0x11, 0x100626ae1\nmov     rax, [rsi]                                                     ; +0x14, 0x100626ae4\nmov     rdi, rsi                                                       ; +0x17, 0x100626ae7\ncall    qword ptr [rax+40h]                                            ; +0x1a, 0x100626aea\nmov     [rbx+280h], eax                                                ; +0x1d, 0x100626aed\nmov     rax, [r14]                                                     ; +0x23, 0x100626af3\nmov     rdi, r14                                                       ; +0x26, 0x100626af6\ncall    qword ptr [rax+420h]                                           ; +0x29, 0x100626af9\nmov     [rbp+var_30], rax                                              ; +0x2f, 0x100626aff\nmov     rdi, [rbx+288h]                                                ; +0x33, 0x100626b03\ncall    sub_100720070                                                  ; +0x3a, 0x100626b0a\ntest    eax, eax                                                       ; +0x3f, 0x100626b0f\njz      short loc_100626B73                                            ; +0x41, 0x100626b11\nxor     r15d, r15d                                                     ; +0x43, 0x100626b13\nlea     r13, aGjButton05Png; \"GJ_button_05.png\"                        ; +0x46, 0x100626b16\nlea     r14, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x4d, 0x100626b1d\nnop     word ptr [rax+rax+00000000h]                                   ; +0x54, 0x100626b24\nmov     rdi, [rbx+288h]                                                ; +0x60, 0x100626b30\nmov     esi, r15d                                                      ; +0x67, 0x100626b37\ncall    sub_1007200C0                                                  ; +0x6a, 0x100626b3a\nmov     r12, rax                                                       ; +0x6f, 0x100626b3f\nmov     rax, [rax]                                                     ; +0x72, 0x100626b42\nmov     rdi, r12                                                       ; +0x75, 0x100626b45\ncall    qword ptr [rax+40h]                                            ; +0x78, 0x100626b48\ncmp     eax, 3F0h                                                      ; +0x7b, 0x100626b4b\nmov     rsi, r14                                                       ; +0x80, 0x100626b50\ncmovz   rsi, r13                                                       ; +0x83, 0x100626b53\nmov     rdi, r12                                                       ; +0x87, 0x100626b57\ncall    ButtonSprite__updateBGImage                                    ; +0x8a, 0x100626b5a\ninc     r15d                                                           ; +0x8f, 0x100626b5f\nmov     rdi, [rbx+288h]                                                ; +0x92, 0x100626b62\ncall    sub_100720070                                                  ; +0x99, 0x100626b69\ncmp     r15d, eax                                                      ; +0x9e, 0x100626b6e\njb      short loc_100626B30                                            ; +0xa1, 0x100626b71\nmov     rdi, [rbp+var_30]                                              ; +0xa3, 0x100626b73\ntest    rdi, rdi                                                       ; +0xa7, 0x100626b77\njz      short loc_100626B96                                            ; +0xaa, 0x100626b7a\nlea     rsi, aGjButton02Png; \"GJ_button_02.png\"                        ; +0xac, 0x100626b7c\nadd     rsp, 8                                                         ; +0xb3, 0x100626b83\npop     rbx                                                            ; +0xb7, 0x100626b87\npop     r12                                                            ; +0xb8, 0x100626b88\npop     r13                                                            ; +0xba, 0x100626b8a\npop     r14                                                            ; +0xbc, 0x100626b8c\npop     r15                                                            ; +0xbe, 0x100626b8e\npop     rbp                                                            ; +0xc0, 0x100626b90\njmp     ButtonSprite__updateBGImage                                    ; +0xc1, 0x100626b91\nadd     rsp, 8                                                         ; +0xc6, 0x100626b96\npop     rbx                                                            ; +0xca, 0x100626b9a\npop     r12                                                            ; +0xcb, 0x100626b9b\npop     r13                                                            ; +0xcd, 0x100626b9d\npop     r14                                                            ; +0xcf, 0x100626b9f\npop     r15                                                            ; +0xd1, 0x100626ba1\npop     rbp                                                            ; +0xd3, 0x100626ba3\nretn                                                                   ; +0xd4, 0x100626ba4", "xrefs": ["GJSpecialColorSelect::init @ 0x100626865"], "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"}