// File: /workspace/github_c_makefile_star2_O3/silverneko[P]miku/isolate/isolate.c
// Function: box_inside
static int
box_inside(void *arg)
{
  char **args = arg;
  write_errors_to_fd = error_pipes[1];
  close(error_pipes[0]);
  meta_close();

  cg_enter();
  setup_root();
  setup_credentials();
  setup_fds();
  setup_rlimits();
  char **env = setup_environment();

  if (set_cwd && chdir(set_cwd))
    die("chdir: %m");

  execve(args[0], args, env);
  die("execve(\"%s\"): %m", args[0]);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x428, %rsp            # imm = 0x428
movq %rdi, %r15
movl 0x53c2(%rip), %eax      # 0x9894
movl %eax, 0x4e70(%rip)      # 0x9348
movl 0x53b2(%rip), %edi      # 0x9890
callq 0x2280
movq 0x4e56(%rip), %rdi      # 0x9340
testq %rdi, %rdi
je 0x4500
movq 0x4aca(%rip), %rax      # 0x8fc0
cmpq (%rax), %rdi
je 0x4500
callq 0x2160
cmpb $0x1, 0x4dc9(%rip)      # 0x92d0
jne 0x45db
leaq 0x1527(%rip), %rdi      # 0x5a3b
leaq 0x4e55(%rip), %rsi      # 0x9370
xorl %eax, %eax
callq 0x415c
callq 0x2130
leaq 0x1529(%rip), %rbx      # 0x5a57
leaq 0x1454(%rip), %r14      # 0x5989
xorl %ebp, %ebp
movl %ebp, %edi
movq %rbx, %rsi
movq %r14, %rdx
movl %eax, %ecx
xorl %eax, %eax
callq 0x42fc
incl %ebp
callq 0x2130
cmpl $0x2, %ebp
jne 0x4537
leaq 0x14fb(%rip), %rsi      # 0x5a56
leaq 0x1427(%rip), %rdx      # 0x5989
movl $0x2, %edi
movl %eax, %ecx
xorl %eax, %eax
callq 0x42fc
movslq 0x4da1(%rip), %rcx      # 0x9318
testq %rcx, %rcx
je 0x45b8
shlq $0xa, %rcx
leaq 0x14d6(%rip), %rsi      # 0x5a5d
leaq 0x1058(%rip), %rbx      # 0x55e6
xorl %edi, %edi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x42fc
movslq 0x4d77(%rip), %rcx      # 0x9318
shlq $0xa, %rcx
leaq 0x14c7(%rip), %rsi      # 0x5a73
xorl %edi, %edi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x42fc
cmpb $0x1, 0x4d5d(%rip)      # 0x931c
jne 0x45db
leaq 0xf1e(%rip), %rsi       # 0x54e6
leaq 0x14c1(%rip), %rdx      # 0x5a90
movl $0x1, %edi
xorl %eax, %eax
callq 0x42fc
leaq 0xc05(%rip), %rdi       # 0x51e7
movl $0x1e8, %esi            # imm = 0x1E8
callq 0x20b0
testl %eax, %eax
jns 0x45fa
callq 0x2060
cmpl $0x11, (%rax)
jne 0x4655
leaq 0x14a4(%rip), %rsi      # 0x5aa5
movl $0x44000, %ecx          # imm = 0x44000
xorl %edi, %edi
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x2190
testl %eax, %eax
jns 0x4622
leaq 0x148a(%rip), %rdi      # 0x5aa7
jmp 0x4a45
leaq 0x149a(%rip), %rdi      # 0x5ac3
leaq 0xbb7(%rip), %rsi       # 0x51e7
leaq 0x1491(%rip), %rdx      # 0x5ac8
leaq 0x1490(%rip), %r8       # 0x5ace
xorl %ecx, %ecx
callq 0x2190
testl %eax, %eax
jns 0x4661
leaq 0x1487(%rip), %rdi      # 0x5ad7
jmp 0x4a45
leaq 0x1437(%rip), %rdi      # 0x5a93
jmp 0x4a45
movq %r15, 0x18(%rsp)
movq 0x4cc3(%rip), %rbx      # 0x9330
testq %rbx, %rbx
je 0x47cd
leaq 0x20(%rsp), %r12
leaq 0x1441(%rip), %r13      # 0x5ac3
movq (%rbx), %rbp
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0x4764
testb $0x8, 0x10(%rbx)
je 0x46c1
movq %r14, %rdi
movq %r12, %rsi
callq 0x2320
testl %eax, %eax
js 0x47ac
movl 0x38(%rsp), %eax
movl $0xf000, %ecx           # imm = 0xF000
andl %ecx, %eax
cmpl $0x4000, %eax           # imm = 0x4000
jne 0x47ac
movl $0x400, %esi            # imm = 0x400
movq %r12, %rdi
leaq 0x14a7(%rip), %rdx      # 0x5b77
movq %rbp, %rcx
xorl %eax, %eax
callq 0x2210
movq %r12, %rdi
callq 0x4220
movl 0x10(%rbx), %eax
movl %eax, %ecx
andl $0x1, %ecx
movl %eax, %edx
andl $0x2, %edx
leal (%rcx,%rdx,4), %ecx
xorl $0x1, %ecx
leaq 0x4(%rcx), %r15
testb $0x10, %al
cmovneq %rcx, %r15
testb $0x4, %al
movq %rbp, 0x8(%rsp)
jne 0x4777
movq %rbp, %rdx
movq %r15, %rbp
orq $0x1002, %rbp           # imm = 0x1002
leaq 0x149c(%rip), %rdi      # 0x5bb8
movq %r14, %rsi
movq %rbp, %rcx
xorl %eax, %eax
callq 0x415c
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %rbp, %rcx
leaq 0x1639(%rip), %rbp      # 0x5d75
movq %rbp, %r8
callq 0x2190
testl %eax, %eax
js 0x4805
orq $0x1022, %r15           # imm = 0x1022
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r15, %rcx
movq %rbp, %r8
jmp 0x47a1
leaq 0x13c9(%rip), %rdi      # 0x5b34
movq %rbp, %rsi
xorl %eax, %eax
callq 0x415c
jmp 0x47c0
leaq 0x1401(%rip), %rdi      # 0x5b7f
movq %r14, %rsi
movq %rbp, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x415c
movq %r13, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r15, %rcx
leaq 0x15d4(%rip), %r8       # 0x5d75
callq 0x2190
testl %eax, %eax
jns 0x47c0
jmp 0x4805
movq (%rbx), %rdx
leaq 0x139a(%rip), %rdi      # 0x5b50
movq %r14, %rsi
xorl %eax, %eax
callq 0x415c
movq 0x18(%rbx), %rbx
testq %rbx, %rbx
jne 0x4682
leaq 0xa13(%rip), %rdi       # 0x51e7
callq 0x20a0
testl %eax, %eax
jns 0x47e9
leaq 0x1311(%rip), %rdi      # 0x5af5
jmp 0x4a45
leaq 0x1317(%rip), %rdi      # 0x5b07
callq 0x21a0
testl %eax, %eax
jns 0x481b
leaq 0x1310(%rip), %rdi      # 0x5b10
jmp 0x4a45
leaq 0x1392(%rip), %rdi      # 0x5b9e
movq %r14, %rsi
movq 0x8(%rsp), %rdx
xorl %eax, %eax
callq 0x2d7f
movl 0x4c6b(%rip), %edi      # 0x948c
movl %edi, %esi
movl %edi, %edx
callq 0x21c0
testl %eax, %eax
jns 0x483a
leaq 0x13a1(%rip), %rdi      # 0x5bd6
jmp 0x4a45
xorl %edi, %edi
xorl %esi, %esi
callq 0x2290
testl %eax, %eax
jns 0x4853
leaq 0x1396(%rip), %rdi      # 0x5be4
jmp 0x4a45
movl 0x4c2f(%rip), %edi      # 0x9488
movl %edi, %esi
movl %edi, %edx
callq 0x2140
testl %eax, %eax
jns 0x4872
leaq 0x1385(%rip), %rdi      # 0x5bf2
jmp 0x4a45
callq 0x24a0
cmpq $0x0, 0x4a61(%rip)      # 0x92e0
je 0x48a0
xorl %edi, %edi
callq 0x2280
movq 0x4a51(%rip), %rdi      # 0x92e0
xorl %esi, %esi
xorl %eax, %eax
callq 0x2400
testl %eax, %eax
jne 0x4a4c
cmpq $0x0, 0x4a48(%rip)      # 0x92f0
je 0x48d5
movl $0x1, %edi
callq 0x2280
movq 0x4a35(%rip), %rdi      # 0x92f0
movl $0x241, %esi            # imm = 0x241
movl $0x1b6, %edx            # imm = 0x1B6
xorl %eax, %eax
callq 0x2400
cmpl $0x1, %eax
jne 0x4c43
cmpq $0x0, 0x4a23(%rip)      # 0x9300
jne 0x48f0
movl $0x1, %edi
movl $0x2, %esi
callq 0x21e0
jmp 0x491b
movl $0x2, %edi
callq 0x2280
movq 0x49ff(%rip), %rdi      # 0x9300
movl $0x241, %esi            # imm = 0x241
movl $0x1b6, %edx            # imm = 0x1B6
xorl %eax, %eax
callq 0x2400
cmpl $0x2, %eax
jne 0x4c4c
movslq 0x49c6(%rip), %rdx      # 0x92e8
testq %rdx, %rdx
je 0x493c
shlq $0xa, %rdx
leaq 0x12dd(%rip), %rdi      # 0x5c0f
movl $0x9, %esi
callq 0x4c6d
movslq 0x4995(%rip), %rax      # 0x92d8
movq %rax, %rcx
shlq $0xa, %rcx
xorl %edx, %edx
cmpq $0x1, %rax
sbbq %rdx, %rdx
orq %rcx, %rdx
leaq 0x12bc(%rip), %rdi      # 0x5c19
movl $0x3, %esi
callq 0x4c6d
movslq 0x49b2(%rip), %rdx      # 0x9320
testq %rdx, %rdx
je 0x4984
leaq 0x12ac(%rip), %rdi      # 0x5c26
movl $0x7, %esi
callq 0x4c6d
movslq 0x4999(%rip), %rdx      # 0x9324
testq %rdx, %rdx
je 0x49a5
shlq $0xa, %rdx
leaq 0x1299(%rip), %rdi      # 0x5c34
movl $0x1, %esi
callq 0x4c6d
leaq 0x1295(%rip), %rdi      # 0x5c41
xorl %r12d, %r12d
movl $0x8, %esi
xorl %edx, %edx
callq 0x4c6d
movslq 0x48ae(%rip), %rdx      # 0x9270
testq %rdx, %rdx
je 0x49d8
leaq 0x1282(%rip), %rdi      # 0x5c50
movl $0x6, %esi
callq 0x4c6d
movq 0x4959(%rip), %rax      # 0x9338
movq %rax, 0x48c2(%rip)      # 0x92a8
leaq 0x48a3(%rip), %r14      # 0x9290
movq %r14, 0x4944(%rip)      # 0x9338
movq 0x45e5(%rip), %rax      # 0x8fe0
movq (%rax), %rbx
movq $-0x8, %r15
incl %r12d
cmpq $0x0, 0x8(%rbx,%r15)
leaq 0x8(%r15), %r15
jne 0x4a05
movl %r12d, %ebp
movq (%r14), %rdi
callq 0x2180
movl %eax, 0x10(%r14)
movq 0x18(%r14), %r14
incl %ebp
testq %r14, %r14
jne 0x4a17
movl %ebp, %edi
shlq $0x3, %rdi
callq 0x2360
testq %rax, %rax
jne 0x4a58
leaq 0x90a(%rip), %rdi       # 0x534f
xorl %eax, %eax
callq 0x2d7f
movq 0x488d(%rip), %rsi      # 0x92e0
jmp 0x4c53
movq %rax, %r14
xorl %ecx, %ecx
cmpb $0x0, 0x4870(%rip)      # 0x92d4
je 0x4a7a
decl %r12d
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2330
movl %r12d, %ecx
movl %ecx, %eax
movq $0x0, (%r14,%rax,8)
leaq 0x4805(%rip), %r13      # 0x9290
movl %ecx, %r15d
testl %r15d, %r15d
movq %r13, 0x8(%rsp)
jle 0x4af9
movq (%r13), %rbx
movslq 0x10(%r13), %r12
movl %r15d, 0x14(%rsp)
movl %r15d, %r15d
xorl %ebp, %ebp
movq (%r14,%rbp,8), %r13
movq %r13, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x2080
testl %eax, %eax
jne 0x4ac8
cmpb $0x3d, (%r13,%r12)
je 0x4ad7
incq %rbp
cmpq %rbp, %r15
jne 0x4aaa
movl 0x14(%rsp), %r15d
jmp 0x4af4
movl 0x14(%rsp), %r15d
movslq %r15d, %rax
decl %r15d
movq -0x8(%r14,%rax,8), %rcx
movq %rcx, (%r14,%rbp,8)
movq $0x0, -0x8(%r14,%rax,8)
movq 0x8(%rsp), %r13
movq 0x8(%r13), %r12
testq %r12, %r12
je 0x4b5f
cmpb $0x0, (%r12)
je 0x4ba9
movslq 0x10(%r13), %rbx
movq %r12, %rdi
callq 0x2180
leaq (%rbx,%rax), %rdi
addq $0x2, %rdi
callq 0x2360
testq %rax, %rax
je 0x4a3e
movq %rax, %rbx
movq (%r13), %rdx
movq %rax, %rdi
leaq 0x115e(%rip), %rsi      # 0x5c9e
movq %r12, %rcx
xorl %eax, %eax
callq 0x2460
movslq %r15d, %rax
incl %r15d
movq %rbx, (%r14,%rax,8)
movq $0x0, 0x8(%r14,%rax,8)
jmp 0x4ba4
movq 0x447a(%rip), %rax      # 0x8fe0
movq (%rax), %rbp
movq (%rbp), %rbx
testq %rbx, %rbx
je 0x4ba9
movq (%r13), %r12
movslq 0x10(%r13), %r13
addq $0x8, %rbp
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x2080
testl %eax, %eax
jne 0x4b97
cmpb $0x3d, (%rbx,%r13)
je 0x4b4a
movq (%rbp), %rbx
addq $0x8, %rbp
testq %rbx, %rbx
jne 0x4b7e
movq 0x8(%rsp), %r13
movq 0x18(%r13), %r13
testq %r13, %r13
jne 0x4a8e
cmpl $0x1, 0x474f(%rip)      # 0x930c
jle 0x4c0f
movq 0x4432(%rip), %r15      # 0x8ff8
movq (%r15), %rcx
leaq 0x10a0(%rip), %rdi      # 0x5c70
movl $0x15, %esi
movl $0x1, %edx
callq 0x2480
movq (%r14), %rdx
testq %rdx, %rdx
je 0x4c0f
movq %r14, %r12
addq $0x8, %r12
leaq 0x1091(%rip), %rbx      # 0x5c86
movq (%r15), %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2300
movq (%r12), %rdx
addq $0x8, %r12
testq %rdx, %rdx
jne 0x4bf5
movq 0x46b2(%rip), %rdi      # 0x92c8
testq %rdi, %rdi
je 0x4c24
callq 0x21a0
testl %eax, %eax
jne 0x4c61
movq 0x18(%rsp), %rbx
movq (%rbx), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x22d0
movq (%rbx), %rsi
leaq 0xde9(%rip), %rdi       # 0x5a2a
jmp 0x4c5a
movq 0x46a6(%rip), %rsi      # 0x92f0
jmp 0x4c53
movq 0x46ad(%rip), %rsi      # 0x9300
leaq 0xfa6(%rip), %rdi       # 0x5c00
xorl %eax, %eax
callq 0x2d7f
leaq 0xdb8(%rip), %rdi       # 0x5a20
jmp 0x4a45