{"type": "func", "start": 340214, "end": 340274, "name": "sub_530F6", "pseudocode": "// \n// sub_530F6 from 0x530f6 to 0x53132 (60 bytes)\n// \n// 1 xrefs:\n// > sub_530DC @ 0x530e4\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_530F6(_DWORD *a1, int a2)\n{\n  int v3; // r0\n  int result; // r0\n  int v6; // r0\n\n  v3 = a1[2];\n  if ( v3 < 0 )\n    v3 = -v3;\n  if ( v3 >= a2 || (result = sub_53150(a1, a2)) == 0 )\n  {\n    v6 = a1[1];\n    if ( v6 < a2 )\n      sub_53196(*a1 + 12 * v6, a2 - v6);\n    a1[1] = a2;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_530F6 from 0x530f6 to 0x53132 (60 bytes)\n; \n; 1 xrefs:\n; > sub_530DC @ 0x530e4\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,R5,R7,LR}                                          ; +0x0, 0x530f6\nADD             R7, SP, #8                                             ; +0x2, 0x530f8\nMOV             R5, R0                                                 ; +0x4, 0x530fa\nLDR             R0, [R0,#8]                                            ; +0x6, 0x530fc\nMOV             R4, R1                                                 ; +0x8, 0x530fe\nCMP             R0, #0                                                 ; +0xa, 0x53100\nBPL             loc_53106                                              ; +0xc, 0x53102\nNEGS            R0, R0                                                 ; +0xe, 0x53104\nCMP             R0, R4                                                 ; +0x10, 0x53106\nBGE             loc_53116                                              ; +0x12, 0x53108\nMOV             R0, R5                                                 ; +0x14, 0x5310a\nMOV             R1, R4                                                 ; +0x16, 0x5310c\nBL              sub_53150                                              ; +0x18, 0x5310e\nCBZ             R0, loc_53116                                          ; +0x1c, 0x53112\nPOP             {R4,R5,R7,PC}                                          ; +0x1e, 0x53114\nLDR             R0, [R5,#4]                                            ; +0x20, 0x53116\nCMP             R0, R4                                                 ; +0x22, 0x53118\nBGE             loc_5312C                                              ; +0x24, 0x5311a\nSUBS            R1, R4, R0                                             ; +0x26, 0x5311c\nADD.W           R0, R0, R0,LSL#1                                       ; +0x28, 0x5311e\nLDR             R2, [R5]                                               ; +0x2c, 0x53122\nADD.W           R0, R2, R0,LSL#2                                       ; +0x2e, 0x53124\nBL              sub_53196                                              ; +0x32, 0x53128\nMOVS            R0, #0                                                 ; +0x36, 0x5312c\nSTR             R4, [R5,#4]                                            ; +0x38, 0x5312e\nPOP             {R4,R5,R7,PC}                                          ; +0x3a, 0x53130", "xrefs": ["sub_530DC @ 0x530e4"], "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"}