{"type": "func", "start": 8050528, "end": 8050684, "name": "GJChallengeItem::init", "pseudocode": "// \n// GJChallengeItem::init from 0x7ad760 to 0x7ad7fc (156 bytes)\n// \n// 2 xrefs:\n// > GJChallengeItem::create @ 0x7ad8d0\n// > <???> @ 0x9f450\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\nfloat __fastcall GJChallengeItem::init(_DWORD *a1, int a2, int a3, int a4, int a5, __int64 a6)\n{\n  int v9; // w0\n  int v10; // w0\n  float result; // s0\n\n  a1[24] = a5;\n  a1[14] = a2;\n  sub_D18EA8(a1 + 28, a6);\n  a1[23] = a3;\n  v9 = rand();\n  a1[20] = a4;\n  v10 = (int)(float)((float)((float)v9 * 4.6566e-10) * 1000.0);\n  a1[22] = v10;\n  a1[21] = a3 + v10;\n  result = (float)((float)rand() * 4.6566e-10) * 1000.0;\n  a1[19] = (int)result;\n  a1[18] = a4 + (int)result;\n  return result;\n}", "assembly": "; \n; GJChallengeItem::init from 0x7ad760 to 0x7ad7fc (156 bytes)\n; \n; 2 xrefs:\n; > GJChallengeItem::create @ 0x7ad8d0\n; > <???> @ 0x9f450\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             X29, X30, [SP,#var_40]!                                ; +0x0, 0x7ad760\nMOV             X29, SP                                                ; +0x4, 0x7ad764\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x7ad768\nSTP             D8, D9, [SP,#0x40+var_18]                              ; +0xc, 0x7ad76c\nMOV             X19, X0                                                ; +0x10, 0x7ad770\nSTR             X21, [SP,#0x40+var_20]                                 ; +0x14, 0x7ad774\nADD             X0, X0, #0x70 ; 'p'                                    ; +0x18, 0x7ad778\nMOV             W21, W2                                                ; +0x1c, 0x7ad77c\nMOV             W20, W3                                                ; +0x20, 0x7ad780\nSTR             W4, [X19,#0x60]                                        ; +0x24, 0x7ad784\nSTR             W1, [X19,#0x38]                                        ; +0x28, 0x7ad788\nMOV             X1, X5                                                 ; +0x2c, 0x7ad78c\nBL              sub_D18EA8                                             ; +0x30, 0x7ad790\nSTR             W21, [X19,#0x5C]                                       ; +0x34, 0x7ad794\nBL              .rand                                                  ; +0x38, 0x7ad798\nSTR             W20, [X19,#0x50]                                       ; +0x3c, 0x7ad79c\nSCVTF           S0, W0                                                 ; +0x40, 0x7ad7a0\nLDR             S9, =0x30000000                                        ; +0x44, 0x7ad7a4\nLDR             S8, =0x447A0000                                        ; +0x48, 0x7ad7a8\nFMUL            S0, S0, S9                                             ; +0x4c, 0x7ad7ac\nFMUL            S0, S0, S8                                             ; +0x50, 0x7ad7b0\nFCVTZS          W0, S0                                                 ; +0x54, 0x7ad7b4\nADD             W21, W21, W0                                           ; +0x58, 0x7ad7b8\nSTR             W0, [X19,#0x58]                                        ; +0x5c, 0x7ad7bc\nSTR             W21, [X19,#0x54]                                       ; +0x60, 0x7ad7c0\nBL              .rand                                                  ; +0x64, 0x7ad7c4\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x68, 0x7ad7c8\nSCVTF           S0, W0                                                 ; +0x6c, 0x7ad7cc\nMOV             W0, #1                                                 ; +0x70, 0x7ad7d0\nFMUL            S0, S0, S9                                             ; +0x74, 0x7ad7d4\nFMUL            S0, S0, S8                                             ; +0x78, 0x7ad7d8\nLDP             D8, D9, [SP,#0x40+var_18]                              ; +0x7c, 0x7ad7dc\nFCVTZS          W1, S0                                                 ; +0x80, 0x7ad7e0\nADD             W20, W20, W1                                           ; +0x84, 0x7ad7e4\nSTR             W1, [X19,#0x4C]                                        ; +0x88, 0x7ad7e8\nSTR             W20, [X19,#0x48]                                       ; +0x8c, 0x7ad7ec\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x90, 0x7ad7f0\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x94, 0x7ad7f4\nRET                                                                    ; +0x98, 0x7ad7f8", "xrefs": ["GJChallengeItem::create @ 0x7ad8d0", "<???> @ 0x9f450"], "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"}