	.file	"extr_logind-session.c_session_free.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	session_free
	.type	session_free, @function
session_free:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L2
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	cmp	QWORD PTR 144[rdi], 0
	mov	rbp, rdi
	jne	.L29
.L3:
	mov	edi, DWORD PTR 140[rbp]
	call	sd_event_source_unref@PLT
	mov	rdi, rbp
	mov	DWORD PTR 140[rbp], eax
	call	session_drop_controller@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	call	session_device_free@PLT
.L4:
	mov	edi, DWORD PTR 136[rbp]
	call	hashmap_first@PLT
	mov	rdi, rax
	test	rax, rax
	jne	.L5
	mov	edi, DWORD PTR 136[rbp]
	call	hashmap_free@PLT
	mov	rax, QWORD PTR 128[rbp]
	test	rax, rax
	je	.L6
	mov	edi, DWORD PTR sessions_by_user[rip]
	mov	esi, DWORD PTR 8[rax]
	mov	rdx, rbp
	call	LIST_REMOVE@PLT
	mov	rdi, QWORD PTR 128[rbp]
	cmp	QWORD PTR [rdi], rbp
	je	.L30
.L7:
	call	user_update_last_session_timer@PLT
.L6:
	mov	rdi, QWORD PTR 120[rbp]
	test	rdi, rdi
	je	.L8
	cmp	QWORD PTR 16[rdi], rbp
	je	.L31
	cmp	QWORD PTR 8[rdi], rbp
	je	.L32
.L10:
	mov	rsi, rbp
	call	seat_evict_position@PLT
	mov	rax, QWORD PTR 120[rbp]
	mov	edi, DWORD PTR sessions_by_seat[rip]
	mov	rdx, rbp
	mov	esi, DWORD PTR [rax]
	call	LIST_REMOVE@PLT
.L8:
	mov	rsi, QWORD PTR 112[rbp]
	test	rsi, rsi
	jne	.L33
.L11:
	mov	edi, DWORD PTR 104[rbp]
	call	pid_is_valid@PLT
	test	rax, rax
	jne	.L34
.L12:
	mov	rdi, QWORD PTR 96[rbp]
	call	free@PLT
	mov	edi, DWORD PTR 88[rbp]
	call	sd_bus_message_unref@PLT
	mov	rdi, QWORD PTR 80[rbp]
	call	free@PLT
	mov	rdi, QWORD PTR 72[rbp]
	call	free@PLT
	mov	rdi, QWORD PTR 64[rbp]
	call	free@PLT
	mov	rdi, QWORD PTR 56[rbp]
	call	free@PLT
	mov	rdi, QWORD PTR 48[rbp]
	call	free@PLT
	mov	rdi, QWORD PTR 40[rbp]
	call	free@PLT
	mov	rax, QWORD PTR 32[rbp]
	mov	rsi, QWORD PTR 24[rbp]
	mov	edi, DWORD PTR [rax]
	call	hashmap_remove@PLT
	mov	edi, DWORD PTR 20[rbp]
	call	sd_event_source_unref@PLT
	mov	edi, DWORD PTR 16[rbp]
	call	safe_close@PLT
	mov	rdi, QWORD PTR 8[rbp]
	call	free@PLT
	mov	rdi, QWORD PTR 0[rbp]
	call	free@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	mfree@PLT
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	mov	rax, QWORD PTR 32[rdi]
	mov	rdx, rdi
	mov	edi, DWORD PTR gc_queue[rip]
	mov	esi, DWORD PTR 12[rax]
	call	LIST_REMOVE@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L34:
	mov	edi, DWORD PTR 104[rbp]
	call	PID_TO_PTR@PLT
	mov	rdx, rbp
	mov	esi, eax
	mov	rax, QWORD PTR 32[rbp]
	mov	edi, DWORD PTR 4[rax]
	call	hashmap_remove_value@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rax, QWORD PTR 32[rbp]
	mov	edi, DWORD PTR 8[rax]
	call	hashmap_remove@PLT
	mov	rdi, QWORD PTR 112[rbp]
	call	free@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L32:
	mov	QWORD PTR 8[rdi], 0
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L31:
	mov	QWORD PTR 16[rdi], 0
	cmp	QWORD PTR 8[rdi], rbp
	jne	.L10
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L30:
	mov	QWORD PTR [rdi], 0
	jmp	.L7
