{"type": "func", "start": 4295554656, "end": 4295554966, "name": "GJChallengeItem::create", "pseudocode": "// \n// GJChallengeItem::create from 0x10008f660 to 0x10008f796 (310 bytes)\n// \n// 3 xrefs:\n// > GJChallengeItem::createFromString @ 0x10008f5ca\n// > GJChallengeItem::create_1 @ 0x10008f7da\n// > GJChallengeItem::createWithCoder @ 0x10008f8a0\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\nchar *__fastcall GJChallengeItem::create(int a1, int a2, int a3, int a4, std::string *a5)\n{\n  char *v7; // rbx\n  int v8; // eax\n  float v9; // xmm0_4\n  std::string __str; // [rsp+0h] [rbp-50h] BYREF\n  int v12; // [rsp+20h] [rbp-30h]\n  int v13; // [rsp+24h] [rbp-2Ch]\n\n  v12 = a4;\n  v13 = a1;\n  v7 = (char *)operator new(0x88u);\n  cocos2d::CCObject::CCObject(v7);\n  *(_QWORD *)v7 = off_1008B3938;\n  *((_DWORD *)v7 + 26) = 0;\n  *((_OWORD *)v7 + 7) = 0;\n  *((_QWORD *)v7 + 16) = 0;\n  *(_OWORD *)(v7 + 56) = 0;\n  *(_OWORD *)(v7 + 72) = 0;\n  *(_OWORD *)(v7 + 85) = 0;\n  if ( (*(_BYTE *)&a5->__r_.__value_.__s.0 & 1) != 0 )\n    sub_100006B70(&__str, a5->__r_.__value_.__l.__data_, a5->__r_.__value_.__l.__size_, 0.0);\n  else\n    __str = *a5;\n  *((_DWORD *)v7 + 14) = v13;\n  *((_DWORD *)v7 + 24) = v12;\n  std::string::operator=((std::string *)(v7 + 112), &__str);\n  *((_DWORD *)v7 + 23) = a2;\n  v8 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0);\n  *((_DWORD *)v7 + 22) = v8;\n  *((_DWORD *)v7 + 21) = v8 + a2;\n  *((_DWORD *)v7 + 20) = a3;\n  v9 = (float)((float)rand() * 4.6566129e-10) * 1000.0;\n  *((_DWORD *)v7 + 19) = (int)v9;\n  *((_DWORD *)v7 + 18) = (int)v9 + a3;\n  if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(__str.__r_.__value_.__l.__data_);\n  cocos2d::CCObject::autorelease((cocos2d::CCObject *)v7);\n  return v7;\n}", "assembly": "; \n; GJChallengeItem::create from 0x10008f660 to 0x10008f796 (310 bytes)\n; \n; 3 xrefs:\n; > GJChallengeItem::createFromString @ 0x10008f5ca\n; > GJChallengeItem::create_1 @ 0x10008f7da\n; > GJChallengeItem::createWithCoder @ 0x10008f8a0\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, 0x10008f660\nmov     rbp, rsp                                                       ; +0x1, 0x10008f661\npush    r15                                                            ; +0x4, 0x10008f664\npush    r14                                                            ; +0x6, 0x10008f666\npush    r13                                                            ; +0x8, 0x10008f668\npush    r12                                                            ; +0xa, 0x10008f66a\npush    rbx                                                            ; +0xc, 0x10008f66c\nsub     rsp, 28h                                                       ; +0xd, 0x10008f66d\nmov     r12, r8                                                        ; +0x11, 0x10008f671\nmov     [rbp+var_30], ecx                                              ; +0x14, 0x10008f674\nmov     r14d, edx                                                      ; +0x17, 0x10008f677\nmov     r15d, esi                                                      ; +0x1a, 0x10008f67a\nmov     [rbp+var_2C], edi                                              ; +0x1d, 0x10008f67d\nmov     edi, 88h; __sz                                                 ; +0x20, 0x10008f680\ncall    __Znwm; operator new(ulong)                                    ; +0x25, 0x10008f685\nmov     r13, rax                                                       ; +0x2a, 0x10008f68a\nmov     rbx, rax                                                       ; +0x2d, 0x10008f68d\nmov     rdi, rax                                                       ; +0x30, 0x10008f690\ncall    cocos2d__CCObject__CCObject                                    ; +0x33, 0x10008f693\nlea     rax, off_1008B3938                                             ; +0x38, 0x10008f698\nmov     [rbx], rax                                                     ; +0x3f, 0x10008f69f\nmov     dword ptr [rbx+68h], 0                                         ; +0x42, 0x10008f6a2\nadd     r13, 70h ; 'p'                                                 ; +0x49, 0x10008f6a9\nxorps   xmm0, xmm0                                                     ; +0x4d, 0x10008f6ad\nmovups  xmmword ptr [rbx+70h], xmm0                                    ; +0x50, 0x10008f6b0\nmov     qword ptr [rbx+80h], 0                                         ; +0x54, 0x10008f6b4\nmovups  xmmword ptr [rbx+38h], xmm0                                    ; +0x5f, 0x10008f6bf\nmovups  xmmword ptr [rbx+48h], xmm0                                    ; +0x63, 0x10008f6c3\nmovups  xmmword ptr [rbx+55h], xmm0                                    ; +0x67, 0x10008f6c7\ntest    byte ptr [r12], 1                                              ; +0x6b, 0x10008f6cb\njnz     short loc_10008F6E6                                            ; +0x70, 0x10008f6d0\nmov     rax, [r12+10h]                                                 ; +0x72, 0x10008f6d2\nmov     qword ptr [rbp+__str.__r_.__value_+10h], rax                   ; +0x77, 0x10008f6d7\nmovups  xmm0, xmmword ptr [r12]                                        ; +0x7b, 0x10008f6db\nmovaps  xmmword ptr [rbp+__str.__r_.__value_], xmm0                    ; +0x80, 0x10008f6e0\njmp     short loc_10008F6F9                                            ; +0x84, 0x10008f6e4\nmov     rdx, [r12+8]                                                   ; +0x86, 0x10008f6e6\nmov     rsi, [r12+10h]                                                 ; +0x8b, 0x10008f6eb\nlea     rdi, [rbp+__str]                                               ; +0x90, 0x10008f6f0\ncall    sub_100006B70                                                  ; +0x94, 0x10008f6f4\nmov     eax, [rbp+var_2C]                                              ; +0x99, 0x10008f6f9\nmov     [rbx+38h], eax                                                 ; +0x9c, 0x10008f6fc\nmov     eax, [rbp+var_30]                                              ; +0x9f, 0x10008f6ff\nmov     [rbx+60h], eax                                                 ; +0xa2, 0x10008f702\nlea     rsi, [rbp+__str]; __str                                        ; +0xa5, 0x10008f705\nmov     rdi, r13; this                                                 ; +0xa9, 0x10008f709\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0xac, 0x10008f70c\nmov     [rbx+5Ch], r15d                                                ; +0xb1, 0x10008f711\ncall    _rand                                                          ; +0xb5, 0x10008f715\nxorps   xmm0, xmm0                                                     ; +0xba, 0x10008f71a\ncvtsi2ss xmm0, eax                                                     ; +0xbd, 0x10008f71d\nmulss   xmm0, cs:dword_100815710                                       ; +0xc1, 0x10008f721\nmulss   xmm0, cs:dword_1008152B8                                       ; +0xc9, 0x10008f729\ncvttss2si eax, xmm0                                                    ; +0xd1, 0x10008f731\nmov     [rbx+58h], eax                                                 ; +0xd5, 0x10008f735\nadd     r15d, eax                                                      ; +0xd8, 0x10008f738\nmov     [rbx+54h], r15d                                                ; +0xdb, 0x10008f73b\nmov     [rbx+50h], r14d                                                ; +0xdf, 0x10008f73f\ncall    _rand                                                          ; +0xe3, 0x10008f743\nxorps   xmm0, xmm0                                                     ; +0xe8, 0x10008f748\ncvtsi2ss xmm0, eax                                                     ; +0xeb, 0x10008f74b\nmulss   xmm0, cs:dword_100815710                                       ; +0xef, 0x10008f74f\nmulss   xmm0, cs:dword_1008152B8                                       ; +0xf7, 0x10008f757\ncvttss2si eax, xmm0                                                    ; +0xff, 0x10008f75f\nmov     [rbx+4Ch], eax                                                 ; +0x103, 0x10008f763\nadd     r14d, eax                                                      ; +0x106, 0x10008f766\nmov     [rbx+48h], r14d                                                ; +0x109, 0x10008f769\ntest    byte ptr [rbp+__str.__r_.__value_], 1                          ; +0x10d, 0x10008f76d\njz      short loc_10008F77C                                            ; +0x111, 0x10008f771\nmov     rdi, qword ptr [rbp+__str.__r_.__value_+10h]; __p              ; +0x113, 0x10008f773\ncall    __ZdlPv; operator delete(void *)                               ; +0x117, 0x10008f777\nmov     rdi, rbx                                                       ; +0x11c, 0x10008f77c\ncall    cocos2d__CCObject__autorelease                                 ; +0x11f, 0x10008f77f\nmov     rax, rbx                                                       ; +0x124, 0x10008f784\nadd     rsp, 28h                                                       ; +0x127, 0x10008f787\npop     rbx                                                            ; +0x12b, 0x10008f78b\npop     r12                                                            ; +0x12c, 0x10008f78c\npop     r13                                                            ; +0x12e, 0x10008f78e\npop     r14                                                            ; +0x130, 0x10008f790\npop     r15                                                            ; +0x132, 0x10008f792\npop     rbp                                                            ; +0x134, 0x10008f794\nretn                                                                   ; +0x135, 0x10008f795", "xrefs": ["GJChallengeItem::createFromString @ 0x10008f5ca", "GJChallengeItem::create_1 @ 0x10008f7da", "GJChallengeItem::createWithCoder @ 0x10008f8a0"], "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"}