{"type": "func", "start": 4270756, "end": 4270878, "name": "GJChallengeItem::init", "pseudocode": "// \n// GJChallengeItem::init from 0x412aa4 to 0x412b1e (122 bytes)\n// \n// 1 xrefs:\n// > GJChallengeItem::create @ 0x412b9a\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\nint __fastcall GJChallengeItem::init(_DWORD *a1, int a2, int a3, int a4, int a5, int a6)\n{\n  _DWORD *v8; // r0\n  int v10; // r0\n  int v11; // s15\n  int v12; // s15\n  int v14; // s15\n\n  v8 = a1 + 26;\n  *(v8 - 13) = a2;\n  *(v8 - 3) = a5;\n  sub_775D40(v8, a6);\n  a1[22] = a3;\n  v10 = rand();\n  a1[19] = a4;\n  v11 = (int)(float)((float)((float)v10 * 4.6566e-10) * 1000.0);\n  a1[21] = v11;\n  a1[20] = v11 + a3;\n  v12 = rand();\n  v14 = (int)(float)((float)((float)v12 * 4.6566e-10) * 1000.0);\n  a1[18] = v14;\n  a1[17] = v14 + a4;\n  return 1;\n}", "assembly": "; \n; GJChallengeItem::init from 0x412aa4 to 0x412b1e (122 bytes)\n; \n; 1 xrefs:\n; > GJChallengeItem::create @ 0x412b9a\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            {R4-R6,LR}                                             ; +0x0, 0x412aa4\nMOV             R5, R3                                                 ; +0x2, 0x412aa6\nVPUSH           {D8}                                                   ; +0x4, 0x412aa8\nMOV             R4, R0                                                 ; +0x8, 0x412aac\nLDR             R3, [SP,#arg_0]                                        ; +0xa, 0x412aae\nADDS            R0, #0x68 ; 'h'                                        ; +0xc, 0x412ab0\nSTR.W           R1, [R0,#-0x34]                                        ; +0xe, 0x412ab2\nMOV             R6, R2                                                 ; +0x12, 0x412ab6\nLDR             R1, [SP,#arg_4]                                        ; +0x14, 0x412ab8\nSTR.W           R3, [R0,#-0xC]                                         ; +0x16, 0x412aba\nBL              sub_775D40                                             ; +0x1a, 0x412abe\nSTR             R6, [R4,#0x58]                                         ; +0x1e, 0x412ac2\nBLX             rand                                                   ; +0x20, 0x412ac4\nVLDR            S17, =4.6566e-10                                       ; +0x24, 0x412ac8\nSTR             R5, [R4,#0x4C]                                         ; +0x28, 0x412acc\nVLDR            S16, =1000.0                                           ; +0x2a, 0x412ace\nVMOV            S15, R0                                                ; +0x2e, 0x412ad2\nVCVT.F32.S32    S15, S15                                               ; +0x32, 0x412ad6\nVMUL.F32        S15, S15, S17                                          ; +0x36, 0x412ada\nVMUL.F32        S15, S15, S16                                          ; +0x3a, 0x412ade\nVCVT.S32.F32    S15, S15                                               ; +0x3e, 0x412ae2\nVMOV            R3, S15                                                ; +0x42, 0x412ae6\nVSTR            S15, [R4,#0x54]                                        ; +0x46, 0x412aea\nADD             R3, R6                                                 ; +0x4a, 0x412aee\nSTR             R3, [R4,#0x50]                                         ; +0x4c, 0x412af0\nBLX             rand                                                   ; +0x4e, 0x412af2\nVMOV            S15, R0                                                ; +0x52, 0x412af6\nMOVS            R0, #1                                                 ; +0x56, 0x412afa\nVCVT.F32.S32    S15, S15                                               ; +0x58, 0x412afc\nVMUL.F32        S15, S15, S17                                          ; +0x5c, 0x412b00\nVMUL.F32        S15, S15, S16                                          ; +0x60, 0x412b04\nVPOP            {D8}                                                   ; +0x64, 0x412b08\nVCVT.S32.F32    S15, S15                                               ; +0x68, 0x412b0c\nVMOV            R3, S15                                                ; +0x6c, 0x412b10\nVSTR            S15, [R4,#0x48]                                        ; +0x70, 0x412b14\nADD             R3, R5                                                 ; +0x74, 0x412b18\nSTR             R3, [R4,#0x44]                                         ; +0x76, 0x412b1a\nPOP             {R4-R6,PC}                                             ; +0x78, 0x412b1c", "xrefs": ["GJChallengeItem::create @ 0x412b9a"], "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"}