	.file	"extr_util.c_print_autowrap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	print_autowrap
	.type	print_autowrap, @function
print_autowrap:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14d, ecx
	push	r13
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -72[rbp], edx
	mov	DWORD PTR -80[rbp], r8d
	mov	rcx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR MAX_LEN[rip]
	add	eax, 1
	cdqe
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L47:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L47
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L48
.L4:
	mov	rdi, rsp
	mov	r12, rsp
	call	strcpy@PLT
	mov	rdi, rsp
	call	strlen@PLT
	test	eax, eax
	jle	.L10
	lea	esi, -1[rax]
	lea	rdx, 1[rsp]
	mov	rcx, rsp
	add	rsi, rdx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L49:
	add	rdx, 1
.L9:
	cmp	BYTE PTR [rcx], 10
	jne	.L8
	mov	BYTE PTR [rcx], 32
.L8:
	mov	rcx, rdx
	cmp	rsi, rdx
	jne	.L49
.L10:
	mov	edi, DWORD PTR -80[rbp]
	mov	ecx, DWORD PTR -72[rbp]
	lea	edx, [rdi+rdi]
	sub	ecx, edx
	cmp	ecx, eax
	jge	.L50
	mov	ecx, DWORD PTR -80[rbp]
	movzx	eax, BYTE PTR [r12]
	mov	DWORD PTR -76[rbp], 1
	mov	DWORD PTR -68[rbp], ecx
	test	al, al
	je	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	esi, 32
	mov	rdi, r12
	xor	r15d, r15d
	call	strchr@PLT
	test	rax, rax
	je	.L13
	mov	BYTE PTR [rax], 0
	lea	r15, 1[rax]
.L13:
	mov	rdi, r12
	mov	ebx, DWORD PTR -72[rbp]
	sub	ebx, DWORD PTR -68[rbp]
	call	strlen@PLT
	cmp	ebx, eax
	jge	.L14
.L18:
	mov	ebx, DWORD PTR -80[rbp]
	add	r14d, 1
.L15:
	mov	edx, ebx
	mov	esi, r14d
	mov	rdi, r13
	call	wmove@PLT
	mov	rsi, r12
	mov	rdi, r13
	call	waddstr@PLT
	mov	edx, ebx
	mov	esi, r14d
	mov	rdi, r13
	call	getyx@PLT
	lea	eax, 1[rbx]
	mov	DWORD PTR -68[rbp], eax
	test	r15, r15
	je	.L1
	movzx	eax, BYTE PTR [r15]
	mov	DWORD PTR -76[rbp], 0
	cmp	al, 32
	je	.L51
.L20:
	mov	r12, r15
	test	al, al
	jne	.L22
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L52
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	cmp	eax, 3
	jg	.L26
	mov	edx, DWORD PTR -76[rbp]
	test	edx, edx
	je	.L26
	test	r15, r15
	je	.L16
	add	eax, 1
	mov	rdi, r15
	mov	DWORD PTR -76[rbp], eax
	call	strlen@PLT
	add	eax, DWORD PTR -76[rbp]
	cmp	eax, ebx
	jg	.L53
.L17:
	mov	ebx, DWORD PTR -68[rbp]
	mov	esi, r14d
	mov	rdi, r13
	mov	edx, ebx
	call	wmove@PLT
	mov	rsi, r12
	mov	rdi, r13
	call	waddstr@PLT
	mov	edx, ebx
	mov	esi, r14d
	mov	rdi, r13
	call	getyx@PLT
	mov	eax, ebx
	mov	DWORD PTR -76[rbp], 0
	add	eax, 1
	mov	DWORD PTR -68[rbp], eax
	movzx	eax, BYTE PTR [r15]
	cmp	al, 32
	jne	.L20
	.p2align 4,,10
	.p2align 3
.L51:
	lea	eax, 2[rbx]
	mov	DWORD PTR -68[rbp], eax
	.p2align 4,,10
	.p2align 3
