// File: /workspace/github_c_makefile_star2_O1/skeeto[P]flappy/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 */
  int *aChange,                   /* Array indicating UPDATEd columns (or 0) */
  int bChngRowid                  /* True if rowid is UPDATEd */
){
  /* 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){
      if( aChange==0 || fkParentIsModified(pTab, pFKey, aChange, bChngRowid) ){
        Trigger *pAct = fkActionTrigger(pParse, pTab, pFKey, pChanges);
        if( pAct ){
          sqlite3CodeRowTriggerDirect(pParse, pAct, pTab, regOld, OE_Abort, 0);
        }
      }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %r8, 0xb0(%rsp)
movl %ecx, 0x7c(%rsp)
movq %rdx, 0x60(%rsp)
movq %rsi, 0x38(%rsp)
movq (%rdi), %rax
testb $0x8, 0x2e(%rax)
je 0x60dde
movl %r9d, %r14d
movq %rdi, %r13
movq 0x38(%rsp), %rdi
callq 0x529ef
testq %rax, %rax
je 0x60dde
movq %rax, %rbp
xorl %ecx, %ecx
cmpq $0x0, 0x60(%rsp)
setne %cl
movq %rcx, %rax
movq %rcx, 0xa8(%rsp)
addb $0x6b, %al
movb %al, 0x23(%rsp)
movl %r14d, 0x34(%rsp)
cmpq $0x0, 0xb0(%rsp)
je 0x606e4
movq 0x38(%rsp), %rdi
movq %rbp, %rsi
movq 0xb0(%rsp), %rdx
movl %r14d, %ecx
callq 0x5fc5b
testl %eax, %eax
je 0x60dd1
movq 0xa8(%rsp), %rcx
movzbl 0x2d(%rbp,%rcx), %edx
testl %edx, %edx
sete %al
movq 0x30(%rbp,%rcx,8), %r12
testq %r12, %r12
setne %cl
orb %al, %cl
jne 0x60daf
movl %edx, 0x24(%rsp)
movq (%r13), %r15
xorl %eax, %eax
movq %rax, 0xb8(%rsp)
movq %rax, 0x70(%rsp)
movq %r13, %rdi
movq 0x38(%rsp), %rsi
movq %rbp, %rdx
leaq 0xb8(%rsp), %rcx
leaq 0x70(%rsp), %r8
callq 0x6138d
movl $0x0, %r12d
testl %eax, %eax
jne 0x60daf
cmpl $0x0, 0x28(%rbp)
movq %r15, 0x40(%rsp)
jle 0x60ac9
cmpq $0x0, 0x60(%rsp)
setne %al
leaq 0x40(%rbp), %rcx
movq %rcx, 0x48(%rsp)
movl 0x24(%rsp), %edx
cmpl $0x6, %edx
setne %cl
cmpl $0x9, %edx
setne %dl
orb %al, %dl
andb %cl, %dl
movb %dl, 0x68(%rsp)
xorl %r14d, %r14d
movq $0x0, 0x58(%rsp)
movq $0x0, 0x50(%rsp)
movq $0x0, 0x28(%rsp)
leaq 0x80(%rsp), %r12
movq %rbp, 0xc0(%rsp)
movups 0x27d3f(%rip), %xmm0    # 0x884f8
movaps %xmm0, 0x80(%rsp)
movups 0x27d40(%rip), %xmm0    # 0x88508
movq 0x70(%rsp), %rax
testq %rax, %rax
leaq (%rax,%r14,4), %rax
cmoveq 0x48(%rsp), %rax
movaps %xmm0, 0x90(%rsp)
movq 0xb8(%rsp), %rcx
leaq 0x124e7(%rip), %rdx     # 0x72cd8
testq %rcx, %rcx
je 0x60814
movq 0x38(%rsp), %rdx
movq 0x8(%rdx), %rdx
movq 0x8(%rcx), %rcx
movswq (%rcx,%r14,2), %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
movq (%rdx,%rcx), %rdx
movslq (%rax), %rax
movq %rdx, 0xc8(%rsp)
movq (%rbp), %rcx
movq 0x8(%rcx), %rcx
leaq (%rax,%rax,2), %rbx
shlq $0x4, %rbx
movq (%rcx,%rbx), %rcx
movq %rcx, 0xd8(%rsp)
xorl %eax, %eax
movl $0x0, %esi
testq %rdx, %rdx
je 0x6085d
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
incl %esi
cmpb $0x0, (%rdx)
leaq 0x1(%rdx), %rdx
jne 0x6084c
andl $0x3fffffff, %esi       # imm = 0x3FFFFFFF
movl %esi, 0xd0(%rsp)
testq %rcx, %rcx
je 0x6087e
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
incl %eax
cmpb $0x0, (%rcx)
leaq 0x1(%rcx), %rcx
jne 0x6086e
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movl %eax, 0xe0(%rsp)
movq %r13, %rdi
movl $0x1b, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r12, %r8
callq 0x3b872
movq %rax, %r15
movq %r13, %rdi
movl $0x1b, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq 0xc8(%rsp), %rbp
movq %rbp, %r8
callq 0x3b872
movq %r13, %rdi
movl $0x77, %esi
movq %r15, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x3b872
movq %rax, %r15
movq %r13, %rdi
movl $0x1b, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq 0xd8(%rsp), %r8
callq 0x3b872
movq %r13, %rdi
movl $0x4d, %esi
movq %r15, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x3b872
movq 0x40(%rsp), %r15
movq %r15, %rdi
movq 0x28(%rsp), %rsi
movq %rax, %rdx
callq 0x50efd
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x60(%rsp)
je 0x609e0
movq %r13, %rdi
movl $0x1b, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r12, %r8
callq 0x3b872
movq %rax, %r15
movq %r13, %rdi
movl $0x1b, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %rbp, %r8
callq 0x3b872
movq %r13, %rdi
movl $0x77, %esi
movq %r15, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x3b872
movq %rax, %r12
movq %r13, %rdi
movl $0x1b, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq 0x90(%rsp), %r8
callq 0x3b872
movq %rax, %r15
movq %r13, %rdi
movl $0x1b, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %rbp, %r8
callq 0x3b872
movq %r13, %rdi
movl $0x77, %esi
movq %r15, %rdx
movq 0x40(%rsp), %r15
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x3b872
movq %r13, %rdi
movl $0x47, %esi
movq %r12, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x3b872
movq %r15, %rdi
movq 0x58(%rsp), %rsi
movq %rax, %rdx
callq 0x50efd
movq %rax, 0x58(%rsp)
movl 0x24(%rsp), %eax
cmpb $0x0, 0x68(%rsp)
movq 0xc0(%rsp), %rbp
je 0x60a4f
cmpl $0x8, %eax
leaq 0x80(%rsp), %r12
je 0x60a59
cmpl $0x9, %eax
jne 0x60a79
movq %r13, %rdi
movl $0x1b, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq 0x90(%rsp), %r8
callq 0x3b872
movq %rax, %r15
movq %r13, %rdi
movl $0x1b, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq 0xc8(%rsp), %r8
callq 0x3b872
movq %r13, %rdi
movl $0x77, %esi
movq %r15, %rdx
movq 0x40(%rsp), %r15
movq %rax, %rcx
jmp 0x60a85
leaq 0x80(%rsp), %r12
jmp 0x60ab7
movq (%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax,%rbx), %rsi
testq %rsi, %rsi
je 0x60a79
movq %r15, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4b8a1
jmp 0x60a8d
movq %r13, %rdi
movl $0x63, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3b872
movq %r13, %rdi
movq 0x50(%rsp), %rsi
movq %rax, %rdx
callq 0x3ef23
movq %r13, %rdi
movq %rax, 0x50(%rsp)
movq %rax, %rsi
leaq 0xd8(%rsp), %rdx
xorl %ecx, %ecx
callq 0x3efcf
incq %r14
movslq 0x28(%rbp), %rax
cmpq %rax, %r14
jl 0x607b2
jmp 0x60aec
movq $0x0, 0x28(%rsp)
movq $0x0, 0x50(%rsp)
movq $0x0, 0x58(%rsp)
leaq 0x80(%rsp), %r12
movq 0x70(%rsp), %rsi
movq %r15, %rdi
callq 0x9b58
movq (%rbp), %rax
movq (%rax), %rcx
testq %rcx, %rcx
je 0x60b23
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movq %rcx, %rax
incl %r14d
cmpb $0x0, (%rax)
leaq 0x1(%rax), %rax
jne 0x60b0e
andl $0x3fffffff, %r14d      # imm = 0x3FFFFFFF
jmp 0x60b26
xorl %r14d, %r14d
movl 0x24(%rsp), %eax
cmpl $0x6, %eax
movq %rcx, 0x68(%rsp)
jne 0x60bea
movq %rcx, 0x90(%rsp)
movl %r14d, 0x98(%rsp)
leaq 0xfab5(%rip), %rax      # 0x70604
movq %rax, 0x80(%rsp)
movl $0x1d, 0x88(%rsp)
movq %r15, %rdi
movl $0x39, %esi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x510f7
testq %rax, %rax
je 0x60b7d
movb $0x2, 0x1(%rax)
movq %r13, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x3ef23
movq %rax, %r15
movq 0x40(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
leaq 0x90(%rsp), %rdx
xorl %ecx, %ecx
callq 0x3f218
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
movl $0x0, 0x8(%rsp)
movq $0x0, (%rsp)
movq %r13, %rdi
movq %r15, %rsi
movq %rbx, %r15
movq %rax, %rdx
movq 0x28(%rsp), %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x3ed74
movq %rax, 0x48(%rsp)
movq $0x0, 0x28(%rsp)
jmp 0x60bf3
movq $0x0, 0x48(%rsp)
movb 0x142(%r15), %al
movb %al, 0x40(%rsp)
movb $0x0, 0x142(%r15)
movq %r15, %rbx
leal 0x99(%r14), %r15d
movq %rbx, %rdi
movl %r15d, %esi
callq 0x11af4
movq %rax, %r12
testq %rax, %rax
je 0x60ce6
movl %r15d, %edx
movq %r12, %rdi
xorl %esi, %esi
callq 0x7180
movl %r14d, %edx
leaq 0x48(%r12), %rcx
movq %rcx, 0xa0(%rsp)
movq %rcx, 0x38(%r12)
movq %r12, %rdi
addq $0x98, %rdi
movq %rdi, 0x60(%r12)
movl %r14d, 0x68(%r12)
movq 0x68(%rsp), %rsi
callq 0x7230
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x4b8a1
movq %rax, 0x70(%r12)
movq %rbx, %rdi
movq 0x50(%rsp), %rsi
movl $0x1, %edx
callq 0x4bc79
movq %rax, 0x78(%r12)
movq %rbx, %rdi
movq 0x48(%rsp), %rsi
movl $0x1, %edx
callq 0x4bb58
movq %rax, 0x58(%r12)
movq 0x58(%rsp), %rdx
testq %rdx, %rdx
je 0x60cfe
movq %r13, %rdi
movl $0x13, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3b872
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x4b8a1
movq %rax, 0x18(%r12)
jmp 0x60d01
movq $0x0, 0xa0(%rsp)
movl 0x34(%rsp), %r14d
movq 0x58(%rsp), %r15
jmp 0x60d06
xorl %r15d, %r15d
movl 0x34(%rsp), %r14d
movb 0x40(%rsp), %al
movb %al, 0x142(%rbx)
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
callq 0x3572a
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3572a
movq %rbx, %rdi
movq 0x50(%rsp), %rsi
callq 0x357c9
movq %rbx, %rdi
movq 0x48(%rsp), %rsi
callq 0x357a2
cmpb $0x1, 0x50(%rbx)
jne 0x60d58
movq %rbx, %rdi
movq %r12, %rsi
callq 0x37f20
xorl %r12d, %r12d
jmp 0x60daf
movl 0x24(%rsp), %eax
cmpl $0x6, %eax
je 0x60d72
cmpl $0x9, %eax
jne 0x60d6e
cmpq $0x0, 0x60(%rsp)
je 0x60d76
movb $0x6c, %al
jmp 0x60d78
movb $0x75, %al
jmp 0x60d78
movb $0x6b, %al
movq 0xa0(%rsp), %rcx
movb %al, (%rcx)
movq %r12, 0x8(%rcx)
movq 0x38(%rsp), %rax
movq 0x70(%rax), %rax
movq %rax, 0x28(%r12)
movq %rax, 0x30(%r12)
movq 0xa8(%rsp), %rax
movq %r12, 0x30(%rbp,%rax,8)
movb 0x23(%rsp), %al
movb %al, 0x10(%r12)
testq %r12, %r12
je 0x60dd1
movq %r13, %rdi
movq %r12, %rsi
movq 0x38(%rsp), %rdx
movl 0x7c(%rsp), %ecx
movl $0x2, %r8d
xorl %r9d, %r9d
callq 0x616b1
movq 0x18(%rbp), %rbp
testq %rbp, %rbp
jne 0x606b9
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq