{"type": "func", "start": 4296018960, "end": 4296019219, "name": "GJBaseGameLayer::processStartPosObjects", "pseudocode": "// \n// GJBaseGameLayer::processStartPosObjects from 0x100100c10 to 0x100100d13 (259 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::setupHasCompleted @ 0x10007b26b\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::processStartPosObjects(__int64 a1)\n{\n  __int64 v2; // r14\n  int v3; // r15d\n  __int64 v4; // r12\n  __int64 v5; // rax\n  __int64 result; // rax\n  int v8; // r14d\n  __int64 v9; // r14\n  __int64 v10; // rdi\n\n  if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 12440)) >= 2 )\n  {\n    v2 = sub_100100AD0(*(_QWORD *)(a1 + 12440));\n    sub_1007FF190(*(_QWORD *)(a1 + 12440));\n    v3 = sub_1007FEF90(v2) - 1;\n    if ( v3 >= 0 )\n    {\n      do\n      {\n        v4 = *(_QWORD *)(a1 + 12440);\n        v5 = sub_1007FEFE0(v2, (unsigned int)v3);\n        sub_1007FEBF0(v4, v5);\n      }\n      while ( v3-- != 0 );\n    }\n  }\n  result = *(_QWORD *)(a1 + 1936);\n  if ( *(_DWORD *)(result + 1140) == 2 )\n  {\n    result = sub_1007FEF90(*(_QWORD *)(a1 + 12440));\n    v8 = result - 1;\n    while ( v8 >= 0 )\n    {\n      result = sub_1007FEFE0(*(_QWORD *)(a1 + 12440), (unsigned int)v8--);\n      if ( !*(_BYTE *)(*(_QWORD *)(result + 1840) + 464LL) )\n      {\n        if ( *(_QWORD *)(a1 + 12432) != result )\n        {\n          v9 = result;\n          result = cocos2d::CCObject::retain(result);\n          v10 = *(_QWORD *)(a1 + 12432);\n          if ( v10 )\n            result = cocos2d::CCObject::release(v10);\n          *(_QWORD *)(a1 + 12432) = v9;\n          *(_BYTE *)(a1 + 12616) = 1;\n        }\n        return result;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::processStartPosObjects from 0x100100c10 to 0x100100d13 (259 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::setupHasCompleted @ 0x10007b26b\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, 0x100100c10\nmov     rbp, rsp                                                       ; +0x1, 0x100100c11\npush    r15                                                            ; +0x4, 0x100100c14\npush    r14                                                            ; +0x6, 0x100100c16\npush    r12                                                            ; +0x8, 0x100100c18\npush    rbx                                                            ; +0xa, 0x100100c1a\nmov     rbx, rdi                                                       ; +0xb, 0x100100c1b\nmov     rdi, [rdi+3098h]                                               ; +0xe, 0x100100c1e\ncall    sub_1007FEF90                                                  ; +0x15, 0x100100c25\ncmp     eax, 2                                                         ; +0x1a, 0x100100c2a\njb      short loc_100100C83                                            ; +0x1d, 0x100100c2d\nmov     rdi, [rbx+3098h]                                               ; +0x1f, 0x100100c2f\ncall    sub_100100AD0                                                  ; +0x26, 0x100100c36\nmov     r14, rax                                                       ; +0x2b, 0x100100c3b\nmov     rdi, [rbx+3098h]                                               ; +0x2e, 0x100100c3e\ncall    sub_1007FF190                                                  ; +0x35, 0x100100c45\nmov     rdi, r14                                                       ; +0x3a, 0x100100c4a\ncall    sub_1007FEF90                                                  ; +0x3d, 0x100100c4d\nmov     r15d, eax                                                      ; +0x42, 0x100100c52\ndec     r15d                                                           ; +0x45, 0x100100c55\njs      short loc_100100C83                                            ; +0x48, 0x100100c58\nnop     word ptr [rax+rax+00h]                                         ; +0x4a, 0x100100c5a\nmov     r12, [rbx+3098h]                                               ; +0x50, 0x100100c60\nmov     rdi, r14                                                       ; +0x57, 0x100100c67\nmov     esi, r15d                                                      ; +0x5a, 0x100100c6a\ncall    sub_1007FEFE0                                                  ; +0x5d, 0x100100c6d\nmov     rdi, r12                                                       ; +0x62, 0x100100c72\nmov     rsi, rax                                                       ; +0x65, 0x100100c75\ncall    sub_1007FEBF0                                                  ; +0x68, 0x100100c78\nadd     r15d, 0FFFFFFFFh                                               ; +0x6d, 0x100100c7d\njb      short loc_100100C60                                            ; +0x71, 0x100100c81\nmov     rax, [rbx+790h]                                                ; +0x73, 0x100100c83\ncmp     dword ptr [rax+474h], 2                                        ; +0x7a, 0x100100c8a\njnz     short loc_100100D0A                                            ; +0x81, 0x100100c91\nmov     rdi, [rbx+3098h]                                               ; +0x83, 0x100100c93\ncall    sub_1007FEF90                                                  ; +0x8a, 0x100100c9a\nmov     r14d, eax                                                      ; +0x8f, 0x100100c9f\ndec     r14d                                                           ; +0x92, 0x100100ca2\nnop     word ptr [rax+rax+00000000h]                                   ; +0x95, 0x100100ca5\ntest    r14d, r14d                                                     ; +0xa0, 0x100100cb0\njs      short loc_100100D0A                                            ; +0xa3, 0x100100cb3\nmov     rdi, [rbx+3098h]                                               ; +0xa5, 0x100100cb5\nmov     esi, r14d                                                      ; +0xac, 0x100100cbc\ncall    sub_1007FEFE0                                                  ; +0xaf, 0x100100cbf\nmov     rcx, [rax+730h]                                                ; +0xb4, 0x100100cc4\ndec     r14d                                                           ; +0xbb, 0x100100ccb\ncmp     byte ptr [rcx+1D0h], 0                                         ; +0xbe, 0x100100cce\njnz     short loc_100100CB0                                            ; +0xc5, 0x100100cd5\ncmp     [rbx+3090h], rax                                               ; +0xc7, 0x100100cd7\njz      short loc_100100D0A                                            ; +0xce, 0x100100cde\nmov     r14, rax                                                       ; +0xd0, 0x100100ce0\nmov     rdi, rax                                                       ; +0xd3, 0x100100ce3\ncall    cocos2d__CCObject__retain                                      ; +0xd6, 0x100100ce6\nmov     rdi, [rbx+3090h]                                               ; +0xdb, 0x100100ceb\ntest    rdi, rdi                                                       ; +0xe2, 0x100100cf2\njz      short loc_100100CFC                                            ; +0xe5, 0x100100cf5\ncall    cocos2d__CCObject__release                                     ; +0xe7, 0x100100cf7\nmov     [rbx+3090h], r14                                               ; +0xec, 0x100100cfc\nmov     byte ptr [rbx+3148h], 1                                        ; +0xf3, 0x100100d03\npop     rbx                                                            ; +0xfa, 0x100100d0a\npop     r12                                                            ; +0xfb, 0x100100d0b\npop     r14                                                            ; +0xfd, 0x100100d0d\npop     r15                                                            ; +0xff, 0x100100d0f\npop     rbp                                                            ; +0x101, 0x100100d11\nretn                                                                   ; +0x102, 0x100100d12", "xrefs": ["PlayLayer::setupHasCompleted @ 0x10007b26b"], "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"}