	.file	"19392.c"
	.intel_syntax noprefix
	.text
	.globl	skip
	.bss
	.align 4
	.type	skip, @object
	.size	skip, 4
skip:
	.zero	4
	.globl	eof
	.align 4
	.type	eof, @object
	.size	eof, 4
eof:
	.zero	4
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"cannot open %s\n"
.LC2:
	.string	"too many input files\n"
.LC3:
	.string	"%05xh\t"
	.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
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -20[rbp], 0
	mov	ebx, 1
	jmp	.L2
.L8:
	movsx	rax, ebx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L3
	movsx	rax, ebx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	mov	rdi, rax
	mov	eax, 0
	call	atoi@PLT
	mov	DWORD PTR skip[rip], eax
	jmp	.L4
.L3:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L5
	mov	rdx, QWORD PTR stdin[rip]
	movsx	rax, ebx
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	freopen@PLT
	test	rax, rax
	jne	.L6
	movsx	rax, ebx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L7
.L6:
	mov	DWORD PTR -20[rbp], 1
	jmp	.L4
.L5:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L7
.L4:
	add	ebx, 1
.L2:
	cmp	ebx, DWORD PTR -36[rbp]
	jl	.L8
	jmp	.L9
.L10:
	call	getchar@PLT
.L9:
	mov	eax, DWORD PTR skip[rip]
	sub	eax, 1
	mov	DWORD PTR skip[rip], eax
	mov	eax, DWORD PTR skip[rip]
	test	eax, eax
	jns	.L10
	mov	ebx, 0
	jmp	.L11
.L12:
	mov	esi, ebx
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	mov	edi, eax
	mov	eax, 0
	call	prbyte
	mov	edi, 32
	call	putchar@PLT
	call	getchar@PLT
	mov	edi, eax
	mov	eax, 0
	call	prbyte
	call	getchar@PLT
	mov	edi, eax
	mov	eax, 0
	call	prbyte
	call	getchar@PLT
	mov	edi, eax
	mov	eax, 0
	call	prbyte
	call	getchar@PLT
	mov	edi, eax
	mov	eax, 0
	call	prbyte
	mov	edi, 32
	call	putchar@PLT
	call	getchar@PLT
	mov	edi, eax
	mov	eax, 0
	call	prbyte
	call	getchar@PLT
	mov	edi, eax
	mov	eax, 0
	call	prbyte
	call	getchar@PLT
	mov	edi, eax
	mov	eax, 0
	call	prbyte
	call	getchar@PLT
	mov	edi, eax
	mov	eax, 0
	call	prbyte
	mov	edi, 10
	call	putchar@PLT
	add	ebx, 1
.L11:
	mov	eax, DWORD PTR eof[rip]
	test	eax, eax
	je	.L12
	mov	eax, 0
.L7:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC4:
	.string	"%02x"
	.text
	.globl	prbyte
	.type	prbyte, @function
prbyte:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	esi, edi
	test	esi, esi
	jns	.L14
	mov	DWORD PTR eof[rip], 1
	jmp	.L15
.L14:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	prbyte, .-prbyte
	.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	"19392.c"
	.text
	.global	skip
	.bss
	.align	2
	.type	skip, %object
	.size	skip, 4
skip:
	.space	4
	.global	eof
	.align	2
	.type	eof, %object
	.size	eof, 4
eof:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"cannot open %s\012\000"
	.align	2
.LC2:
	.ascii	"too many input files\012\000"
	.align	2
.LC3:
	.ascii	"%05xh\011\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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r4, #1
	b	.L2
.L8:
	mov	r3, r4
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L3
	mov	r3, r4
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L13
	str	r3, [r2]
	b	.L4
.L3:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L5
	mov	r3, r4
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L13+4
	ldr	r2, [r2]
	ldr	r1, .L13+8
	mov	r0, r3
	bl	freopen
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L13+12
	ldr	r0, [r3]
	mov	r3, r4
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L13+16
	bl	fprintf
	mov	r3, #1
	b	.L7
.L6:
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L4
.L5:
	ldr	r3, .L13+12
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L13+20
	bl	fwrite
	mov	r3, #1
	b	.L7
.L4:
	add	r4, r4, #1
.L2:
	ldr	r3, [fp, #-24]
	cmp	r4, r3
	blt	.L8
	b	.L9
.L10:
	bl	getchar
.L9:
	ldr	r3, .L13
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L13
	str	r3, [r2]
	ldr	r3, .L13
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L10
	mov	r4, #0
	b	.L11
.L12:
	mov	r1, r4
	ldr	r0, .L13+24
	bl	printf
	bl	getchar
	mov	r3, r0
	mov	r0, r3
	bl	prbyte
	mov	r0, #32
	bl	putchar
	bl	getchar
	mov	r3, r0
	mov	r0, r3
	bl	prbyte
	bl	getchar
	mov	r3, r0
	mov	r0, r3
	bl	prbyte
	bl	getchar
	mov	r3, r0
	mov	r0, r3
	bl	prbyte
	bl	getchar
	mov	r3, r0
	mov	r0, r3
	bl	prbyte
	mov	r0, #32
	bl	putchar
	bl	getchar
	mov	r3, r0
	mov	r0, r3
	bl	prbyte
	bl	getchar
	mov	r3, r0
	mov	r0, r3
	bl	prbyte
	bl	getchar
	mov	r3, r0
	mov	r0, r3
	bl	prbyte
	bl	getchar
	mov	r3, r0
	mov	r0, r3
	bl	prbyte
	mov	r0, #10
	bl	putchar
	add	r4, r4, #1
.L11:
	ldr	r3, .L13+28
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L12
	mov	r3, #0
.L7:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	skip
	.word	stdin
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	eof
	.size	main, .-main
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%02x\000"
	.text
	.align	2
	.global	prbyte
	.syntax unified
	.arm
	.fpu softvfp
	.type	prbyte, %function
prbyte:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r3, r0
	cmp	r3, #0
	bge	.L16
	ldr	r3, .L18
	mov	r2, #1
	str	r2, [r3]
	b	.L17
.L16:
	mov	r1, r3
	ldr	r0, .L18+4
	bl	printf
.L17:
	nop
	mov	r0, r3
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	eof
	.word	.LC4
	.size	prbyte, .-prbyte
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
