{"type": "func", "start": 5373193936, "end": 5373194067, "name": "SetupReverbPopup::onReverb", "pseudocode": "// \n// SetupReverbPopup::onReverb from 0x140446ed0 to 0x140446f53 (131 bytes)\n// \n// 3 xrefs:\n// > SetupReverbPopup::init @ 0x140446b83\n// > SetupReverbPopup::init @ 0x140446c41\n// > <???> @ 0x1406da610\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 SetupReverbPopup::onReverb(SetupReverbPopup *a1, cocos2d::CCObject *a2)\n{\n  int v4; // ebx\n  int v5; // eax\n  int v6; // r8d\n  bool v7; // zf\n  int v8; // eax\n  int v9; // r8d\n\n  v4 = (int)a1->getValue(a1, 502);\n  v5 = a2->getTag(a2);\n  v6 = 1;\n  v7 = v5 == 1;\n  v8 = 22;\n  if ( !v7 )\n    v6 = -1;\n  v9 = v4 + v6;\n  if ( v9 < 22 )\n    v8 = v9;\n  if ( v8 < 0 )\n    v8 = 0;\n  SetupTriggerPopup::updateValue(a1, 502, (float)v8);\n  SetupReverbPopup::updateReverbLabel(a1);\n}", "assembly": "; \n; SetupReverbPopup::onReverb from 0x140446ed0 to 0x140446f53 (131 bytes)\n; \n; 3 xrefs:\n; > SetupReverbPopup::init @ 0x140446b83\n; > SetupReverbPopup::init @ 0x140446c41\n; > <???> @ 0x1406da610\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_0], rbx                                               ; +0x0, 0x140446ed0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140446ed5\npush    rdi                                                            ; +0xa, 0x140446eda\nsub     rsp, 20h                                                       ; +0xb, 0x140446edb\nmov     rax, [rcx]                                                     ; +0xf, 0x140446edf\nmov     rdi, rdx                                                       ; +0x12, 0x140446ee2\nmov     edx, 1F6h                                                      ; +0x15, 0x140446ee5\nmov     rsi, rcx                                                       ; +0x1a, 0x140446eea\ncall    qword ptr [rax+470h]                                           ; +0x1d, 0x140446eed\nmov     rax, [rdi]                                                     ; +0x23, 0x140446ef3\nmov     rcx, rdi                                                       ; +0x26, 0x140446ef6\ncvttss2si ebx, xmm0                                                    ; +0x29, 0x140446ef9\ncall    qword ptr [rax+38h]                                            ; +0x2d, 0x140446efd\nmov     r8d, 1                                                         ; +0x30, 0x140446f00\nmov     ecx, 0FFFFFFFFh                                                ; +0x36, 0x140446f06\ncmp     eax, r8d                                                       ; +0x3b, 0x140446f0b\nmov     edx, 1F6h                                                      ; +0x3e, 0x140446f0e\nmov     eax, 16h                                                       ; +0x43, 0x140446f13\ncmovnz  r8d, ecx                                                       ; +0x48, 0x140446f18\nadd     r8d, ebx                                                       ; +0x4c, 0x140446f1c\ncmp     r8d, eax                                                       ; +0x4f, 0x140446f1f\ncmovl   eax, r8d                                                       ; +0x52, 0x140446f22\nxor     ecx, ecx                                                       ; +0x56, 0x140446f26\ntest    eax, eax                                                       ; +0x58, 0x140446f28\ncmovs   eax, ecx                                                       ; +0x5a, 0x140446f2a\nmov     rcx, rsi                                                       ; +0x5d, 0x140446f2d\nmovd    xmm2, eax                                                      ; +0x60, 0x140446f30\ncvtdq2ps xmm2, xmm2                                                    ; +0x64, 0x140446f34\ncall    SetupTriggerPopup__updateValue                                 ; +0x67, 0x140446f37\nmov     rcx, rsi                                                       ; +0x6c, 0x140446f3c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6f, 0x140446f3f\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x74, 0x140446f44\nadd     rsp, 20h                                                       ; +0x79, 0x140446f49\npop     rdi                                                            ; +0x7d, 0x140446f4d\njmp     SetupReverbPopup__updateReverbLabel                            ; +0x7e, 0x140446f4e", "xrefs": ["SetupReverbPopup::init @ 0x140446b83", "SetupReverbPopup::init @ 0x140446c41", "<???> @ 0x1406da610"], "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"}