	.file	"extr_tty.c_clean_ttyname.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"pty/"
.LC1:
	.string	"ptym/"
	.text
	.p2align 4
	.globl	clean_ttyname
	.type	clean_ttyname, @function
clean_ttyname:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	mov	rdi, QWORD PTR _PATH_DEV[rip]
	call	strlen@PLT
	mov	rsi, QWORD PTR _PATH_DEV[rip]
	mov	rdi, r12
	mov	edx, eax
	call	strncmp@PLT
	test	rax, rax
	je	.L7
.L2:
	mov	rdi, r12
	mov	edx, 4
	lea	rsi, .LC0[rip]
	call	strncmp@PLT
	mov	edx, 5
	lea	rsi, .LC1[rip]
	mov	r8, rax
	lea	rax, 4[r12]
	test	r8, r8
	cmove	r12, rax
	mov	rdi, r12
	call	strncmp@PLT
	mov	r8, rax
	lea	rax, 5[r12]
	test	r8, r8
	cmove	r12, rax
	mov	rax, r12
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, QWORD PTR _PATH_DEV[rip]
	call	strlen@PLT
	cdqe
	add	r12, rax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	clean_ttyname, .-clean_ttyname
	.comm	_PATH_DEV,8,8
	.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_tty.c_clean_ttyname.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"pty/\000"
	.align	2
.LC1:
	.ascii	"ptym/\000"
	.text
	.align	2
	.global	clean_ttyname
	.syntax unified
	.arm
	.fpu softvfp
	.type	clean_ttyname, %function
clean_ttyname:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L7
	push	{r4, r5, r6, lr}
	ldr	r6, [r3]
	mov	r4, r0
	mov	r0, r6
	bl	strlen
	mov	r1, r6
	mov	r5, r0
	mov	r2, r0
	mov	r0, r4
	bl	strncmp
	cmp	r0, #0
	addeq	r4, r4, r5
	mov	r0, r4
	mov	r2, #4
	ldr	r1, .L7+4
	bl	strncmp
	cmp	r0, #0
	addeq	r4, r4, #4
	mov	r0, r4
	mov	r2, #5
	ldr	r1, .L7+8
	bl	strncmp
	cmp	r0, #0
	addeq	r4, r4, #5
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	_PATH_DEV
	.word	.LC0
	.word	.LC1
	.size	clean_ttyname, .-clean_ttyname
	.comm	_PATH_DEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
