	.file	"372081.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"input string len: %d\n\n\n"
.LC1:
	.string	"buffer pointer: %d\n"
.LC2:
	.string	"pointer over limit"
.LC3:
	.string	"Append character: %c\n\n\n"
.LC4:
	.string	"Trigger error"
.LC5:
	.string	"break rows: %d loop\n\n\n"
	.text
	.globl	convert
	.type	convert, @function
convert:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
	cmp	DWORD PTR -20[rbp], 1
	je	.L2
	cmp	DWORD PTR -44[rbp], 1
	jne	.L3
.L2:
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	movsx	rdx, eax
	mov	rcx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L4
.L3:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L5
.L15:
	mov	DWORD PTR -32[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -24[rbp], eax
.L14:
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L6
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L16
.L6:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -16[rbp], 1
	cmp	DWORD PTR -28[rbp], 0
	je	.L8
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 1
	cmp	DWORD PTR -28[rbp], eax
	jne	.L9
.L8:
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 1
	add	eax, eax
	add	DWORD PTR -24[rbp], eax
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -32[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L11
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -28[rbp]
	add	eax, eax
	add	DWORD PTR -24[rbp], eax
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -32[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cmp	eax, 1
	jne	.L12
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	add	DWORD PTR -24[rbp], eax
	jmp	.L10
.L12:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	jmp	.L13
.L10:
	add	DWORD PTR -32[rbp], 1
	jmp	.L14
.L16:
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -28[rbp], 1
.L5:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L15
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	convert, .-convert
	.globl	input_string
	.section	.rodata
.LC6:
	.string	"A"
	.section	.data.rel.local,"aw"
	.align 8
	.type	input_string, @object
	.size	input_string, 8
input_string:
	.quad	.LC6
	.globl	input_numRows
	.data
	.align 4
	.type	input_numRows, @object
	.size	input_numRows, 4
input_numRows:
	.long	1
	.globl	output_string
	.section	.data.rel.local
	.align 8
	.type	output_string, @object
	.size	output_string, 8
output_string:
	.quad	.LC6
	.section	.rodata
.LC7:
	.string	"output string:      %s\n"
.LC8:
	.string	"reference string:   %s\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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	edx, DWORD PTR input_numRows[rip]
	mov	rax, QWORD PTR input_string[rip]
	mov	esi, edx
	mov	rdi, rax
	call	convert
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR output_string[rip]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	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	"372081.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"input string len: %d\012\012\012\000"
	.align	2
.LC1:
	.ascii	"buffer pointer: %d\012\000"
	.align	2
.LC2:
	.ascii	"pointer over limit\000"
	.align	2
.LC3:
	.ascii	"Append character: %c\012\012\012\000"
	.align	2
.LC4:
	.ascii	"Trigger error\000"
	.align	2
.LC5:
	.ascii	"break rows: %d loop\012\012\012\000"
	.text
	.align	2
	.global	convert
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert, %function
convert:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L17
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	beq	.L2
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	bne	.L3
.L2:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-8]
	bl	memcpy
	ldr	r3, [fp, #-8]
	b	.L4
.L3:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L5
.L15:
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
.L14:
	ldr	r1, [fp, #-20]
	ldr	r0, .L17+4
	bl	printf
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L6
	ldr	r0, .L17+8
	bl	puts
	b	.L16
.L6:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L17+12
	bl	printf
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L9
.L8:
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	lsl	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	b	.L10
.L9:
	ldr	r3, [fp, #-28]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-36]
	sub	r2, r3, #1
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	lsl	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	b	.L10
.L11:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	cmp	r3, #1
	bne	.L12
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	b	.L10
.L12:
	ldr	r0, .L17+16
	bl	printf
.L13:
	b	.L13
.L10:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L14
.L16:
	ldr	r1, [fp, #-24]
	ldr	r0, .L17+20
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L5:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L15
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	convert, .-convert
	.global	input_string
	.section	.rodata
	.align	2
.LC6:
	.ascii	"A\000"
	.data
	.align	2
	.type	input_string, %object
	.size	input_string, 4
input_string:
	.word	.LC6
	.global	input_numRows
	.align	2
	.type	input_numRows, %object
	.size	input_numRows, 4
input_numRows:
	.word	1
	.global	output_string
	.align	2
	.type	output_string, %object
	.size	output_string, 4
output_string:
	.word	.LC6
	.section	.rodata
	.align	2
.LC7:
	.ascii	"output string:      %s\012\000"
	.align	2
.LC8:
	.ascii	"reference string:   %s\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, .L21
	ldr	r3, [r3]
	ldr	r2, .L21+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	convert
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L21+8
	bl	printf
	ldr	r3, .L21+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L21+16
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	input_string
	.word	input_numRows
	.word	.LC7
	.word	output_string
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
