{"type": "func", "start": 474552, "end": 474756, "name": "sub_73DB8", "pseudocode": "// \n// sub_73DB8 from 0x73db8 to 0x73e84 (204 bytes)\n// \n// 3 xrefs:\n// > sub_74480 @ 0x74608\n// > sub_74480 @ 0x74660\n// > sub_75F04 @ 0x75f10\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:14:01 +0000\n// \n\n__int64 __fastcall sub_73DB8(__int64 a1, float *a2, float *a3)\n{\n  __int64 result; // x0\n  float v7; // s0\n  float v8; // s1\n  float v10; // s0\n  float v11; // s0\n  float v12; // s1\n  float v13; // s0\n\n  result = sub_73D48(a1, (__int64)a2, (__int64)a3);\n  if ( !(_DWORD)result )\n  {\n    v7 = a3[1];\n    v8 = a2[1];\n    if ( (float)(v7 - v8) > 181.0 )\n      return 31;\n    if ( v8 > v7 && (float)(v8 - v7) < 179.0 )\n    {\n      return 31;\n    }\n    else\n    {\n      v10 = *(float *)(a1 + 20);\n      if ( v10 > 179.0 || v10 <= 0.0 )\n      {\n        *(_QWORD *)(a1 + 24) = 0;\n        return 0;\n      }\n      else\n      {\n        v11 = -(float)((float)(a3[2] * a2[4]) - (float)(a3[4] * a2[2]));\n        v12 = 1.0 / v11;\n        if ( v11 <= 0.0 )\n          v13 = -1.0;\n        else\n          v13 = 1.0;\n        *(float *)(a1 + 24) = v12;\n        *(float *)(a1 + 28) = v13;\n        return 0;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_73DB8 from 0x73db8 to 0x73e84 (204 bytes)\n; \n; 3 xrefs:\n; > sub_74480 @ 0x74608\n; > sub_74480 @ 0x74660\n; > sub_75F04 @ 0x75f10\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:14:01 +0000\n; \nSTR             X21, [SP,#-0x10+var_20]!                               ; +0x0, 0x73db8\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x73dbc\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x73dc0\nADD             X29, SP, #0x20                                         ; +0xc, 0x73dc4\nMOV             X20, X2                                                ; +0x10, 0x73dc8\nMOV             X21, X1                                                ; +0x14, 0x73dcc\nMOV             X19, X0                                                ; +0x18, 0x73dd0\nBL              sub_73D48                                              ; +0x1c, 0x73dd4\nCBNZ            W0, loc_73E68                                          ; +0x20, 0x73dd8\nLDR             S0, [X20,#4]                                           ; +0x24, 0x73ddc\nLDR             S1, [X21,#4]                                           ; +0x28, 0x73de0\nMOV             W8, #0x43350000                                        ; +0x2c, 0x73de4\nFMOV            S3, W8                                                 ; +0x30, 0x73de8\nFSUB            S2, S0, S1                                             ; +0x34, 0x73dec\nFCMP            S2, S3                                                 ; +0x38, 0x73df0\nB.GT            loc_73E64                                              ; +0x3c, 0x73df4\nMOV             W8, #0x43330000                                        ; +0x40, 0x73df8\nFSUB            S2, S1, S0                                             ; +0x44, 0x73dfc\nFCMP            S1, S0                                                 ; +0x48, 0x73e00\nFMOV            S0, W8                                                 ; +0x4c, 0x73e04\nFCCMP           S2, S0, #0, GT                                         ; +0x50, 0x73e08\nB.LT            loc_73E64                                              ; +0x54, 0x73e0c\nLDR             S0, [X19,#0x14]                                        ; +0x58, 0x73e10\nMOV             W8, #0x43330000                                        ; +0x5c, 0x73e14\nFMOV            S1, W8                                                 ; +0x60, 0x73e18\nFCMP            S0, S1                                                 ; +0x64, 0x73e1c\nB.GT            loc_73E78                                              ; +0x68, 0x73e20\nFCMP            S0, #0.0                                               ; +0x6c, 0x73e24\nB.LE            loc_73E78                                              ; +0x70, 0x73e28\nLDR             S1, [X21,#0x10]                                        ; +0x74, 0x73e2c\nLDR             S2, [X20,#8]                                           ; +0x78, 0x73e30\nLDR             S0, [X21,#8]                                           ; +0x7c, 0x73e34\nLDR             S3, [X20,#0x10]                                        ; +0x80, 0x73e38\nFMOV            S4, #1.0                                               ; +0x84, 0x73e3c\nFMUL            S1, S2, S1                                             ; +0x88, 0x73e40\nFMOV            S5, #-1.0                                              ; +0x8c, 0x73e44\nFNMSUB          S0, S3, S0, S1                                         ; +0x90, 0x73e48\nFCMP            S0, #0.0                                               ; +0x94, 0x73e4c\nFDIV            S1, S4, S0                                             ; +0x98, 0x73e50\nFCSEL           S0, S4, S5, GT                                         ; +0x9c, 0x73e54\nMOV             W0, WZR                                                ; +0xa0, 0x73e58\nSTP             S1, S0, [X19,#0x18]                                    ; +0xa4, 0x73e5c\nB               loc_73E68                                              ; +0xa8, 0x73e60\nMOV             W0, #0x1F                                              ; +0xac, 0x73e64\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xb0, 0x73e68\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xb4, 0x73e6c\nLDR             X21, [SP+0x20+var_20],#0x30                            ; +0xb8, 0x73e70\nRET                                                                    ; +0xbc, 0x73e74\nMOV             W0, WZR                                                ; +0xc0, 0x73e78\nSTR             XZR, [X19,#0x18]                                       ; +0xc4, 0x73e7c\nB               loc_73E68                                              ; +0xc8, 0x73e80", "xrefs": ["sub_74480 @ 0x74608", "sub_74480 @ 0x74660", "sub_75F04 @ 0x75f10"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}