	.file	"147254.c"
	.intel_syntax noprefix
	.text
	.globl	nskip
	.data
	.align 8
	.type	nskip, @object
	.size	nskip, 8
nskip:
	.quad	32
	.globl	lenmask
	.align 4
	.type	lenmask, @object
	.size	lenmask, 4
lenmask:
	.long	4095
	.section	.rodata
	.align 8
.LC0:
	.string	"usage: bintoc [-S] [-s skipbytes] [-l log2_len_allign] file.bin array_name\n"
	.text
	.type	usage, @function
usage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 75
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.section	.rodata
.LC1:
	.string	"Ss:l:"
.LC2:
	.string	"r"
.LC3:
	.string	"\t.text\n\n\t.global _%s\n_%s:"
.LC4:
	.string	"unsigned char %s[] = {\n"
.LC5:
	.string	"\n\t.byte"
.LC6:
	.string	","
.LC7:
	.string	" 0x%02x"
.LC8:
	.string	" 0x00"
	.align 8
.LC9:
	.string	"\n\n\t.globl _%s_size\n_%s_size:\n\t.long (_%s_size - _%s)\t\t# 0x%x\n"
.LC10:
	.string	"\n};"
	.align 8
.LC11:
	.string	"const unsigned int %s_size = sizeof (%s);  /* 0x%x */\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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	mov	rax, QWORD PTR stdout[rip]
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	jmp	.L3
.L10:
	cmp	DWORD PTR -28[rbp], 115
	je	.L4
	cmp	DWORD PTR -28[rbp], 115
	jg	.L5
	cmp	DWORD PTR -28[rbp], 83
	je	.L6
	cmp	DWORD PTR -28[rbp], 108
	je	.L7
	jmp	.L5
.L6:
	mov	DWORD PTR -36[rbp], 1
	jmp	.L3
.L7:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR lenmask[rip], eax
	mov	eax, DWORD PTR lenmask[rip]
	test	eax, eax
	js	.L8
	mov	eax, DWORD PTR lenmask[rip]
	cmp	eax, 16
	jle	.L9
.L8:
	call	usage
.L9:
	mov	eax, DWORD PTR lenmask[rip]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	sub	eax, 1
	mov	DWORD PTR lenmask[rip], eax
	jmp	.L3
.L4:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	mov	QWORD PTR nskip[rip], rax
	jmp	.L3
.L5:
	call	usage
	nop
.L3:
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	lea	rdx, .LC1[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], -1
	jne	.L10
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -64[rbp], rax
	cmp	DWORD PTR -52[rbp], 2
	je	.L11
	call	usage
.L11:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L12
	mov	rcx, QWORD PTR nskip[rip]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	je	.L13
.L12:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 47
	mov	rdi, rax
	call	rindex@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L14
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L15
.L14:
	add	QWORD PTR -24[rbp], 1
