	.file	"519359.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"add"
.LC1:
	.string	"append"
.LC2:
	.string	"delete"
.LC3:
	.string	"verbose"
.LC4:
	.string	"create"
.LC5:
	.string	"file"
	.section	.data.rel.local,"aw"
	.align 32
	.type	long_options, @object
	.size	long_options, 224
long_options:
	.quad	.LC0
	.long	1
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	.LC1
	.long	0
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	.LC2
	.long	1
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	.LC3
	.long	0
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	.LC4
	.long	1
	.zero	4
	.quad	0
	.long	99
	.zero	4
	.quad	.LC5
	.long	1
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.section	.rodata
.LC6:
	.string	"\nGenerate a pattern file"
	.align 8
.LC7:
	.string	"\nUsage: %s [-f file] [-l lower] [-u upper] [-s size] [-h]\n"
	.align 8
.LC8:
	.string	"\t-f\tfile path (Cannot overwrite an exist file)"
	.align 8
.LC9:
	.string	"\t-l\tlowest hexadecimal number (0-255)"
	.align 8
.LC10:
	.string	"\t-u\tlargest hexadecimal number (0-255)"
.LC11:
	.string	"\t-s\tfile size in bytes"
.LC12:
	.string	"\t-h\tshow this help\n"
	.text
	.globl	show_help
	.type	show_help, @function
show_help:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	show_help, .-show_help
	.section	.rodata
.LC13:
	.string	"f:l:s:u:h"
.LC14:
	.string	"wb"
.LC15:
	.string	"Open file failed"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 80
	mov	DWORD PTR -4164[rbp], edi
	mov	QWORD PTR -4176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 8391439140964033896
	mov	edx, 7238245
	mov	QWORD PTR -4112[rbp], rax
	mov	QWORD PTR -4104[rbp], rdx
	lea	rdx, -4096[rbp]
	mov	eax, 0
	mov	ecx, 510
	mov	rdi, rdx
	rep stosq
	mov	DWORD PTR -4148[rbp], 0
	mov	QWORD PTR -4144[rbp], 0
	mov	QWORD PTR -4136[rbp], 255
	mov	QWORD PTR -4128[rbp], 1024
	mov	QWORD PTR -4120[rbp], 0
.L12:
	mov	DWORD PTR -4160[rbp], 0
	lea	rdx, -4160[rbp]
	mov	rsi, QWORD PTR -4176[rbp]
	mov	eax, DWORD PTR -4164[rbp]
	mov	r8, rdx
	lea	rcx, long_options[rip]
	lea	rdx, .LC13[rip]
	mov	edi, eax
	call	getopt_long@PLT
	mov	DWORD PTR -4148[rbp], eax
	cmp	DWORD PTR -4148[rbp], -1
	jne	.L3
	cmp	QWORD PTR -4128[rbp], 0
	je	.L4
	jmp	.L19
.L3:
	cmp	DWORD PTR -4148[rbp], 117
	je	.L6
	cmp	DWORD PTR -4148[rbp], 117
	jg	.L7
	cmp	DWORD PTR -4148[rbp], 115
	je	.L8
	cmp	DWORD PTR -4148[rbp], 115
	jg	.L7
	cmp	DWORD PTR -4148[rbp], 102
	je	.L9
	cmp	DWORD PTR -4148[rbp], 108
	je	.L10
	jmp	.L7
