// File: /workspace/github_c_makefile_star2_O3/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, -0x80(%rbp)
movq %rsi, -0x50(%rbp)
movq (%rdi), %rax
testb $0x8, 0x2e(%rax)
je 0x5d7d6
movl %ecx, %r15d
movq %rdi, %r12
movq -0x50(%rbp), %rdi
callq 0x4fce3
testq %rax, %rax
je 0x5d7d6
movq %rax, %rbx
xorl %edx, %edx
cmpq $0x0, -0x80(%rbp)
setne %dl
movq %rdx, %rcx
movq %rdx, -0xc8(%rbp)
orb $0x6a, %cl
movb %cl, -0x29(%rbp)
movl %r15d, -0x44(%rbp)
movq -0xc8(%rbp), %rcx
movzbl 0x2d(%rbx,%rcx), %r13d
testl %r13d, %r13d
sete %dl
movq 0x30(%rbx,%rcx,8), %r14
testq %r14, %r14
setne %cl
orb %dl, %cl
movq %rbx, -0x88(%rbp)
je 0x5d145
testq %r14, %r14
jne 0x5d7a7
jmp 0x5d7c2
movq (%r12), %r14
xorl %eax, %eax
movq %rax, -0xe0(%rbp)
movq %rax, -0x98(%rbp)
movq %r12, %rdi
movq -0x50(%rbp), %rsi
movq %rbx, %rdx
leaq -0xe0(%rbp), %rcx
leaq -0x98(%rbp), %r8
callq 0x5ddac
testl %eax, %eax
jne 0x5d7c2
movq %r14, -0x38(%rbp)
cmpl $0x0, 0x28(%rbx)
movl %r13d, -0x6c(%rbp)
movq %rbx, %r14
jle 0x5d4e8
cmpq $0x0, -0x80(%rbp)
setne %al
leaq 0x40(%r14), %rcx
movq %rcx, -0x90(%rbp)
cmpl $0x6, %r13d
setne %cl
cmpl $0x9, %r13d
setne %dl
orb %al, %dl
andb %cl, %dl
movb %dl, -0x78(%rbp)
xorl %r15d, %r15d
movq $0x0, -0x68(%rbp)
movq $0x0, -0x58(%rbp)
movq $0x0, -0x40(%rbp)
movups 0x3628b(%rip), %xmm0    # 0x93468
movaps %xmm0, -0xc0(%rbp)
movups 0x3628d(%rip), %xmm0    # 0x93478
movq -0x98(%rbp), %rax
testq %rax, %rax
leaq (%rax,%r15,4), %rax
cmoveq -0x90(%rbp), %rax
movaps %xmm0, -0xb0(%rbp)
movq -0xe0(%rbp), %rcx
leaq 0x1eba1(%rip), %rdx     # 0x7bdb7
testq %rcx, %rcx
je 0x5d237
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, -0xd8(%rbp)
movq (%r14), %rcx
movq 0x8(%rcx), %rcx
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
movq %rax, -0x60(%rbp)
movq (%rcx,%rax), %rcx
movq %rcx, -0xf0(%rbp)
xorl %eax, %eax
movl $0x0, %esi
testq %rdx, %rdx
je 0x5d281
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
incl %esi
cmpb $0x0, (%rdx)
leaq 0x1(%rdx), %rdx
jne 0x5d270
andl $0x3fffffff, %esi       # imm = 0x3FFFFFFF
movl %esi, -0xd0(%rbp)
testq %rcx, %rcx
je 0x5d2a1
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
incl %eax
cmpb $0x0, (%rcx)
leaq 0x1(%rcx), %rcx
jne 0x5d291
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movl %eax, -0xe8(%rbp)
movq %r12, %rdi
movl $0x1a, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0xc0(%rbp), %r14
movq %r14, %r8
callq 0x3a637
movq %rax, %rbx
movq %r12, %rdi
movl $0x1a, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r12, %r13
leaq -0xd8(%rbp), %r8
callq 0x3a637
movq %r12, %rdi
movl $0x76, %esi
movq %rbx, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x3a637
movq %rax, %rbx
movq %r12, %rdi
movl $0x1a, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0xf0(%rbp), %r8
callq 0x3a637
movq %r12, %rdi
movl $0x4c, %esi
movq %rbx, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x3a637
movq -0x38(%rbp), %r12
movq %r12, %rdi
movq -0x40(%rbp), %rsi
movq %rax, %rdx
callq 0x4a8e5
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x80(%rbp)
je 0x5d40f
movq %r13, %rdi
movl $0x1a, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r14, %r8
callq 0x3a637
movq %rax, %rbx
movq %r13, %rdi
movl $0x1a, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0xd8(%rbp), %r8
callq 0x3a637
movq %r13, %rdi
movl $0x76, %esi
movq %rbx, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x3a637
movq %rax, %r14
movq %r13, %rdi
movl $0x1a, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0xb0(%rbp), %r8
callq 0x3a637
movq %rax, %rbx
movq %r13, %rdi
movl $0x1a, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0xd8(%rbp), %r8
callq 0x3a637
movq %r13, %rdi
movl $0x76, %esi
movq %rbx, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x3a637
movq %r13, %rdi
movl $0x46, %esi
movq %r14, %rdx
movq -0x88(%rbp), %r14
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x3a637
movq %r12, %rdi
movq -0x68(%rbp), %rsi
movq %rax, %rdx
callq 0x4a8e5
movq %rax, -0x68(%rbp)
movq %r13, %r12
jmp 0x5d419
movq %r13, %r12
movq -0x88(%rbp), %r14
cmpb $0x0, -0x78(%rbp)
movl -0x6c(%rbp), %r13d
je 0x5d4d6
cmpl $0x8, %r13d
je 0x5d476
cmpl $0x9, %r13d
jne 0x5d49a
movq %r12, %rdi
movl $0x1a, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0xb0(%rbp), %r8
callq 0x3a637
movq %rax, %rbx
movq %r12, %rdi
movl $0x1a, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0xd8(%rbp), %r8
callq 0x3a637
movq %r12, %rdi
movl $0x76, %esi
movq %rbx, %rdx
movq %rax, %rcx
jmp 0x5d4a6
movq (%r14), %rax
movq 0x8(%rax), %rax
movq -0x60(%rbp), %rcx
movq 0x8(%rax,%rcx), %rsi
testq %rsi, %rsi
je 0x5d49a
movq -0x38(%rbp), %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4848c
jmp 0x5d4ae
movq %r12, %rdi
movl $0x62, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3a637
movq (%r12), %rdi
movq -0x58(%rbp), %rsi
movq %rax, %rdx
callq 0x3d962
movq %r12, %rdi
movq %rax, -0x58(%rbp)
movq %rax, %rsi
leaq -0xf0(%rbp), %rdx
xorl %ecx, %ecx
callq 0x3da1c
incq %r15
movslq 0x28(%r14), %rax
cmpq %rax, %r15
jl 0x5d1d6
jmp 0x5d500
movq $0x0, -0x40(%rbp)
movq $0x0, -0x58(%rbp)
movq $0x0, -0x68(%rbp)
movq -0x98(%rbp), %rsi
movq -0x38(%rbp), %rdi
callq 0x9ca4
movq (%r14), %rax
movq (%rax), %rcx
testq %rcx, %rcx
je 0x5d540
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movq %rcx, %rax
leaq -0xc0(%rbp), %rdx
incl %r15d
cmpb $0x0, (%rax)
leaq 0x1(%rax), %rax
jne 0x5d52b
andl $0x3fffffff, %r15d      # imm = 0x3FFFFFFF
jmp 0x5d54a
xorl %r15d, %r15d
leaq -0xc0(%rbp), %rdx
cmpl $0x6, %r13d
movq %rcx, -0x90(%rbp)
jne 0x5d5a4
movq %rcx, -0xb0(%rbp)
movl %r15d, -0xa8(%rbp)
leaq 0x1c31e(%rip), %rax     # 0x7988a
movq %rax, -0xc0(%rbp)
movl $0x1d, -0xb8(%rbp)
movq -0x38(%rbp), %r13
movq %r13, %rdi
movl $0x38, %esi
xorl %ecx, %ecx
callq 0x4aaef
testq %rax, %rax
je 0x5d5b2
movb $0x2, 0x1(%rax)
movq (%r12), %rdi
xorl %esi, %esi
movq %rax, %rdx
jmp 0x5d5ba
movq $0x0, -0x60(%rbp)
movq -0x38(%rbp), %r13
jmp 0x5d611
movq (%r12), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3d962
movq %rax, %r14
movq %r13, %rdi
xorl %esi, %esi
leaq -0xb0(%rbp), %rdx
xorl %ecx, %ecx
callq 0x3dc99
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
movl $0x0, 0x8(%rsp)
movq $0x0, (%rsp)
movq %r12, %rdi
movq %r14, %rsi
movq %rax, %rdx
movq -0x40(%rbp), %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x3d7c0
movq %rax, -0x60(%rbp)
movq $0x0, -0x40(%rbp)
movb 0x152(%r13), %al
movb %al, -0x38(%rbp)
movb $0x0, 0x152(%r13)
leal 0x99(%r15), %ebx
movq %r13, %rdi
movl %ebx, %esi
callq 0x11721
movq %rax, %r14
testq %rax, %rax
je 0x5d6f0
movl %ebx, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x8200
movl %r15d, %edx
leaq 0x48(%r14), %rcx
movq %rcx, -0x78(%rbp)
movq %rcx, 0x38(%r14)
movq %r14, %rdi
addq $0x98, %rdi
movq %rdi, 0x60(%r14)
movl %r15d, 0x68(%r14)
movq -0x90(%rbp), %rsi
callq 0x82f0
movq %r13, %rdi
movq -0x40(%rbp), %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x4848c
movq %rax, 0x70(%r14)
movq %r13, %rdi
movq -0x58(%rbp), %rsi
movl $0x1, %edx
callq 0x4887b
movq %rax, 0x78(%r14)
movq %r13, %rdi
movq -0x60(%rbp), %rsi
movl $0x1, %edx
callq 0x48744
movq %rax, 0x58(%r14)
movq -0x68(%rbp), %rdx
testq %rdx, %rdx
je 0x5d702
movq %r12, %rdi
movl $0x13, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3a637
movq %rax, %rbx
movq %r13, %rdi
movq %rax, %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x4848c
movq %rax, 0x18(%r14)
jmp 0x5d704
movq $0x0, -0x78(%rbp)
movl -0x44(%rbp), %r15d
movq -0x68(%rbp), %rbx
jmp 0x5d708
xorl %ebx, %ebx
movl -0x44(%rbp), %r15d
movb -0x38(%rbp), %al
movb %al, 0x152(%r13)
movq %r13, %rdi
movq -0x40(%rbp), %rsi
callq 0x3479d
movq %r13, %rdi
movq %rbx, %rsi
callq 0x3479d
movq %r13, %rdi
movq -0x58(%rbp), %rsi
callq 0x3484e
movq %r13, %rdi
movq -0x60(%rbp), %rsi
callq 0x34827
cmpb $0x1, 0x50(%r13)
jne 0x5d755
movq %r13, %rdi
movq %r14, %rsi
callq 0x36f69
jmp 0x5d7c2
movl -0x6c(%rbp), %eax
cmpl $0x6, %eax
je 0x5d76d
cmpl $0x9, %eax
jne 0x5d769
cmpq $0x0, -0x80(%rbp)
je 0x5d771
movb $0x6b, %al
jmp 0x5d773
movb $0x74, %al
jmp 0x5d773
movb $0x6a, %al
movq -0x78(%rbp), %rcx
movb %al, (%rcx)
movq %r14, 0x8(%rcx)
movq -0x50(%rbp), %rax
movq 0x68(%rax), %rax
movq %rax, 0x28(%r14)
movq %rax, 0x30(%r14)
movq -0x88(%rbp), %rax
movq -0xc8(%rbp), %rcx
movq %r14, 0x30(%rax,%rcx,8)
movb -0x29(%rbp), %al
movb %al, 0x10(%r14)
movq %r12, %rdi
movq %r14, %rsi
movq -0x50(%rbp), %rdx
movl %r15d, %ecx
movl $0x2, %r8d
xorl %r9d, %r9d
callq 0x5e0bb
movq -0x88(%rbp), %rbx
movq 0x18(%rbx), %rbx
testq %rbx, %rbx
jne 0x5d10e
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq