{"type": "func", "start": 644792, "end": 644858, "name": "sub_9D6B8", "pseudocode": "// \n// sub_9D6B8 from 0x9d6b8 to 0x9d6fa (66 bytes)\n// \n// 4 xrefs:\n// > sub_9CEEC @ 0x9d108\n// > sub_9CEEC @ 0x9d116\n// > sub_9CEEC @ 0x9d124\n// > sub_9CEEC @ 0x9d132\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\nfloat __fastcall sub_9D6B8(int a1, float a2, float a3)\n{\n  float *v4; // r0\n\n  if ( a2 == 0.0 )\n    return 0.0;\n  v4 = &flt_9D700;\n  if ( a2 > 0.0 )\n    v4 = &flt_9D704;\n  if ( a3 != 0.0 )\n    return atan2f(a2, a3);\n  return *v4;\n}", "assembly": "; \n; sub_9D6B8 from 0x9d6b8 to 0x9d6fa (66 bytes)\n; \n; 4 xrefs:\n; > sub_9CEEC @ 0x9d108\n; > sub_9CEEC @ 0x9d116\n; > sub_9CEEC @ 0x9d124\n; > sub_9CEEC @ 0x9d132\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\nVMOV            S0, R1                                                 ; +0x0, 0x9d6b8\nVCMP.F32        S0, #0.0                                               ; +0x4, 0x9d6bc\nVMRS            APSR_nzcv, FPSCR                                       ; +0x8, 0x9d6c0\nBNE             loc_9D6CC                                              ; +0xc, 0x9d6c4\nVLDR            S0, =0.0                                               ; +0xe, 0x9d6c6\nB               loc_9D6EC                                              ; +0x12, 0x9d6ca\nVMOV            S2, R2                                                 ; +0x14, 0x9d6cc\nADR             R0, flt_9D700                                          ; +0x18, 0x9d6d0\nVCMPE.F32       S0, #0.0                                               ; +0x1a, 0x9d6d2\nVMRS            APSR_nzcv, FPSCR                                       ; +0x1e, 0x9d6d6\nVCMP.F32        S2, #0.0                                               ; +0x22, 0x9d6da\nIT GT                                                                  ; +0x26, 0x9d6de\nADDGT           R0, #(flt_9D704 - 0x9D700)                             ; +0x28, 0x9d6e0\nVMRS            APSR_nzcv, FPSCR                                       ; +0x2a, 0x9d6e2\nBNE             loc_9D6F2                                              ; +0x2e, 0x9d6e6\nVLDR            S0, [R0]                                               ; +0x30, 0x9d6e8\nVMOV            R0, S0                                                 ; +0x34, 0x9d6ec\nBX              LR                                                     ; +0x38, 0x9d6f0\nMOV             R0, R1                                                 ; +0x3a, 0x9d6f2\nMOV             R1, R2                                                 ; +0x3c, 0x9d6f4\nB.W             loc_DEE74                                              ; +0x3e, 0x9d6f6", "xrefs": ["sub_9CEEC @ 0x9d108", "sub_9CEEC @ 0x9d116", "sub_9CEEC @ 0x9d124", "sub_9CEEC @ 0x9d132"], "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"}