{"type": "func", "start": 4296019232, "end": 4296019356, "name": "GJBaseGameLayer::sortStartPosObjects", "pseudocode": "// \n// GJBaseGameLayer::sortStartPosObjects from 0x100100d20 to 0x100100d9c (124 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::addLiveStartPosObject @ 0x10008c1bf\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 12:21:20 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::sortStartPosObjects(__int64 a1)\n{\n  __int64 result; // rax\n  __int64 v2; // r14\n  unsigned int v3; // r15d\n  __int64 v4; // r12\n  __int64 v5; // rax\n\n  result = sub_1007FEF90(*(_QWORD *)(a1 + 12440));\n  if ( (unsigned int)result >= 2 )\n  {\n    v2 = sub_100100AD0(*(_QWORD *)(a1 + 12440));\n    sub_1007FF190(*(_QWORD *)(a1 + 12440));\n    result = sub_1007FEF90(v2);\n    v3 = result - 1;\n    if ( (int)result - 1 >= 0 )\n    {\n      do\n      {\n        v4 = *(_QWORD *)(a1 + 12440);\n        v5 = sub_1007FEFE0(v2, v3);\n        result = sub_1007FEBF0(v4, v5);\n      }\n      while ( v3-- != 0 );\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::sortStartPosObjects from 0x100100d20 to 0x100100d9c (124 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::addLiveStartPosObject @ 0x10008c1bf\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 12:21:20 +0000\n; \npush    rbp                                                            ; +0x0, 0x100100d20\nmov     rbp, rsp                                                       ; +0x1, 0x100100d21\npush    r15                                                            ; +0x4, 0x100100d24\npush    r14                                                            ; +0x6, 0x100100d26\npush    r12                                                            ; +0x8, 0x100100d28\npush    rbx                                                            ; +0xa, 0x100100d2a\nmov     rbx, rdi                                                       ; +0xb, 0x100100d2b\nmov     rdi, [rdi+3098h]                                               ; +0xe, 0x100100d2e\ncall    sub_1007FEF90                                                  ; +0x15, 0x100100d35\ncmp     eax, 2                                                         ; +0x1a, 0x100100d3a\njb      short loc_100100D93                                            ; +0x1d, 0x100100d3d\nmov     rdi, [rbx+3098h]                                               ; +0x1f, 0x100100d3f\ncall    sub_100100AD0                                                  ; +0x26, 0x100100d46\nmov     r14, rax                                                       ; +0x2b, 0x100100d4b\nmov     rdi, [rbx+3098h]                                               ; +0x2e, 0x100100d4e\ncall    sub_1007FF190                                                  ; +0x35, 0x100100d55\nmov     rdi, r14                                                       ; +0x3a, 0x100100d5a\ncall    sub_1007FEF90                                                  ; +0x3d, 0x100100d5d\nmov     r15d, eax                                                      ; +0x42, 0x100100d62\ndec     r15d                                                           ; +0x45, 0x100100d65\njs      short loc_100100D93                                            ; +0x48, 0x100100d68\nnop     word ptr [rax+rax+00h]                                         ; +0x4a, 0x100100d6a\nmov     r12, [rbx+3098h]                                               ; +0x50, 0x100100d70\nmov     rdi, r14                                                       ; +0x57, 0x100100d77\nmov     esi, r15d                                                      ; +0x5a, 0x100100d7a\ncall    sub_1007FEFE0                                                  ; +0x5d, 0x100100d7d\nmov     rdi, r12                                                       ; +0x62, 0x100100d82\nmov     rsi, rax                                                       ; +0x65, 0x100100d85\ncall    sub_1007FEBF0                                                  ; +0x68, 0x100100d88\nadd     r15d, 0FFFFFFFFh                                               ; +0x6d, 0x100100d8d\njb      short loc_100100D70                                            ; +0x71, 0x100100d91\npop     rbx                                                            ; +0x73, 0x100100d93\npop     r12                                                            ; +0x74, 0x100100d94\npop     r14                                                            ; +0x76, 0x100100d96\npop     r15                                                            ; +0x78, 0x100100d98\npop     rbp                                                            ; +0x7a, 0x100100d9a\nretn                                                                   ; +0x7b, 0x100100d9b", "xrefs": ["PlayLayer::addLiveStartPosObject @ 0x10008c1bf"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}