.L9:
	lea	rax, -4112[rbp]
	mov	edx, 4096
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR optarg[rip]
	lea	rax, -4112[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	jmp	.L11
.L10:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	QWORD PTR -4144[rbp], rax
	jmp	.L11
.L6:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	QWORD PTR -4136[rbp], rax
	jmp	.L11
.L8:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	QWORD PTR -4128[rbp], rax
	jmp	.L11
.L7:
	mov	rax, QWORD PTR -4176[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	show_help
.L11:
	jmp	.L12
.L19:
	mov	rax, QWORD PTR -4144[rbp]
	cmp	rax, QWORD PTR -4136[rbp]
	ja	.L4
	cmp	QWORD PTR -4144[rbp], 255
	ja	.L4
	cmp	QWORD PTR -4136[rbp], 255
	ja	.L4
	lea	rax, -4112[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	jne	.L13
.L4:
	mov	rax, QWORD PTR -4176[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	show_help
	mov	edi, 1
	call	exit@PLT
.L13:
	lea	rax, -4112[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -4120[rbp], rax
	cmp	QWORD PTR -4120[rbp], 0
	jne	.L14
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	DWORD PTR -4156[rbp], 0
	mov	rax, QWORD PTR -4144[rbp]
	mov	DWORD PTR -4152[rbp], eax
	jmp	.L15
.L17:
	mov	eax, DWORD PTR -4152[rbp]
	cdqe
	mov	rdx, QWORD PTR -4136[rbp]
	lea	rcx, 1[rdx]
	mov	edx, 0
	div	rcx
	mov	rax, rdx
	test	rax, rax
	jne	.L16
	mov	rax, QWORD PTR -4144[rbp]
	mov	DWORD PTR -4152[rbp], eax
.L16:
	mov	rdx, QWORD PTR -4120[rbp]
	mov	eax, DWORD PTR -4152[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	add	DWORD PTR -4156[rbp], 1
	add	DWORD PTR -4152[rbp], 1
.L15:
	mov	eax, DWORD PTR -4156[rbp]
	cdqe
	cmp	QWORD PTR -4128[rbp], rax
	jne	.L17
	mov	rax, QWORD PTR -4120[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	QWORD PTR -4120[rbp], 0
	mov	edi, 0
	call	exit@PLT
	.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	"519359.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"add\000"
	.align	2
.LC1:
	.ascii	"append\000"
	.align	2
.LC2:
	.ascii	"delete\000"
	.align	2
.LC3:
	.ascii	"verbose\000"
	.align	2
.LC4:
	.ascii	"create\000"
	.align	2
.LC5:
	.ascii	"file\000"
	.data
	.align	2
	.type	long_options, %object
	.size	long_options, 112
long_options:
	.word	.LC0
	.word	1
	.word	0
	.word	0
	.word	.LC1
	.word	0
	.word	0
	.word	0
	.word	.LC2
	.word	1
	.word	0
	.word	0
	.word	.LC3
	.word	0
	.word	0
	.word	0
	.word	.LC4
	.word	1
	.word	0
	.word	99
	.word	.LC5
	.word	1
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.section	.rodata
	.align	2
.LC6:
	.ascii	"\012Generate a pattern file\000"
	.align	2
.LC7:
	.ascii	"\012Usage: %s [-f file] [-l lower] [-u upper] [-s s"
	.ascii	"ize] [-h]\012\000"
	.align	2
.LC8:
	.ascii	"\011-f\011file path (Cannot overwrite an exist file"
	.ascii	")\000"
	.align	2
.LC9:
	.ascii	"\011-l\011lowest hexadecimal number (0-255)\000"
	.align	2
.LC10:
	.ascii	"\011-u\011largest hexadecimal number (0-255)\000"
	.align	2
.LC11:
	.ascii	"\011-s\011file size in bytes\000"
	.align	2
.LC12:
	.ascii	"\011-h\011show this help\012\000"
	.text
	.align	2
	.global	show_help
	.syntax unified
	.arm
	.fpu softvfp
	.type	show_help, %function
show_help:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, .L2
	bl	puts
	ldr	r1, [fp, #-8]
	ldr	r0, .L2+4
	bl	printf
	ldr	r0, .L2+8
	bl	puts
	ldr	r0, .L2+12
	bl	puts
	ldr	r0, .L2+16
	bl	puts
	ldr	r0, .L2+20
	bl	puts
	ldr	r0, .L2+24
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	show_help, .-show_help
	.section	.rodata
	.align	2
.LC14:
	.ascii	"f:l:s:u:h\000"
	.align	2
.LC15:
	.ascii	"wb\000"
	.align	2
.LC16:
	.ascii	"Open file failed\000"
	.global	__aeabi_uidivmod
	.align	2
.LC13:
	.ascii	"hex_pattern\000"
	.space	4084
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #60
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-44]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-48]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	ip, r3
	ldr	r2, .L23+4
	sub	r3, ip, #4
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	add	r3, ip, #8
	ldr	r2, .L23+8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-32]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #255
	str	r3, [r2, #-28]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1024
	str	r3, [r2, #-24]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-8]
.L15:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-36]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #36
	str	r3, [sp]
	ldr	r3, .L23+12
	ldr	r2, .L23+16
	ldr	r1, [r1, #-48]
	ldr	r0, [r0, #-44]
	bl	getopt_long
	str	r0, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmn	r3, #1
	bne	.L5
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	cmp	r3, #0
	beq	.L6
	b	.L22
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r3, r3, #102
	cmp	r3, #15
	ldrls	pc, [pc, r3, asl #2]
	b	.L8
.L10:
	.word	.L13
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L12
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L11
	.word	.L8
	.word	.L9
.L13:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4096
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L23+20
	ldr	r4, [r3]
	ldr	r3, .L23+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r4
	mov	r0, r3
	bl	memcpy
	b	.L14
.L12:
	ldr	r3, .L23+20
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [r4, #-32]
	b	.L14
.L9:
	ldr	r3, .L23+20
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [r4, #-28]
	b	.L14
.L11:
	ldr	r3, .L23+20
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [r4, #-24]
	b	.L14
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	ldr	r3, [r3]
	mov	r0, r3
	bl	show_help
.L14:
	b	.L15
.L22:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-32]
	ldr	r3, [r3, #-28]
	cmp	r2, r3
	bhi	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	cmp	r3, #255
	bhi	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	cmp	r3, #255
	bhi	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #0
	mov	r0, r3
	bl	access
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	ldr	r3, [r3]
	mov	r0, r3
	bl	show_help
	mov	r0, #1
	bl	exit
.L16:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L23+24
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bne	.L17
	ldr	r0, .L23+28
	bl	perror
	mov	r0, #1
	bl	exit
.L17:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	str	r3, [r2, #-16]
	b	.L18
.L20:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_uidivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L19
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	str	r3, [r2, #-16]
.L19:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r2, #-8]
	ldr	r0, [r3, #-16]
	bl	fputc
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	add	r3, r3, #1
	str	r3, [r2, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	add	r3, r3, #1
	str	r3, [r2, #-16]
.L18:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-24]
	cmp	r2, r3
	bne	.L20
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-8]
	bl	fclose
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-8]
	mov	r0, #0
	bl	exit
.L24:
	.align	2
.L23:
	.word	.LC17
	.word	.LC13
	.word	4084
	.word	long_options
	.word	.LC14
	.word	optarg
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
