{"type": "func", "start": 616104, "end": 616162, "name": "sub_966A8", "pseudocode": "// \n// sub_966A8 from 0x966a8 to 0x966e2 (58 bytes)\n// \n// 1 xrefs:\n// > sub_9592C @ 0x95934\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:41:28 +0000\n// \n\nint __fastcall sub_966A8(_DWORD *a1, int a2)\n{\n  int v3; // r0\n  int result; // r0\n  int v6; // r1\n\n  v3 = a1[2];\n  if ( v3 < 0 )\n    v3 = -v3;\n  if ( v3 >= a2 || (result = sub_96700(a1, a2)) == 0 )\n  {\n    v6 = a1[1];\n    if ( v6 < a2 )\n      memset((void *)(*a1 + 4 * v6), 0, 4 * (a2 - v6));\n    a1[1] = a2;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_966A8 from 0x966a8 to 0x966e2 (58 bytes)\n; \n; 1 xrefs:\n; > sub_9592C @ 0x95934\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:41:28 +0000\n; \nPUSH            {R4,R5,R7,LR}                                          ; +0x0, 0x966a8\nADD             R7, SP, #8                                             ; +0x2, 0x966aa\nMOV             R5, R0                                                 ; +0x4, 0x966ac\nLDR             R0, [R0,#8]                                            ; +0x6, 0x966ae\nMOV             R4, R1                                                 ; +0x8, 0x966b0\nCMP             R0, #0                                                 ; +0xa, 0x966b2\nBPL             loc_966B8                                              ; +0xc, 0x966b4\nNEGS            R0, R0                                                 ; +0xe, 0x966b6\nCMP             R0, R4                                                 ; +0x10, 0x966b8\nBGE             loc_966C8                                              ; +0x12, 0x966ba\nMOV             R0, R5                                                 ; +0x14, 0x966bc\nMOV             R1, R4                                                 ; +0x16, 0x966be\nBL              sub_96700                                              ; +0x18, 0x966c0\nCBZ             R0, loc_966C8                                          ; +0x1c, 0x966c4\nPOP             {R4,R5,R7,PC}                                          ; +0x1e, 0x966c6\nLDR             R1, [R5,#4]                                            ; +0x20, 0x966c8\nCMP             R1, R4                                                 ; +0x22, 0x966ca\nBGE             loc_966DC                                              ; +0x24, 0x966cc\nLDR             R0, [R5]                                               ; +0x26, 0x966ce\nADD.W           R0, R0, R1,LSL#2                                       ; +0x28, 0x966d0\nSUBS            R1, R4, R1                                             ; +0x2c, 0x966d4\nLSLS            R1, R1, #2                                             ; +0x2e, 0x966d6\nBLX             __aeabi_memclr4                                        ; +0x30, 0x966d8\nMOVS            R0, #0                                                 ; +0x34, 0x966dc\nSTR             R4, [R5,#4]                                            ; +0x36, 0x966de\nPOP             {R4,R5,R7,PC}                                          ; +0x38, 0x966e0", "xrefs": ["sub_9592C @ 0x95934"], "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"}