	.file	"extr_confdata.c_compat_getline.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	compat_getline, @function
compat_getline:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	xor	ebx, ebx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	mov	rdi, r13
	mov	r14, rsp
	mov	QWORD PTR [rsp], rax
	call	getc@PLT
	cmp	eax, 10
	je	.L2
.L16:
	cmp	eax, 128
	je	.L3
	mov	rcx, r12
	mov	rdx, rbx
	mov	rsi, r14
	mov	edi, eax
	call	add_byte@PLT
	test	eax, eax
	js	.L5
	mov	rdi, r13
	add	rbx, 1
	call	getc@PLT
	cmp	eax, 10
	jne	.L16
.L2:
	mov	rcx, r12
	mov	rdx, rbx
	mov	rsi, r14
	mov	edi, 10
	call	add_byte@PLT
	test	eax, eax
	js	.L5
	add	rbx, 1
.L3:
	xor	edi, edi
	mov	rcx, r12
	mov	rdx, rbx
	mov	rsi, r14
	call	add_byte@PLT
	test	eax, eax
	js	.L5
	mov	rax, QWORD PTR [rsp]
	test	rbx, rbx
	mov	QWORD PTR 0[rbp], rax
	mov	eax, -1
	cmovne	eax, ebx
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L17
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR [rsp]
	mov	BYTE PTR -1[rax+rbx], 0
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 0[rbp], rax
	mov	eax, -1
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	compat_getline, .-compat_getline
	.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_confdata.c_compat_getline.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	compat_getline, %function
compat_getline:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r7, r2
	ldr	r3, .L18
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r3, [r0]
	mov	r5, r0
	mov	r0, r7
	mov	r6, r1
	str	r3, [sp]
	bl	getc
	cmp	r0, #10
	mov	r4, #0
	beq	.L2
.L16:
	cmp	r0, #128
	beq	.L3
	mov	r3, r6
	mov	r2, r4
	mov	r1, sp
	bl	add_byte
	cmp	r0, #0
	blt	.L5
	mov	r0, r7
	bl	getc
	cmp	r0, #10
	add	r4, r4, #1
	bne	.L16
.L2:
	mov	r3, r6
	mov	r2, r4
	mov	r1, sp
	bl	add_byte
	cmp	r0, #0
	blt	.L5
	add	r4, r4, #1
.L3:
	mov	r3, r6
	mov	r1, sp
	mov	r2, r4
	mov	r0, #0
	bl	add_byte
	cmp	r0, #0
	blt	.L5
	cmp	r4, #0
	movne	r0, r4
	mvneq	r0, #0
	ldr	r3, [sp]
	str	r3, [r5]
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L5:
	mov	r2, #0
	ldr	r3, [sp]
	mvn	r0, #0
	add	r4, r3, r4
	strb	r2, [r4, #-1]
	ldr	r3, [sp]
	str	r3, [r5]
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.size	compat_getline, .-compat_getline
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
