// File: /workspace/github_c_makefile_star2_O1/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, -0x50(%rbp)
movq (%rdi), %rax
testb $0x8, 0x2e(%rax)
je 0x5d93d
movl %ecx, %r15d
movq %rdi, %r12
movq -0x50(%rbp), %rdi
callq 0x4fce9
testq %rax, %rax
je 0x5d93d
movq %rax, %rbx
xorl %ecx, %ecx
cmpq $0x0, -0x78(%rbp)
setne %cl
movq %rcx, %rax
movq %rcx, -0xc0(%rbp)
orb $0x6a, %al
movb %al, -0x29(%rbp)
movl %r15d, -0x44(%rbp)
movq %r12, -0x88(%rbp)
movq -0xc0(%rbp), %rcx
movzbl 0x2d(%rbx,%rcx), %edx
testl %edx, %edx
sete %al
movq 0x30(%rbx,%rcx,8), %r14
testq %r14, %r14
setne %cl
orb %al, %cl
jne 0x5d910
movl %edx, -0x30(%rbp)
movq %rbx, %rdx
movq (%r12), %rbx
xorl %eax, %eax
movq %rax, -0xd8(%rbp)
movq %rax, -0x90(%rbp)
movq %r12, %rdi
movq -0x50(%rbp), %rsi
movq %rdx, %r12
leaq -0xd8(%rbp), %rcx
leaq -0x90(%rbp), %r8
callq 0x5df16
movl $0x0, %r14d
testl %eax, %eax
jne 0x5d906
movq %rbx, -0x38(%rbp)
movq %r12, %rbx
cmpl $0x0, 0x28(%r12)
movq %r12, -0x68(%rbp)
jle 0x5d643
cmpq $0x0, -0x78(%rbp)
setne %al
leaq 0x40(%rbx), %rcx
movq %rcx, -0x58(%rbp)
movl -0x30(%rbp), %edx
cmpl $0x6, %edx
setne %cl
cmpl $0x9, %edx
setne %dl
orb %al, %dl
andb %cl, %dl
movb %dl, -0x80(%rbp)
xorl %r15d, %r15d
movq $0x0, -0x70(%rbp)
movq $0x0, -0x60(%rbp)
movq $0x0, -0x40(%rbp)
leaq -0xa0(%rbp), %r14
movups 0x36126(%rip), %xmm0    # 0x93468
movaps %xmm0, -0xa0(%rbp)
movups 0x36128(%rip), %xmm0    # 0x93478
movq -0x90(%rbp), %rax
testq %rax, %rax
leaq (%rax,%r15,4), %rax
cmoveq -0x58(%rbp), %rax
movaps %xmm0, -0xb0(%rbp)
movq -0xd8(%rbp), %rcx
leaq 0x1ea3f(%rip), %rdx     # 0x7bdb7
testq %rcx, %rcx
je 0x5d399
movq -0x50(%rbp), %rdx
movq 0x8(%rdx), %rdx
movq 0x8(%rcx), %rcx
movslq (%rcx,%r15,4), %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
movq (%rdx,%rcx), %rdx
movslq (%rax), %rax
movq %rdx, -0xd0(%rbp)
movq (%rbx), %rcx
movq 0x8(%rcx), %rcx
leaq (%rax,%rax,2), %r13
shlq $0x4, %r13
movq (%rcx,%r13), %rcx
movq %rcx, -0xe8(%rbp)
xorl %eax, %eax
movl $0x0, %esi
testq %rdx, %rdx
je 0x5d3df
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
incl %esi
cmpb $0x0, (%rdx)
leaq 0x1(%rdx), %rdx
jne 0x5d3ce
andl $0x3fffffff, %esi       # imm = 0x3FFFFFFF
movl %esi, -0xc8(%rbp)
testq %rcx, %rcx
je 0x5d3ff
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
incl %eax
cmpb $0x0, (%rcx)
leaq 0x1(%rcx), %rcx
jne 0x5d3ef
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movl %eax, -0xe0(%rbp)
movq -0x88(%rbp), %r12
movq %r12, %rdi
movl $0x1a, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r14, %r8
callq 0x39f77
movq %r14, %rbx
movq %rax, %r14
movq %r12, %rdi
movl $0x1a, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0xd0(%rbp), %r8
callq 0x39f77
movq %r12, %rdi
movl $0x76, %esi
movq %r14, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x39f77
movq %rax, %r14
movq %r12, %rdi
movl $0x1a, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0xe8(%rbp), %r8
callq 0x39f77
movq %r12, %rdi
movl $0x4c, %esi
movq %r14, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x39f77
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq %rax, %rdx
callq 0x4a740
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x78(%rbp)
je 0x5d568
movq %r12, %rdi
movl $0x1a, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x39f77
movq %rax, %r14
movq %r12, %rdi
movl $0x1a, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0xd0(%rbp), %r8
callq 0x39f77
movq %r12, %rdi
movl $0x76, %esi
movq %r14, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x39f77
movq %rax, %r14
movq %r12, %rdi
movl $0x1a, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0xb0(%rbp), %r8
callq 0x39f77
movq %rax, %rbx
movq %r12, %rdi
movl $0x1a, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0xd0(%rbp), %r8
callq 0x39f77
movq %r12, %rdi
movl $0x76, %esi
movq %rbx, %rdx
movq -0x68(%rbp), %rbx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x39f77
movq %r12, %rdi
movl $0x46, %esi
movq %r14, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x39f77
movq -0x38(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq %rax, %rdx
callq 0x4a740
movq %rax, -0x70(%rbp)
movl -0x30(%rbp), %eax
jmp 0x5d56f
movl -0x30(%rbp), %eax
movq -0x68(%rbp), %rbx
cmpb $0x0, -0x80(%rbp)
je 0x5d5cd
cmpl $0x8, %eax
leaq -0xa0(%rbp), %r14
je 0x5d5d6
cmpl $0x9, %eax
jne 0x5d5f6
movq %r12, %rdi
movl $0x1a, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0xb0(%rbp), %r8
callq 0x39f77
movq %rax, %rbx
movq %r12, %rdi
movl $0x1a, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0xd0(%rbp), %r8
callq 0x39f77
movq %r12, %rdi
movl $0x76, %esi
movq %rbx, %rdx
movq -0x68(%rbp), %rbx
movq %rax, %rcx
jmp 0x5d602
leaq -0xa0(%rbp), %r14
jmp 0x5d631
movq (%rbx), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax,%r13), %rsi
testq %rsi, %rsi
je 0x5d5f6
movq -0x38(%rbp), %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x48163
jmp 0x5d60a
movq %r12, %rdi
movl $0x62, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x39f77
movq %r12, %rdi
movq -0x60(%rbp), %rsi
movq %rax, %rdx
callq 0x3d42f
movq %r12, %rdi
movq %rax, -0x60(%rbp)
movq %rax, %rsi
leaq -0xe8(%rbp), %rdx
xorl %ecx, %ecx
callq 0x3d4e5
incq %r15
movslq 0x28(%rbx), %rax
cmpq %rax, %r15
jl 0x5d33b
jmp 0x5d669
movq $0x0, -0x40(%rbp)
movq $0x0, -0x60(%rbp)
movq $0x0, -0x70(%rbp)
leaq -0xa0(%rbp), %r14
movq -0x88(%rbp), %r12
movq -0x90(%rbp), %rsi
movq -0x38(%rbp), %rdi
callq 0x9c3a
movq (%rbx), %rax
movq (%rax), %rcx
testq %rcx, %rcx
je 0x5d6a2
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movq %rcx, %rax
incl %r15d
cmpb $0x0, (%rax)
leaq 0x1(%rax), %rax
jne 0x5d68d
andl $0x3fffffff, %r15d      # imm = 0x3FFFFFFF
jmp 0x5d6a5
xorl %r15d, %r15d
movl -0x30(%rbp), %eax
cmpl $0x6, %eax
movq %rcx, -0x80(%rbp)
jne 0x5d75c
movq %rcx, -0xb0(%rbp)
movl %r15d, -0xa8(%rbp)
leaq 0x1c1c0(%rip), %rax     # 0x7988a
movq %rax, -0xa0(%rbp)
movl $0x1d, -0x98(%rbp)
movq -0x38(%rbp), %rdi
movl $0x38, %esi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x4a949
testq %rax, %rax
je 0x5d6f7
movb $0x2, 0x1(%rax)
movq %r12, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x3d42f
movq %rax, %rbx
movq -0x38(%rbp), %r13
movq %r13, %rdi
xorl %esi, %esi
leaq -0xb0(%rbp), %rdx
xorl %ecx, %ecx
callq 0x3d75b
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
movl $0x0, 0x8(%rsp)
movq $0x0, (%rsp)
movq %r12, %rdi
movq %rbx, %rsi
movq %rax, %rdx
movq -0x40(%rbp), %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x3d28c
movq %rax, -0x58(%rbp)
movq $0x0, -0x40(%rbp)
jmp 0x5d768
movq $0x0, -0x58(%rbp)
movq -0x38(%rbp), %r13
movb 0x152(%r13), %al
movb %al, -0x38(%rbp)
movb $0x0, 0x152(%r13)
leal 0x99(%r15), %esi
movq %r13, %rdi
movl %esi, %ebx
callq 0x115e9
movq %rax, %r14
testq %rax, %rax
je 0x5d847
movl %ebx, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x8200
movl %r15d, %edx
leaq 0x48(%r14), %rax
movq %rax, -0xb8(%rbp)
movq %rax, 0x38(%r14)
movq %r14, %rdi
addq $0x98, %rdi
movq %rdi, 0x60(%r14)
movl %r15d, 0x68(%r14)
movq -0x80(%rbp), %rsi
callq 0x82f0
movq %r13, %rdi
movq -0x40(%rbp), %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x48163
movq %rax, 0x70(%r14)
movq %r13, %rdi
movq -0x60(%rbp), %rsi
movl $0x1, %edx
callq 0x48556
movq %rax, 0x78(%r14)
movq %r13, %rdi
movq -0x58(%rbp), %rsi
movl $0x1, %edx
callq 0x4841f
movq %rax, 0x58(%r14)
movq -0x70(%rbp), %rdx
testq %rdx, %rdx
je 0x5d854
movq %r12, %rdi
movl $0x13, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x39f77
movq %rax, %rbx
movq %r13, %rdi
movq %rax, %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x48163
movq %rax, 0x18(%r14)
jmp 0x5d856
xorl %r12d, %r12d
movl -0x44(%rbp), %r15d
movq -0x70(%rbp), %rbx
jmp 0x5d861
xorl %ebx, %ebx
movl -0x44(%rbp), %r15d
movq -0xb8(%rbp), %r12
movb -0x38(%rbp), %al
movb %al, 0x152(%r13)
movq %r13, %rdi
movq -0x40(%rbp), %rsi
callq 0x34068
movq %r13, %rdi
movq %rbx, %rsi
callq 0x34068
movq %r13, %rdi
movq -0x60(%rbp), %rsi
callq 0x3410b
movq %r13, %rdi
movq -0x58(%rbp), %rsi
callq 0x340e4
cmpb $0x1, 0x50(%r13)
jne 0x5d8b5
movq %r13, %rdi
movq %r14, %rsi
callq 0x36862
xorl %r14d, %r14d
movq -0x68(%rbp), %r12
jmp 0x5d906
movl -0x30(%rbp), %eax
cmpl $0x6, %eax
je 0x5d8cd
cmpl $0x9, %eax
jne 0x5d8c9
cmpq $0x0, -0x78(%rbp)
je 0x5d8d1
movb $0x6b, %al
jmp 0x5d8d3
movb $0x74, %al
jmp 0x5d8d3
movb $0x6a, %al
movb %al, (%r12)
movq %r14, 0x8(%r12)
movq -0x50(%rbp), %rax
movq 0x68(%rax), %rax
movq %rax, 0x28(%r14)
movq %rax, 0x30(%r14)
movq -0x68(%rbp), %rcx
movq -0xc0(%rbp), %rax
movq %rcx, %r12
movq %r14, 0x30(%rcx,%rax,8)
movb -0x29(%rbp), %al
movb %al, 0x10(%r14)
movq %r12, %rbx
movq -0x88(%rbp), %r12
testq %r14, %r14
je 0x5d930
movq %r12, %rdi
movq %r14, %rsi
movq -0x50(%rbp), %rdx
movl %r15d, %ecx
movl $0x2, %r8d
xorl %r9d, %r9d
callq 0x5e220
movq 0x18(%rbx), %rbx
testq %rbx, %rbx
jne 0x5d273
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq