{"type": "func", "start": 5371947312, "end": 5371947600, "name": "MoreSearchLayer::audioPrevious", "pseudocode": "// \n// MoreSearchLayer::audioPrevious from 0x140316930 to 0x140316a50 (288 bytes)\n// \n// 3 xrefs:\n// > MoreSearchLayer::init @ 0x140314202\n// > <???> @ 0x1406d4958\n// > <???> @ 0x1406d4964\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 MoreSearchLayer::audioPrevious(MoreSearchLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rcx\n  cocos2d::CCString *v4; // rax\n  int v5; // ebx\n  void *v6; // rcx\n  void *v7; // [rsp+20h] [rbp-38h]\n  void *Block[2]; // [rsp+28h] [rbp-30h] BYREF\n  __int64 v9; // [rsp+38h] [rbp-20h]\n  unsigned __int64 v10; // [rsp+40h] [rbp-18h]\n\n  v3 = qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v7 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280((__int64)v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v3 = qword_1406C2EC0;\n  }\n  v9 = 11;\n  v10 = 15;\n  Block[0] = (void *)0x6C69665F676E6F73LL;\n  Block[1] = (void *)7497076;\n  v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v3 + 344), Block);\n  v5 = cocos2d::CCString::intValue(v4);\n  if ( v10 > 0xF )\n  {\n    v6 = Block[0];\n    if ( v10 + 1 >= 0x1000 )\n    {\n      v6 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v6);\n  }\n  if ( v5 != 1 )\n    MoreSearchLayer::selectSong(a1, v5 - 1);\n}", "assembly": "; \n; MoreSearchLayer::audioPrevious from 0x140316930 to 0x140316a50 (288 bytes)\n; \n; 3 xrefs:\n; > MoreSearchLayer::init @ 0x140314202\n; > <???> @ 0x1406d4958\n; > <???> @ 0x1406d4964\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, 0x140316930\npush    rdi                                                            ; +0x5, 0x140316935\nsub     rsp, 50h                                                       ; +0x6, 0x140316936\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x14031693a\nxor     rax, rsp                                                       ; +0x11, 0x140316941\nmov     [rsp+58h+var_10], rax                                          ; +0x14, 0x140316944\nmov     rdi, rcx                                                       ; +0x19, 0x140316949\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x1c, 0x14031694c\ntest    rcx, rcx                                                       ; +0x23, 0x140316953\njnz     short loc_140316987                                            ; +0x26, 0x140316956\nmov     ecx, 3D0h; Size                                                ; +0x28, 0x140316958\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2d, 0x14031695d\nmov     [rsp+58h+var_38], rax                                          ; +0x32, 0x140316962\nmov     rcx, rax                                                       ; +0x37, 0x140316967\ncall    sub_140141280                                                  ; +0x3a, 0x14031696a\nnop                                                                    ; +0x3f, 0x14031696f\nmov     cs:qword_1406C2EC0, rax                                        ; +0x40, 0x140316970\nmov     rdx, [rax]                                                     ; +0x47, 0x140316977\nmov     rcx, rax                                                       ; +0x4a, 0x14031697a\ncall    qword ptr [rdx+48h]                                            ; +0x4d, 0x14031697d\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x50, 0x140316980\nxorps   xmm0, xmm0                                                     ; +0x57, 0x140316987\nmovups  xmmword ptr [rsp+58h+Block], xmm0                              ; +0x5a, 0x14031698a\nmov     [rsp+58h+var_20], 0Bh                                          ; +0x5f, 0x14031698f\nmov     [rsp+58h+var_18], 0Fh                                          ; +0x68, 0x140316998\nmovsd   xmm0, cs:qword_14058AA88                                       ; +0x71, 0x1403169a1\nmovsd   [rsp+58h+Block], xmm0                                          ; +0x79, 0x1403169a9\nmovzx   eax, cs:word_14058AA90                                         ; +0x7f, 0x1403169af\nmov     word ptr [rsp+58h+Block+8], ax                                 ; +0x86, 0x1403169b6\nmovzx   eax, cs:byte_14058AA92                                         ; +0x8b, 0x1403169bb\nmov     byte ptr [rsp+58h+Block+0Ah], al                               ; +0x92, 0x1403169c2\nmov     byte ptr [rsp+58h+Block+0Bh], 0                                ; +0x96, 0x1403169c6\nlea     rdx, [rsp+58h+Block]                                           ; +0x9b, 0x1403169cb\nmov     rcx, [rcx+158h]                                                ; +0xa0, 0x1403169d0\ncall    cs:?valueForKey@CCDictionary@cocos2d@@QEAAPEBVCCString@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::valueForKey(std::string const &) ; +0xa7, 0x1403169d7\nmov     rcx, rax                                                       ; +0xad, 0x1403169dd\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0xb0, 0x1403169e0\nmov     ebx, eax                                                       ; +0xb6, 0x1403169e6\nmov     rdx, [rsp+58h+var_18]                                          ; +0xb8, 0x1403169e8\ncmp     rdx, 0Fh                                                       ; +0xbd, 0x1403169ed\njbe     short loc_140316A28                                            ; +0xc1, 0x1403169f1\ninc     rdx                                                            ; +0xc3, 0x1403169f3\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0xc6, 0x1403169f6\nmov     rax, rcx                                                       ; +0xcb, 0x1403169fb\ncmp     rdx, 1000h                                                     ; +0xce, 0x1403169fe\njb      short loc_140316A23                                            ; +0xd5, 0x140316a05\nadd     rdx, 27h ; '''                                                 ; +0xd7, 0x140316a07\nmov     rcx, [rcx-8]                                                   ; +0xdb, 0x140316a0b\nsub     rax, rcx                                                       ; +0xdf, 0x140316a0f\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xe2, 0x140316a12\ncmp     rax, 1Fh                                                       ; +0xe6, 0x140316a16\njbe     short loc_140316A23                                            ; +0xea, 0x140316a1a\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xec, 0x140316a1c\ndb 0CCh                                                                ; +0xf2, 0x140316a22\ncall    j_j_free                                                       ; +0xf3, 0x140316a23\ncmp     ebx, 1                                                         ; +0xf8, 0x140316a28\njz      short loc_140316A38                                            ; +0xfb, 0x140316a2b\nlea     edx, [rbx-1]                                                   ; +0xfd, 0x140316a2d\nmov     rcx, rdi                                                       ; +0x100, 0x140316a30\ncall    MoreSearchLayer__selectSong                                    ; +0x103, 0x140316a33\nmov     rcx, [rsp+58h+var_10]                                          ; +0x108, 0x140316a38\nxor     rcx, rsp; StackCookie                                          ; +0x10d, 0x140316a3d\ncall    __security_check_cookie                                        ; +0x110, 0x140316a40\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x115, 0x140316a45\nadd     rsp, 50h                                                       ; +0x11a, 0x140316a4a\npop     rdi                                                            ; +0x11e, 0x140316a4e\nretn                                                                   ; +0x11f, 0x140316a4f", "xrefs": ["MoreSearchLayer::init @ 0x140314202", "<???> @ 0x1406d4958", "<???> @ 0x1406d4964"], "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"}