// File: /workspace/github_c_makefile_star2_O2/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 $0x418, %rsp            # imm = 0x418
movq %rdi, 0x8(%rsp)
movl 0x5628(%rip), %eax      # 0x9894
movl %eax, 0x50d6(%rip)      # 0x9348
movl 0x5618(%rip), %edi      # 0x9890
callq 0x2280
callq 0x3b37
cmpb $0x1, 0x5047(%rip)      # 0x92d0
jne 0x435c
leaq 0x17a5(%rip), %rdi      # 0x5a3b
leaq 0x50d3(%rip), %rsi      # 0x9370
xorl %eax, %eax
callq 0x3eaa
leaq 0x17ab(%rip), %rbx      # 0x5a56
leaq 0x16d7(%rip), %r14      # 0x5989
pushq $0x2
popq %rbp
leaq 0x179b(%rip), %r15      # 0x5a57
xorl %r12d, %r12d
cmpl $0x2, %r12d
je 0x42d8
cmpl $0x3, %r12d
je 0x42f3
callq 0x2130
movl %r12d, %edi
movq %r15, %rsi
jmp 0x42e2
callq 0x2130
movl %ebp, %edi
movq %rbx, %rsi
movq %r14, %rdx
movl %eax, %ecx
xorl %eax, %eax
callq 0x40a3
incl %r12d
jmp 0x42bf
movslq 0x501e(%rip), %rcx      # 0x9318
testq %rcx, %rcx
je 0x433b
shlq $0xa, %rcx
leaq 0x1753(%rip), %rsi      # 0x5a5d
leaq 0x12d5(%rip), %rbx      # 0x55e6
xorl %edi, %edi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x40a3
movslq 0x4ff4(%rip), %rcx      # 0x9318
shlq $0xa, %rcx
leaq 0x1744(%rip), %rsi      # 0x5a73
xorl %edi, %edi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x40a3
cmpb $0x1, 0x4fda(%rip)      # 0x931c
jne 0x435c
leaq 0x119b(%rip), %rsi      # 0x54e6
leaq 0x173e(%rip), %rdx      # 0x5a90
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x40a3
leaq 0xe84(%rip), %rdi       # 0x51e7
movl $0x1e8, %esi            # imm = 0x1E8
callq 0x20b0
testl %eax, %eax
jns 0x437b
callq 0x2060
cmpl $0x11, (%rax)
jne 0x43d0
leaq 0x1723(%rip), %rsi      # 0x5aa5
movl $0x44000, %ecx          # imm = 0x44000
xorl %edi, %edi
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x2190
testl %eax, %eax
jns 0x43a0
leaq 0x1709(%rip), %rdi      # 0x5aa7
jmp 0x43d7
leaq 0x171c(%rip), %rdi      # 0x5ac3
leaq 0xe39(%rip), %rsi       # 0x51e7
leaq 0x1713(%rip), %rdx      # 0x5ac8
leaq 0x1712(%rip), %r8       # 0x5ace
xorl %ecx, %ecx
callq 0x2190
testl %eax, %eax
jns 0x43de
leaq 0x1709(%rip), %rdi      # 0x5ad7
jmp 0x43d7
leaq 0x16bc(%rip), %rdi      # 0x5a93
xorl %eax, %eax
callq 0x3696
leaq 0x4f4b(%rip), %rbx      # 0x9330
leaq 0x10(%rsp), %r12
leaq 0x16d2(%rip), %r13      # 0x5ac3
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x452a
movq (%rbx), %rbp
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0x44c5
testb $0x8, 0x10(%rbx)
je 0x4423
movq %r14, %rdi
callq 0x4016
testl %eax, %eax
je 0x4514
movl $0x400, %esi            # imm = 0x400
movq %r12, %rdi
leaq 0x1745(%rip), %rdx      # 0x5b77
movq %rbp, %rcx
xorl %eax, %eax
callq 0x2210
movq %r12, %rdi
callq 0x3fa9
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, (%rsp)
jne 0x44d8
movq %rbp, %rdx
movq %r15, %rbp
orq $0x1002, %rbp           # imm = 0x1002
leaq 0x173b(%rip), %rdi      # 0x5bb8
movq %r14, %rsi
movq %rbp, %rcx
xorl %eax, %eax
callq 0x3eaa
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %rbp, %rcx
leaq 0x18d8(%rip), %rbp      # 0x5d75
movq %rbp, %r8
callq 0x2190
testl %eax, %eax
js 0x4546
orq $0x1022, %r15           # imm = 0x1022
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r15, %rcx
movq %rbp, %r8
jmp 0x4502
leaq 0x1668(%rip), %rdi      # 0x5b34
movq %rbp, %rsi
xorl %eax, %eax
callq 0x3eaa
jmp 0x450b
leaq 0x16a0(%rip), %rdi      # 0x5b7f
movq %r14, %rsi
movq %rbp, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x3eaa
movq %r13, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r15, %rcx
leaq 0x1873(%rip), %r8       # 0x5d75
callq 0x2190
testl %eax, %eax
js 0x4546
addq $0x18, %rbx
jmp 0x43f1
movq (%rbx), %rdx
leaq 0x1632(%rip), %rdi      # 0x5b50
movq %r14, %rsi
xorl %eax, %eax
callq 0x3eaa
jmp 0x450b
leaq 0xcb6(%rip), %rdi       # 0x51e7
callq 0x20a0
testl %eax, %eax
jns 0x455b
leaq 0x15b4(%rip), %rdi      # 0x5af5
jmp 0x43d7
leaq 0x1651(%rip), %rdi      # 0x5b9e
movq %r14, %rsi
movq (%rsp), %rdx
xorl %eax, %eax
callq 0x3696
leaq 0x15a5(%rip), %rdi      # 0x5b07
callq 0x21a0
testl %eax, %eax
jns 0x4577
leaq 0x159e(%rip), %rdi      # 0x5b10
jmp 0x43d7
movl 0x4f0f(%rip), %edi      # 0x948c
movl %edi, %esi
movl %edi, %edx
callq 0x21c0
testl %eax, %eax
jns 0x4596
leaq 0x1645(%rip), %rdi      # 0x5bd6
jmp 0x43d7
xorl %edi, %edi
xorl %esi, %esi
callq 0x2290
testl %eax, %eax
jns 0x45af
leaq 0x163a(%rip), %rdi      # 0x5be4
jmp 0x43d7
movl 0x4ed3(%rip), %edi      # 0x9488
movl %edi, %esi
movl %edi, %edx
callq 0x2140
testl %eax, %eax
jns 0x45ce
leaq 0x1629(%rip), %rdi      # 0x5bf2
jmp 0x43d7
callq 0x24a0
cmpq $0x0, 0x4d05(%rip)      # 0x92e0
je 0x45fc
xorl %edi, %edi
callq 0x2280
movq 0x4cf5(%rip), %rdi      # 0x92e0
xorl %esi, %esi
xorl %eax, %eax
callq 0x2400
testl %eax, %eax
jne 0x4903
cmpq $0x0, 0x4cec(%rip)      # 0x92f0
je 0x462f
pushq $0x1
popq %rdi
callq 0x2280
movq 0x4cdb(%rip), %rdi      # 0x92f0
movl $0x241, %esi            # imm = 0x241
movl $0x1b6, %edx            # imm = 0x1B6
xorl %eax, %eax
callq 0x2400
cmpl $0x1, %eax
jne 0x490c
cmpq $0x0, 0x4cc9(%rip)      # 0x9300
jne 0x4646
pushq $0x1
popq %rdi
pushq $0x2
popq %rsi
callq 0x21e0
jmp 0x466f
pushq $0x2
popq %rdi
callq 0x2280
movq 0x4cab(%rip), %rdi      # 0x9300
movl $0x241, %esi            # imm = 0x241
movl $0x1b6, %edx            # imm = 0x1B6
xorl %eax, %eax
callq 0x2400
cmpl $0x2, %eax
jne 0x4915
movslq 0x4c72(%rip), %rdx      # 0x92e8
testq %rdx, %rdx
je 0x468e
shlq $0xa, %rdx
leaq 0x1589(%rip), %rdi      # 0x5c0f
pushq $0x9
popq %rsi
callq 0x4936
movslq 0x4c43(%rip), %rax      # 0x92d8
movq %rax, %rcx
shlq $0xa, %rcx
xorl %edx, %edx
cmpq $0x1, %rax
sbbq %rdx, %rdx
orq %rcx, %rdx
leaq 0x156a(%rip), %rdi      # 0x5c19
pushq $0x3
popq %rsi
callq 0x4936
movslq 0x4c62(%rip), %rdx      # 0x9320
testq %rdx, %rdx
je 0x46d2
leaq 0x155c(%rip), %rdi      # 0x5c26
pushq $0x7
popq %rsi
callq 0x4936
movslq 0x4c4b(%rip), %rdx      # 0x9324
testq %rdx, %rdx
je 0x46f1
shlq $0xa, %rdx
leaq 0x154b(%rip), %rdi      # 0x5c34
pushq $0x1
popq %rsi
callq 0x4936
leaq 0x1549(%rip), %rdi      # 0x5c41
xorl %r15d, %r15d
pushq $0x8
popq %rsi
xorl %edx, %edx
callq 0x4936
movslq 0x4b64(%rip), %rdx      # 0x9270
testq %rdx, %rdx
je 0x4720
leaq 0x1538(%rip), %rdi      # 0x5c50
pushq $0x6
popq %rsi
callq 0x4936
movq 0x4c11(%rip), %rax      # 0x9338
movq %rax, 0x4b7a(%rip)      # 0x92a8
leaq 0x4b5b(%rip), %r14      # 0x9290
movq %r14, 0x4bfc(%rip)      # 0x9338
movq 0x489d(%rip), %rax      # 0x8fe0
movq (%rax), %rax
pushq $-0x8
popq %rbx
incl %r15d
cmpq $0x0, 0x8(%rax,%rbx)
leaq 0x8(%rbx), %rbx
jne 0x4749
movl %r15d, %ebp
testq %r14, %r14
je 0x4774
movq (%r14), %rdi
callq 0x2180
movl %eax, 0x10(%r14)
movq 0x18(%r14), %r14
incl %ebp
jmp 0x475b
movl %ebp, %edi
shlq $0x3, %rdi
callq 0x386e
movq %rax, %r14
cmpb $0x0, 0x4b4b(%rip)      # 0x92d4
movl $0x0, %ebp
je 0x47ab
decl %r15d
movq 0x4846(%rip), %rax      # 0x8fe0
movq (%rax), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2330
movl %r15d, %ebp
movl %ebp, %eax
andq $0x0, (%r14,%rax,8)
leaq 0x4b7f(%rip), %rbx      # 0x9338
leaq 0x14de(%rip), %r15      # 0x5c9e
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x4884
testl %ebp, %ebp
movl $0x0, %r13d
cmovgl %ebp, %r13d
xorl %r12d, %r12d
cmpq %r12, %r13
je 0x4809
movq (%r14,%r12,8), %rdi
movq %rbx, %rsi
callq 0x4978
testl %eax, %eax
jne 0x47f5
incq %r12
jmp 0x47db
movslq %ebp, %rax
decl %ebp
movq -0x8(%r14,%rax,8), %rcx
movq %rcx, (%r14,%r12,8)
andq $0x0, -0x8(%r14,%rax,8)
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x4846
cmpb $0x0, (%rdi)
je 0x487b
movslq 0x10(%rbx), %r12
callq 0x2180
leaq (%r12,%rax), %rdi
addq $0x2, %rdi
callq 0x386e
movq %rax, %r12
movq (%rbx), %rdx
movq 0x8(%rbx), %rcx
movq %rax, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x2460
jmp 0x486c
movq 0x4793(%rip), %rax      # 0x8fe0
movq (%rax), %r13
movq (%r13), %r12
testq %r12, %r12
je 0x487b
movq %r12, %rdi
movq %rbx, %rsi
callq 0x4978
addq $0x8, %r13
testl %eax, %eax
je 0x4850
movslq %ebp, %rax
incl %ebp
movq %r12, (%r14,%rax,8)
andq $0x0, 0x8(%r14,%rax,8)
addq $0x18, %rbx
jmp 0x47c0
cmpl $0x1, 0x4a81(%rip)      # 0x930c
jle 0x48cf
movq 0x4764(%rip), %r15      # 0x8ff8
movq (%r15), %rcx
leaq 0x13d2(%rip), %rdi      # 0x5c70
pushq $0x15
popq %rsi
pushq $0x1
popq %rdx
callq 0x2480
leaq 0x13d6(%rip), %rbx      # 0x5c86
movq %r14, %r12
movq (%r12), %rdx
testq %rdx, %rdx
je 0x48cf
movq (%r15), %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2300
addq $0x8, %r12
jmp 0x48b3
movq 0x49f2(%rip), %rdi      # 0x92c8
testq %rdi, %rdi
je 0x48e4
callq 0x21a0
testl %eax, %eax
jne 0x492a
movq 0x8(%rsp), %rbx
movq (%rbx), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x22d0
movq (%rbx), %rsi
leaq 0x1129(%rip), %rdi      # 0x5a2a
jmp 0x4923
movq 0x49d6(%rip), %rsi      # 0x92e0
jmp 0x491c
movq 0x49dd(%rip), %rsi      # 0x92f0
jmp 0x491c
movq 0x49e4(%rip), %rsi      # 0x9300
leaq 0x12dd(%rip), %rdi      # 0x5c00
xorl %eax, %eax
callq 0x3696
leaq 0x10ef(%rip), %rdi      # 0x5a20
jmp 0x43d7