{"type": "func", "start": 7760060, "end": 7760174, "name": "DtLabelPlacer::boxFor", "pseudocode": "// \n// DtLabelPlacer::boxFor from 0x7668bc to 0x76692e (114 bytes)\n// \n// 3 xrefs:\n// > sub_766930 @ 0x766a94\n// > DtLabelPlacer::place @ 0x7679ac\n// > DeathHistogram::setSurvival @ 0x768030\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:59:08 +0000\n// \n\nfloat *__fastcall DtLabelPlacer::boxFor(float *a1, int a2, float a3, float a4, float a5)\n{\n  float v9; // s19\n  float v10; // s15\n  float v12; // s16\n\n  v9 = (float)((float)(a5 * *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)a2 + 164))(a2)) * 0.5) + 1.0;\n  v10 = *(float *)((*(int (__fastcall **)(int))(*(_DWORD *)a2 + 164))(a2) + 4);\n  v12 = (float)(a5 * v10) * 0.5;\n  *a1 = a3 - v9;\n  a1[1] = a3 + v9;\n  a1[2] = a4 - v12;\n  a1[3] = a4 + v12;\n  return a1;\n}", "assembly": "; \n; DtLabelPlacer::boxFor from 0x7668bc to 0x76692e (114 bytes)\n; \n; 3 xrefs:\n; > sub_766930 @ 0x766a94\n; > DtLabelPlacer::place @ 0x7679ac\n; > DeathHistogram::setSurvival @ 0x768030\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:59:08 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x7668bc\nMOV             R4, R0                                                 ; +0x2, 0x7668be\nVPUSH           {D8-D10}                                               ; +0x4, 0x7668c0\nMOV             R0, R1                                                 ; +0x8, 0x7668c4\nMOV             R5, R1                                                 ; +0xa, 0x7668c6\nVMOV            S17, R3                                                ; +0xc, 0x7668c8\nLDR             R3, [R1]                                               ; +0x10, 0x7668cc\nVMOV            S18, R2                                                ; +0x12, 0x7668ce\nVLDR            S16, [SP,#0x1C+arg_0]                                  ; +0x16, 0x7668d2\nLDR.W           R3, [R3,#0xA4]                                         ; +0x1a, 0x7668d6\nBLX             R3                                                     ; +0x1e, 0x7668da\nLDR             R3, [R5]                                               ; +0x20, 0x7668dc\nVMOV.F32        S20, #0.5                                              ; +0x22, 0x7668de\nLDR.W           R3, [R3,#0xA4]                                         ; +0x26, 0x7668e2\nVMOV.F32        S19, #1.0                                              ; +0x2a, 0x7668e6\nVLDR            S15, [R0]                                              ; +0x2e, 0x7668ea\nMOV             R0, R5                                                 ; +0x32, 0x7668ee\nVMUL.F32        S15, S16, S15                                          ; +0x34, 0x7668f0\nVMLA.F32        S19, S15, S20                                          ; +0x38, 0x7668f4\nBLX             R3                                                     ; +0x3c, 0x7668f8\nVLDR            S15, [R0,#4]                                           ; +0x3e, 0x7668fa\nMOV             R0, R4                                                 ; +0x42, 0x7668fe\nVMUL.F32        S16, S16, S15                                          ; +0x44, 0x766900\nVMUL.F32        S16, S16, S20                                          ; +0x48, 0x766904\nVSUB.F32        S15, S18, S19                                          ; +0x4c, 0x766908\nVADD.F32        S18, S18, S19                                          ; +0x50, 0x76690c\nVSTR            S15, [R4]                                              ; +0x54, 0x766910\nVSUB.F32        S15, S17, S16                                          ; +0x58, 0x766914\nVSTR            S18, [R4,#4]                                           ; +0x5c, 0x766918\nVADD.F32        S16, S17, S16                                          ; +0x60, 0x76691c\nVSTR            S15, [R4,#8]                                           ; +0x64, 0x766920\nVSTR            S16, [R4,#0xC]                                         ; +0x68, 0x766924\nVPOP            {D8-D10}                                               ; +0x6c, 0x766928\nPOP             {R3-R5,PC}                                             ; +0x70, 0x76692c", "xrefs": ["sub_766930 @ 0x766a94", "DtLabelPlacer::place @ 0x7679ac", "DeathHistogram::setSurvival @ 0x768030"], "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"}