	.file	"273340.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Usage: idtgen filename"
.LC1:
	.string	"w+"
.LC2:
	.string	"could not write to %s\n"
.LC3:
	.string	"# handler\n"
.LC4:
	.string	".text\n"
.LC5:
	.string	".globl __interrupt_entry\n"
.LC6:
	.string	".globl vector%d\n"
.LC7:
	.string	"vector%d:\n"
.LC8:
	.string	"  pushl $0\n"
.LC9:
	.string	"  pushl $%d\n"
.LC10:
	.string	"  jmp __interrupt_entry\n"
.LC11:
	.string	"# vector table\n"
.LC12:
	.string	".data\n"
.LC13:
	.string	".globl __idt_vectors\n"
.LC14:
	.string	"__idt_vectors:\n"
.LC15:
	.string	"  .long vector%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	cmp	DWORD PTR -20[rbp], 2
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 10
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L5
.L8:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -12[rbp], 7
	jle	.L6
	cmp	DWORD PTR -12[rbp], 14
	jle	.L7
.L6:
	cmp	DWORD PTR -12[rbp], 17
	je	.L7
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
.L7:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	add	DWORD PTR -12[rbp], 1
.L5:
	cmp	DWORD PTR -12[rbp], 255
	jle	.L8
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L9
.L10:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -12[rbp], 1
.L9:
	cmp	DWORD PTR -12[rbp], 255
	jle	.L10
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"273340.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: idtgen filename\000"
	.align	2
.LC1:
	.ascii	"w+\000"
	.align	2
.LC2:
	.ascii	"could not write to %s\012\000"
	.align	2
.LC3:
	.ascii	"# handler\012\000"
	.align	2
.LC4:
	.ascii	".text\012\000"
	.align	2
.LC5:
	.ascii	".globl __interrupt_entry\012\000"
	.align	2
.LC6:
	.ascii	".globl vector%d\012\000"
	.align	2
.LC7:
	.ascii	"vector%d:\012\000"
	.align	2
.LC8:
	.ascii	"  pushl $0\012\000"
	.align	2
.LC9:
	.ascii	"  pushl $%d\012\000"
	.align	2
.LC10:
	.ascii	"  jmp __interrupt_entry\012\000"
	.align	2
.LC11:
	.ascii	"# vector table\012\000"
	.align	2
.LC12:
	.ascii	".data\012\000"
	.align	2
.LC13:
	.ascii	".globl __idt_vectors\012\000"
	.align	2
.LC14:
	.ascii	"__idt_vectors:\012\000"
	.align	2
.LC15:
	.ascii	"  .long vector%d\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	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L2
	ldr	r0, .L11
	bl	puts
	mov	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L11+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+8
	bl	printf
	mov	r3, #0
	b	.L3
.L4:
	ldr	r3, [fp, #-8]
	mov	r2, #10
	mov	r1, #1
	ldr	r0, .L11+12
	bl	fwrite
	ldr	r3, [fp, #-8]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L11+16
	bl	fwrite
	ldr	r3, [fp, #-8]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L11+20
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L5
.L8:
	ldr	r2, [fp, #-12]
	ldr	r1, .L11+24
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r2, [fp, #-12]
	ldr	r1, .L11+28
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L6
	ldr	r3, [fp, #-12]
	cmp	r3, #14
	ble	.L7
.L6:
	ldr	r3, [fp, #-12]
	cmp	r3, #17
	beq	.L7
	ldr	r3, [fp, #-8]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L11+32
	bl	fwrite
.L7:
	ldr	r2, [fp, #-12]
	ldr	r1, .L11+36
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-8]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L11+40
	bl	fwrite
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L5:
	ldr	r3, [fp, #-12]
	cmp	r3, #255
	ble	.L8
	ldr	r1, [fp, #-8]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-8]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L11+44
	bl	fwrite
	ldr	r3, [fp, #-8]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L11+48
	bl	fwrite
	ldr	r3, [fp, #-8]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L11+52
	bl	fwrite
	ldr	r3, [fp, #-8]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L11+56
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L9
.L10:
	ldr	r2, [fp, #-12]
	ldr	r1, .L11+60
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L9:
	ldr	r3, [fp, #-12]
	cmp	r3, #255
	ble	.L10
	ldr	r0, [fp, #-8]
	bl	fclose
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
