// File: /workspace/github_c_makefile_star2_O3/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 $0x38, %rsp
movl %edx, %r14d
movq %rsi, %rbx
movq (%rdi), %rax
movq 0x8(%rdi), %r12
movq %rax, 0x8(%r12)
cmpb $0x0, 0x21(%r12)
je 0x2d4d3
movq %rdi, %r15
movq %rbx, -0x60(%rbp)
movq 0x10(%r12), %rbx
movq %r12, %rcx
testq %rbx, %rbx
je 0x2d3b9
movq 0x28(%rbx), %rdi
callq 0xa3c7
movq $0x0, 0x28(%rbx)
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
jne 0x2d398
movq (%r15), %rax
movq 0x8(%r15), %rcx
movq %r14, -0x50(%rbp)
movq %rax, 0x8(%rcx)
movq 0x18(%rcx), %rax
movq 0x50(%rax), %rax
movl 0x34(%rax), %edi
bswapl %edi
movl 0x6746c(%rip), %ecx     # 0x94840
movl $0xcccccccd, %r8d       # imm = 0xCCCCCCCD
movl %edi, %r14d
leal 0x1(%r14), %edi
movl $0x0, %eax
cmpl $0x2, %edi
jb 0x2d424
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 0x2d3da
movl %ecx, %eax
xorl %edx, %edx
divl 0x30(%r12)
cmpl %eax, %r14d
je 0x2d3da
leal 0x1(%r14), %ebx
movl %ebx, -0x40(%rbp)
leaq -0x58(%rbp), %rsi
leaq -0x44(%rbp), %rdx
movq %r12, %rdi
movl %ebx, %ecx
movl $0x1, %r8d
callq 0x21af9
movl %eax, %r13d
movl %eax, -0x30(%rbp)
testl %eax, %eax
jne 0x2d570
movl -0x44(%rbp), %ecx
leal -0x1(%rcx), %eax
cmpl %r14d, %eax
jne 0x2d525
movq -0x58(%rbp), %r14
movq %r14, -0x38(%rbp)
leaq -0x30(%rbp), %r13
movq %r12, %rdi
movl %ebx, %esi
movl $0x1, %edx
xorl %ecx, %ecx
movq %r13, %r8
callq 0x22705
movl (%r13), %r13d
testl %r13d, %r13d
jne 0x2d4bc
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movl $0x4, %edx
movl %ebx, %ecx
callq 0xde56
movl %eax, -0x30(%rbp)
testl %eax, %eax
je 0x2d582
movl %eax, %r13d
testq %r14, %r14
je 0x2d570
movq 0x68(%r14), %rdi
callq 0xddd3
jmp 0x2d570
leaq -0x38(%rbp), %rsi
leaq -0x40(%rbp), %rdx
movq %r12, %rdi
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0x21af9
movl %eax, %r13d
movl %eax, -0x30(%rbp)
testl %eax, %eax
jne 0x2d570
movq %r14, -0x50(%rbp)
movq -0x38(%rbp), %r14
movq -0x50(%rbp), %rax
andl $0x1, %eax
leal (%rax,%rax,2), %esi
addl $0xa, %esi
movq %r14, %rdi
callq 0x20600
movq 0x68(%r14), %rdi
callq 0xddd3
movl -0x40(%rbp), %eax
movl %eax, (%rbx)
xorl %r13d, %r13d
jmp 0x2d570
movq %rcx, %r14
movb $0x0, -0x29(%rbp)
movl $0x0, -0x3c(%rbp)
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x20df0
movl %eax, %r13d
movq -0x58(%rbp), %rax
testq %rax, %rax
je 0x2d554
movq 0x68(%rax), %rdi
callq 0xddd3
testl %r13d, %r13d
jne 0x2d570
leaq -0x38(%rbp), %rdx
movq %r12, %rdi
movl %ebx, %esi
xorl %ecx, %ecx
callq 0x20068
testl %eax, %eax
je 0x2d58b
movl %eax, %r13d
movl %r13d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x60(%rbp), %rbx
jmp 0x2d4fd
leaq -0x29(%rbp), %rdx
leaq -0x3c(%rbp), %rcx
movq %r12, %rdi
movl %ebx, %esi
callq 0x21a08
movl %eax, %r13d
leaq -0x29(%rbp), %rax
movb (%rax), %al
leal -0x1(%rax), %ecx
cmpb $0x1, %cl
ja 0x2d5d5
leaq 0x4c25f(%rip), %rsi     # 0x79814
leaq 0x4bf7d(%rip), %rcx     # 0x79539
movl $0xb, %r13d
movl $0xb, %edi
movl $0xde2d, %edx           # imm = 0xDE2D
xorl %eax, %eax
callq 0xb9c7
jmp 0x2d5da
testl %r13d, %r13d
je 0x2d5ef
movq -0x38(%rbp), %r14
testq %r14, %r14
je 0x2d570
addq $0x68, %r14
movq (%r14), %rdi
jmp 0x2d4c9
movq -0x38(%rbp), %r13
movl -0x3c(%rbp), %ecx
movzbl %al, %edx
movq %r12, %rdi
movq %r13, %rsi
movl %r14d, %r8d
xorl %r9d, %r9d
callq 0x22377
movq %r13, %rcx
movl %eax, %r13d
testq %rcx, %rcx
je 0x2d61e
movq 0x68(%rcx), %rdi
callq 0xddd3
testl %r13d, %r13d
jne 0x2d570
leaq -0x38(%rbp), %rdx
movq %r12, %rdi
movl %ebx, %esi
xorl %ecx, %ecx
callq 0x20068
testl %eax, %eax
jne 0x2d56d
movq -0x38(%rbp), %r14
movq 0x68(%r14), %rdi
callq 0xdfbf
movl %eax, -0x30(%rbp)
testl %eax, %eax
je 0x2d47a
movl %eax, %r13d
jmp 0x2d5e3