{"type": "func", "start": 634616, "end": 634726, "name": "sub_9AEF8", "pseudocode": "// \n// sub_9AEF8 from 0x9aef8 to 0x9af66 (110 bytes)\n// \n// 1 xrefs:\n// > sub_9AFC2 @ 0x9afc4\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_9AEF8(int a1, int a2, _DWORD *a3, _DWORD *a4, _BYTE *a5)\n{\n  int v8; // r5\n  int result; // r0\n\n  if ( a2 != 19 )\n    return 31;\n  v8 = a1 + 408;\n  sub_609B8(\n    *(_DWORD *)(a1 + 748),\n    *(float *)(a1 + 800),\n    *(float *)(a1 + 752),\n    *(float *)(a1 + 756),\n    (float *)(a1 + 408),\n    *(float *)(*(_DWORD *)(a1 + 128) + 68260));\n  *(float *)(a1 + 408) = (float)(1.0 - *(float *)(a1 + 768)) + (float)(*(float *)(a1 + 408) * *(float *)(a1 + 768));\n  *a3 = v8;\n  *a4 = 8;\n  result = 0;\n  if ( a5 )\n    *a5 = 0;\n  return result;\n}", "assembly": "; \n; sub_9AEF8 from 0x9aef8 to 0x9af66 (110 bytes)\n; \n; 1 xrefs:\n; > sub_9AFC2 @ 0x9afc4\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, 0x9aef8\nADD             R7, SP, #0xC                                           ; +0x2, 0x9aefa\nPUSH.W          {R6-R10}                                               ; +0x4, 0x9aefc\nCMP             R1, #0x13                                              ; +0x8, 0x9af00\nBNE             loc_9AF5E                                              ; +0xa, 0x9af02\nMOV             R6, R0                                                 ; +0xc, 0x9af04\nLDR.W           R0, [R0,#0x80]                                         ; +0xe, 0x9af06\nLDR             R1, =0x10AA4                                           ; +0x12, 0x9af0a\nMOV             R9, R3                                                 ; +0x14, 0x9af0c\nADD.W           R3, R6, #0x2EC                                         ; +0x16, 0x9af0e\nMOV             R10, R2                                                ; +0x1a, 0x9af12\nLDR.W           R8, [R7,#-0x18+arg_0]                                  ; +0x1c, 0x9af14\nADD.W           R5, R6, #0x198                                         ; +0x20, 0x9af18\nLDR             R4, [R0,R1]                                            ; +0x24, 0x9af1c\nLDR.W           R1, [R6,#0x320]; int                                   ; +0x26, 0x9af1e\nLDM             R3, {R0,R2,R3}; int                                    ; +0x2a, 0x9af22\nSTRD.W          R5, R4, [SP,#8+var_8]; int                             ; +0x2c, 0x9af24\nBL              sub_609B8                                              ; +0x30, 0x9af28\nVMOV.F32        S4, #1.0                                               ; +0x34, 0x9af2c\nVLDR            S2, [R6,#0x300]                                        ; +0x38, 0x9af30\nVLDR            S0, [R6,#0x198]                                        ; +0x3c, 0x9af34\nMOVS            R0, #8                                                 ; +0x40, 0x9af38\nCMP.W           R8, #0                                                 ; +0x42, 0x9af3a\nVSUB.F32        S4, S4, S2                                             ; +0x46, 0x9af3e\nVMLA.F32        S4, S0, S2                                             ; +0x4a, 0x9af42\nVSTR            S4, [R6,#0x198]                                        ; +0x4e, 0x9af46\nSTR.W           R5, [R10]                                              ; +0x52, 0x9af4a\nSTR.W           R0, [R9]                                               ; +0x56, 0x9af4e\nMOV.W           R0, #0                                                 ; +0x5a, 0x9af52\nIT NE                                                                  ; +0x5e, 0x9af56\nSTRBNE.W        R0, [R8]                                               ; +0x60, 0x9af58\nB               loc_9AF60                                              ; +0x64, 0x9af5c\nMOVS            R0, #0x1F                                              ; +0x66, 0x9af5e\nPOP.W           {R2,R3,R8-R10}                                         ; +0x68, 0x9af60\nPOP             {R4-R7,PC}                                             ; +0x6c, 0x9af64", "xrefs": ["sub_9AFC2 @ 0x9afc4"], "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"}