{"type": "func", "start": 4300788848, "end": 4300789534, "name": "GJSearchObject::create", "pseudocode": "// \n// GJSearchObject::create from 0x10058d470 to 0x10058d71e (686 bytes)\n// \n// 5 xrefs:\n// > GJSearchObject::createFromKey @ 0x10054b2b6\n// > GJSearchObject::create_2 @ 0x10058d7f4\n// > GJSearchObject::create_1 @ 0x10058d8ef\n// > GJSearchObject::getPageObject @ 0x10058e381\n// > LevelSearchLayer::getSearchObject @ 0x1007091b0\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 12:32:25 +0000\n// \n\nchar *__fastcall GJSearchObject::create(\n        int a1,\n        std::string *a2,\n        std::string *a3,\n        std::string *a4,\n        int a5,\n        int a6,\n        unsigned __int8 a7,\n        unsigned __int8 a8,\n        int a9,\n        unsigned __int8 a10,\n        unsigned __int8 a11,\n        char a12,\n        char a13,\n        char a14,\n        unsigned __int8 a15,\n        unsigned __int8 a16,\n        unsigned __int8 a17,\n        char a18,\n        unsigned __int8 a19,\n        int a20,\n        int a21,\n        int a22)\n{\n  char *v24; // rbx\n  std::string __str; // [rsp+0h] [rbp-90h] BYREF\n  std::string v27; // [rsp+20h] [rbp-70h] BYREF\n  std::string v28; // [rsp+40h] [rbp-50h] BYREF\n  int v29; // [rsp+60h] [rbp-30h]\n  int v30; // [rsp+64h] [rbp-2Ch]\n\n  v29 = a6;\n  v30 = a5;\n  v24 = (char *)operator new(0x1B8u);\n  cocos2d::CCNode::CCNode((__int64)v24);\n  *(_QWORD *)v24 = off_100B6EC40;\n  *((_DWORD *)v24 + 108) = 0;\n  *(_OWORD *)(v24 + 316) = 0;\n  *(_OWORD *)(v24 + 332) = 0;\n  *(_OWORD *)(v24 + 348) = 0;\n  *(_OWORD *)(v24 + 364) = 0;\n  *(_OWORD *)(v24 + 380) = 0;\n  *((_WORD *)v24 + 198) = 0;\n  *((_QWORD *)v24 + 50) = 0;\n  *(_QWORD *)(v24 + 405) = 0;\n  *((_QWORD *)v24 + 52) = 0;\n  *(_QWORD *)(v24 + 423) = 0;\n  if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) == 0 )\n  {\n    __str = *a2;\n    if ( (*(_BYTE *)&a3->__r_.__value_.__s.0 & 1) != 0 )\n      goto LABEL_3;\nLABEL_6:\n    v27 = *a3;\n    if ( (*(_BYTE *)&a4->__r_.__value_.__s.0 & 1) == 0 )\n      goto LABEL_4;\n    goto LABEL_7;\n  }\n  sub_10001AD30(&__str, a2->__r_.__value_.__l.__data_, a2->__r_.__value_.__l.__size_);\n  if ( (*(_BYTE *)&a3->__r_.__value_.__s.0 & 1) == 0 )\n    goto LABEL_6;\nLABEL_3:\n  sub_10001AD30(&v27, a3->__r_.__value_.__l.__data_, a3->__r_.__value_.__l.__size_);\n  if ( (*(_BYTE *)&a4->__r_.__value_.__s.0 & 1) == 0 )\n  {\nLABEL_4:\n    v28 = *a4;\n    goto LABEL_8;\n  }\nLABEL_7:\n  sub_10001AD30(&v28, a4->__r_.__value_.__l.__data_, a4->__r_.__value_.__l.__size_);\nLABEL_8:\n  *((_DWORD *)v24 + 79) = a1;\n  std::string::operator=((std::string *)(v24 + 320), &__str);\n  std::string::operator=((std::string *)(v24 + 344), &v27);\n  std::string::operator=((std::string *)(v24 + 368), &v28);\n  *((_DWORD *)v24 + 98) = v30;\n  v24[396] = v29;\n  *((_DWORD *)v24 + 106) = a9;\n  v24[428] = a12;\n  v24[429] = a13;\n  v24[397] = a14;\n  v24[412] = a18;\n  *(_QWORD *)(v24 + 404) = _mm_and_si128(\n                             _mm_shuffle_epi8(\n                               _mm_insert_epi8(\n                                 _mm_insert_epi8(\n                                   _mm_insert_epi8(\n                                     _mm_insert_epi8(\n                                       _mm_insert_epi8(\n                                         _mm_insert_epi8(_mm_insert_epi8(_mm_cvtsi32_si128(a7), a19, 2), a8, 4),\n                                         a10,\n                                         6),\n                                       a11,\n                                       8),\n                                     a15,\n                                     10),\n                                   a16,\n                                   12),\n                                 a17,\n                                 14),\n                               (__m128i)xmmword_100A0CCE0),\n                             (__m128i)xmmword_100A0CCF0).u64[0];\n  *((_DWORD *)v24 + 104) = a20;\n  *((_DWORD *)v24 + 105) = a21;\n  *((_DWORD *)v24 + 108) = a22;\n  if ( (*(_BYTE *)&v28.__r_.__value_.__s.0 & 1) == 0 )\n  {\n    if ( (*(_BYTE *)&v27.__r_.__value_.__s.0 & 1) == 0 )\n      goto LABEL_10;\nLABEL_14:\n    operator delete(v27.__r_.__value_.__l.__data_);\n    if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) == 0 )\n      goto LABEL_12;\n    goto LABEL_11;\n  }\n  operator delete(v28.__r_.__value_.__l.__data_);\n  if ( (*(_BYTE *)&v27.__r_.__value_.__s.0 & 1) != 0 )\n    goto LABEL_14;\nLABEL_10:\n  if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )\nLABEL_11:\n    operator delete(__str.__r_.__value_.__l.__data_);\nLABEL_12:\n  cocos2d::CCObject::autorelease((__int64)v24);\n  return v24;\n}", "assembly": "; \n; GJSearchObject::create from 0x10058d470 to 0x10058d71e (686 bytes)\n; \n; 5 xrefs:\n; > GJSearchObject::createFromKey @ 0x10054b2b6\n; > GJSearchObject::create_2 @ 0x10058d7f4\n; > GJSearchObject::create_1 @ 0x10058d8ef\n; > GJSearchObject::getPageObject @ 0x10058e381\n; > LevelSearchLayer::getSearchObject @ 0x1007091b0\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 12:32:25 +0000\n; \npush    rbp                                                            ; +0x0, 0x10058d470\nmov     rbp, rsp                                                       ; +0x1, 0x10058d471\npush    r15                                                            ; +0x4, 0x10058d474\npush    r14                                                            ; +0x6, 0x10058d476\npush    r13                                                            ; +0x8, 0x10058d478\npush    r12                                                            ; +0xa, 0x10058d47a\npush    rbx                                                            ; +0xc, 0x10058d47c\nsub     rsp, 68h                                                       ; +0xd, 0x10058d47d\nmov     [rbp+var_30], r9d                                              ; +0x11, 0x10058d481\nmov     [rbp+var_2C], r8d                                              ; +0x15, 0x10058d485\nmov     r13, rcx                                                       ; +0x19, 0x10058d489\nmov     r14, rdx                                                       ; +0x1c, 0x10058d48c\nmov     r15, rsi                                                       ; +0x1f, 0x10058d48f\nmov     r12d, edi                                                      ; +0x22, 0x10058d492\nmov     edi, 1B8h; __sz                                                ; +0x25, 0x10058d495\ncall    __Znwm; operator new(ulong)                                    ; +0x2a, 0x10058d49a\nmov     rbx, rax                                                       ; +0x2f, 0x10058d49f\nmov     rdi, rax                                                       ; +0x32, 0x10058d4a2\ncall    cocos2d__CCNode__CCNode                                        ; +0x35, 0x10058d4a5\nlea     rax, off_100B6EC40                                             ; +0x3a, 0x10058d4aa\nmov     [rbx], rax                                                     ; +0x41, 0x10058d4b1\nmov     dword ptr [rbx+1B0h], 0                                        ; +0x44, 0x10058d4b4\nxorps   xmm0, xmm0                                                     ; +0x4e, 0x10058d4be\nmovups  xmmword ptr [rbx+13Ch], xmm0                                   ; +0x51, 0x10058d4c1\nmovups  xmmword ptr [rbx+14Ch], xmm0                                   ; +0x58, 0x10058d4c8\nmovups  xmmword ptr [rbx+15Ch], xmm0                                   ; +0x5f, 0x10058d4cf\nmovups  xmmword ptr [rbx+16Ch], xmm0                                   ; +0x66, 0x10058d4d6\nmovups  xmmword ptr [rbx+17Ch], xmm0                                   ; +0x6d, 0x10058d4dd\nmov     word ptr [rbx+18Ch], 0                                         ; +0x74, 0x10058d4e4\nmov     qword ptr [rbx+190h], 0                                        ; +0x7d, 0x10058d4ed\nmov     qword ptr [rbx+195h], 0                                        ; +0x88, 0x10058d4f8\nmov     qword ptr [rbx+1A0h], 0                                        ; +0x93, 0x10058d503\nmov     qword ptr [rbx+1A7h], 0                                        ; +0x9e, 0x10058d50e\ntest    byte ptr [r15], 1                                              ; +0xa9, 0x10058d519\njnz     short loc_10058D563                                            ; +0xad, 0x10058d51d\nmov     rax, [r15+10h]                                                 ; +0xaf, 0x10058d51f\nmov     qword ptr [rbp+__str.__r_.__value_+10h], rax                   ; +0xb3, 0x10058d523\nmovups  xmm0, xmmword ptr [r15]                                        ; +0xb7, 0x10058d527\nmovaps  xmmword ptr [rbp+__str.__r_.__value_], xmm0                    ; +0xbb, 0x10058d52b\ntest    byte ptr [r14], 1                                              ; +0xc2, 0x10058d532\njz      short loc_10058D57D                                            ; +0xc6, 0x10058d536\nmov     rdx, [r14+8]                                                   ; +0xc8, 0x10058d538\nmov     rsi, [r14+10h]                                                 ; +0xcc, 0x10058d53c\nlea     rdi, [rbp+var_70]                                              ; +0xd0, 0x10058d540\ncall    sub_10001AD30                                                  ; +0xd4, 0x10058d544\ntest    byte ptr [r13+0], 1                                            ; +0xd9, 0x10058d549\njnz     short loc_10058D594                                            ; +0xde, 0x10058d54e\nmov     rax, [r13+10h]                                                 ; +0xe0, 0x10058d550\nmov     qword ptr [rbp+var_50.__r_.__value_+10h], rax                  ; +0xe4, 0x10058d554\nmovups  xmm0, xmmword ptr [r13+0]                                      ; +0xe8, 0x10058d558\nmovaps  xmmword ptr [rbp+var_50.__r_.__value_], xmm0                   ; +0xed, 0x10058d55d\njmp     short loc_10058D5A5                                            ; +0xf1, 0x10058d561\nmov     rdx, [r15+8]                                                   ; +0xf3, 0x10058d563\nmov     rsi, [r15+10h]                                                 ; +0xf7, 0x10058d567\nlea     rdi, [rbp+__str]                                               ; +0xfb, 0x10058d56b\ncall    sub_10001AD30                                                  ; +0x102, 0x10058d572\ntest    byte ptr [r14], 1                                              ; +0x107, 0x10058d577\njnz     short loc_10058D538                                            ; +0x10b, 0x10058d57b\nmov     rax, [r14+10h]                                                 ; +0x10d, 0x10058d57d\nmov     qword ptr [rbp+var_70.__r_.__value_+10h], rax                  ; +0x111, 0x10058d581\nmovups  xmm0, xmmword ptr [r14]                                        ; +0x115, 0x10058d585\nmovaps  xmmword ptr [rbp+var_70.__r_.__value_], xmm0                   ; +0x119, 0x10058d589\ntest    byte ptr [r13+0], 1                                            ; +0x11d, 0x10058d58d\njz      short loc_10058D550                                            ; +0x122, 0x10058d592\nmov     rdx, [r13+8]                                                   ; +0x124, 0x10058d594\nmov     rsi, [r13+10h]                                                 ; +0x128, 0x10058d598\nlea     rdi, [rbp+var_50]                                              ; +0x12c, 0x10058d59c\ncall    sub_10001AD30                                                  ; +0x130, 0x10058d5a0\nmov     [rbx+13Ch], r12d                                               ; +0x135, 0x10058d5a5\nlea     rdi, [rbx+140h]; this                                          ; +0x13c, 0x10058d5ac\nlea     rsi, [rbp+__str]; __str                                        ; +0x143, 0x10058d5b3\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x14a, 0x10058d5ba\nlea     rdi, [rbx+158h]; this                                          ; +0x14f, 0x10058d5bf\nlea     rsi, [rbp+var_70]; __str                                       ; +0x156, 0x10058d5c6\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x15a, 0x10058d5ca\nmov     rdi, rbx                                                       ; +0x15f, 0x10058d5cf\nadd     rdi, 170h; this                                                ; +0x162, 0x10058d5d2\nlea     rsi, [rbp+var_50]; __str                                       ; +0x169, 0x10058d5d9\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x16d, 0x10058d5dd\nmov     eax, [rbp+arg_78]                                              ; +0x172, 0x10058d5e2\nmov     ecx, [rbp+arg_70]                                              ; +0x178, 0x10058d5e8\nmov     edx, [rbp+arg_68]                                              ; +0x17e, 0x10058d5ee\nmovzx   esi, [rbp+arg_60]                                              ; +0x181, 0x10058d5f1\nmovzx   edi, [rbp+arg_0]                                               ; +0x185, 0x10058d5f5\nmovd    xmm0, edi                                                      ; +0x189, 0x10058d5f9\npinsrb  xmm0, esi, 2                                                   ; +0x18d, 0x10058d5fd\nmovzx   esi, [rbp+arg_58]                                              ; +0x193, 0x10058d603\nmovzx   edi, [rbp+arg_8]                                               ; +0x197, 0x10058d607\npinsrb  xmm0, edi, 4                                                   ; +0x19b, 0x10058d60b\nmovzx   edi, [rbp+arg_38]                                              ; +0x1a1, 0x10058d611\nmovzx   r8d, [rbp+arg_18]                                              ; +0x1a5, 0x10058d615\npinsrb  xmm0, r8d, 6                                                   ; +0x1aa, 0x10058d61a\nmovzx   r8d, [rbp+arg_30]                                              ; +0x1b1, 0x10058d621\nmovzx   r9d, [rbp+arg_20]                                              ; +0x1b6, 0x10058d626\npinsrb  xmm0, r9d, 8                                                   ; +0x1bb, 0x10058d62b\nmovzx   r9d, [rbp+arg_28]                                              ; +0x1c2, 0x10058d632\nmovzx   r10d, [rbp+arg_40]                                             ; +0x1c7, 0x10058d637\npinsrb  xmm0, r10d, 0Ah                                                ; +0x1cc, 0x10058d63c\nmov     r10d, [rbp+arg_10]                                             ; +0x1d3, 0x10058d643\nmovzx   r11d, [rbp+arg_48]                                             ; +0x1d7, 0x10058d647\npinsrb  xmm0, r11d, 0Ch                                                ; +0x1dc, 0x10058d64c\nmovzx   r11d, [rbp+arg_50]                                             ; +0x1e3, 0x10058d653\npinsrb  xmm0, r11d, 0Eh                                                ; +0x1e8, 0x10058d658\nmov     r11d, [rbp+var_2C]                                             ; +0x1ef, 0x10058d65f\nmov     [rbx+188h], r11d                                               ; +0x1f3, 0x10058d663\nmov     r11d, [rbp+var_30]                                             ; +0x1fa, 0x10058d66a\nmov     [rbx+18Ch], r11b                                               ; +0x1fe, 0x10058d66e\nmov     [rbx+1A8h], r10d                                               ; +0x205, 0x10058d675\nmov     [rbx+1ACh], r9b                                                ; +0x20c, 0x10058d67c\nmov     [rbx+1ADh], r8b                                                ; +0x213, 0x10058d683\nmov     [rbx+18Dh], dil                                                ; +0x21a, 0x10058d68a\nmov     [rbx+19Ch], sil                                                ; +0x221, 0x10058d691\npshufb  xmm0, cs:xmmword_100A0CCE0                                     ; +0x228, 0x10058d698\npand    xmm0, cs:xmmword_100A0CCF0                                     ; +0x231, 0x10058d6a1\nmovq    qword ptr [rbx+194h], xmm0                                     ; +0x239, 0x10058d6a9\nmov     [rbx+1A0h], edx                                                ; +0x241, 0x10058d6b1\nmov     [rbx+1A4h], ecx                                                ; +0x247, 0x10058d6b7\nmov     [rbx+1B0h], eax                                                ; +0x24d, 0x10058d6bd\ntest    byte ptr [rbp+var_50.__r_.__value_], 1                         ; +0x253, 0x10058d6c3\njnz     short loc_10058D6FB                                            ; +0x257, 0x10058d6c7\ntest    byte ptr [rbp+var_70.__r_.__value_], 1                         ; +0x259, 0x10058d6c9\njnz     short loc_10058D70A                                            ; +0x25d, 0x10058d6cd\ntest    byte ptr [rbp+__str.__r_.__value_], 1                          ; +0x25f, 0x10058d6cf\njz      short loc_10058D6E1                                            ; +0x266, 0x10058d6d6\nmov     rdi, qword ptr [rbp+__str.__r_.__value_+10h]; __p              ; +0x268, 0x10058d6d8\ncall    __ZdlPv; operator delete(void *)                               ; +0x26c, 0x10058d6dc\nmov     rdi, rbx                                                       ; +0x271, 0x10058d6e1\ncall    cocos2d__CCObject__autorelease                                 ; +0x274, 0x10058d6e4\nmov     rax, rbx                                                       ; +0x279, 0x10058d6e9\nadd     rsp, 68h                                                       ; +0x27c, 0x10058d6ec\npop     rbx                                                            ; +0x280, 0x10058d6f0\npop     r12                                                            ; +0x281, 0x10058d6f1\npop     r13                                                            ; +0x283, 0x10058d6f3\npop     r14                                                            ; +0x285, 0x10058d6f5\npop     r15                                                            ; +0x287, 0x10058d6f7\npop     rbp                                                            ; +0x289, 0x10058d6f9\nretn                                                                   ; +0x28a, 0x10058d6fa\nmov     rdi, qword ptr [rbp+var_50.__r_.__value_+10h]; __p             ; +0x28b, 0x10058d6fb\ncall    __ZdlPv; operator delete(void *)                               ; +0x28f, 0x10058d6ff\ntest    byte ptr [rbp+var_70.__r_.__value_], 1                         ; +0x294, 0x10058d704\njz      short loc_10058D6CF                                            ; +0x298, 0x10058d708\nmov     rdi, qword ptr [rbp+var_70.__r_.__value_+10h]; __p             ; +0x29a, 0x10058d70a\ncall    __ZdlPv; operator delete(void *)                               ; +0x29e, 0x10058d70e\ntest    byte ptr [rbp+__str.__r_.__value_], 1                          ; +0x2a3, 0x10058d713\njnz     short loc_10058D6D8                                            ; +0x2aa, 0x10058d71a\njmp     short loc_10058D6E1                                            ; +0x2ac, 0x10058d71c", "xrefs": ["GJSearchObject::createFromKey @ 0x10054b2b6", "GJSearchObject::create_2 @ 0x10058d7f4", "GJSearchObject::create_1 @ 0x10058d8ef", "GJSearchObject::getPageObject @ 0x10058e381", "LevelSearchLayer::getSearchObject @ 0x1007091b0"], "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"}