{"type": "func", "start": 494866, "end": 494996, "name": "sub_78D12", "pseudocode": "// \n// sub_78D12 from 0x78d12 to 0x78d94 (130 bytes)\n// \n// 1 xrefs:\n// > sub_792FC @ 0x7933a\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 sub_78D12(int a1)\n{\n  _DWORD *v2; // r6\n  _DWORD *v3; // r9\n  int v4; // r5\n\n  v3 = (_DWORD *)(a1 + 16);\n  v2 = *(_DWORD **)(a1 + 16);\n  while ( v3 != v2 )\n  {\n    v4 = (int)v2;\n    v2 = (_DWORD *)*v2;\n    if ( *(_DWORD *)(v4 + 408) )\n    {\n      sub_77FCC(v4);\n      *(float *)(v4 + 464) = *(float *)(v4 + 464) + *(float *)(**(_DWORD **)(a1 + 12) + 11540);\n      sub_78310(v4);\n      *(float *)(v4 + 520) = *(float *)(v4 + 520) + *(float *)(**(_DWORD **)(a1 + 12) + 11540);\n      sub_785D0(v4);\n      *(float *)(v4 + 416) = *(float *)(v4 + 416) + *(float *)(**(_DWORD **)(a1 + 12) + 11540);\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_78D12 from 0x78d12 to 0x78d94 (130 bytes)\n; \n; 1 xrefs:\n; > sub_792FC @ 0x7933a\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-R7,LR}                                             ; +0x0, 0x78d12\nADD             R7, SP, #0xC                                           ; +0x2, 0x78d14\nPUSH.W          {R8,R9,R11}                                            ; +0x4, 0x78d16\nMOV             R9, R0                                                 ; +0x8, 0x78d1a\nMOV             R4, R0                                                 ; +0xa, 0x78d1c\nLDR.W           R6, [R9,#0x10]!                                        ; +0xc, 0x78d1e\nMOVW            R8, #0x2D14                                            ; +0x10, 0x78d22\nCMP             R9, R6                                                 ; +0x14, 0x78d26\nBEQ             loc_78D8C                                              ; +0x16, 0x78d28\nMOV             R5, R6                                                 ; +0x18, 0x78d2a\nLDR             R6, [R6]                                               ; +0x1a, 0x78d2c\nLDR.W           R0, [R5,#0x198]                                        ; +0x1c, 0x78d2e\nCMP             R0, #0                                                 ; +0x20, 0x78d32\nBEQ             loc_78D26                                              ; +0x22, 0x78d34\nMOV             R0, R5                                                 ; +0x24, 0x78d36\nBL              sub_77FCC                                              ; +0x26, 0x78d38\nLDR             R0, [R4,#0xC]                                          ; +0x2a, 0x78d3c\nVLDR            S2, [R5,#0x1D0]                                        ; +0x2c, 0x78d3e\nLDR             R0, [R0]                                               ; +0x30, 0x78d42\nADD             R0, R8                                                 ; +0x32, 0x78d44\nVLDR            S0, [R0]                                               ; +0x34, 0x78d46\nMOV             R0, R5                                                 ; +0x38, 0x78d4a\nVADD.F32        S0, S2, S0                                             ; +0x3a, 0x78d4c\nVSTR            S0, [R5,#0x1D0]                                        ; +0x3e, 0x78d50\nBL              sub_78310                                              ; +0x42, 0x78d54\nLDR             R0, [R4,#0xC]                                          ; +0x46, 0x78d58\nVLDR            S2, [R5,#0x208]                                        ; +0x48, 0x78d5a\nLDR             R0, [R0]                                               ; +0x4c, 0x78d5e\nADD             R0, R8                                                 ; +0x4e, 0x78d60\nVLDR            S0, [R0]                                               ; +0x50, 0x78d62\nMOV             R0, R5                                                 ; +0x54, 0x78d66\nVADD.F32        S0, S2, S0                                             ; +0x56, 0x78d68\nVSTR            S0, [R5,#0x208]                                        ; +0x5a, 0x78d6c\nBL              sub_785D0                                              ; +0x5e, 0x78d70\nLDR             R0, [R4,#0xC]                                          ; +0x62, 0x78d74\nVLDR            S2, [R5,#0x1A0]                                        ; +0x64, 0x78d76\nLDR             R0, [R0]                                               ; +0x68, 0x78d7a\nADD             R0, R8                                                 ; +0x6a, 0x78d7c\nVLDR            S0, [R0]                                               ; +0x6c, 0x78d7e\nVADD.F32        S0, S2, S0                                             ; +0x70, 0x78d82\nVSTR            S0, [R5,#0x1A0]                                        ; +0x74, 0x78d86\nB               loc_78D26                                              ; +0x78, 0x78d8a\nMOVS            R0, #0                                                 ; +0x7a, 0x78d8c\nPOP.W           {R8,R9,R11}                                            ; +0x7c, 0x78d8e\nPOP             {R4-R7,PC}                                             ; +0x80, 0x78d92", "xrefs": ["sub_792FC @ 0x7933a"], "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"}