	.file	"extr_table.c_add_stream.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%p %s %p\n"
	.text
	.p2align 4
	.type	add_stream, @function
add_stream:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	mov	rdi, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	debugstr_w@PLT
	lea	rdi, .LC0[rip]
	mov	rcx, r14
	mov	rsi, r15
	mov	edx, eax
	call	TRACE@PLT
	mov	edi, 2
	call	MSI_CreateRecord@PLT
	test	rax, rax
	je	.L8
	mov	rdx, r13
	mov	esi, 1
	mov	rdi, rax
	mov	rbp, rax
	call	MSI_RecordSetStringW@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	mov	rbx, rbp
	mov	r12, rax
	je	.L10
.L4:
	mov	rdi, rbx
	call	msiobj_release@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdx, r14
	mov	esi, 2
	mov	rdi, rbp
	call	MSI_RecordSetIStream@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	mov	r12, rax
	jne	.L4
	lea	rdx, 16[rsp]
	lea	rsi, insert.1960[rip]
	mov	rdi, r15
	mov	QWORD PTR 8[rsp], rdx
	call	MSI_DatabaseOpenViewW@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	mov	r12, rax
	jne	.L4
	mov	rdi, QWORD PTR 16[rsp]
	mov	rsi, rbp
	call	MSI_ViewExecute@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	r12, rax
	call	msiobj_release@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], r12
	je	.L4
	mov	rdi, rbp
	call	msiobj_release@PLT
	mov	edi, 2
	call	MSI_CreateRecord@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L8
	mov	rdx, r14
	mov	esi, 1
	mov	rdi, rax
	call	MSI_RecordSetIStream@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	mov	r12, rax
	jne	.L4
	mov	rdx, r13
	mov	esi, 2
	mov	rdi, rbx
	call	MSI_RecordSetStringW@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	mov	r12, rax
	jne	.L4
	mov	rdx, QWORD PTR 8[rsp]
	lea	rsi, update.1961[rip]
	mov	rdi, r15
	call	MSI_DatabaseOpenViewW@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	mov	r12, rax
	jne	.L4
	mov	rdi, QWORD PTR 16[rsp]
	mov	rsi, rbx
	call	MSI_ViewExecute@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	r12, rax
	call	msiobj_release@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r12, QWORD PTR ERROR_OUTOFMEMORY[rip]
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	add_stream, .-add_stream
	.section	.rodata
	.align 32
	.type	update.1961, @object
	.size	update.1961, 50
update.1961:
	.string	"UPDATE `_Streams` SET `Data` = ? WHERE `Name` = ?"
	.align 32
	.type	insert.1960, @object
	.size	insert.1960, 52
insert.1960:
	.string	"INSERT INTO `_Streams` (`Name`,`Data`) VALUES (?,?)"
	.comm	ERROR_SUCCESS,8,8
	.comm	ERROR_OUTOFMEMORY,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_table.c_add_stream.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%p %s %p\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_stream, %function
add_stream:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L12
	sub	sp, sp, #8
	mov	r6, r0
	mov	r0, r1
	mov	r7, r2
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	debugstr_w
	mov	r3, r7
	mov	r2, r0
	mov	r1, r6
	ldr	r0, .L12+4
	bl	TRACE
	mov	r0, #2
	bl	MSI_CreateRecord
	subs	r8, r0, #0
	beq	.L8
	mov	r2, r5
	mov	r1, #1
	bl	MSI_RecordSetStringW
	ldr	r9, .L12+8
	mov	r4, r0
	ldr	r3, [r9]
	mov	r10, r8
	cmp	r3, r0
	beq	.L10
.L4:
	mov	r0, r10
	bl	msiobj_release
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	mov	r2, r7
	mov	r1, #2
	mov	r0, r8
	bl	MSI_RecordSetIStream
	ldr	r3, [r9]
	mov	r4, r0
	cmp	r3, r0
	bne	.L4
	mov	r2, sp
	mov	r0, r6
	ldr	r1, .L12+12
	bl	MSI_DatabaseOpenViewW
	ldr	r3, [r9]
	mov	r4, r0
	cmp	r3, r0
	bne	.L4
	mov	r1, r8
	ldr	r0, [sp]
	bl	MSI_ViewExecute
	mov	r4, r0
	ldr	r0, [sp]
	bl	msiobj_release
	ldr	r3, [r9]
	cmp	r3, r4
	beq	.L4
	mov	r0, r8
	bl	msiobj_release
	mov	r0, #2
	bl	MSI_CreateRecord
	subs	r10, r0, #0
	beq	.L8
	mov	r2, r7
	mov	r1, #1
	bl	MSI_RecordSetIStream
	ldr	r3, [r9]
	mov	r4, r0
	cmp	r3, r0
	bne	.L4
	mov	r2, r5
	mov	r1, #2
	mov	r0, r10
	bl	MSI_RecordSetStringW
	ldr	r3, [r9]
	mov	r4, r0
	cmp	r3, r0
	bne	.L4
	mov	r2, sp
	mov	r0, r6
	ldr	r1, .L12+16
	bl	MSI_DatabaseOpenViewW
	ldr	r3, [r9]
	mov	r4, r0
	cmp	r3, r0
	bne	.L4
	mov	r1, r10
	ldr	r0, [sp]
	bl	MSI_ViewExecute
	mov	r4, r0
	ldr	r0, [sp]
	bl	msiobj_release
	b	.L4
.L8:
	ldr	r3, .L12+20
	ldr	r4, [r3]
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	.LC0
	.word	ERROR_SUCCESS
	.word	.LANCHOR0
	.word	.LANCHOR0+52
	.word	ERROR_OUTOFMEMORY
	.size	add_stream, .-add_stream
	.comm	ERROR_SUCCESS,4,4
	.comm	ERROR_OUTOFMEMORY,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	insert.4244, %object
	.size	insert.4244, 52
insert.4244:
	.ascii	"INSERT INTO `_Streams` (`Name`,`Data`) VALUES (?,?)"
	.ascii	"\000"
	.type	update.4245, %object
	.size	update.4245, 50
update.4245:
	.ascii	"UPDATE `_Streams` SET `Data` = ? WHERE `Name` = ?\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
