	.file	"extr_database.c_merge_verify_primary_keys.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	merge_verify_primary_keys, @function
merge_verify_primary_keys:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	esi, ebp
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rdx, 8[rsp]
	mov	QWORD PTR 16[rsp], 0
	call	MSI_DatabaseGetPrimaryKeys@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	mov	r12, rax
	je	.L15
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	lea	rdx, 16[rsp]
	mov	esi, ebp
	mov	rdi, r13
	call	MSI_DatabaseGetPrimaryKeys@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	mov	r12, rax
	je	.L17
.L3:
	mov	rdi, QWORD PTR 8[rsp]
	call	msiobj_release@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	msiobj_release@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, QWORD PTR 8[rsp]
	call	MSI_RecordGetFieldCount@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	rbx, rax
	call	MSI_RecordGetFieldCount@PLT
	cmp	rax, rbx
	jne	.L13
	mov	ebp, 1
	test	rbx, rbx
	jg	.L5
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	add	rbp, 1
	cmp	rbx, rbp
	jl	.L3
.L5:
	mov	rdi, QWORD PTR 16[rsp]
	mov	rsi, rbp
	call	MSI_RecordGetString@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	rsi, rbp
	mov	r13d, eax
	call	MSI_RecordGetString@PLT
	mov	esi, r13d
	mov	edi, eax
	call	strcmpW@PLT
	test	rax, rax
	je	.L6
.L13:
	mov	r12, QWORD PTR ERROR_DATATYPE_MISMATCH[rip]
	jmp	.L3
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	merge_verify_primary_keys, .-merge_verify_primary_keys
	.comm	ERROR_SUCCESS,8,8
	.comm	ERROR_DATATYPE_MISMATCH,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_database.c_merge_verify_primary_keys.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge_verify_primary_keys, %function
merge_verify_primary_keys:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L17
	sub	sp, sp, #20
	mov	r5, r2
	mov	r6, r1
	mov	r1, r2
	add	r2, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	str	ip, [sp, #8]
	bl	MSI_DatabaseGetPrimaryKeys
	ldr	r7, .L17+4
	ldr	r3, [r7]
	cmp	r3, r0
	movne	r4, r0
	beq	.L14
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	mov	r1, r5
	mov	r0, r6
	add	r2, sp, #8
	bl	MSI_DatabaseGetPrimaryKeys
	ldr	r3, [r7]
	mov	r4, r0
	cmp	r3, r0
	beq	.L16
.L3:
	ldr	r0, [sp, #4]
	bl	msiobj_release
	ldr	r0, [sp, #8]
	bl	msiobj_release
	b	.L1
.L16:
	ldr	r0, [sp, #4]
	bl	MSI_RecordGetFieldCount
	mov	r7, r0
	ldr	r0, [sp, #8]
	bl	MSI_RecordGetFieldCount
	cmp	r0, r7
	bne	.L12
	cmp	r7, #0
	movgt	r5, #1
	bgt	.L5
	b	.L3
.L6:
	add	r5, r5, #1
	cmp	r7, r5
	blt	.L3
.L5:
	mov	r1, r5
	ldr	r0, [sp, #4]
	bl	MSI_RecordGetString
	mov	r1, r5
	mov	r6, r0
	ldr	r0, [sp, #8]
	bl	MSI_RecordGetString
	mov	r1, r0
	mov	r0, r6
	bl	strcmpW
	cmp	r0, #0
	beq	.L6
.L12:
	ldr	r3, .L17+8
	ldr	r4, [r3]
	b	.L3
.L15:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	ERROR_SUCCESS
	.word	ERROR_DATATYPE_MISMATCH
	.size	merge_verify_primary_keys, .-merge_verify_primary_keys
	.comm	ERROR_SUCCESS,4,4
	.comm	ERROR_DATATYPE_MISMATCH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
