{"type": "func", "start": 5373191504, "end": 5373191707, "name": "SetupAudioTriggerPopup::onProxMode", "pseudocode": "// \n// SetupAudioTriggerPopup::onProxMode from 0x140446550 to 0x14044661b (203 bytes)\n// \n// 4 xrefs:\n// > SetupAudioTriggerPopup::addProxVolControls @ 0x1404462da\n// > <???> @ 0x1406a253c\n// > <???> @ 0x1406a254c\n// > <???> @ 0x1406da5bc\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 SetupAudioTriggerPopup::onProxMode(SetupAudioTriggerPopup *a1, cocos2d::CCObject *a2)\n{\n  int v3; // r14d\n  unsigned int i; // esi\n  struct cocos2d::CCObject *v5; // rbx\n  ButtonSprite *v6; // rdi\n  int v7; // eax\n  const char *v8; // rdx\n\n  v3 = a2->getTag(a2);\n  SetupTriggerPopup::updateValue(a1, 458, (float)v3);\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_proximityButtons); ++i )\n  {\n    v5 = cocos2d::CCArray::objectAtIndex(a1->m_proximityButtons, i);\n    v6 = (ButtonSprite *)((__int64 (__fastcall *)(struct cocos2d::CCObject *))v5->__vftable[13].copyWithZone)(v5);\n    v7 = v5->getTag(v5);\n    v8 = \"GJ_button_04.png\";\n    if ( v7 == v3 )\n      v8 = \"GJ_button_02.png\";\n    ButtonSprite::updateBGImage(v6, v8);\n  }\n}", "assembly": "; \n; SetupAudioTriggerPopup::onProxMode from 0x140446550 to 0x14044661b (203 bytes)\n; \n; 4 xrefs:\n; > SetupAudioTriggerPopup::addProxVolControls @ 0x1404462da\n; > <???> @ 0x1406a253c\n; > <???> @ 0x1406a254c\n; > <???> @ 0x1406da5bc\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, 0x140446550\npush    rsi                                                            ; +0x2, 0x140446552\npush    r14                                                            ; +0x3, 0x140446553\nsub     rsp, 20h                                                       ; +0x5, 0x140446555\nmov     rax, [rdx]                                                     ; +0x9, 0x140446559\nmov     rbp, rcx                                                       ; +0xc, 0x14044655c\nmov     rcx, rdx                                                       ; +0xf, 0x14044655f\ncall    qword ptr [rax+38h]                                            ; +0x12, 0x140446562\nmov     edx, 1CAh                                                      ; +0x15, 0x140446565\nmov     rcx, rbp                                                       ; +0x1a, 0x14044656a\nmov     r14d, eax                                                      ; +0x1d, 0x14044656d\nmovd    xmm2, eax                                                      ; +0x20, 0x140446570\ncvtdq2ps xmm2, xmm2                                                    ; +0x24, 0x140446574\ncall    SetupTriggerPopup__updateValue                                 ; +0x27, 0x140446577\nmov     rcx, [rbp+3A8h]                                                ; +0x2c, 0x14044657c\nxor     esi, esi                                                       ; +0x33, 0x140446583\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x35, 0x140446585\ntest    eax, eax                                                       ; +0x3b, 0x14044658b\njz      loc_140446612                                                  ; +0x3d, 0x14044658d\nmov     [rsp+38h+arg_0], rbx                                           ; +0x43, 0x140446593\nmov     [rsp+38h+arg_8], rdi                                           ; +0x48, 0x140446598\nmov     [rsp+38h+arg_10], r15                                          ; +0x4d, 0x14044659d\nlea     r15, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x52, 0x1404465a2\nnop     dword ptr [rax+00000000h]                                      ; +0x59, 0x1404465a9\nmov     rcx, [rbp+3A8h]                                                ; +0x60, 0x1404465b0\nmov     edx, esi                                                       ; +0x67, 0x1404465b7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x69, 0x1404465b9\nmov     rcx, rax                                                       ; +0x6f, 0x1404465bf\nmov     rbx, rax                                                       ; +0x72, 0x1404465c2\nmov     rdx, [rax]                                                     ; +0x75, 0x1404465c5\ncall    qword ptr [rdx+3A8h]                                           ; +0x78, 0x1404465c8\nmov     rdx, [rbx]                                                     ; +0x7e, 0x1404465ce\nmov     rcx, rbx                                                       ; +0x81, 0x1404465d1\nmov     rdi, rax                                                       ; +0x84, 0x1404465d4\ncall    qword ptr [rdx+38h]                                            ; +0x87, 0x1404465d7\nlea     rdx, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x8a, 0x1404465da\nmov     rcx, rdi                                                       ; +0x91, 0x1404465e1\ncmp     eax, r14d                                                      ; +0x94, 0x1404465e4\ncmovz   rdx, r15                                                       ; +0x97, 0x1404465e7\ncall    ButtonSprite__updateBGImage                                    ; +0x9b, 0x1404465eb\nmov     rcx, [rbp+3A8h]                                                ; +0xa0, 0x1404465f0\ninc     esi                                                            ; +0xa7, 0x1404465f7\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa9, 0x1404465f9\ncmp     esi, eax                                                       ; +0xaf, 0x1404465ff\njb      short loc_1404465B0                                            ; +0xb1, 0x140446601\nmov     r15, [rsp+38h+arg_10]                                          ; +0xb3, 0x140446603\nmov     rdi, [rsp+38h+arg_8]                                           ; +0xb8, 0x140446608\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xbd, 0x14044660d\nadd     rsp, 20h                                                       ; +0xc2, 0x140446612\npop     r14                                                            ; +0xc6, 0x140446616\npop     rsi                                                            ; +0xc8, 0x140446618\npop     rbp                                                            ; +0xc9, 0x140446619\nretn                                                                   ; +0xca, 0x14044661a", "xrefs": ["SetupAudioTriggerPopup::addProxVolControls @ 0x1404462da", "<???> @ 0x1406a253c", "<???> @ 0x1406a254c", "<???> @ 0x1406da5bc"], "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"}