.L15:
	mov	rax, QWORD PTR -64[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	cmp	DWORD PTR -36[rbp], 0
	je	.L16
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L16:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L22:
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -32[rbp], edx
	and	eax, 7
	test	eax, eax
	jne	.L19
	cmp	DWORD PTR -36[rbp], 0
	je	.L20
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L21
.L20:
	cmp	DWORD PTR -32[rbp], 1
	jle	.L21
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L21
.L19:
	mov	edi, 44
	call	putchar@PLT
.L21:
	movzx	eax, BYTE PTR -37[rbp]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L18:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -37[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	je	.L22
	jmp	.L23
.L27:
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -32[rbp], edx
	and	eax, 7
	test	eax, eax
	jne	.L24
	cmp	DWORD PTR -36[rbp], 0
	je	.L25
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
.L25:
	cmp	DWORD PTR -32[rbp], 1
	jle	.L26
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L26
.L24:
	mov	edi, 44
	call	putchar@PLT
.L26:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L23:
	mov	eax, DWORD PTR lenmask[rip]
	and	eax, DWORD PTR -32[rbp]
	test	eax, eax
	jne	.L27
	cmp	DWORD PTR -36[rbp], 0
	je	.L28
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR -32[rbp]
	mov	r9d, edi
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L29
.L28:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	ecx, DWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L29:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	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	"147254.c"
	.text
	.global	nskip
	.data
	.align	2
	.type	nskip, %object
	.size	nskip, 4
nskip:
	.word	32
	.global	lenmask
	.align	2
	.type	lenmask, %object
	.size	lenmask, 4
lenmask:
	.word	4095
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: bintoc [-S] [-s skipbytes] [-l log2_len_alli"
	.ascii	"gn] file.bin array_name\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #75
	mov	r1, #1
	ldr	r0, .L2+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Ss:l:\000"
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"\011.text\012\012\011.global _%s\012_%s:\000"
	.align	2
.LC4:
	.ascii	"unsigned char %s[] = {\012\000"
	.align	2
.LC5:
	.ascii	"\012\011.byte\000"
	.align	2
.LC6:
	.ascii	",\000"
	.align	2
.LC7:
	.ascii	" 0x%02x\000"
	.align	2
.LC8:
	.ascii	" 0x00\000"
	.align	2
.LC9:
	.ascii	"\012\012\011.globl _%s_size\012_%s_size:\012\011.lo"
	.ascii	"ng (_%s_size - _%s)\011\011# 0x%x\012\000"
	.align	2
.LC10:
	.ascii	"\012};\000"
	.align	2
.LC11:
	.ascii	"const unsigned int %s_size = sizeof (%s);  /* 0x%x "
	.ascii	"*/\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L34+4
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	bl	setvbuf
	b	.L5
.L12:
	ldr	r3, [fp, #-16]
	cmp	r3, #115
	beq	.L6
	ldr	r3, [fp, #-16]
	cmp	r3, #115
	bgt	.L7
	ldr	r3, [fp, #-16]
	cmp	r3, #83
	beq	.L8
	ldr	r3, [fp, #-16]
	cmp	r3, #108
	beq	.L9
	b	.L7
.L8:
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L5
.L9:
	ldr	r3, .L34+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L34+12
	str	r3, [r2]
	ldr	r3, .L34+12
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L10
	ldr	r3, .L34+12
	ldr	r3, [r3]
	cmp	r3, #16
	ble	.L11
.L10:
	bl	usage
.L11:
	ldr	r3, .L34+12
	ldr	r3, [r3]
	mov	r2, #1
	lsl	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, .L34+12
	str	r3, [r2]
	b	.L5
.L6:
	ldr	r3, .L34+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L34+16
	str	r3, [r2]
	b	.L5
.L7:
	bl	usage
	nop
.L5:
	ldr	r2, .L34+20
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	getopt
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L12
	ldr	r3, .L34+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	sub	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, .L34+24
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	beq	.L13
	bl	usage
.L13:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldr	r1, .L34+28
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L34+16
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
.L14:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mov	r0, #1
	bl	exit
.L15:
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #47
	mov	r0, r3
	bl	rindex
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-20]
	b	.L17
.L16:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L17:
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L34+32
	bl	printf
	b	.L20
.L18:
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L34+36
	bl	printf
	b	.L20
.L24:
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	and	r3, r3, #7
	cmp	r3, #0
	bne	.L21
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L22
	ldr	r0, .L34+40
	bl	printf
	b	.L23
.L22:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	ble	.L23
	ldr	r0, .L34+44
	bl	puts
	b	.L23
.L21:
	mov	r0, #44
	bl	putchar
.L23:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L34+48
	bl	printf
.L20:
	sub	r0, fp, #29
	ldr	r3, [fp, #-12]
	mov	r2, #1
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L24
	b	.L25
.L29:
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	and	r3, r3, #7
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L27
	ldr	r0, .L34+40
	bl	printf
	b	.L28
.L27:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	ble	.L28
	ldr	r0, .L34+44
	bl	puts
	b	.L28
.L26:
	mov	r0, #44
	bl	putchar
.L28:
	ldr	r0, .L34+52
	bl	printf
.L25:
	ldr	r3, .L34+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L29
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r0, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	ip, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r0, .L34+56
	bl	printf
	b	.L31
.L30:
	ldr	r0, .L34+60
	bl	puts
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r0, .L34+64
	bl	printf
.L31:
	mov	r3, #0
	ldr	r2, .L34
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC12
	.word	stdout
	.word	optarg
	.word	lenmask
	.word	nskip
	.word	.LC1
	.word	optind
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