.L21:
	movzx	eax, BYTE PTR 1[r15]
	add	r15, 1
	cmp	al, 32
	je	.L21
	mov	DWORD PTR -76[rbp], 1
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L26:
	mov	ebx, DWORD PTR -68[rbp]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L16:
	mov	ebx, DWORD PTR -68[rbp]
	mov	esi, r14d
	mov	rdi, r13
	mov	edx, ebx
	call	wmove@PLT
	mov	rsi, r12
	mov	rdi, r13
	call	waddstr@PLT
	mov	edx, ebx
	mov	esi, r14d
	mov	rdi, r13
	call	getyx@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L50:
	mov	edx, DWORD PTR -72[rbp]
	mov	esi, r14d
	mov	rdi, r13
	sub	edx, eax
	mov	eax, edx
	shr	eax, 31
	add	edx, eax
	sar	edx
	call	wmove@PLT
	mov	rsi, r12
	mov	rdi, r13
	call	waddstr@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L53:
	mov	esi, 32
	mov	rdi, r15
	call	strchr@PLT
	test	rax, rax
	je	.L18
	sub	rax, r15
	movsx	rbx, ebx
	mov	rdx, rax
	movsx	rax, DWORD PTR -76[rbp]
	add	rax, rdx
	cmp	rax, rbx
	jg	.L18
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L48:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L52:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	print_autowrap, .-print_autowrap
	.comm	MAX_LEN,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_util.c_print_autowrap.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	print_autowrap
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_autowrap, %function
print_autowrap:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	ldr	ip, .L39
	mov	r6, r0
	ldr	r0, [ip]
	mov	r5, r3
	add	r0, r0, #8
	bic	r0, r0, #7
	sub	sp, sp, r0
	ldr	r3, .L39+4
	mov	r0, sp
	mov	r9, r2
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	strcpy
	mov	r0, sp
	bl	strlen
	cmp	r0, #0
	addne	ip, sp, r0
	mov	r10, sp
	movne	lr, #32
	subne	ip, ip, #1
	subne	r2, sp, #1
	beq	.L7
.L6:
	ldrb	r1, [r2, #1]!	@ zero_extendqisi2
	cmp	r1, #10
	strbeq	lr, [r2]
	cmp	ip, r2
	bne	.L6
.L7:
	ldr	r3, [fp, #4]
	sub	r2, r9, r3, lsl #1
	cmp	r2, r0
	bge	.L35
	ldrb	r2, [r10]	@ zero_extendqisi2
	mov	r8, #1
	cmp	r2, #0
	ldr	r7, [fp, #4]
	beq	.L1
.L19:
	mov	r1, #32
	mov	r0, r10
	bl	strchr
	subs	r4, r0, #0
	movne	r3, #0
	mov	r0, r10
	strbne	r3, [r4], #1
	bl	strlen
	sub	r2, r9, r7
	cmp	r2, r0
	mov	r1, r0
	bge	.L11
.L15:
	ldr	r8, [fp, #4]
	add	r5, r5, #1
.L12:
	mov	r2, r8
	mov	r1, r5
	mov	r0, r6
	bl	wmove
	mov	r1, r10
	mov	r0, r6
	bl	waddstr
	mov	r2, r8
	mov	r1, r5
	mov	r0, r6
	bl	getyx
	cmp	r4, #0
	beq	.L1
	ldrb	r2, [r4]	@ zero_extendqisi2
	add	r7, r8, #1
	cmp	r2, #32
	movne	r8, #0
	beq	.L36
.L17:
	cmp	r2, #0
	mov	r10, r4
	bne	.L19
.L1:
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L37
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	cmp	r0, #3
	movgt	r8, #0
	andle	r8, r8, #1
	cmp	r8, #0
	str	r2, [fp, #-48]
	beq	.L24
	cmp	r4, #0
	beq	.L13
	mov	r0, r4
	add	r8, r1, #1
	bl	strlen
	ldr	r2, [fp, #-48]
	add	r0, r8, r0
	cmp	r0, r2
	bgt	.L38
.L14:
	mov	r2, r7
	mov	r1, r5
	mov	r0, r6
	bl	wmove
	mov	r1, r10
	mov	r0, r6
	bl	waddstr
	mov	r2, r7
	mov	r1, r5
	mov	r0, r6
	bl	getyx
	ldrb	r2, [r4]	@ zero_extendqisi2
	mov	r8, r7
	cmp	r2, #32
	movne	r8, #0
	add	r7, r7, #1
	bne	.L17
.L36:
	add	r7, r8, #2
.L18:
	ldrb	r2, [r4, #1]!	@ zero_extendqisi2
	cmp	r2, #32
	beq	.L18
	mov	r8, #1
	b	.L17
.L24:
	mov	r8, r7
	b	.L12
.L13:
	mov	r2, r7
	mov	r1, r5
	mov	r0, r6
	bl	wmove
	mov	r1, r10
	mov	r0, r6
	bl	waddstr
	mov	r2, r7
	mov	r1, r5
	mov	r0, r6
	bl	getyx
	b	.L1
.L35:
	sub	r9, r9, r0
	add	r9, r9, r9, lsr #31
	mov	r1, r5
	mov	r0, r6
	asr	r2, r9, #1
	bl	wmove
	mov	r1, r10
	mov	r0, r6
	bl	waddstr
	b	.L1
.L38:
	mov	r1, #32
	mov	r0, r4
	bl	strchr
	cmp	r0, #0
	beq	.L15
	ldr	r2, [fp, #-48]
	sub	r0, r0, r4
	add	r8, r0, r8
	cmp	r8, r2
	bgt	.L15
	b	.L14
.L37:
	bl	__stack_chk_fail
.L40:
	.align	2
.L39:
	.word	MAX_LEN
	.word	.LC0
	.size	print_autowrap, .-print_autowrap
	.comm	MAX_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
