	.file	"extr_dialog_util.c_dialog_prompt_nlstate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dialog_prompt_nlstate
	.type	dialog_prompt_nlstate, @function
dialog_prompt_nlstate:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L18
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	call	strlen@PLT
	cdqe
	add	rax, rbx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	movzx	edx, BYTE PTR [rax]
	cmp	dl, 10
	je	.L5
	cmp	dl, 110
	je	.L19
.L6:
	mov	rcx, rax
	sub	rax, 1
	cmp	rbx, rax
	jbe	.L8
.L5:
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	sub	rcx, 2
	cmp	rbx, rcx
	jnb	.L7
	cmp	BYTE PTR -1[rax], 92
	je	.L9
.L7:
	mov	rax, rcx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	xor	eax, eax
	ret
.L9:
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dialog_prompt_nlstate, .-dialog_prompt_nlstate
	.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_dialog_util.c_dialog_prompt_nlstate.c"
	.text
	.align	2
	.global	dialog_prompt_nlstate
	.syntax unified
	.arm
	.fpu softvfp
	.type	dialog_prompt_nlstate, %function
dialog_prompt_nlstate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	subs	r4, r0, #0
	beq	.L8
	bl	strlen
	add	r3, r4, r0
	b	.L4
.L6:
	ldrb	r2, [r3]	@ zero_extendqisi2
	cmp	r2, #10
	beq	.L8
	cmp	r2, #110
	beq	.L14
.L4:
	mov	r1, r3
	sub	r3, r3, #1
	cmp	r4, r3
	bls	.L6
.L8:
	mov	r0, #0
	pop	{r4, pc}
.L14:
	sub	r1, r1, #2
	cmp	r4, r1
	bcs	.L5
	ldrb	r3, [r3, #-1]	@ zero_extendqisi2
	cmp	r3, #92
	beq	.L9
.L5:
	mov	r3, r1
	b	.L4
.L9:
	mov	r0, #1
	pop	{r4, pc}
	.size	dialog_prompt_nlstate, .-dialog_prompt_nlstate
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
