// File: /workspace/github_c_makefile_star2_O2/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 $0x108, %rsp            # imm = 0x108
movl %ecx, 0x94(%rsp)
movq %rdx, 0x70(%rsp)
movq %rsi, 0x40(%rsp)
movq (%rdi), %rax
testb $0x8, 0x2e(%rax)
jne 0x5664d
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r9d, %ebx
movq %r8, %r15
movq %rdi, %r13
movq 0x40(%rsp), %rdi
callq 0x4c763
movq %rax, %rbp
xorl %ecx, %ecx
cmpq $0x0, 0x70(%rsp)
setne %cl
movq %rcx, %rax
movq %rcx, 0xa0(%rsp)
addb $0x6b, %al
movb %al, 0x2a(%rsp)
movl %ebx, 0x6c(%rsp)
movq %r15, 0x98(%rsp)
testq %rbp, %rbp
je 0x5663b
testq %r15, %r15
je 0x566af
movq 0x40(%rsp), %rdi
movq %rbp, %rsi
movq %r15, %rdx
movl %ebx, %ecx
callq 0x55df3
testl %eax, %eax
je 0x56d25
movq 0xa0(%rsp), %rcx
movzbl 0x2d(%rbp,%rcx), %r12d
testl %r12d, %r12d
sete %al
movq 0x30(%rbp,%rcx,8), %r14
testq %r14, %r14
setne %cl
orb %al, %cl
je 0x566e0
testq %r14, %r14
jne 0x56d07
jmp 0x56d25
movq (%r13), %r14
andq $0x0, 0xa8(%rsp)
andq $0x0, 0x88(%rsp)
movq %r13, %rdi
movq 0x40(%rsp), %rsi
movq %rbp, %rdx
leaq 0xa8(%rsp), %rcx
leaq 0x88(%rsp), %r8
callq 0x57240
testl %eax, %eax
jne 0x56d25
cmpq $0x0, 0x70(%rsp)
setne %al
leaq 0x40(%rbp), %rcx
movq %rcx, 0xc8(%rsp)
cmpl $0x6, %r12d
setne %cl
cmpl $0x9, %r12d
setne %dl
orb %al, %dl
andb %cl, %dl
movb %dl, 0x2b(%rsp)
xorl %ebx, %ebx
xorl %esi, %esi
movq $0x0, 0x48(%rsp)
movq $0x0, 0x78(%rsp)
movq $0x0, 0x60(%rsp)
movq %rbp, 0x30(%rsp)
pushq $0x1b
popq %r15
movq %r14, 0x38(%rsp)
movl %r12d, 0x2c(%rsp)
movslq 0x28(%rbp), %rax
cmpq %rax, %rsi
jge 0x56a84
movups 0x28d89(%rip), %xmm0    # 0x7f518
movaps %xmm0, 0xb0(%rsp)
movups 0x28d8a(%rip), %xmm0    # 0x7f528
movq 0x88(%rsp), %rcx
movq %rbx, 0x58(%rsp)
leaq (%rcx,%rbx), %rax
testq %rcx, %rcx
cmoveq 0xc8(%rsp), %rax
movaps %xmm0, 0xf0(%rsp)
movq 0xa8(%rsp), %rcx
leaq 0xf526(%rip), %rdi      # 0x65cf8
testq %rcx, %rcx
je 0x567f1
movq 0x40(%rsp), %rdx
movq 0x8(%rdx), %rdx
movq 0x8(%rcx), %rcx
movswq (%rcx,%rsi,2), %rcx
imulq $0x30, %rcx, %rcx
movq (%rdx,%rcx), %rdi
movq %rsi, 0x50(%rsp)
movslq (%rax), %rax
movq %rdi, 0xd0(%rsp)
movq (%rbp), %rcx
movq 0x8(%rcx), %rcx
imulq $0x30, %rax, %rax
movq %rax, 0x80(%rsp)
movq (%rcx,%rax), %r14
movq %r14, 0xe0(%rsp)
callq 0x90a2
movl %eax, 0xd8(%rsp)
movq %r14, %rdi
callq 0x90a2
movl %eax, 0xe8(%rsp)
movq %r13, %rdi
movl %r15d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq 0xb0(%rsp), %r12
movq %r12, %r8
callq 0x37d23
movq %rax, %r14
movq %r13, %rdi
movl %r15d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq 0xd0(%rsp), %rbx
movq %rbx, %r8
callq 0x37d23
movq %r13, %rdi
pushq $0x77
popq %rbp
movl %ebp, %esi
movq %r14, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x37d23
movq %rax, %r14
movq %r13, %rdi
movl %r15d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq 0xe0(%rsp), %r8
callq 0x37d23
movq %r13, %rdi
pushq $0x4d
popq %rsi
movq %r14, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x37d23
movq 0x38(%rsp), %r14
movq %r14, %rdi
movq 0x48(%rsp), %rsi
movq %rax, %rdx
callq 0x4b411
movq %rax, 0x48(%rsp)
cmpq $0x0, 0x70(%rsp)
je 0x56989
movq %r13, %rdi
movl %r15d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r12, %r8
callq 0x37d23
movq %rax, %r14
movq %r13, %rdi
movl %r15d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x37d23
movq %r13, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x37d23
movq %rax, %r14
movq %r13, %rdi
movl %r15d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq 0xf0(%rsp), %r8
callq 0x37d23
movl %r15d, %esi
movq %rax, %r15
movq %r13, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x37d23
movq %r13, %rdi
movl %ebp, %esi
movq %r15, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x37d23
movq %r13, %rdi
pushq $0x47
popq %rsi
movq %r14, %rdx
movq 0x38(%rsp), %r14
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x37d23
movq %r14, %rdi
movq 0x60(%rsp), %rsi
movq %rax, %rdx
callq 0x4b411
movl 0x2c(%rsp), %r12d
jmp 0x56993
movl 0x2c(%rsp), %r12d
movq 0x60(%rsp), %rax
cmpb $0x0, 0x2b(%rsp)
movq 0x58(%rsp), %rbx
movq 0x50(%rsp), %rsi
movq %rax, 0x60(%rsp)
je 0x569fd
cmpl $0x8, %r12d
pushq $0x1b
popq %r15
je 0x56a08
cmpl $0x9, %r12d
jne 0x56a32
movq %r13, %rdi
movl %r15d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq 0xf0(%rsp), %r8
callq 0x37d23
movq %rax, %r14
movq %r13, %rdi
movl %r15d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq 0xd0(%rsp), %r8
callq 0x37d23
movq %r13, %rdi
pushq $0x77
popq %rsi
movq %r14, %rdx
movq 0x38(%rsp), %r14
movq %rax, %rcx
jmp 0x56a3c
movq 0x30(%rsp), %rbp
pushq $0x1b
popq %r15
jmp 0x56a78
movq 0x30(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq 0x80(%rsp), %rcx
movq 0x8(%rax,%rcx), %rsi
testq %rsi, %rsi
je 0x56a32
movq %r14, %rdi
xorl %edx, %edx
callq 0x47092
jmp 0x56a44
movq %r13, %rdi
pushq $0x63
popq %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x37d23
movq 0x30(%rsp), %rbp
movq %r13, %rdi
movq 0x78(%rsp), %rsi
movq %rax, %rdx
callq 0x3ca7d
movq %r13, %rdi
movq %rax, 0x78(%rsp)
movq %rax, %rsi
leaq 0xe0(%rsp), %rdx
xorl %ecx, %ecx
callq 0x3cb20
movq 0x50(%rsp), %rsi
incq %rsi
addq $0x4, %rbx
jmp 0x5677b
movq 0x88(%rsp), %rsi
movq %r14, %rdi
callq 0x9805
movq (%rbp), %rax
movq (%rax), %rbx
movq %rbx, %rdi
callq 0x90a2
movl %eax, %ecx
cmpl $0x6, %r12d
movq %rbx, 0x80(%rsp)
jne 0x56b5d
movq %rbx, 0xb0(%rsp)
movq %rcx, 0x58(%rsp)
movl %ecx, 0xb8(%rsp)
movq %r14, %rdi
pushq $0x39
popq %rsi
leaq 0xcb4c(%rip), %rdx      # 0x63624
callq 0x3cb67
testq %rax, %rax
movq 0x98(%rsp), %r15
leaq 0xb0(%rsp), %rbx
je 0x56af6
movb $0x2, 0x1(%rax)
movq %r13, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x3ca7d
movq %rax, %r14
movq 0x38(%rsp), %rbp
movq %rbp, %rdi
xorl %esi, %esi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x3cce4
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
andl $0x0, 0x8(%rsp)
andq $0x0, (%rsp)
movq %r13, %rdi
movq %r14, %rsi
movq %rbp, %r14
movq %rax, %rdx
movq 0x48(%rsp), %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x3c936
movq %rax, 0x50(%rsp)
movq $0x0, 0x48(%rsp)
movq 0x58(%rsp), %rcx
jmp 0x56b6e
movq $0x0, 0x50(%rsp)
movq 0x98(%rsp), %r15
movb 0x142(%r14), %al
movb %al, 0x58(%rsp)
movb $0x0, 0x142(%r14)
movq %rcx, %rbx
leal 0x99(%rcx), %esi
movq %r14, %rdi
callq 0xfabf
movq %r14, %rbp
movq %rax, %r14
testq %rax, %rax
je 0x56c40
movl %ebx, %edx
leaq 0x48(%r14), %rcx
movq %rcx, 0x38(%rsp)
movq %rcx, 0x38(%r14)
movq %r14, %rdi
addq $0x98, %rdi
movq %rdi, 0x60(%r14)
movl %ebx, 0x68(%r14)
movq 0x80(%rsp), %rsi
callq 0x7240
movq %rbp, %rdi
movq 0x48(%rsp), %rsi
pushq $0x1
popq %r12
movl %r12d, %edx
callq 0x47092
movq %rax, 0x70(%r14)
movq %rbp, %rdi
movq 0x78(%rsp), %rsi
movl %r12d, %edx
callq 0x47442
movq %rax, 0x78(%r14)
movq %rbp, %rdi
movq 0x50(%rsp), %rsi
movl %r12d, %edx
callq 0x4732f
movq %rax, 0x58(%r14)
movq 0x60(%rsp), %rdx
testq %rdx, %rdx
je 0x56c50
movq %r13, %rdi
pushq $0x13
popq %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x37d23
movq %rax, %rbx
movq %rbp, %rdi
movq %rax, %rsi
movl %r12d, %edx
callq 0x47092
movq %rax, 0x18(%r14)
jmp 0x56c52
movq $0x0, 0x38(%rsp)
movq 0x60(%rsp), %rbx
jmp 0x56c57
xorl %ebx, %ebx
movl 0x2c(%rsp), %r12d
movb 0x58(%rsp), %al
movb %al, 0x142(%rbp)
movq %rbp, %rdi
movq 0x48(%rsp), %rsi
callq 0x3044f
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x3044f
movq %rbp, %rdi
movq 0x78(%rsp), %rsi
callq 0x304f4
movq %rbp, %rdi
movq 0x50(%rsp), %rsi
callq 0x304cd
cmpb $0x1, 0x50(%rbp)
jne 0x56caf
movq %rbp, %rdi
movq %r14, %rsi
callq 0x32797
movl 0x6c(%rsp), %ebx
movq 0x30(%rsp), %rbp
jmp 0x56d25
cmpl $0x6, %r12d
movq 0x30(%rsp), %rbp
je 0x56ccc
cmpl $0x9, %r12d
jne 0x56cc8
cmpq $0x0, 0x70(%rsp)
je 0x56cd0
movb $0x6c, %al
jmp 0x56cd2
movb $0x75, %al
jmp 0x56cd2
movb $0x6b, %al
movq 0x38(%rsp), %rcx
movb %al, (%rcx)
movq %r14, 0x8(%rcx)
movq 0x40(%rsp), %rax
movq 0x70(%rax), %rax
movq %rax, 0x28(%r14)
movq %rax, 0x30(%r14)
movq 0xa0(%rsp), %rax
movq %r14, 0x30(%rbp,%rax,8)
movb 0x2a(%rsp), %al
movb %al, 0x10(%r14)
movl 0x6c(%rsp), %ebx
movq %r13, %rdi
movq %r14, %rsi
movq 0x40(%rsp), %rdx
movl 0x94(%rsp), %ecx
pushq $0x2
popq %r8
xorl %r9d, %r9d
callq 0x57491
movq 0x18(%rbp), %rbp
jmp 0x5668b