{"type": "func", "start": 318188, "end": 318224, "name": "sub_4DAEC", "pseudocode": "// \n// sub_4DAEC from 0x4daec to 0x4db10 (36 bytes)\n// \n// 2 xrefs:\n// > sub_4E314 @ 0x4e47c\n// > FMOD::Geometry::getPolygonNumVertices @ 0xb26c4\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_4DAEC(_DWORD *a1, int a2, _DWORD *a3)\n{\n  if ( a2 < 0 || a1[7] <= a2 )\n    return 31;\n  if ( a3 )\n    *a3 = *(unsigned __int16 *)(a1[10] + *(_DWORD *)(a1[8] + 4 * a2) + 144);\n  return 0;\n}", "assembly": "; \n; sub_4DAEC from 0x4daec to 0x4db10 (36 bytes)\n; \n; 2 xrefs:\n; > sub_4E314 @ 0x4e47c\n; > FMOD::Geometry::getPolygonNumVertices @ 0xb26c4\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\nCMP             R1, #0                                                 ; +0x0, 0x4daec\nBMI             loc_4DB0C                                              ; +0x2, 0x4daee\nLDR             R3, [R0,#0x1C]                                         ; +0x4, 0x4daf0\nCMP             R3, R1                                                 ; +0x6, 0x4daf2\nBLE             loc_4DB0C                                              ; +0x8, 0x4daf4\nCBZ             R2, loc_4DB08                                          ; +0xa, 0x4daf6\nLDR             R3, [R0,#0x20]                                         ; +0xc, 0x4daf8\nLDR             R0, [R0,#0x28]                                         ; +0xe, 0x4dafa\nLDR.W           R1, [R3,R1,LSL#2]                                      ; +0x10, 0x4dafc\nADD             R0, R1                                                 ; +0x14, 0x4db00\nLDRH.W          R0, [R0,#0x90]                                         ; +0x16, 0x4db02\nSTR             R0, [R2]                                               ; +0x1a, 0x4db06\nMOVS            R0, #0                                                 ; +0x1c, 0x4db08\nBX              LR                                                     ; +0x1e, 0x4db0a\nMOVS            R0, #0x1F                                              ; +0x20, 0x4db0c\nBX              LR                                                     ; +0x22, 0x4db0e", "xrefs": ["sub_4E314 @ 0x4e47c", "FMOD::Geometry::getPolygonNumVertices @ 0xb26c4"], "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"}