{"type": "func", "start": 626844, "end": 626896, "name": "sub_9909C", "pseudocode": "// \n// sub_9909C from 0x9909c to 0x990d0 (52 bytes)\n// \n// 1 xrefs:\n// > sub_9916A @ 0x9916c\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_9909C(int a1, int a2, int *a3, int a4)\n{\n  int v5; // r1\n\n  if ( a2 )\n    return 31;\n  v5 = *(_DWORD *)(a1 + 404);\n  if ( v5 >= 6 )\n    v5 = 6;\n  *a3 = v5 & ~(v5 >> 31);\n  if ( a4 )\n    sub_BE220(a4, off_ECEA4[*(_DWORD *)(a1 + 376)], 32);\n  return 0;\n}", "assembly": "; \n; sub_9909C from 0x9909c to 0x990d0 (52 bytes)\n; \n; 1 xrefs:\n; > sub_9916A @ 0x9916c\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            {R7,LR}                                                ; +0x0, 0x9909c\nMOV             R7, SP                                                 ; +0x2, 0x9909e\nCBZ             R1, loc_990A6                                          ; +0x4, 0x990a0\nMOVS            R0, #0x1F                                              ; +0x6, 0x990a2\nPOP             {R7,PC}                                                ; +0x8, 0x990a4\nLDR.W           R1, [R0,#0x194]                                        ; +0xa, 0x990a6\nCMP             R1, #6                                                 ; +0xe, 0x990aa\nIT GE                                                                  ; +0x10, 0x990ac\nMOVGE           R1, #6                                                 ; +0x12, 0x990ae\nBIC.W           R1, R1, R1,ASR#31                                      ; +0x14, 0x990b0\nSTR             R1, [R2]                                               ; +0x18, 0x990b4\nCBZ             R3, loc_990CC                                          ; +0x1a, 0x990b6\nLDR.W           R0, [R0,#0x178]                                        ; +0x1c, 0x990b8\nMOVS            R2, #0x20 ; ' '                                        ; +0x20, 0x990bc\nLDR             R1, =(off_ECEA4 - 0x990C4); \"Sine\" ...                 ; +0x22, 0x990be\nADD             R1, PC; off_ECEA4                                      ; +0x24, 0x990c0\nLDR.W           R1, [R1,R0,LSL#2]                                      ; +0x26, 0x990c2\nMOV             R0, R3                                                 ; +0x2a, 0x990c6\nBL              sub_BE220                                              ; +0x2c, 0x990c8\nMOVS            R0, #0                                                 ; +0x30, 0x990cc\nPOP             {R7,PC}                                                ; +0x32, 0x990ce", "xrefs": ["sub_9916A @ 0x9916c"], "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"}