{"type": "func", "start": 4298376524, "end": 4298376664, "name": "GJChallengeItem::init", "pseudocode": "// \n// GJChallengeItem::init from 0x10034054c to 0x1003405d8 (140 bytes)\n// \n// 1 xrefs:\n// > GJChallengeItem::create @ 0x100340470\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\n__int64 __fastcall GJChallengeItem::init(__int64 a1, int a2, int a3, int a4, int a5, std::string *__str)\n{\n  float v9; // s0\n  float v10; // s0\n\n  *(_DWORD *)(a1 + 56) = a2;\n  *(_DWORD *)(a1 + 96) = a5;\n  std::string::operator=((std::string *)(a1 + 112), __str);\n  *(_DWORD *)(a1 + 92) = a3;\n  v9 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;\n  *(_DWORD *)(a1 + 88) = (int)v9;\n  *(_DWORD *)(a1 + 80) = a4;\n  *(_DWORD *)(a1 + 84) = (int)v9 + a3;\n  v10 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;\n  *(_DWORD *)(a1 + 72) = (int)v10 + a4;\n  *(_DWORD *)(a1 + 76) = (int)v10;\n  return 1;\n}", "assembly": "; \n; GJChallengeItem::init from 0x10034054c to 0x1003405d8 (140 bytes)\n; \n; 1 xrefs:\n; > GJChallengeItem::create @ 0x100340470\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\nSTP             D9, D8, [SP,#-0x10+var_30]!                            ; +0x0, 0x10034054c\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x100340550\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x100340554\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100340558\nADD             X29, SP, #0x30                                         ; +0x10, 0x10034055c\nMOV             X19, X3                                                ; +0x14, 0x100340560\nMOV             X20, X2                                                ; +0x18, 0x100340564\nMOV             X21, X0                                                ; +0x1c, 0x100340568\nSTR             W1, [X0,#0x38]                                         ; +0x20, 0x10034056c\nSTR             W4, [X0,#0x60]                                         ; +0x24, 0x100340570\nADD             X0, X0, #0x70 ; 'p'; this                              ; +0x28, 0x100340574\nMOV             X1, X5; __str                                          ; +0x2c, 0x100340578\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x30, 0x10034057c\nSTR             W20, [X21,#0x5C]                                       ; +0x34, 0x100340580\nBL              _rand                                                  ; +0x38, 0x100340584\nSCVTF           S0, W0, #0x1F                                          ; +0x3c, 0x100340588\nMOV             W8, #0x447A0000                                        ; +0x40, 0x10034058c\nFMOV            S8, W8                                                 ; +0x44, 0x100340590\nFMUL            S0, S0, S8                                             ; +0x48, 0x100340594\nFCVTZS          W8, S0                                                 ; +0x4c, 0x100340598\nSTR             W8, [X21,#0x58]                                        ; +0x50, 0x10034059c\nADD             W8, W8, W20                                            ; +0x54, 0x1003405a0\nSTP             W19, W8, [X21,#0x50]                                   ; +0x58, 0x1003405a4\nBL              _rand                                                  ; +0x5c, 0x1003405a8\nSCVTF           S0, W0, #0x1F                                          ; +0x60, 0x1003405ac\nFMUL            S0, S0, S8                                             ; +0x64, 0x1003405b0\nFCVTZS          W8, S0                                                 ; +0x68, 0x1003405b4\nADD             W9, W8, W19                                            ; +0x6c, 0x1003405b8\nSTP             W9, W8, [X21,#0x48]                                    ; +0x70, 0x1003405bc\nMOV             W0, #1                                                 ; +0x74, 0x1003405c0\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x78, 0x1003405c4\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x7c, 0x1003405c8\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x80, 0x1003405cc\nLDP             D9, D8, [SP+0x30+var_30],#0x40                         ; +0x84, 0x1003405d0\nRET                                                                    ; +0x88, 0x1003405d4", "xrefs": ["GJChallengeItem::create @ 0x100340470"], "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"}