	.file	"extr_db.c_test_embedded_nulls.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to open database %u\n"
.LC1:
	.string	"temp_file"
.LC2:
	.string	"failed to import table %u\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"SELECT `Text` FROM `Control` WHERE `Dialog` = 'LicenseAgreementDlg'"
	.section	.rodata.str1.1
.LC4:
	.string	"query failed %u\n"
.LC5:
	.string	"failed to get string %u\n"
.LC6:
	.string	"text\r\ntext\ntext"
.LC7:
	.string	"wrong buffer contents \"%s\"\n"
	.text
	.p2align 4
	.type	test_embedded_nulls, @function
test_embedded_nulls:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	sub	rsp, 64
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR MSIDBOPEN_CREATE[rip]
	mov	edi, DWORD PTR msifileW[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	rdx, rsp
	lea	r12, 16[rsp]
	call	MsiOpenDatabaseW@PLT
	xor	edi, edi
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	esi, DWORD PTR CURR_DIR[rip]
	mov	edi, DWORD PTR MAX_PATH[rip]
	call	GetCurrentDirectoryA@PLT
	mov	edx, 70
	lea	rsi, control_table.1964[rip]
	lea	rdi, .LC1[rip]
	call	write_file@PLT
	mov	esi, DWORD PTR CURR_DIR[rip]
	mov	edi, DWORD PTR [rsp]
	lea	rdx, .LC1[rip]
	call	MsiDatabaseImportA@PLT
	xor	edi, edi
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	lea	rsi, .LC2[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	lea	rdi, .LC1[rip]
	call	DeleteFileA@PLT
	mov	edi, DWORD PTR [rsp]
	lea	rdx, 4[rsp]
	lea	rsi, .LC3[rip]
	call	do_query@PLT
	xor	edi, edi
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	lea	rsi, .LC4[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	edi, DWORD PTR 4[rsp]
	lea	rcx, 8[rsp]
	mov	rdx, r12
	mov	esi, 1
	mov	BYTE PTR 16[rsp], 0
	mov	QWORD PTR 8[rsp], 32
	call	MsiRecordGetStringA@PLT
	xor	edi, edi
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	lea	rsi, .LC5[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	edx, 15
	mov	rsi, r12
	lea	rdi, .LC6[rip]
	call	memcmp@PLT
	xor	edi, edi
	mov	rdx, r12
	lea	rsi, .LC7[rip]
	test	eax, eax
	sete	dil
	call	ok@PLT
	mov	edi, DWORD PTR 4[rsp]
	call	MsiCloseHandle@PLT
	mov	edi, DWORD PTR [rsp]
	call	MsiCloseHandle@PLT
	mov	rdi, QWORD PTR msifile[rip]
	call	DeleteFileA@PLT
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_embedded_nulls, .-test_embedded_nulls
	.section	.rodata
	.align 32
	.type	control_table.1964, @object
	.size	control_table.1964, 70
control_table.1964:
	.string	"Dialog\tText\ns72\tL0\nControl\tDialog\nLicenseAgreementDlg\ttext\021\031text"
	.string	"text"
	.comm	msifileW,4,4
	.comm	msifile,8,8
	.comm	MSIDBOPEN_CREATE,4,4
	.comm	MAX_PATH,4,4
	.comm	ERROR_SUCCESS,8,8
	.comm	CURR_DIR,4,4
	.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_db.c_test_embedded_nulls.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to open database %u\012\000"
	.align	2
.LC1:
	.ascii	"temp_file\000"
	.align	2
.LC2:
	.ascii	"failed to import table %u\012\000"
	.align	2
.LC3:
	.ascii	"SELECT `Text` FROM `Control` WHERE `Dialog` = 'Lice"
	.ascii	"nseAgreementDlg'\000"
	.align	2
.LC4:
	.ascii	"query failed %u\012\000"
	.align	2
.LC5:
	.ascii	"failed to get string %u\012\000"
	.align	2
.LC6:
	.ascii	"text\015\012text\012text\000"
	.align	2
.LC7:
	.ascii	"wrong buffer contents \"%s\"\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_embedded_nulls, %function
test_embedded_nulls:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L6
	ldr	r2, .L6+4
	sub	sp, sp, #52
	ldr	r0, [r3]
	ldr	r3, .L6+8
	ldr	r1, [r2]
	add	r2, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	bl	MsiOpenDatabaseW
	mov	r2, r0
	ldr	r4, .L6+12
	ldr	r1, .L6+16
	ldr	r0, [r4]
	ldr	r5, .L6+20
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r3, .L6+24
	ldr	r1, [r5]
	ldr	r0, [r3]
	bl	GetCurrentDirectoryA
	mov	r2, #70
	ldr	r1, .L6+28
	ldr	r0, .L6+32
	bl	write_file
	ldr	r1, [r5]
	ldr	r2, .L6+32
	ldr	r0, [sp, #4]
	bl	MsiDatabaseImportA
	mov	r2, r0
	ldr	r0, [r4]
	ldr	r1, .L6+36
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, .L6+32
	bl	DeleteFileA
	ldr	r1, .L6+40
	add	r2, sp, #8
	ldr	r0, [sp, #4]
	bl	do_query
	mov	r2, r0
	ldr	r0, [r4]
	ldr	r1, .L6+44
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r0, #0
	mov	ip, #32
	mov	r3, sp
	mov	r1, #1
	add	r2, sp, #12
	strb	r0, [sp, #12]
	ldr	r0, [sp, #8]
	str	ip, [sp]
	bl	MsiRecordGetStringA
	mov	r2, r0
	ldr	r0, [r4]
	ldr	r1, .L6+48
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r2, #15
	add	r1, sp, #12
	ldr	r0, .L6+52
	bl	memcmp
	clz	r0, r0
	add	r2, sp, #12
	ldr	r1, .L6+56
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [sp, #8]
	bl	MsiCloseHandle
	ldr	r0, [sp, #4]
	bl	MsiCloseHandle
	ldr	r3, .L6+60
	ldr	r0, [r3]
	bl	DeleteFileA
	ldr	r3, .L6+8
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	msifileW
	.word	MSIDBOPEN_CREATE
	.word	.LC8
	.word	ERROR_SUCCESS
	.word	.LC0
	.word	CURR_DIR
	.word	MAX_PATH
	.word	.LANCHOR0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	msifile
	.size	test_embedded_nulls, .-test_embedded_nulls
	.comm	msifileW,4,4
	.comm	msifile,4,4
	.comm	MSIDBOPEN_CREATE,4,4
	.comm	MAX_PATH,4,4
	.comm	ERROR_SUCCESS,4,4
	.comm	CURR_DIR,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	control_table.4248, %object
	.size	control_table.4248, 70
control_table.4248:
	.ascii	"Dialog\011Text\012s72\011L0\012Control\011Dialog\012"
	.ascii	"LicenseAgreementDlg\011text\021\031text\000text\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
