{"type": "func", "start": 306612, "end": 306794, "name": "sub_4ADB4", "pseudocode": "// \n// sub_4ADB4 from 0x4adb4 to 0x4ae6a (182 bytes)\n// \n// 3 xrefs:\n// > sub_4A7D4 @ 0x4a8d6\n// > sub_65494 @ 0x656ea\n// > sub_65494 @ 0x6582e\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:40:40 +0000\n// \n\nint __fastcall sub_4ADB4(float *a1, int a2)\n{\n  int v4; // r6\n  int result; // r0\n  unsigned __int8 v6; // [sp+Fh] [bp-11h] BYREF\n\n  (*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)a1 + 72))(a1, *(_DWORD *)a2);\n  sub_4A40A((int)a1, a1[97]);\n  (*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)a1 + 36))(a1, *((_DWORD *)a1 + 7));\n  sub_4B174(a1, *(_DWORD *)(a2 + 8), 2, *(_DWORD *)(a2 + 12), 2);\n  sub_4B278(a1, *(_DWORD *)(a2 + 20));\n  sub_4B298(a1, *(_DWORD *)(a2 + 4), 2);\n  v4 = 0;\n  (*(void (__fastcall **)(float *, _DWORD, _DWORD))(*(_DWORD *)a1 + 16))(a1, *((_DWORD *)a1 + 6), 0);\n  while ( v4 != 4 )\n    (*(void (__fastcall **)(float *, int))(*(_DWORD *)a1 + 60))(a1, v4++);\n  if ( !*((_DWORD *)a1 + 69)\n    || ((*(void (__fastcall **)(float *, unsigned __int8 *))(*(_DWORD *)a1 + 248))(a1, &v6),\n        (result = sub_479CC((int)a1, *((_DWORD *)a1 + 11), 0, 1, v6, 0)) == 0) )\n  {\n    (*(void (__fastcall **)(_DWORD))(**(_DWORD **)(a2 + 16) + 104))(*(_DWORD *)(a2 + 16));\n    *(_DWORD *)(*(_DWORD *)(a2 + 16) + 32) &= ~0x8000u;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_4ADB4 from 0x4adb4 to 0x4ae6a (182 bytes)\n; \n; 3 xrefs:\n; > sub_4A7D4 @ 0x4a8d6\n; > sub_65494 @ 0x656ea\n; > sub_65494 @ 0x6582e\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:40:40 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x4adb4\nADD             R7, SP, #0xC                                           ; +0x2, 0x4adb6\nPUSH.W          {R11}                                                  ; +0x4, 0x4adb8\nSUB             SP, SP, #0x10                                          ; +0x8, 0x4adbc\nMOV             R5, R0                                                 ; +0xa, 0x4adbe\nLDR             R0, [R0]                                               ; +0xc, 0x4adc0\nMOV             R4, R1                                                 ; +0xe, 0x4adc2\nLDR             R1, [R1]                                               ; +0x10, 0x4adc4\nLDR             R2, [R0,#0x48]                                         ; +0x12, 0x4adc6\nMOV             R0, R5                                                 ; +0x14, 0x4adc8\nBLX             R2                                                     ; +0x16, 0x4adca\nLDR.W           R1, [R5,#0x184]                                        ; +0x18, 0x4adcc\nMOV             R0, R5                                                 ; +0x1c, 0x4add0\nBL              sub_4A40A                                              ; +0x1e, 0x4add2\nLDR             R0, [R5]                                               ; +0x22, 0x4add6\nLDR             R1, [R5,#0x1C]                                         ; +0x24, 0x4add8\nLDR             R2, [R0,#0x24]                                         ; +0x26, 0x4adda\nMOV             R0, R5                                                 ; +0x28, 0x4addc\nBLX             R2                                                     ; +0x2a, 0x4adde\nLDRD.W          R1, R3, [R4,#8]                                        ; +0x2c, 0x4ade0\nMOVS            R0, #2                                                 ; +0x30, 0x4ade4\nSTR             R0, [SP,#0x10+var_10]                                  ; +0x32, 0x4ade6\nMOV             R0, R5                                                 ; +0x34, 0x4ade8\nMOVS            R2, #2                                                 ; +0x36, 0x4adea\nBL              sub_4B174                                              ; +0x38, 0x4adec\nLDR             R1, [R4,#0x14]                                         ; +0x3c, 0x4adf0\nMOV             R0, R5                                                 ; +0x3e, 0x4adf2\nBL              sub_4B278                                              ; +0x40, 0x4adf4\nLDR             R1, [R4,#4]                                            ; +0x44, 0x4adf8\nMOV             R0, R5                                                 ; +0x46, 0x4adfa\nMOVS            R2, #2                                                 ; +0x48, 0x4adfc\nBL              sub_4B298                                              ; +0x4a, 0x4adfe\nLDR             R0, [R5]                                               ; +0x4e, 0x4ae02\nMOVS            R2, #0                                                 ; +0x50, 0x4ae04\nLDR             R1, [R5,#0x18]                                         ; +0x52, 0x4ae06\nMOVS            R6, #0                                                 ; +0x54, 0x4ae08\nLDR             R3, [R0,#0x10]                                         ; +0x56, 0x4ae0a\nMOV             R0, R5                                                 ; +0x58, 0x4ae0c\nBLX             R3                                                     ; +0x5a, 0x4ae0e\nCMP             R6, #4                                                 ; +0x5c, 0x4ae10\nBEQ             loc_4AE22                                              ; +0x5e, 0x4ae12\nLDR             R0, [R5]                                               ; +0x60, 0x4ae14\nMOV             R1, R6                                                 ; +0x62, 0x4ae16\nLDR             R2, [R0,#0x3C]                                         ; +0x64, 0x4ae18\nMOV             R0, R5                                                 ; +0x66, 0x4ae1a\nBLX             R2                                                     ; +0x68, 0x4ae1c\nADDS            R6, #1                                                 ; +0x6a, 0x4ae1e\nB               loc_4AE10                                              ; +0x6c, 0x4ae20\nLDR.W           R0, [R5,#0x114]                                        ; +0x6e, 0x4ae22\nCBZ             R0, loc_4AE4E                                          ; +0x72, 0x4ae26\nLDR             R0, [R5]                                               ; +0x74, 0x4ae28\nSUB.W           R1, R7, #-(-0x10+var_1)                                ; +0x76, 0x4ae2a\nLDR.W           R2, [R0,#0xF8]                                         ; +0x7a, 0x4ae2e\nMOV             R0, R5                                                 ; +0x7e, 0x4ae32\nBLX             R2                                                     ; +0x80, 0x4ae34\nLDR             R1, [R5,#0x2C]                                         ; +0x82, 0x4ae36\nMOVS            R2, #0                                                 ; +0x84, 0x4ae38\nLDRB.W          R0, [R7,#-0x10+var_1]                                  ; +0x86, 0x4ae3a\nMOVS            R3, #1                                                 ; +0x8a, 0x4ae3e\nSTRD.W          R0, R2, [SP,#0x10+var_10]                              ; +0x8c, 0x4ae40\nMOV             R0, R5                                                 ; +0x90, 0x4ae44\nMOVS            R2, #0                                                 ; +0x92, 0x4ae46\nBL              sub_479CC                                              ; +0x94, 0x4ae48\nCBNZ            R0, loc_4AE62                                          ; +0x98, 0x4ae4c\nLDR             R0, [R4,#0x10]                                         ; +0x9a, 0x4ae4e\nLDR             R1, [R0]                                               ; +0x9c, 0x4ae50\nLDR             R1, [R1,#0x68]                                         ; +0x9e, 0x4ae52\nBLX             R1                                                     ; +0xa0, 0x4ae54\nLDR             R0, [R4,#0x10]                                         ; +0xa2, 0x4ae56\nLDR             R1, [R0,#0x20]                                         ; +0xa4, 0x4ae58\nBIC.W           R1, R1, #0x8000                                        ; +0xa6, 0x4ae5a\nSTR             R1, [R0,#0x20]                                         ; +0xaa, 0x4ae5e\nMOVS            R0, #0                                                 ; +0xac, 0x4ae60\nADD             SP, SP, #0x10                                          ; +0xae, 0x4ae62\nPOP.W           {R11}                                                  ; +0xb0, 0x4ae64\nPOP             {R4-R7,PC}                                             ; +0xb4, 0x4ae68", "xrefs": ["sub_4A7D4 @ 0x4a8d6", "sub_65494 @ 0x656ea", "sub_65494 @ 0x6582e"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}