	.file	"extr_19277.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"bufsize too small, code is %d bytes long\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Can't malloc"
.LC2:
	.string	"address=%p\n"
.LC3:
	.string	"buflen=%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rdi, QWORD PTR nop[rip]
	mov	r15d, DWORD PTR OFFS[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR ADDRS[rip]
	mov	ebp, DWORD PTR BUFSIZE[rip]
	mov	r14d, DWORD PTR ALIGN[rip]
	mov	DWORD PTR 12[rsp], eax
	call	strlen@PLT
	mov	ebx, eax
	cmp	r12d, 1
	jg	.L27
.L2:
	mov	rdi, QWORD PTR asmcode[rip]
	call	strlen@PLT
	cmp	eax, ebp
	jg	.L28
.L3:
	mov	eax, DWORD PTR ADDRS[rip]
	lea	eax, 0[rbp+rax*4]
	lea	edi, 1[rbx+rax]
	call	malloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L29
.L4:
	xor	eax, eax
	call	[QWORD PTR jump[rip]]
	lea	rdi, .LC2[rip]
	add	r15d, eax
	xor	eax, eax
	mov	esi, r15d
	mov	DWORD PTR 16[rsp], r15d
	call	printf@PLT
	mov	rsi, QWORD PTR nop[rip]
	mov	rdi, r12
	call	strcpy@PLT
	mov	eax, 4
	movsx	rcx, ebx
	sub	eax, r14d
	lea	r13, [r12+rcx]
	cdqe
	add	r12, rax
	test	ebp, ebp
	jle	.L5
	lea	esi, -1[rbp]
	xor	ecx, ecx
	lea	rdi, 1[rsi]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, ecx
	cdq
	idiv	ebx
	mov	rax, QWORD PTR nop[rip]
	movsx	rdx, edx
	movzx	eax, BYTE PTR [rax+rdx]
	mov	BYTE PTR 0[r13+rcx], al
	mov	rax, rcx
	add	rcx, 1
	cmp	rsi, rax
	jne	.L6
	add	r13, rdi
.L5:
	mov	rdi, QWORD PTR asmcode[rip]
	call	strlen@PLT
	mov	rbp, QWORD PTR asmcode[rip]
	mov	r14d, eax
	mov	rdi, rbp
	call	strlen@PLT
	mov	rdi, r13
	mov	edx, r14d
	mov	rsi, rbp
	cdqe
	sub	rdi, rax
	call	memcpy@PLT
	mov	ebx, DWORD PTR 12[rsp]
	sal	ebx, 2
	test	ebx, ebx
	jle	.L7
	lea	ecx, -1[rbx]
	xor	eax, eax
	lea	rsi, 1[rcx]
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdx, rax
	and	edx, 3
	movzx	edx, BYTE PTR 16[rsp+rdx]
	mov	BYTE PTR 0[r13+rax], dl
	mov	rdx, rax
	add	rax, 1
	cmp	rcx, rdx
	jne	.L8
	add	r13, rsi
.L7:
	mov	BYTE PTR 0[r13], 0
	mov	rdi, r12
	movsx	rbx, ebx
	call	strlen@PLT
	lea	rdi, .LC3[rip]
	mov	esi, eax
	xor	eax, eax
	call	printf@PLT
	mov	edi, DWORD PTR stdout[rip]
	call	fflush@PLT
	mov	eax, DWORD PTR ALIGN2[rip]
	mov	rcx, r13
	sub	rcx, rbx
	lea	eax, 1204[r15+rax]
	mov	DWORD PTR 16[rsp], eax
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdx, rax
	and	edx, 3
	movzx	edx, BYTE PTR 16[rsp+rdx]
	mov	BYTE PTR [rcx+rax], dl
	add	rax, 1
	cmp	rax, 64
	jne	.L9
	movsx	rax, DWORD PTR ALIGN[rip]
	lea	rbx, 512[r12+rax]
	xor	eax, eax
	call	[QWORD PTR jump[rip]]
	mov	r8, rax
	mov	eax, DWORD PTR ALIGN2[rip]
	add	eax, DWORD PTR OFFS[rip]
	lea	eax, 33244[rax+r8]
	mov	DWORD PTR 16[rsp], eax
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdx, rax
	and	edx, 3
	movzx	edx, BYTE PTR 16[rsp+rdx]
	mov	BYTE PTR [rbx+rax], dl
	add	rax, 1
	cmp	rax, 64
	jne	.L10
	mov	rdi, r12
	call	run@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[r13]
	call	atoi@PLT
	mov	ebp, eax
	cmp	r12d, 2
	je	.L2
	mov	rdi, QWORD PTR 16[r13]
	call	atoi@PLT
	mov	r15d, eax
	cmp	r12d, 3
	je	.L2
	mov	rdi, QWORD PTR 24[r13]
	call	atoi@PLT
	mov	DWORD PTR 12[rsp], eax
	cmp	r12d, 4
	je	.L2
	mov	rdi, QWORD PTR 32[r13]
	call	atoi@PLT
	mov	r14d, eax
	jmp	.L2
.L28:
	mov	rdi, QWORD PTR asmcode[rip]
	call	strlen@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	xor	eax, eax
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L3
.L29:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L4
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	stdout,4,4
	.comm	nop,8,8
	.comm	jump,8,8
	.comm	asmcode,8,8
	.comm	OFFS,4,4
	.comm	BUFSIZE,4,4
	.comm	ALIGN2,4,4
	.comm	ALIGN,4,4
	.comm	ADDRS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_19277.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bufsize too small, code is %d bytes long\012\000"
	.align	2
.LC1:
	.ascii	"Can't malloc\000"
	.align	2
.LC2:
	.ascii	"address=%p\012\000"
	.global	__aeabi_uidivmod
	.global	__aeabi_idivmod
	.align	2
.LC3:
	.ascii	"buflen=%d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, .L33
	ldr	r3, .L33+4
	sub	sp, sp, #28
	mov	r6, r0
	ldr	r0, [r7]
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r10, r1
	bl	strlen
	ldr	r9, .L33+8
	ldr	r3, .L33+12
	cmp	r6, #1
	ldr	r8, [r3]
	ldr	r3, [r9]
	mov	r5, r0
	str	r3, [sp, #4]
	ldr	r3, .L33+16
	ldr	r3, [r3]
	str	r3, [sp]
	bgt	.L2
	ldr	r3, .L33+20
	ldr	r4, [r3]
.L3:
	ldr	r3, .L33+24
	ldr	r0, [r3]
	bl	strlen
	cmp	r0, r4
	bgt	.L30
.L4:
	ldr	r0, [r9]
	add	r0, r4, r0, lsl #2
	add	r0, r0, r5
	add	r0, r0, #1
	bl	malloc
	subs	r6, r0, #0
	beq	.L31
.L5:
	ldr	r9, .L33+28
	add	fp, r6, r5
	ldr	r3, [r9]
	blx	r3
	add	r8, r8, r0
	mov	r1, r8
	ldr	r0, .L33+32
	str	r8, [sp, #12]
	bl	printf
	ldr	r7, [r7]
	mov	r0, r6
	mov	r1, r7
	bl	strcpy
	ldr	r3, [sp]
	cmp	r4, #0
	rsb	r3, r3, #4
	add	r6, r6, r3
	ble	.L13
	mov	r10, #0
	add	r4, fp, r4
.L7:
	mov	r0, r10
	mov	r1, r5
	bl	__aeabi_idivmod
	ldrb	r3, [r7, r1]	@ zero_extendqisi2
	add	r10, r10, #1
	strb	r3, [fp], #1
	cmp	fp, r4
	bne	.L7
.L6:
	ldr	r3, .L33+24
	ldr	r7, [r3]
	ldr	r3, [sp, #4]
	mov	r0, r7
	lsl	r5, r3, #2
	bl	strlen
	mov	r1, r7
	mov	r2, r0
	sub	r0, r4, r0
	bl	memcpy
	cmp	r5, #0
	ble	.L14
	mov	r2, #0
	add	r7, r4, r5
.L9:
	and	r3, r2, #3
	add	r1, sp, #24
	add	r3, r1, r3
	ldrb	r3, [r3, #-12]	@ zero_extendqisi2
	add	r2, r2, #1
	strb	r3, [r4], #1
	cmp	r4, r7
	bne	.L9
.L8:
	mov	r10, #0
	mov	r0, r6
	strb	r10, [r7]
	bl	strlen
	mov	r1, r0
	ldr	r0, .L33+36
	bl	printf
	ldr	r3, .L33+40
	ldr	r4, .L33+44
	ldr	r0, [r3]
	bl	fflush
	mov	r3, r10
	ldr	r2, [r4]
	sub	r5, r7, r5
	add	r2, r2, #1200
	add	r2, r2, #4
	add	r2, r2, r8
	str	r2, [sp, #12]
.L10:
	and	r2, r3, #3
	add	r1, sp, #24
	add	r2, r1, r2
	ldrb	r2, [r2, #-12]	@ zero_extendqisi2
	add	r3, r3, #1
	cmp	r3, #64
	strb	r2, [r5], #1
	bne	.L10
	ldr	r3, .L33+16
	ldr	r5, [r3]
	ldr	r3, [r9]
	blx	r3
	mov	r3, #0
	ldr	r2, .L33+12
	ldr	r1, [r4]
	ldr	r2, [r2]
	add	r5, r5, #512
	add	r2, r2, r1
	add	r2, r2, #33024
	add	r2, r2, #220
	add	r2, r2, r0
	add	r5, r6, r5
	str	r2, [sp, #12]
.L11:
	and	r2, r3, #3
	add	r1, sp, #24
	add	r2, r1, r2
	ldrb	r2, [r2, #-12]	@ zero_extendqisi2
	add	r3, r3, #1
	cmp	r3, #64
	strb	r2, [r5], #1
	bne	.L11
	mov	r0, r6
	bl	run
	ldr	r3, .L33+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L32
	mov	r0, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r0, [r10, #4]
	bl	atoi
	cmp	r6, #2
	mov	r4, r0
	beq	.L3
	ldr	r0, [r10, #8]
	bl	atoi
	cmp	r6, #3
	mov	r8, r0
	beq	.L3
	ldr	r0, [r10, #12]
	bl	atoi
	cmp	r6, #4
	str	r0, [sp, #4]
	beq	.L3
	ldr	r0, [r10, #16]
	bl	atoi
	str	r0, [sp]
	b	.L3
.L30:
	mov	r1, r0
	ldr	r0, .L33+48
	bl	printf
	mov	r0, #1
	bl	exit
	b	.L4
.L14:
	mov	r7, r4
	b	.L8
.L13:
	mov	r4, fp
	b	.L6
.L31:
	ldr	r0, .L33+52
	bl	puts
	mov	r0, #1
	bl	exit
	b	.L5
.L32:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	nop
	.word	.LC4
	.word	ADDRS
	.word	OFFS
	.word	ALIGN
	.word	BUFSIZE
	.word	asmcode
	.word	jump
	.word	.LC2
	.word	.LC3
	.word	stdout
	.word	ALIGN2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.comm	stdout,4,4
	.comm	nop,4,4
	.comm	jump,4,4
	.comm	asmcode,4,4
	.comm	OFFS,4,4
	.comm	BUFSIZE,4,4
	.comm	ALIGN2,4,4
	.comm	ALIGN,4,4
	.comm	ADDRS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
