	.file	"extr_pty.c_pty_open_fake.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pty_open_fake
	.type	pty_open_fake, @function
pty_open_fake:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	pty_reserve_next@PLT
	cmp	DWORD PTR MAX_PTYS[rip], eax
	je	.L6
	mov	edx, eax
	mov	eax, DWORD PTR pty_slave[rip+4]
	mov	esi, DWORD PTR TTY_PSEUDO_SLAVE_MAJOR[rip]
	mov	rdi, rbp
	mov	DWORD PTR 4[rbp], eax
	mov	eax, DWORD PTR pty_slave[rip]
	mov	DWORD PTR 0[rbp], eax
	call	tty_get@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	je	.L7
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, r12
	call	pty_slave_init_inode@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR _ENOSPC[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	ERR_PTR@PLT
	.cfi_endproc
.LFE0:
	.size	pty_open_fake, .-pty_open_fake
	.comm	pty_slave,8,8
	.comm	_ENOSPC,4,4
	.comm	TTY_PSEUDO_SLAVE_MAJOR,4,4
	.comm	MAX_PTYS,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_pty.c_pty_open_fake.c"
	.text
	.align	2
	.global	pty_open_fake
	.syntax unified
	.arm
	.fpu softvfp
	.type	pty_open_fake, %function
pty_open_fake:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	pty_reserve_next
	ldr	r3, .L8
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L6
	ldr	r3, .L8+4
	mov	r2, r0
	ldr	r1, .L8+8
	ldr	r0, [r3, #4]
	ldr	r3, [r3]
	str	r0, [r4, #4]
	str	r3, [r4]
	mov	r0, r4
	ldr	r1, [r1]
	bl	tty_get
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	beq	.L7
	mov	r0, r4
	pop	{r4, pc}
.L7:
	mov	r0, r4
	bl	pty_slave_init_inode
	mov	r0, r4
	pop	{r4, pc}
.L6:
	ldr	r3, .L8+12
	pop	{r4, lr}
	ldr	r0, [r3]
	b	ERR_PTR
.L9:
	.align	2
.L8:
	.word	MAX_PTYS
	.word	pty_slave
	.word	TTY_PSEUDO_SLAVE_MAJOR
	.word	_ENOSPC
	.size	pty_open_fake, .-pty_open_fake
	.comm	pty_slave,8,4
	.comm	_ENOSPC,4,4
	.comm	TTY_PSEUDO_SLAVE_MAJOR,4,4
	.comm	MAX_PTYS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
