// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3BtreeCreateTable
SQLITE_PRIVATE int sqlite3BtreeCreateTable(Btree *p, int *piTable, int flags){
  int rc;
  sqlite3BtreeEnter(p);
  rc = btreeCreateTable(p, piTable, flags);
  sqlite3BtreeLeave(p);
  return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %edx, %r13d
movq %rsi, %r14
movq (%rdi), %rax
movq 0x8(%rdi), %r12
movq %rax, 0x8(%r12)
cmpb $0x0, 0x21(%r12)
je 0x2cb9b
movq %rdi, %r15
movq %r14, -0x40(%rbp)
movq 0x10(%r12), %rbx
testq %rbx, %rbx
je 0x2caa5
movq 0x28(%rbx), %rdi
callq 0xa2e8
movq $0x0, 0x28(%rbx)
movq 0x10(%rbx), %rbx
jmp 0x2ca89
movq (%r15), %rax
movq 0x8(%r15), %rcx
movq %rax, 0x8(%rcx)
movq 0x18(%rcx), %rax
movq 0x50(%rax), %rax
movl 0x34(%rax), %edi
bswapl %edi
movl %edi, -0x44(%rbp)
movl 0x67d7a(%rip), %ecx     # 0x94840
movl $0xcccccccd, %r8d       # imm = 0xCCCCCCCD
movl %edi, %r14d
leal 0x1(%r14), %edi
movl $0x0, %eax
cmpl $0x2, %edi
jb 0x2cb16
movl 0x34(%r12), %r9d
imulq %r8, %r9
shrq $0x22, %r9
incl %r9d
leal -0x1(%r14), %esi
movl %esi, %eax
xorl %edx, %edx
divl %r9d
subl %edx, %esi
movl %ecx, %eax
xorl %edx, %edx
divl 0x30(%r12)
leal 0x1(%rsi), %edx
xorl %r9d, %r9d
cmpl %eax, %edx
sete %r9b
leal (%rsi,%r9), %eax
addl $0x2, %eax
cmpl %eax, %edi
je 0x2cacc
movl %ecx, %eax
xorl %edx, %edx
divl 0x30(%r12)
cmpl %eax, %r14d
je 0x2cacc
movq %r13, -0x50(%rbp)
leal 0x1(%r14), %r13d
movl %r13d, -0x44(%rbp)
leaq -0x60(%rbp), %rsi
leaq -0x58(%rbp), %rdx
movq %r12, %rdi
movl %r13d, %ecx
movl $0x1, %r8d
callq 0x21e3f
movl %eax, -0x2c(%rbp)
testl %eax, %eax
je 0x2cbbe
movl %eax, %ebx
xorl %eax, %eax
movq -0x40(%rbp), %r14
movq -0x50(%rbp), %r13
testb %al, %al
je 0x2cb8a
andl $0x1, %r13d
leal 0xa(%r13,%r13,2), %esi
movq -0x38(%rbp), %rbx
movq %rbx, %rdi
callq 0x20900
movq 0x68(%rbx), %rdi
callq 0xdcd4
movl -0x44(%rbp), %eax
movl %eax, (%r14)
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x38(%rbp), %rsi
leaq -0x44(%rbp), %rdx
movq %r12, %rdi
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0x21e3f
movl %eax, %ebx
movl %eax, -0x2c(%rbp)
testl %eax, %eax
jne 0x2cb8a
jmp 0x2cb64
movl -0x58(%rbp), %ecx
leal -0x1(%rcx), %eax
cmpl %r14d, %eax
jne 0x2cbd3
movq -0x60(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x2cc37
movq %rcx, -0x68(%rbp)
movb $0x0, -0x2d(%rbp)
movl $0x0, -0x54(%rbp)
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21124
movl %eax, %ebx
movl %eax, -0x2c(%rbp)
movq -0x60(%rbp), %rax
testq %rax, %rax
je 0x2cc05
movq 0x68(%rax), %rdi
callq 0xdcd4
testl %ebx, %ebx
je 0x2cc0e
xorl %r14d, %r14d
jmp 0x2cc2b
leaq -0x38(%rbp), %rdx
xorl %r14d, %r14d
movq %r12, %rdi
movl %r13d, %esi
xorl %ecx, %ecx
callq 0x2035c
movl %eax, -0x2c(%rbp)
testl %eax, %eax
je 0x2cca5
movl %eax, %ebx
testb %r14b, %r14b
je 0x2cb56
movl %ebx, %r14d
leaq -0x2c(%rbp), %rbx
movq %r12, %rdi
movl %r13d, %esi
movl $0x1, %edx
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x22b09
movl (%rbx), %ebx
testl %ebx, %ebx
jne 0x2cc6f
movq %r15, %rdi
movl $0x4, %esi
movl %r13d, %edx
callq 0xdd57
movl %eax, -0x2c(%rbp)
testl %eax, %eax
je 0x2cc9b
movl %eax, %ebx
movq -0x38(%rbp), %rax
testq %rax, %rax
movq -0x50(%rbp), %r13
je 0x2cc90
movq -0x40(%rbp), %r14
movq 0x68(%rax), %rdi
callq 0xdcd4
xorl %eax, %eax
jmp 0x2cb60
xorl %eax, %eax
movq -0x40(%rbp), %r14
jmp 0x2cb60
movb $0x1, %al
movl %r14d, %ebx
jmp 0x2cb58
leaq -0x2d(%rbp), %rbx
leaq -0x54(%rbp), %rcx
movq %r12, %rdi
movl %r13d, %esi
movq %rbx, %rdx
callq 0x21d4e
movl %eax, -0x2c(%rbp)
movb (%rbx), %r14b
leal -0x1(%r14), %eax
cmpb $0x1, %al
ja 0x2ccef
leaq 0x4cb44(%rip), %rsi     # 0x79814
leaq 0x4c862(%rip), %rcx     # 0x79539
movl $0xb, %edi
movl $0xde2d, %edx           # imm = 0xDE2D
xorl %eax, %eax
callq 0xb8cc
movl $0xb, -0x2c(%rbp)
movl -0x2c(%rbp), %ebx
movq -0x38(%rbp), %rax
testl %ebx, %ebx
je 0x2cd14
testq %rax, %rax
je 0x2cc09
addq $0x68, %rax
movq (%rax), %rdi
callq 0xdcd4
jmp 0x2cc09
movl -0x54(%rbp), %ecx
movzbl %r14b, %edx
movq %r12, %rdi
movq %rax, %rbx
movq %rax, %rsi
movq -0x68(%rbp), %r8
xorl %r9d, %r9d
callq 0x22773
movq %rbx, %rcx
movl %eax, %ebx
movl %eax, -0x2c(%rbp)
testq %rcx, %rcx
je 0x2cd46
movq 0x68(%rcx), %rdi
callq 0xdcd4
testl %ebx, %ebx
jne 0x2cc09
leaq -0x38(%rbp), %rdx
xorl %r14d, %r14d
movq %r12, %rdi
movl %r13d, %esi
xorl %ecx, %ecx
callq 0x2035c
movl %eax, -0x2c(%rbp)
testl %eax, %eax
jne 0x2cc29
movq -0x38(%rbp), %rax
movq %rax, %r14
movq 0x68(%rax), %rdi
callq 0xdebf
movl %eax, -0x2c(%rbp)
testl %eax, %eax
je 0x2cd97
movl %eax, %ebx
testq %r14, %r14
je 0x2cc09
movq %r14, %rax
jmp 0x2cd03
movb $0x1, %r14b
jmp 0x2cc2b