{"type": "func", "start": 311268, "end": 311438, "name": "sub_4BFE4", "pseudocode": "// \n// sub_4BFE4 from 0x4bfe4 to 0x4c08e (170 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:40:41 +0000\n// \n\nint __fastcall sub_4BFE4(_DWORD *a1, float *a2, int a3)\n{\n  int v4; // r0\n  int v6; // r1\n  int v8; // r9\n  int v9; // r0\n  int v10; // r0\n  float v11; // r1\n  float *v13; // r4\n  int i; // r0\n  float v15; // s2\n  _BYTE v16[4096]; // [sp+8h] [bp-1018h] BYREF\n\n  v4 = a1[83];\n  if ( !v4 || !a1[4] )\n    return 30;\n  v6 = *(_DWORD *)(v4 + 20);\n  if ( v6 )\n  {\n    v8 = *(_DWORD *)(v6 + 76);\n    goto LABEL_7;\n  }\n  v9 = *(_DWORD *)(v4 + 24);\n  if ( !v9 )\n    return 30;\n  v8 = *(unsigned __int16 *)(v9 + 192);\nLABEL_7:\n  if ( a3 < 1 )\n    return 31;\n  v10 = 0;\n  while ( a3 != v10 )\n  {\n    v11 = a2[v10++];\n    if ( (LODWORD(v11) & 0x7F800000) == 0x7F800000 )\n      return 29;\n  }\n  v13 = (float *)v16;\n  memset(v16, 0, sizeof(v16));\n  for ( i = 0; i < v8; ++i )\n  {\n    v15 = 1.0;\n    if ( i < a3 )\n      v15 = *a2;\n    *v13 = v15;\n    ++a2;\n    v13 += 33;\n  }\n  return (*(int (__fastcall **)(_DWORD *, _BYTE *, int, int, int, int))(*a1 + 100))(a1, v16, v8, v8, 32, 1);\n}", "assembly": "; \n; sub_4BFE4 from 0x4bfe4 to 0x4c08e (170 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:40:41 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x4bfe4\nADD             R7, SP, #0xC                                           ; +0x2, 0x4bfe6\nPUSH.W          {R8,R9,R11}                                            ; +0x4, 0x4bfe8\nSUB.W           SP, SP, #0x1000                                        ; +0x8, 0x4bfec\nSUB             SP, SP, #8                                             ; +0xc, 0x4bff0\nMOV             R8, R0                                                 ; +0xe, 0x4bff2\nLDR.W           R0, [R0,#0x14C]                                        ; +0x10, 0x4bff4\nCBZ             R0, loc_4C034                                          ; +0x14, 0x4bff8\nMOV             R6, R1                                                 ; +0x16, 0x4bffa\nLDR.W           R1, [R8,#0x10]                                         ; +0x18, 0x4bffc\nCBZ             R1, loc_4C034                                          ; +0x1c, 0x4c000\nLDR             R1, [R0,#0x14]                                         ; +0x1e, 0x4c002\nMOV             R5, R2                                                 ; +0x20, 0x4c004\nCBZ             R1, loc_4C00E                                          ; +0x22, 0x4c006\nLDR.W           R9, [R1,#0x4C]                                         ; +0x24, 0x4c008\nB               loc_4C016                                              ; +0x28, 0x4c00c\nLDR             R0, [R0,#0x18]                                         ; +0x2a, 0x4c00e\nCBZ             R0, loc_4C034                                          ; +0x2c, 0x4c010\nLDRH.W          R9, [R0,#0xC0]                                         ; +0x2e, 0x4c012\nCMP             R5, #1                                                 ; +0x32, 0x4c016\nBLT             loc_4C042                                              ; +0x34, 0x4c018\nMOVS            R0, #0                                                 ; +0x36, 0x4c01a\nCMP             R5, R0                                                 ; +0x38, 0x4c01c\nBEQ             loc_4C046                                              ; +0x3a, 0x4c01e\nLDR.W           R1, [R6,R0,LSL#2]                                      ; +0x3c, 0x4c020\nADDS            R0, #1                                                 ; +0x40, 0x4c024\nAND.W           R1, R1, #0x7F800000                                    ; +0x42, 0x4c026\nCMP.W           R1, #0x7F800000                                        ; +0x46, 0x4c02a\nBNE             loc_4C01C                                              ; +0x4a, 0x4c02e\nMOVS            R0, #0x1D                                              ; +0x4c, 0x4c030\nB               loc_4C036                                              ; +0x4e, 0x4c032\nMOVS            R0, #0x1E                                              ; +0x50, 0x4c034\nADD.W           SP, SP, #0x1000                                        ; +0x52, 0x4c036\nADD             SP, SP, #8                                             ; +0x56, 0x4c03a\nPOP.W           {R8,R9,R11}                                            ; +0x58, 0x4c03c\nPOP             {R4-R7,PC}                                             ; +0x5c, 0x4c040\nMOVS            R0, #0x1F                                              ; +0x5e, 0x4c042\nB               loc_4C036                                              ; +0x60, 0x4c044\nADD             R4, SP, #0x1008+var_1000                               ; +0x62, 0x4c046\nMOV.W           R1, #0x1000                                            ; +0x64, 0x4c048\nMOV             R0, R4                                                 ; +0x68, 0x4c04c\nBLX             __aeabi_memclr8                                        ; +0x6a, 0x4c04e\nVMOV.F32        S0, #1.0                                               ; +0x6e, 0x4c052\nMOVS            R0, #0                                                 ; +0x72, 0x4c056\nCMP             R0, R9                                                 ; +0x74, 0x4c058\nBGE             loc_4C074                                              ; +0x76, 0x4c05a\nVMOV.F32        S2, S0                                                 ; +0x78, 0x4c05c\nCMP             R0, R5                                                 ; +0x7c, 0x4c060\nIT LT                                                                  ; +0x7e, 0x4c062\nVLDRLT          S2, [R6]                                               ; +0x80, 0x4c064\nVSTR            S2, [R4]                                               ; +0x84, 0x4c068\nADDS            R6, #4                                                 ; +0x88, 0x4c06c\nADDS            R4, #0x84                                              ; +0x8a, 0x4c06e\nADDS            R0, #1                                                 ; +0x8c, 0x4c070\nB               loc_4C058                                              ; +0x8e, 0x4c072\nLDR.W           R0, [R8]                                               ; +0x90, 0x4c074\nMOVS            R1, #0x20 ; ' '                                        ; +0x94, 0x4c078\nMOV             R2, R9                                                 ; +0x96, 0x4c07a\nMOV             R3, R9                                                 ; +0x98, 0x4c07c\nLDR             R4, [R0,#0x64]                                         ; +0x9a, 0x4c07e\nMOVS            R0, #1                                                 ; +0x9c, 0x4c080\nSTRD.W          R1, R0, [SP,#0x1008+var_1008]                          ; +0x9e, 0x4c082\nADD             R1, SP, #0x1008+var_1000                               ; +0xa2, 0x4c086\nMOV             R0, R8                                                 ; +0xa4, 0x4c088\nBLX             R4                                                     ; +0xa6, 0x4c08a\nB               loc_4C036                                              ; +0xa8, 0x4c08c", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}