	.file	"extr_kern_proc.c_pgdelete.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pgdelete, @function
pgdelete:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, DWORD PTR SX_XLOCKED[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	lea	rdi, proctree_lock[rip]
	call	sx_assert@PLT
	mov	esi, DWORD PTR MA_NOTOWNED[rip]
	mov	rdi, rbp
	call	PGRP_LOCK_ASSERT@PLT
	mov	esi, DWORD PTR MA_NOTOWNED[rip]
	mov	rdi, QWORD PTR 8[rbp]
	call	SESS_LOCK_ASSERT@PLT
	lea	rdi, 16[rbp]
	call	funsetownlst@PLT
	mov	rdi, rbp
	call	PGRP_LOCK@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR pg_hash[rip]
	mov	rdi, rbp
	mov	r12, QWORD PTR [rax]
	call	LIST_REMOVE@PLT
	mov	rdi, rbp
	mov	r13, QWORD PTR 8[rbp]
	call	PGRP_UNLOCK@PLT
	test	r12, r12
	je	.L2
	mov	rdi, r12
	call	tty_lock@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	tty_rel_pgrp@PLT
.L2:
	mov	esi, DWORD PTR 4[rbp]
	mov	edi, DWORD PTR PROC_ID_GROUP[rip]
	call	proc_id_clear@PLT
	mov	rdi, rbp
	call	mtx_destroy@PLT
	mov	esi, DWORD PTR M_PGRP[rip]
	mov	rdi, rbp
	call	free@PLT
	pop	rbp
	.cfi_def_cfa_offset 24
	mov	rdi, r13
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	sess_release@PLT
	.cfi_endproc
.LFE0:
	.size	pgdelete, .-pgdelete
	.comm	proctree_lock,4,4
	.comm	pg_hash,4,4
	.comm	SX_XLOCKED,4,4
	.comm	PROC_ID_GROUP,4,4
	.comm	M_PGRP,4,4
	.comm	MA_NOTOWNED,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_kern_proc.c_pgdelete.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pgdelete, %function
pgdelete:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L8
	ldr	r5, .L8+4
	ldr	r1, [r3]
	ldr	r0, .L8+8
	bl	sx_assert
	ldr	r1, [r5]
	mov	r0, r4
	bl	PGRP_LOCK_ASSERT
	ldr	r1, [r5]
	ldr	r0, [r4, #8]
	bl	SESS_LOCK_ASSERT
	add	r0, r4, #12
	bl	funsetownlst
	mov	r0, r4
	bl	PGRP_LOCK
	ldr	r2, [r4, #8]
	ldr	r3, .L8+12
	ldr	r5, [r2]
	ldr	r1, [r3]
	mov	r0, r4
	bl	LIST_REMOVE
	mov	r0, r4
	ldr	r6, [r4, #8]
	bl	PGRP_UNLOCK
	cmp	r5, #0
	beq	.L2
	mov	r0, r5
	bl	tty_lock
	mov	r1, r4
	mov	r0, r5
	bl	tty_rel_pgrp
.L2:
	ldr	r3, .L8+16
	ldr	r1, [r4, #4]
	ldr	r0, [r3]
	bl	proc_id_clear
	mov	r0, r4
	bl	mtx_destroy
	ldr	r3, .L8+20
	mov	r0, r4
	ldr	r1, [r3]
	bl	free
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	b	sess_release
.L9:
	.align	2
.L8:
	.word	SX_XLOCKED
	.word	MA_NOTOWNED
	.word	proctree_lock
	.word	pg_hash
	.word	PROC_ID_GROUP
	.word	M_PGRP
	.size	pgdelete, .-pgdelete
	.comm	proctree_lock,4,4
	.comm	pg_hash,4,4
	.comm	SX_XLOCKED,4,4
	.comm	PROC_ID_GROUP,4,4
	.comm	M_PGRP,4,4
	.comm	MA_NOTOWNED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
