	.file	"extr_tty_ldisc.c_tty_ldisc_reinit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tty_ldisc_reinit, @function
tty_ldisc_reinit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	edi, esi
	call	tty_ldisc_get@PLT
	mov	rdi, rax
	mov	r13, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L3
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, rbp
	call	tty_ldisc_close@PLT
	mov	rdi, QWORD PTR 0[rbp]
	call	tty_ldisc_put@PLT
	mov	QWORD PTR 0[rbp], 0
	mov	rsi, r13
	mov	rdi, rbp
	call	tty_ldisc_assign@PLT
	mov	esi, r12d
	mov	rdi, rbp
	call	tty_set_termios_ldisc@PLT
	xor	eax, eax
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	tty_ldisc_reinit, .-tty_ldisc_reinit
	.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_ldisc.c_tty_ldisc_reinit.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tty_ldisc_reinit, %function
tty_ldisc_reinit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r0, r1
	mov	r6, r1
	bl	tty_ldisc_get
	mov	r7, r0
	bl	IS_ERR
	subs	r5, r0, #0
	bne	.L3
	ldr	r1, [r4]
	mov	r0, r4
	bl	tty_ldisc_close
	ldr	r0, [r4]
	bl	tty_ldisc_put
	mov	r1, r7
	mov	r0, r4
	str	r5, [r4]
	bl	tty_ldisc_assign
	mov	r1, r6
	mov	r0, r4
	bl	tty_set_termios_ldisc
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mvn	r5, #0
	b	.L1
	.size	tty_ldisc_reinit, .-tty_ldisc_reinit
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
