	.file	"extr_tty_ldisc.c_tty_ldisc_get.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"tty-ldisc-%d"
	.text
	.p2align 4
	.type	tty_ldisc_get, @function
tty_ldisc_get:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR N_TTY[rip], esi
	jg	.L13
	cmp	DWORD PTR NR_LDISCS[rip], esi
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	jg	.L3
	mov	edi, DWORD PTR EINVAL[rip]
.L16:
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	neg	edi
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	ERR_PTR@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rbx, rdi
	mov	edi, esi
	call	get_ldops@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	je	.L4
	mov	edi, DWORD PTR CAP_SYS_MODULE[rip]
	call	capable@PLT
	or	eax, DWORD PTR tty_ldisc_autoload[rip]
	je	.L18
	mov	esi, ebp
	lea	rdi, .LC0[rip]
	call	request_module@PLT
	mov	edi, ebp
	call	get_ldops@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L19
.L4:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 16
	or	esi, DWORD PTR __GFP_NOFAIL[rip]
	call	kmalloc@PLT
	mov	QWORD PTR 8[rax], r12
	mov	QWORD PTR [rax], rbx
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	mov	edi, DWORD PTR EINVAL[rip]
	neg	edi
	jmp	ERR_PTR@PLT
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	.cfi_offset 6, -24
	.cfi_offset 12, -16
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	ERR_CAST@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	edi, DWORD PTR EPERM[rip]
	jmp	.L16
	.cfi_endproc
.LFE0:
	.size	tty_ldisc_get, .-tty_ldisc_get
	.comm	tty_ldisc_autoload,4,4
	.comm	__GFP_NOFAIL,4,4
	.comm	N_TTY,4,4
	.comm	NR_LDISCS,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EPERM,4,4
	.comm	EINVAL,4,4
	.comm	CAP_SYS_MODULE,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_get.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"tty-ldisc-%d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tty_ldisc_get, %function
tty_ldisc_get:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L19
	ldr	r3, [r3]
	cmp	r3, r1
	bgt	.L13
	ldr	r3, .L19+4
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	mov	r4, r1
	cmp	r3, r1
	bgt	.L3
	pop	{r4, r5, r6, lr}
	ldr	r3, .L19+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	ERR_PTR
.L3:
	mov	r5, r0
	mov	r0, r1
	bl	get_ldops
	mov	r6, r0
	bl	IS_ERR
	cmp	r0, #0
	beq	.L4
	ldr	r3, .L19+12
	ldr	r0, [r3]
	bl	capable
	ldr	r3, .L19+16
	ldr	r3, [r3]
	orrs	r3, r0, r3
	beq	.L17
	mov	r1, r4
	ldr	r0, .L19+20
	bl	request_module
	mov	r0, r4
	bl	get_ldops
	mov	r6, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L18
.L4:
	ldr	r2, .L19+24
	ldr	r3, .L19+28
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, #8
	orr	r1, r1, r3
	bl	kmalloc
	stm	r0, {r5, r6}
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r3, .L19+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	ERR_PTR
.L18:
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	b	ERR_CAST
.L17:
	ldr	r3, .L19+32
	pop	{r4, r5, r6, lr}
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	ERR_PTR
.L20:
	.align	2
.L19:
	.word	N_TTY
	.word	NR_LDISCS
	.word	EINVAL
	.word	CAP_SYS_MODULE
	.word	tty_ldisc_autoload
	.word	.LC0
	.word	GFP_KERNEL
	.word	__GFP_NOFAIL
	.word	EPERM
	.size	tty_ldisc_get, .-tty_ldisc_get
	.comm	tty_ldisc_autoload,4,4
	.comm	__GFP_NOFAIL,4,4
	.comm	N_TTY,4,4
	.comm	NR_LDISCS,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EPERM,4,4
	.comm	EINVAL,4,4
	.comm	CAP_SYS_MODULE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
