	.file	"extr_patch.c_patch_offset_get_filepatches.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	patch_offset_get_filepatches, @function
patch_offset_get_filepatches:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	lea	rsi, query.1976[rip]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	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]
	call	MSI_DatabaseOpenViewW@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	je	.L9
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L9:
	.cfi_restore_state
	mov	edi, 1
	call	MSI_CreateRecord@PLT
	mov	rdx, r12
	mov	esi, 1
	mov	rdi, rax
	mov	QWORD PTR 16[rsp], rax
	call	MSI_RecordSetInteger@PLT
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 8[rsp]
	call	MSI_ViewExecute@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	rbp, rax
	call	msiobj_release@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rbp
	jne	.L1
	lea	r12, 16[rsp]
	lea	r13, 4[rbx]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, 12
	call	msi_alloc@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	esi, 1
	mov	rbp, rax
	call	msi_dup_record_field@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	esi, 2
	mov	DWORD PTR 8[rbp], eax
	call	MSI_RecordGetInteger@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	DWORD PTR 4[rbp], eax
	mov	esi, eax
	call	min@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	edi, DWORD PTR 8[rbx]
	mov	DWORD PTR 12[rbx], eax
	call	max@PLT
	mov	rdi, r13
	mov	rsi, rbp
	mov	DWORD PTR 8[rbx], eax
	call	list_add_tail@PLT
	add	DWORD PTR [rbx], 1
	mov	rdi, QWORD PTR 16[rsp]
	call	msiobj_release@PLT
.L3:
	mov	rdi, QWORD PTR 8[rsp]
	mov	rsi, r12
	call	MSI_ViewFetch@PLT
	cmp	rax, QWORD PTR ERROR_SUCCESS[rip]
	je	.L4
	mov	rdi, QWORD PTR 8[rsp]
	call	msiobj_release@PLT
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	patch_offset_get_filepatches, .-patch_offset_get_filepatches
	.section	.rodata
	.align 32
	.type	query.1976, @object
	.size	query.1976, 58
query.1976:
	.string	"SELECT * FROM Patch WHERE Sequence <= ? ORDER BY Sequence"
	.comm	ERROR_SUCCESS,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_patch.c_patch_offset_get_filepatches.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	patch_offset_get_filepatches, %function
patch_offset_get_filepatches:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L11
	sub	sp, sp, #16
	mov	r5, r1
	mov	r4, r2
	ldr	r1, .L11+4
	add	r2, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	MSI_DatabaseOpenViewW
	ldr	r6, .L11+8
	ldr	r3, [r6]
	cmp	r3, r0
	beq	.L9
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	mov	r0, #1
	bl	MSI_CreateRecord
	mov	r2, r5
	mov	r1, #1
	str	r0, [sp, #8]
	bl	MSI_RecordSetInteger
	ldmib	sp, {r0, r1}
	bl	MSI_ViewExecute
	mov	r5, r0
	ldr	r0, [sp, #8]
	bl	msiobj_release
	ldr	r3, [r6]
	cmp	r3, r5
	bne	.L1
	b	.L3
.L4:
	mov	r0, #12
	bl	msi_alloc
	mov	r1, #1
	mov	r5, r0
	ldr	r0, [sp, #8]
	bl	msi_dup_record_field
	mov	r1, #2
	str	r0, [r5, #8]
	ldr	r0, [sp, #8]
	bl	MSI_RecordGetInteger
	mov	r1, r0
	ldr	r0, [r4, #12]
	str	r1, [r5, #4]
	bl	min
	ldr	r1, [r5, #4]
	str	r0, [r4, #12]
	ldr	r0, [r4, #8]
	bl	max
	mov	r1, r5
	str	r0, [r4, #8]
	add	r0, r4, #4
	bl	list_add_tail
	ldr	r3, [r4]
	ldr	r0, [sp, #8]
	add	r3, r3, #1
	str	r3, [r4]
	bl	msiobj_release
.L3:
	ldr	r0, [sp, #4]
	add	r1, sp, #8
	bl	MSI_ViewFetch
	ldr	r3, [r6]
	cmp	r0, r3
	beq	.L4
	ldr	r0, [sp, #4]
	bl	msiobj_release
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	.LANCHOR0
	.word	ERROR_SUCCESS
	.size	patch_offset_get_filepatches, .-patch_offset_get_filepatches
	.comm	ERROR_SUCCESS,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	query.4260, %object
	.size	query.4260, 58
query.4260:
	.ascii	"SELECT * FROM Patch WHERE Sequence <= ? ORDER BY Se"
	.ascii	"quence\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
