{"type": "func", "start": 315720, "end": 315800, "name": "sub_4D148", "pseudocode": "// \n// sub_4D148 from 0x4d148 to 0x4d198 (80 bytes)\n// \n// 1 xrefs:\n// > sub_4D8C4 @ 0x4d96a\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_4D148(int a1)\n{\n  __int64 v2; // kr00_8\n  int result; // r0\n  int v4; // r0\n\n  v2 = *(_QWORD *)(a1 + 340);\n  ++*(_DWORD *)(a1 + 344);\n  result = 0;\n  if ( !(_DWORD)v2 )\n  {\n    v4 = sub_BD410(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), 24, \"../../src/fmod_geometry_mgr.cpp\", 375);\n    *(_DWORD *)(a1 + 340) = v4;\n    if ( v4 )\n    {\n      sub_4FCCA(v4, *(_DWORD *)(a1 + 352));\n      return 0;\n    }\n    else\n    {\n      return 38;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_4D148 from 0x4d148 to 0x4d198 (80 bytes)\n; \n; 1 xrefs:\n; > sub_4D8C4 @ 0x4d96a\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            {R0-R4,R6,R7,LR}                                       ; +0x0, 0x4d148\nADD             R7, SP, #0x18                                          ; +0x2, 0x4d14a\nMOV             R4, R0                                                 ; +0x4, 0x4d14c\nLDRD.W          R1, R0, [R0,#0x154]                                    ; +0x6, 0x4d14e\nADDS            R0, #1                                                 ; +0xa, 0x4d152\nSTR.W           R0, [R4,#0x158]                                        ; +0xc, 0x4d154\nMOVS            R0, #0                                                 ; +0x10, 0x4d158\nCBNZ            R1, loc_4D194                                          ; +0x12, 0x4d15a\nLDR             R1, =(off_E6144 - 0x4D168)                             ; +0x14, 0x4d15c\nMOVS            R2, #1                                                 ; +0x16, 0x4d15e\nMOVW            R3, #0x177                                             ; +0x18, 0x4d160\nADD             R1, PC; off_E6144                                      ; +0x1c, 0x4d164\nLDR             R1, [R1]; off_E8000                                    ; +0x1e, 0x4d166\nLDR             R1, [R1]; unk_F2488                                    ; +0x20, 0x4d168\nLDR.W           R1, [R1,#(dword_F25D4 - 0xF2488)]                      ; +0x22, 0x4d16a\nSTRD.W          R0, R0, [SP,#0x10+var_10]                              ; +0x26, 0x4d16e\nSTR             R2, [SP,#0x10+var_8]                                   ; +0x2a, 0x4d172\nLDR             R2, =(aSrcFmodGeometr - 0x4D17E); \"../../src/fmod_geometry_mgr.cpp\" ... ; +0x2c, 0x4d174\nMOV             R0, R1                                                 ; +0x2e, 0x4d176\nMOVS            R1, #0x18                                              ; +0x30, 0x4d178\nADD             R2, PC; \"../../src/fmod_geometry_mgr.cpp\"              ; +0x32, 0x4d17a\nBL              sub_BD410                                              ; +0x34, 0x4d17c\nSTR.W           R0, [R4,#0x154]                                        ; +0x38, 0x4d180\nCBZ             R0, loc_4D192                                          ; +0x3c, 0x4d184\nLDR.W           R1, [R4,#0x160]                                        ; +0x3e, 0x4d186\nBL              sub_4FCCA                                              ; +0x42, 0x4d18a\nMOVS            R0, #0                                                 ; +0x46, 0x4d18e\nB               loc_4D194                                              ; +0x48, 0x4d190\nMOVS            R0, #0x26 ; '&'                                        ; +0x4a, 0x4d192\nADD             SP, SP, #0x10                                          ; +0x4c, 0x4d194\nPOP             {R4,R6,R7,PC}                                          ; +0x4e, 0x4d196", "xrefs": ["sub_4D8C4 @ 0x4d96a"], "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"}