{"type": "func", "start": 631804, "end": 631976, "name": "sub_9A3FC", "pseudocode": "// \n// sub_9A3FC from 0x9a3fc to 0x9a4a8 (172 bytes)\n// \n// 1 xrefs:\n// > sub_9A50C @ 0x9a5b8\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_9A3FC(int a1, int a2)\n{\n  int result; // r0\n  int v4; // r0\n  bool v6; // zf\n  unsigned int v7; // r6\n  int v8; // r5\n  int v9; // r1\n  float v10; // s0\n  float v11; // s0\n  bool v12; // zf\n\n  if ( 2 * *(_DWORD *)(a1 + 512) )\n    return 1;\n  v4 = *(_DWORD *)(a1 + 448);\n  switch ( v4 )\n  {\n    case 2:\n      v7 = sub_60AD4(*(_DWORD *)(a1 + 524), *(_DWORD *)(a1 + 452));\n      v8 = 0;\n      while ( v8 < sub_9A4B0(a1, *(_DWORD *)(a1 + 452)) )\n      {\n        result = 1;\n        v9 = 1 << v8++;\n        if ( (v9 & v7) == 0 )\n          return result;\n      }\n      if ( a2 && *(_DWORD *)(*(_DWORD *)(a1 + 128) + 69188) != a2 )\n        return 1;\n      v11 = *(float *)(a1 + 464);\n      v12 = v11 == 360.0;\n      if ( v11 == 360.0 )\n        v12 = 2 * *(_DWORD *)(a1 + 468) == 0;\n      if ( !v12 )\n        return 1;\n      v10 = *(float *)(a1 + 472);\n      break;\n    case 1:\n      if ( a2 != 3 )\n        return 1;\n      v10 = *(float *)(a1 + 456);\n      break;\n    case 0:\n      result = a2 - 2;\n      v6 = a2 == 2;\n      goto LABEL_14;\n    default:\n      return 1;\n  }\n  result = 0;\n  v6 = v10 == 0.0;\nLABEL_14:\n  if ( !v6 )\n    return 1;\n  return result;\n}", "assembly": "; \n; sub_9A3FC from 0x9a3fc to 0x9a4a8 (172 bytes)\n; \n; 1 xrefs:\n; > sub_9A50C @ 0x9a5b8\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            {R4-R7,LR}                                             ; +0x0, 0x9a3fc\nADD             R7, SP, #0xC                                           ; +0x2, 0x9a3fe\nPUSH.W          {R8}                                                   ; +0x4, 0x9a400\nMOV             R4, R0                                                 ; +0x8, 0x9a404\nLDR.W           R0, [R0,#0x200]                                        ; +0xa, 0x9a406\nLSLS            R0, R0, #1                                             ; +0xe, 0x9a40a\nBEQ             loc_9A416                                              ; +0x10, 0x9a40c\nMOVS            R0, #1                                                 ; +0x12, 0x9a40e\nPOP.W           {R8}                                                   ; +0x14, 0x9a410\nPOP             {R4-R7,PC}                                             ; +0x18, 0x9a414\nLDR.W           R0, [R4,#0x1C0]                                        ; +0x1a, 0x9a416\nMOV             R8, R1                                                 ; +0x1e, 0x9a41a\nCMP             R0, #2                                                 ; +0x20, 0x9a41c\nBEQ             loc_9A42E                                              ; +0x22, 0x9a41e\nCMP             R0, #1                                                 ; +0x24, 0x9a420\nBEQ             loc_9A45A                                              ; +0x26, 0x9a422\nCMP             R0, #0                                                 ; +0x28, 0x9a424\nBNE             loc_9A40E                                              ; +0x2a, 0x9a426\nSUBS.W          R0, R8, #2                                             ; +0x2c, 0x9a428\nB               loc_9A46E                                              ; +0x30, 0x9a42c\nLDR.W           R1, [R4,#0x1C4]                                        ; +0x32, 0x9a42e\nLDR.W           R0, [R4,#0x20C]                                        ; +0x36, 0x9a432\nBL              sub_60AD4                                              ; +0x3a, 0x9a436\nMOV             R6, R0                                                 ; +0x3e, 0x9a43a\nMOVS            R5, #0                                                 ; +0x40, 0x9a43c\nLDR.W           R1, [R4,#0x1C4]                                        ; +0x42, 0x9a43e\nMOV             R0, R4                                                 ; +0x46, 0x9a442\nBL              sub_9A4B0                                              ; +0x48, 0x9a444\nCMP             R5, R0                                                 ; +0x4c, 0x9a448\nBGE             loc_9A474                                              ; +0x4e, 0x9a44a\nMOVS            R0, #1                                                 ; +0x50, 0x9a44c\nLSL.W           R1, R0, R5                                             ; +0x52, 0x9a44e\nADDS            R5, #1                                                 ; +0x56, 0x9a452\nTST             R1, R6                                                 ; +0x58, 0x9a454\nBNE             loc_9A43E                                              ; +0x5a, 0x9a456\nB               loc_9A410                                              ; +0x5c, 0x9a458\nCMP.W           R8, #3                                                 ; +0x5e, 0x9a45a\nBNE             loc_9A40E                                              ; +0x62, 0x9a45e\nVLDR            S0, [R4,#0x1C8]                                        ; +0x64, 0x9a460\nVCMP.F32        S0, #0.0                                               ; +0x68, 0x9a464\nMOVS            R0, #0                                                 ; +0x6c, 0x9a468\nVMRS            APSR_nzcv, FPSCR                                       ; +0x6e, 0x9a46a\nIT NE                                                                  ; +0x72, 0x9a46e\nMOVNE           R0, #1                                                 ; +0x74, 0x9a470\nB               loc_9A410                                              ; +0x76, 0x9a472\nCMP.W           R8, #0                                                 ; +0x78, 0x9a474\nBEQ             loc_9A486                                              ; +0x7c, 0x9a478\nLDR.W           R0, [R4,#0x80]                                         ; +0x7e, 0x9a47a\nLDR             R1, =0x10E44                                           ; +0x82, 0x9a47e\nLDR             R0, [R0,R1]                                            ; +0x84, 0x9a480\nCMP             R0, R8                                                 ; +0x86, 0x9a482\nBNE             loc_9A40E                                              ; +0x88, 0x9a484\nVLDR            S0, [R4,#0x1D0]                                        ; +0x8a, 0x9a486\nVLDR            S2, =360.0                                             ; +0x8e, 0x9a48a\nVCMP.F32        S0, S2                                                 ; +0x92, 0x9a48e\nVMRS            APSR_nzcv, FPSCR                                       ; +0x96, 0x9a492\nITT EQ                                                                 ; +0x9a, 0x9a496\nLDREQ.W         R0, [R4,#0x1D4]                                        ; +0x9c, 0x9a498\nMOVSEQ.W        R0, R0,LSL#1                                           ; +0xa0, 0x9a49c\nBNE             loc_9A40E                                              ; +0xa4, 0x9a4a0\nVLDR            S0, [R4,#0x1D8]                                        ; +0xa6, 0x9a4a2\nB               loc_9A464                                              ; +0xaa, 0x9a4a6", "xrefs": ["sub_9A50C @ 0x9a5b8"], "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"}