// File: /workspace/github_c_makefile_star2_O3/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
movl %ecx, 0x7c(%rsp)
movq %rdx, 0x60(%rsp)
movq %rsi, 0x38(%rsp)
movq (%rdi), %rax
testb $0x8, 0x2e(%rax)
je 0x614f4
movl %r9d, %ebx
movq %r8, %r14
movq %rdi, %r13
movq 0x38(%rsp), %rdi
callq 0x52fb1
testq %rax, %rax
je 0x614f4
movq %rax, %rbp
xorl %ecx, %ecx
cmpq $0x0, 0x60(%rsp)
setne %cl
movq %rcx, %rax
movq %rcx, 0xa8(%rsp)
addb $0x6b, %al
movb %al, 0x2b(%rsp)
movl %ebx, 0x5c(%rsp)
movq %r14, 0xa0(%rsp)
testq %r14, %r14
je 0x60dfc
movq 0x38(%rsp), %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x60403
testl %eax, %eax
je 0x614e7
movq 0xa8(%rsp), %rcx
movzbl 0x2d(%rbp,%rcx), %eax
movl %eax, 0x2c(%rsp)
testl %eax, %eax
sete %al
movq 0x30(%rbp,%rcx,8), %r12
testq %r12, %r12
setne %cl
orb %al, %cl
je 0x60e2f
testq %r12, %r12
jne 0x614ca
jmp 0x614e7
movq (%r13), %r15
xorl %eax, %eax
movq %rax, 0xb0(%rsp)
movq %rax, 0x70(%rsp)
movq %r13, %rdi
movq 0x38(%rsp), %rsi
movq %rbp, %rdx
leaq 0xb0(%rsp), %rcx
leaq 0x70(%rsp), %r8
callq 0x61aab
testl %eax, %eax
jne 0x614e7
cmpl $0x0, 0x28(%rbp)
jle 0x611ed
cmpq $0x0, 0x60(%rsp)
setne %al
leaq 0x40(%rbp), %rcx
movq %rcx, 0x48(%rsp)
movl 0x2c(%rsp), %edx
cmpl $0x6, %edx
setne %cl
cmpl $0x9, %edx
setne %dl
orb %al, %dl
andb %cl, %dl
movb %dl, 0x2a(%rsp)
xorl %r14d, %r14d
movq $0x0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
movq $0x0, 0x30(%rsp)
leaq 0x80(%rsp), %r12
movq %rbp, 0xc0(%rsp)
movq %r15, 0x68(%rsp)
movups 0x28623(%rip), %xmm0    # 0x894f8
movaps %xmm0, 0x80(%rsp)
movups 0x28624(%rip), %xmm0    # 0x89508
movq 0x70(%rsp), %rax
testq %rax, %rax
leaq (%rax,%r14,4), %rax
cmoveq 0x48(%rsp), %rax
movaps %xmm0, 0x90(%rsp)
movq 0xb0(%rsp), %rcx
leaq 0x12e6b(%rip), %rdx     # 0x73d78
testq %rcx, %rcx
je 0x60f30
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 0x60f79
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
incl %esi
cmpb $0x0, (%rdx)
leaq 0x1(%rdx), %rdx
jne 0x60f68
andl $0x3fffffff, %esi       # imm = 0x3FFFFFFF
movl %esi, 0xd0(%rsp)
testq %rcx, %rcx
je 0x60f9a
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
incl %eax
cmpb $0x0, (%rcx)
leaq 0x1(%rcx), %rcx
jne 0x60f8a
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 0x3bc7d
movq %rax, %r15
movq %r13, %rdi
movl $0x1b, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq 0xc8(%rsp), %rbp
movq %rbp, %r8
callq 0x3bc7d
movq %r13, %rdi
movl $0x77, %esi
movq %r15, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x3bc7d
movq %rax, %r15
movq %r13, %rdi
movl $0x1b, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq 0xd8(%rsp), %r8
callq 0x3bc7d
movq %r13, %rdi
movl $0x4d, %esi
movq %r15, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x3bc7d
movq 0x68(%rsp), %r15
movq %r15, %rdi
movq 0x30(%rsp), %rsi
movq %rax, %rdx
callq 0x5150c
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x60(%rsp)
je 0x610f9
movq %r13, %rdi
movl $0x1b, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r12, %r8
callq 0x3bc7d
movq %rax, %r15
movq %r13, %rdi
movl $0x1b, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %rbp, %r8
callq 0x3bc7d
movq %r13, %rdi
movl $0x77, %esi
movq %r15, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x3bc7d
movq %rax, %r12
movq %r13, %rdi
movl $0x1b, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq 0x90(%rsp), %r8
callq 0x3bc7d
movq %rax, %r15
movq %r13, %rdi
movl $0x1b, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %rbp, %r8
callq 0x3bc7d
movq %r13, %rdi
movl $0x77, %esi
movq %r15, %rdx
movq 0x68(%rsp), %r15
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x3bc7d
movq %r13, %rdi
movl $0x47, %esi
movq %r12, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x3bc7d
movq %r15, %rdi
movq 0x40(%rsp), %rsi
movq %rax, %rdx
callq 0x5150c
jmp 0x610fe
movq 0x40(%rsp), %rax
cmpb $0x0, 0x2a(%rsp)
movq 0xc0(%rsp), %rbp
movq %rax, 0x40(%rsp)
je 0x61172
movl 0x2c(%rsp), %ecx
cmpl $0x8, %ecx
leaq 0x80(%rsp), %r12
je 0x6117c
cmpl $0x9, %ecx
jne 0x6119c
movq %r13, %rdi
movl $0x1b, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq 0x90(%rsp), %r8
callq 0x3bc7d
movq %rax, %r15
movq %r13, %rdi
movl $0x1b, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq 0xc8(%rsp), %r8
callq 0x3bc7d
movq %r13, %rdi
movl $0x77, %esi
movq %r15, %rdx
movq 0x68(%rsp), %r15
movq %rax, %rcx
jmp 0x611a8
leaq 0x80(%rsp), %r12
jmp 0x611db
movq (%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax,%rbx), %rsi
testq %rsi, %rsi
je 0x6119c
movq %r15, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4c052
jmp 0x611b0
movq %r13, %rdi
movl $0x63, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3bc7d
movq (%r13), %rdi
movq 0x50(%rsp), %rsi
movq %rax, %rdx
callq 0x3f731
movq %r13, %rdi
movq %rax, 0x50(%rsp)
movq %rax, %rsi
leaq 0xd8(%rsp), %rdx
xorl %ecx, %ecx
callq 0x3f7e1
incq %r14
movslq 0x28(%rbp), %rax
cmpq %rax, %r14
jl 0x60ece
jmp 0x61210
movq $0x0, 0x30(%rsp)
movq $0x0, 0x50(%rsp)
movq $0x0, 0x40(%rsp)
leaq 0x80(%rsp), %r12
movq 0x70(%rsp), %rsi
movq %r15, %rdi
callq 0x9b42
movq (%rbp), %rax
movq (%rax), %rdx
testq %rdx, %rdx
je 0x61248
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq %rdx, %rax
movl 0x2c(%rsp), %ecx
incl %ebx
cmpb $0x0, (%rax)
leaq 0x1(%rax), %rax
jne 0x61235
andl $0x3fffffff, %ebx       # imm = 0x3FFFFFFF
jmp 0x6124e
xorl %ebx, %ebx
movl 0x2c(%rsp), %ecx
cmpl $0x6, %ecx
movq %rdx, 0xb8(%rsp)
jne 0x612aa
movq %rdx, 0x90(%rsp)
movl %ebx, 0x98(%rsp)
leaq 0x10433(%rip), %rax     # 0x716a4
movq %rax, 0x80(%rsp)
movl $0x1d, 0x88(%rsp)
movq %r15, %rdi
movl $0x39, %esi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x51708
testq %rax, %rax
je 0x612b5
movb $0x2, 0x1(%rax)
movq (%r13), %rdi
xorl %esi, %esi
movq %rax, %rdx
jmp 0x612bd
movq $0x0, 0x48(%rsp)
jmp 0x61318
movq (%r13), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3f731
movq %rax, %r12
movq %r15, %rdi
xorl %esi, %esi
leaq 0x90(%rsp), %rdx
xorl %ecx, %ecx
callq 0x3fa2e
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
movl $0x0, 0x8(%rsp)
movq $0x0, (%rsp)
movq %r13, %rdi
movq %r12, %rsi
movq %rax, %rdx
movq 0x30(%rsp), %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x3f57f
movq %rax, 0x48(%rsp)
movq $0x0, 0x30(%rsp)
movb 0x142(%r15), %al
movb %al, 0x2a(%rsp)
movb $0x0, 0x142(%r15)
movq %r15, %r14
leal 0x99(%rbx), %r15d
movq %r14, %rdi
movl %r15d, %esi
callq 0x11c9d
movq %rax, %r12
testq %rax, %rax
je 0x61405
movl %r15d, %edx
movq %r12, %rdi
xorl %esi, %esi
callq 0x7180
movl %ebx, %edx
leaq 0x48(%r12), %r15
movq %r15, 0x38(%r12)
movq %r12, %rdi
addq $0x98, %rdi
movq %rdi, 0x60(%r12)
movl %ebx, 0x68(%r12)
movq 0xb8(%rsp), %rsi
callq 0x7230
movq %r14, %rdi
movq 0x30(%rsp), %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x4c052
movq %rax, 0x70(%r12)
movq %r14, %rdi
movq 0x50(%rsp), %rsi
movl $0x1, %edx
callq 0x4c424
movq %rax, 0x78(%r12)
movq %r14, %rdi
movq 0x48(%rsp), %rsi
movl $0x1, %edx
callq 0x4c304
movq %rax, 0x58(%r12)
movq 0x40(%rsp), %rdx
testq %rdx, %rdx
je 0x6140f
movq %r13, %rdi
movl $0x13, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3bc7d
movq %rax, %rbx
movq %r14, %rdi
movq %rax, %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x4c052
movq %rax, 0x18(%r12)
jmp 0x61411
xorl %r15d, %r15d
movq 0x40(%rsp), %rbx
jmp 0x61411
xorl %ebx, %ebx
movb 0x2a(%rsp), %al
movb %al, 0x142(%r14)
movq %r14, %rdi
movq 0x30(%rsp), %rsi
callq 0x35bca
movq %r14, %rdi
movq %rbx, %rsi
callq 0x35bca
movq %r14, %rdi
movq 0x50(%rsp), %rsi
callq 0x35c6f
movq %r14, %rdi
movq 0x48(%rsp), %rsi
callq 0x35c48
cmpb $0x1, 0x50(%r14)
jne 0x6146e
movq %r14, %rdi
movq %r12, %rsi
callq 0x3839b
movl 0x5c(%rsp), %ebx
movq 0xa0(%rsp), %r14
jmp 0x614e7
movl 0x2c(%rsp), %eax
cmpl $0x6, %eax
je 0x61488
cmpl $0x9, %eax
jne 0x61484
cmpq $0x0, 0x60(%rsp)
je 0x6148c
movb $0x6c, %al
jmp 0x6148e
movb $0x75, %al
jmp 0x6148e
movb $0x6b, %al
movb %al, (%r15)
movq %r12, 0x8(%r15)
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 0x2b(%rsp), %al
movb %al, 0x10(%r12)
movl 0x5c(%rsp), %ebx
movq 0xa0(%rsp), %r14
movq %r13, %rdi
movq %r12, %rsi
movq 0x38(%rsp), %rdx
movl 0x7c(%rsp), %ecx
movl $0x2, %r8d
xorl %r9d, %r9d
callq 0x61dcb
movq 0x18(%rbp), %rbp
testq %rbp, %rbp
jne 0x60ddd
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq