	.file	"extr_tty_ldisc.c_tty_ldisc_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%p: opened\n"
	.text
	.p2align 4
	.type	tty_ldisc_open, @function
tty_ldisc_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	mov	rsi, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	edi, DWORD PTR TTY_LDISC_OPEN[rip]
	call	test_and_set_bit@PLT
	mov	edi, eax
	call	WARN_ON@PLT
	mov	rax, QWORD PTR [r12]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L1
	mov	rdi, rbp
	call	rax
	mov	r13d, eax
	test	eax, eax
	jne	.L12
.L3:
	mov	rdx, r12
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	tty_ldisc_debug@PLT
.L1:
	mov	eax, r13d
	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
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR TTY_LDISC_OPEN[rip]
	mov	rsi, rbp
	call	clear_bit@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	tty_ldisc_open, .-tty_ldisc_open
	.comm	TTY_LDISC_OPEN,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_tty_ldisc.c_tty_ldisc_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%p: opened\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tty_ldisc_open, %function
tty_ldisc_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	ldr	r7, .L11
	mov	r1, r0
	mov	r5, r0
	ldr	r0, [r7]
	bl	test_and_set_bit
	bl	WARN_ON
	ldr	r3, [r6]
	ldr	r3, [r3]
	cmp	r3, #0
	moveq	r4, r3
	beq	.L1
	mov	r0, r5
	blx	r3
	subs	r4, r0, #0
	bne	.L10
.L3:
	mov	r2, r6
	mov	r0, r5
	ldr	r1, .L11+4
	bl	tty_ldisc_debug
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r1, r5
	ldr	r0, [r7]
	bl	clear_bit
	b	.L3
.L12:
	.align	2
.L11:
	.word	TTY_LDISC_OPEN
	.word	.LC0
	.size	tty_ldisc_open, .-tty_ldisc_open
	.comm	TTY_LDISC_OPEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