.L2:
	.cfi_def_cfa_offset 8
	.cfi_restore 6
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	session_free, .-session_free
	.comm	sessions_by_user,4,4
	.comm	sessions_by_seat,4,4
	.comm	gc_queue,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_logind-session.c_session_free.c"
	.text
	.align	2
	.global	session_free
	.syntax unified
	.arm
	.fpu softvfp
	.type	session_free, %function
session_free:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, [r4, #80]
	cmp	r3, #0
	bne	.L30
.L3:
	ldr	r0, [r4, #76]
	bl	sd_event_source_unref
	mov	r3, r0
	mov	r0, r4
	str	r3, [r4, #76]
	bl	session_drop_controller
	b	.L4
.L5:
	bl	session_device_free
.L4:
	ldr	r0, [r4, #72]
	bl	hashmap_first
	subs	r5, r0, #0
	bne	.L5
	ldr	r0, [r4, #72]
	bl	hashmap_free
	ldr	r3, [r4, #68]
	cmp	r3, #0
	beq	.L6
	ldr	r2, .L33
	ldr	r1, [r3, #4]
	ldr	r0, [r2]
	mov	r2, r4
	bl	LIST_REMOVE
	ldr	r0, [r4, #68]
	ldr	r3, [r0]
	cmp	r3, r4
	streq	r5, [r0]
	bl	user_update_last_session_timer
.L6:
	ldr	r0, [r4, #64]
	cmp	r0, #0
	beq	.L8
	ldr	r3, [r0, #8]
	mov	r1, r4
	cmp	r3, r4
	moveq	r3, #0
	streq	r3, [r0, #8]
	ldr	r3, [r0, #4]
	cmp	r3, r4
	moveq	r3, #0
	streq	r3, [r0, #4]
	bl	seat_evict_position
	ldr	r2, [r4, #64]
	ldr	r3, .L33+4
	ldr	r1, [r2]
	ldr	r0, [r3]
	mov	r2, r4
	bl	LIST_REMOVE
.L8:
	ldr	r1, [r4, #60]
	cmp	r1, #0
	bne	.L31
.L11:
	ldr	r0, [r4, #56]
	bl	pid_is_valid
	cmp	r0, #0
	bne	.L32
.L12:
	ldr	r0, [r4, #52]
	bl	free
	ldr	r0, [r4, #48]
	bl	sd_bus_message_unref
	ldr	r0, [r4, #44]
	bl	free
	ldr	r0, [r4, #40]
	bl	free
	ldr	r0, [r4, #36]
	bl	free
	ldr	r0, [r4, #32]
	bl	free
	ldr	r0, [r4, #28]
	bl	free
	ldr	r0, [r4, #24]
	bl	free
	ldr	r3, [r4, #20]
	ldr	r1, [r4, #16]
	ldr	r0, [r3]
	bl	hashmap_remove
	ldr	r0, [r4, #12]
	bl	sd_event_source_unref
	ldr	r0, [r4, #8]
	bl	safe_close
	ldr	r0, [r4, #4]
	bl	free
	ldr	r0, [r4]
	bl	free
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	mfree
.L30:
	ldr	r2, [r4, #20]
	ldr	r3, .L33+8
	ldr	r1, [r2, #12]
	ldr	r0, [r3]
	mov	r2, r4
	bl	LIST_REMOVE
	b	.L3
.L32:
	ldr	r3, [r4, #20]
	ldr	r0, [r4, #56]
	ldr	r5, [r3, #4]
	bl	PID_TO_PTR
	mov	r2, r4
	mov	r1, r0
	mov	r0, r5
	bl	hashmap_remove_value
	b	.L12
.L31:
	ldr	r3, [r4, #20]
	ldr	r0, [r3, #8]
	bl	hashmap_remove
	ldr	r0, [r4, #60]
	bl	free
	b	.L11
.L34:
	.align	2
.L33:
	.word	sessions_by_user
	.word	sessions_by_seat
	.word	gc_queue
	.size	session_free, .-session_free
	.comm	sessions_by_user,4,4
	.comm	sessions_by_seat,4,4
	.comm	gc_queue,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
