// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3FkActions
SQLITE_PRIVATE void sqlite3FkActions(
  Parse *pParse,                  /* Parse context */
  Table *pTab,                    /* Table being updated or deleted from */
  ExprList *pChanges,             /* Change-list for UPDATE, NULL for DELETE */
  int regOld                      /* Address of array containing old row */
){
  /* If foreign-key support is enabled, iterate through all FKs that 
  ** refer to table pTab. If there is an action associated with the FK 
  ** for this operation (either update or delete), invoke the associated 
  ** trigger sub-program.  */
  if( pParse->db->flags&SQLITE_ForeignKeys ){
    FKey *pFKey;                  /* Iterator variable */
    for(pFKey = sqlite3FkReferences(pTab); pFKey; pFKey=pFKey->pNextTo){
      Trigger *pAction = fkActionTrigger(pParse, pTab, pFKey, pChanges);
      if( pAction ){
        sqlite3CodeRowTriggerDirect(pParse, pAction, pTab, regOld, OE_Abort, 0);
      }
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdx, -0x78(%rbp)
movq %rsi, -0x58(%rbp)
movq (%rdi), %rax
testb $0x8, 0x2e(%rax)
jne 0x53d65
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %ecx, %ebx
movq %rdi, %r12
movq -0x58(%rbp), %rdi
callq 0x4a434
movq %rax, %r13
xorl %ecx, %ecx
cmpq $0x0, -0x78(%rbp)
setne %cl
movq %rcx, %rax
movq %rcx, -0x98(%rbp)
orb $0x6a, %al
movb %al, -0x29(%rbp)
pushq $0x1a
popq %r14
movl %ebx, -0x64(%rbp)
testq %r13, %r13
je 0x53d53
movq -0x98(%rbp), %rcx
movzbl 0x2d(%r13,%rcx), %eax
movl %eax, -0x30(%rbp)
testl %eax, %eax
sete %al
movq 0x30(%r13,%rcx,8), %r15
testq %r15, %r15
setne %cl
orb %al, %cl
je 0x53dcd
testq %r15, %r15
jne 0x54381
jmp 0x54399
movq (%r12), %r15
andq $0x0, -0xa8(%rbp)
andq $0x0, -0x90(%rbp)
movq %r12, %rdi
movq -0x58(%rbp), %rsi
movq %r13, %rdx
leaq -0xa8(%rbp), %rcx
leaq -0x90(%rbp), %r8
callq 0x548cc
testl %eax, %eax
jne 0x54399
cmpq $0x0, -0x78(%rbp)
setne %al
leaq 0x40(%r13), %rcx
movq %rcx, -0x70(%rbp)
movl -0x30(%rbp), %ebx
cmpl $0x6, %ebx
setne %cl
cmpl $0x9, %ebx
setne %dl
orb %al, %dl
andb %cl, %dl
movb %dl, -0x2a(%rbp)
xorl %esi, %esi
xorl %ecx, %ecx
movq $0x0, -0x48(%rbp)
movq $0x0, -0x80(%rbp)
movq $0x0, -0x60(%rbp)
movq %r13, -0x40(%rbp)
movq %r15, -0xa0(%rbp)
movslq 0x28(%r13), %rax
cmpq %rax, %rcx
jge 0x5413a
movq %rcx, -0x38(%rbp)
movups 0x3264d(%rip), %xmm0    # 0x864b8
movaps %xmm0, -0xc0(%rbp)
movups 0x3264f(%rip), %xmm0    # 0x864c8
movq -0x90(%rbp), %rcx
leaq (%rcx,%rsi), %rax
testq %rcx, %rcx
cmoveq -0x70(%rbp), %rax
movaps %xmm0, -0xf0(%rbp)
movq -0xa8(%rbp), %rcx
leaq 0x19f36(%rip), %rdi     # 0x6ddd7
testq %rcx, %rcx
je 0x53ebe
movq -0x58(%rbp), %rdx
movq 0x8(%rdx), %rdx
movq 0x8(%rcx), %rcx
movslq (%rcx,%rsi), %rcx
imulq $0x30, %rcx, %rcx
movq (%rdx,%rcx), %rdi
movq %rsi, -0x50(%rbp)
movslq (%rax), %rax
movq %rdi, -0xd0(%rbp)
movq (%r13), %rcx
movq 0x8(%rcx), %rcx
imulq $0x30, %rax, %rax
movq %rax, -0x88(%rbp)
movq (%rcx,%rax), %r15
movq %r15, -0xe0(%rbp)
callq 0x8f8e
movl %eax, -0xc8(%rbp)
movq %r15, %rdi
callq 0x8f8e
movl %eax, -0xd8(%rbp)
movq %r12, %rdi
movl %r14d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0xc0(%rbp), %rbx
movq %rbx, %r8
callq 0x36a09
movq %rax, %r15
movq %r12, %rdi
movl %r14d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0xd0(%rbp), %r13
movq %r13, %r8
callq 0x36a09
movq %r12, %rdi
pushq $0x76
popq %rsi
movq %r15, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x36a09
movq %rax, %r15
movq %r12, %rdi
movl %r14d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0xe0(%rbp), %r8
callq 0x36a09
movq %r12, %rdi
pushq $0x4c
popq %rsi
movq %r15, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x36a09
movq -0xa0(%rbp), %r15
movq %r15, %rdi
movq -0x48(%rbp), %rsi
movq %rax, %rdx
callq 0x45ef0
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x78(%rbp)
je 0x5404b
movq %r12, %rdi
movl %r14d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x36a09
movq %rax, %r15
movq %r12, %rdi
movl %r14d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r13, %r8
callq 0x36a09
movq %r12, %rdi
pushq $0x76
popq %rbx
movl %ebx, %esi
movq %r15, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x36a09
movq %rax, %r15
movq %r12, %rdi
movl %r14d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0xf0(%rbp), %r8
callq 0x36a09
movl %r14d, %esi
movq %rax, %r14
movq %r12, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r13, %r8
callq 0x36a09
movq %r12, %rdi
movl %ebx, %esi
movq %r14, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x36a09
movq %r12, %rdi
pushq $0x46
popq %rsi
movq %r15, %rdx
movq -0xa0(%rbp), %r15
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x36a09
movq %r15, %rdi
movq -0x60(%rbp), %rsi
movq %rax, %rdx
callq 0x45ef0
movl -0x30(%rbp), %ebx
jmp 0x54052
movl -0x30(%rbp), %ebx
movq -0x60(%rbp), %rax
movq -0x38(%rbp), %rcx
cmpb $0x0, -0x2a(%rbp)
movq -0x50(%rbp), %rsi
movq %rax, -0x60(%rbp)
je 0x540b3
cmpl $0x8, %ebx
je 0x540bd
cmpl $0x9, %ebx
pushq $0x1a
popq %r14
jne 0x540e9
movq %r12, %rdi
movl %r14d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0xf0(%rbp), %r8
callq 0x36a09
movq %rax, %r14
movq %r12, %rdi
pushq $0x1a
popq %rsi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0xd0(%rbp), %r8
callq 0x36a09
movq %r12, %rdi
pushq $0x76
popq %rsi
movq %r14, %rdx
pushq $0x1a
popq %r14
movq %rax, %rcx
jmp 0x540f3
movq -0x40(%rbp), %r13
pushq $0x1a
popq %r14
jmp 0x5412e
movq -0x40(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq -0x88(%rbp), %rcx
movq 0x8(%rax,%rcx), %rsi
testq %rsi, %rsi
pushq $0x1a
popq %r14
je 0x540e9
movq %r15, %rdi
xorl %edx, %edx
callq 0x440d6
jmp 0x540fb
movq %r12, %rdi
pushq $0x62
popq %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x36a09
movq -0x40(%rbp), %r13
movq %r12, %rdi
movq -0x80(%rbp), %rsi
movq %rax, %rdx
callq 0x3b491
movq %r12, %rdi
movq %rax, -0x80(%rbp)
movq %rax, %rsi
leaq -0xe0(%rbp), %rdx
xorl %ecx, %ecx
callq 0x3b53e
movq -0x50(%rbp), %rsi
movq -0x38(%rbp), %rcx
incq %rcx
addq $0x4, %rsi
jmp 0x53e53
movq -0x90(%rbp), %rsi
movq %r15, %rdi
callq 0x968b
movq (%r13), %rax
movq (%rax), %r14
movq %r14, %rdi
callq 0x8f8e
movl %eax, %ecx
cmpl $0x6, %ebx
movq %r14, -0x88(%rbp)
jne 0x541f8
movq %r14, -0xc0(%rbp)
movq %rcx, -0x38(%rbp)
movl %ecx, -0xb8(%rbp)
movq %r15, %rdi
pushq $0x38
popq %rsi
leaq 0x17722(%rip), %rdx     # 0x6b8aa
callq 0x3b590
testq %rax, %rax
leaq -0xc0(%rbp), %rbx
je 0x5419d
movb $0x2, 0x1(%rax)
movq %r12, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x3b491
movq %rax, %r14
movq %r15, %rdi
xorl %esi, %esi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x3b730
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
andl $0x0, 0x8(%rsp)
andq $0x0, (%rsp)
movq %r12, %rdi
movq %r14, %rsi
movq %rax, %rdx
movq -0x48(%rbp), %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x3b357
movq %rax, -0x50(%rbp)
movq $0x0, -0x48(%rbp)
movq -0x38(%rbp), %rcx
jmp 0x54200
movq $0x0, -0x50(%rbp)
movb 0x152(%r15), %al
movb %al, -0x38(%rbp)
movb $0x0, 0x152(%r15)
movq %rcx, %r14
leal 0x99(%rcx), %esi
movq %r15, %rdi
callq 0xf4ae
movq %r15, %rbx
movq %rax, %r15
testq %rax, %rax
je 0x542cc
movl %r14d, %edx
leaq 0x48(%r15), %rcx
movq %rcx, -0x70(%rbp)
movq %rcx, 0x38(%r15)
movq %r15, %rdi
addq $0x98, %rdi
movq %rdi, 0x60(%r15)
movl %r14d, 0x68(%r15)
movq -0x88(%rbp), %rsi
callq 0x82c0
movq %rbx, %rdi
movq -0x48(%rbp), %rsi
pushq $0x1
popq %r14
movl %r14d, %edx
callq 0x440d6
movq %rax, 0x70(%r15)
movq %rbx, %rdi
movq -0x80(%rbp), %rsi
movl %r14d, %edx
callq 0x44502
movq %rax, 0x78(%r15)
movq %rbx, %rdi
movq -0x50(%rbp), %rsi
movl %r14d, %edx
callq 0x443e4
movq %rax, 0x58(%r15)
movq -0x60(%rbp), %rdx
testq %rdx, %rdx
je 0x542da
movq %r12, %rdi
pushq $0x13
popq %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x36a09
movl %r14d, %edx
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x440d6
movq %rax, 0x18(%r15)
jmp 0x542dd
movq $0x0, -0x70(%rbp)
movq -0x60(%rbp), %r14
jmp 0x542dd
xorl %r14d, %r14d
movb -0x38(%rbp), %al
movb %al, 0x152(%rbx)
movq %rbx, %rdi
movq -0x48(%rbp), %rsi
callq 0x2f476
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2f476
movq %rbx, %rdi
movq -0x80(%rbp), %rsi
callq 0x2f527
movq %rbx, %rdi
movq -0x50(%rbp), %rsi
callq 0x2f500
cmpb $0x1, 0x50(%rbx)
jne 0x5432f
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3186d
movl -0x64(%rbp), %ebx
pushq $0x1a
popq %r14
jmp 0x54399
movl -0x30(%rbp), %eax
cmpl $0x6, %eax
pushq $0x1a
popq %r14
je 0x5434b
cmpl $0x9, %eax
jne 0x54347
cmpq $0x0, -0x78(%rbp)
je 0x5434f
movb $0x6b, %al
jmp 0x54351
movb $0x74, %al
jmp 0x54351
movb $0x6a, %al
movq -0x70(%rbp), %rcx
movb %al, (%rcx)
movq %r15, 0x8(%rcx)
movq -0x58(%rbp), %rax
movq 0x68(%rax), %rax
movq %rax, 0x28(%r15)
movq %rax, 0x30(%r15)
movq -0x98(%rbp), %rax
movq %r15, 0x30(%r13,%rax,8)
movb -0x29(%rbp), %al
movb %al, 0x10(%r15)
movl -0x64(%rbp), %ebx
movq %r12, %rdi
movq %r15, %rsi
movq -0x58(%rbp), %rdx
movl %ebx, %ecx
pushq $0x2
popq %r8
xorl %r9d, %r9d
callq 0x54b2e
movq 0x18(%r13), %r13
jmp 0x53d96