	.file	"36074668.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Out of memory!. Aborting!"
.LC1:
	.string	"{0x%s, 0x%s, \"%s - %s\"},\n"
	.text
	.globl	ConvertDB
	.type	ConvertDB, @function
ConvertDB:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	edi, 64
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	je	.L2
	cmp	QWORD PTR -40[rbp], 0
	je	.L2
	cmp	QWORD PTR -32[rbp], 0
	jne	.L3
.L2:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L1
.L3:
	mov	BYTE PTR -14[rbp], 0
	mov	BYTE PTR -9[rbp], 0
	jmp	.L5
.L12:
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 67
	je	.L14
	cmp	eax, 67
	jg	.L7
	cmp	eax, 9
	je	.L8
	cmp	eax, 35
	jne	.L7
	jmp	.L5
.L8:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 9
	je	.L5
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, 1[rax]
	lea	rax, -13[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L10
	jmp	.L5
.L10:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 1
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -13[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -48[rbp]
	lea	rdi, 7[rax]
	mov	rsi, QWORD PTR -32[rbp]
	lea	rcx, -13[rbp]
	lea	rdx, -18[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	jmp	.L5
.L7:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -18[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 6[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L5:
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L12
	jmp	.L11
.L14:
	nop
.L11:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
.L1:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ConvertDB, .-ConvertDB
	.section	.rodata
.LC2:
	.string	"r"
.LC3:
	.string	"pci.ids"
.LC4:
	.string	"w+"
.LC5:
	.string	"vendors.h"
	.align 8
.LC6:
	.string	"#define\tPCI_DEVTABLE_LEN\t(sizeof(PciDevTable)/sizeof(PCI_DEVTABLE))\ntypedef struct _PCI_DEVTABLE\n{\n\tunsigned short\tVenID;\n\tunsigned short\tDevID;\n\tchar *\tCardName;\n} PCI_DEVTABLE, *PPCI_DEVTABLE;\n\nPCI_DEVTABLE\tPciDevTable [] =\n{\n"
.LC7:
	.string	"} ;\n"
	.align 8
.LC8:
	.string	"Error reading pci-database file '%s'.\n"
	.align 8
.LC9:
	.string	"Error opening file '%s' for writing.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L16
	cmp	QWORD PTR -8[rbp], 0
	je	.L16
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 228
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ConvertDB
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 4
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	jmp	.L20
.L16:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L18
	lea	rsi, .LC3[rip]
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L18:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L19
	lea	rsi, .LC5[rip]
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L19:
	mov	edi, 1
	call	exit@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"36074668.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Out of memory!. Aborting!\000"
	.align	2
.LC1:
	.ascii	"{0x%s, 0x%s, \"%s - %s\"},\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ConvertDB
	.syntax unified
	.arm
	.fpu softvfp
	.type	ConvertDB, %function
ConvertDB:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	mov	r0, #64
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r0, .L15+4
	bl	puts
	b	.L1
.L3:
	mov	r3, #0
	strb	r3, [fp, #-20]
	mov	r3, #0
	strb	r3, [fp, #-12]
	b	.L5
.L12:
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #67
	beq	.L14
	cmp	r3, #67
	bgt	.L7
	cmp	r3, #9
	beq	.L8
	cmp	r3, #35
	bne	.L7
	b	.L5
.L8:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	beq	.L5
	ldr	r3, [fp, #-36]
	add	r1, r3, #1
	sub	r3, fp, #16
	mov	r2, #4
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	b	.L5
.L10:
	ldr	r3, [fp, #-36]
	add	r1, r3, #1
	sub	r3, fp, #16
	mov	r2, #4
	mov	r0, r3
	bl	memcpy
	ldr	r0, [fp, #-36]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #7
	sub	r1, fp, #16
	sub	r2, fp, #24
	str	r3, [sp, #4]
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L15+8
	ldr	r0, [fp, #-32]
	bl	sprintf
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-32]
	bl	fputs
	b	.L5
.L7:
	sub	r3, fp, #24
	mov	r2, #4
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-36]
	add	r3, r3, #6
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	strcpy
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L5:
	ldr	r2, [fp, #-40]
	mov	r1, #1024
	ldr	r0, [fp, #-36]
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	b	.L11
.L14:
	nop
.L11:
	ldr	r0, [fp, #-36]
	bl	free
	ldr	r0, [fp, #-32]
	bl	free
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	ConvertDB, .-ConvertDB
	.section	.rodata
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	"pci.ids\000"
	.align	2
.LC5:
	.ascii	"w+\000"
	.align	2
.LC6:
	.ascii	"vendors.h\000"
	.align	2
.LC7:
	.ascii	"#define\011PCI_DEVTABLE_LEN\011(sizeof(PciDevTable)"
	.ascii	"/sizeof(PCI_DEVTABLE))\012typedef struct _PCI_DEVTA"
	.ascii	"BLE\012{\012\011unsigned short\011VenID;\012\011uns"
	.ascii	"igned short\011DevID;\012\011char *\011CardName;\012"
	.ascii	"} PCI_DEVTABLE, *PPCI_DEVTABLE;\012\012PCI_DEVTABLE"
	.ascii	"\011PciDevTable [] =\012{\012\000"
	.align	2
.LC8:
	.ascii	"} ;\012\000"
	.align	2
.LC9:
	.ascii	"Error reading pci-database file '%s'.\012\000"
	.align	2
.LC10:
	.ascii	"Error opening file '%s' for writing.\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r1, .L23
	ldr	r0, .L23+4
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r1, .L23+8
	ldr	r0, .L23+12
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-8]
	mov	r2, #228
	mov	r1, #1
	ldr	r0, .L23+16
	bl	fwrite
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	ConvertDB
	ldr	r3, [fp, #-8]
	mov	r2, #4
	mov	r1, #1
	ldr	r0, .L23+20
	bl	fwrite
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r0, [fp, #-8]
	bl	fclose
	mov	r3, #0
	b	.L22
.L18:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L20
	ldr	r1, .L23+4
	ldr	r0, .L23+24
	bl	printf
.L20:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L21
	ldr	r1, .L23+12
	ldr	r0, .L23+28
	bl	printf
.L21:
	mov	r0, #1
	bl	exit
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
