{"type": "func", "start": 289540, "end": 289620, "name": "sub_46B04", "pseudocode": "// \n// sub_46B04 from 0x46b04 to 0x46b54 (80 bytes)\n// \n// 1 xrefs:\n// > sub_46B58 @ 0x46f98\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:38 +0000\n// \n\nfloat __fastcall sub_46B04(_DWORD *a1, int a2, int a3, float a4)\n{\n  int v4; // r4\n  float v7; // [sp+Ch] [bp-Ch] BYREF\n\n  v7 = a4;\n  if ( a3 == 0x200000 )\n  {\n    v4 = 1;\nLABEL_10:\n    sub_609B8(v4, a2, a1[26], a1[27], (int)&v7, *(float *)(a1[1] + 68260));\n    return v7;\n  }\n  if ( a3 != 0x4000000 )\n  {\n    if ( a3 == 0x800000 )\n    {\n      v4 = 3;\n    }\n    else if ( a3 == 0x400000 )\n    {\n      v4 = 0;\n    }\n    else\n    {\n      v4 = 2;\n    }\n    goto LABEL_10;\n  }\n  return 1.0;\n}", "assembly": "; \n; sub_46B04 from 0x46b04 to 0x46b54 (80 bytes)\n; \n; 1 xrefs:\n; > sub_46B58 @ 0x46f98\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:38 +0000\n; \nPUSH            {R0-R5,R7,LR}                                          ; +0x0, 0x46b04\nADD             R7, SP, #0x18                                          ; +0x2, 0x46b06\nCMP.W           R2, #0x200000                                          ; +0x4, 0x46b08\nBEQ             loc_46B26                                              ; +0x8, 0x46b0c\nCMP.W           R2, #0x4000000                                         ; +0xa, 0x46b0e\nBEQ             loc_46B2A                                              ; +0xe, 0x46b12\nCMP.W           R2, #0x800000                                          ; +0x10, 0x46b14\nBEQ             loc_46B30                                              ; +0x14, 0x46b18\nCMP.W           R2, #0x400000                                          ; +0x16, 0x46b1a\nITE EQ                                                                 ; +0x1a, 0x46b1e\nMOVEQ           R4, #0                                                 ; +0x1c, 0x46b20\nMOVNE           R4, #2                                                 ; +0x1e, 0x46b22\nB               loc_46B32                                              ; +0x20, 0x46b24\nMOVS            R4, #1                                                 ; +0x22, 0x46b26\nB               loc_46B32                                              ; +0x24, 0x46b28\nVMOV.F32        S0, #1.0                                               ; +0x26, 0x46b2a\nB               loc_46B4C                                              ; +0x2a, 0x46b2e\nMOVS            R4, #3                                                 ; +0x2c, 0x46b30\nLDR             R5, [R0,#4]                                            ; +0x2e, 0x46b32\nLDRD.W          R2, R3, [R0,#0x68]; int                                ; +0x30, 0x46b34\nLDR             R0, =0x10AA4                                           ; +0x34, 0x46b38\nLDR             R0, [R5,R0]                                            ; +0x36, 0x46b3a\nADD             R5, SP, #0x10+var_4                                    ; +0x38, 0x46b3c\nSTRD.W          R5, R0, [SP,#0x10+var_10]; int                         ; +0x3a, 0x46b3e\nMOV             R0, R4; int                                            ; +0x3e, 0x46b42\nBL              sub_609B8                                              ; +0x40, 0x46b44\nVLDR            S0, [SP,#0x10+var_4]                                   ; +0x44, 0x46b48\nVMOV            R0, S0                                                 ; +0x48, 0x46b4c\nADD             SP, SP, #0x10                                          ; +0x4c, 0x46b50\nPOP             {R4,R5,R7,PC}                                          ; +0x4e, 0x46b52", "xrefs": ["sub_46B58 @ 0x46f98"], "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"}