	.file	"extr_session.c_do_cleanup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"do_cleanup"
	.text
	.p2align 4
	.globl	do_cleanup
	.type	do_cleanup, @function
do_cleanup:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	debug@PLT
	cmp	QWORD PTR is_child[rip], 0
	jne	.L1
	mov	ecx, DWORD PTR called.1957[rip]
	test	ecx, ecx
	jne	.L1
	mov	DWORD PTR called.1957[rip], 1
	test	rbx, rbx
	je	.L1
	mov	edx, DWORD PTR 16[rbx]
	test	edx, edx
	jne	.L13
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	call	auth_sock_cleanup_proc@PLT
	cmp	QWORD PTR auth_info_file[rip], 0
	je	.L5
	mov	edi, DWORD PTR [rbx]
	call	temporarily_use_uid@PLT
	mov	rdi, QWORD PTR auth_info_file[rip]
	call	unlink@PLT
	xor	eax, eax
	call	restore_uid@PLT
	mov	rdi, QWORD PTR auth_info_file[rip]
	call	free@PLT
	mov	QWORD PTR auth_info_file[rip], 0
.L5:
	mov	eax, DWORD PTR use_privsep[rip]
	test	eax, eax
	je	.L7
	xor	eax, eax
	call	mm_is_monitor@PLT
	test	rax, rax
	je	.L1
.L7:
	mov	esi, DWORD PTR session_pty_cleanup2[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	session_destroy_all@PLT
	.cfi_endproc
.LFE0:
	.size	do_cleanup, .-do_cleanup
	.local	called.1957
	.comm	called.1957,4,4
	.comm	use_privsep,4,4
	.comm	session_pty_cleanup2,4,4
	.comm	options,24,16
	.comm	is_child,8,8
	.comm	auth_info_file,8,8
	.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_session.c_do_cleanup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"do_cleanup\000"
	.text
	.align	2
	.global	do_cleanup
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_cleanup, %function
do_cleanup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r0, .L19
	mov	r5, r1
	bl	debug
	ldr	r3, .L19+4
	ldr	r2, .L19+8
	ldr	r3, [r3]
	ldr	r4, [r2]
	orrs	r4, r3, r4
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r3, #1
	cmp	r5, #0
	str	r3, [r2]
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r5, #8]
	cmp	r3, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r7, .L19+12
	ldr	r0, [r5]
	bl	auth_sock_cleanup_proc
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L5
	ldr	r0, [r5]
	bl	temporarily_use_uid
	ldr	r0, [r7]
	bl	unlink
	bl	restore_uid
	ldr	r0, [r7]
	bl	free
	str	r4, [r7]
.L5:
	ldr	r3, .L19+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	bl	mm_is_monitor
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, .L19+20
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r3]
	b	session_destroy_all
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	is_child
	.word	.LANCHOR0
	.word	auth_info_file
	.word	use_privsep
	.word	session_pty_cleanup2
	.size	do_cleanup, .-do_cleanup
	.comm	use_privsep,4,4
	.comm	session_pty_cleanup2,4,4
	.comm	options,12,4
	.comm	is_child,4,4
	.comm	auth_info_file,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	called.4241, %object
	.size	called.4241, 4
called.4241:
	.space	4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
