	.file	"extr_job.c_job_uninstall.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	job_uninstall
	.type	job_uninstall, @function
job_uninstall:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR [rdi]
	call	assert@PLT
	mov	esi, DWORD PTR JOB_WAITING[rip]
	mov	rdi, rbx
	call	job_set_state@PLT
	mov	rax, QWORD PTR JOB_NOP[rip]
	cmp	QWORD PTR 8[rbx], rax
	je	.L7
	mov	rbp, QWORD PTR 32[rbx]
	mov	rax, QWORD PTR 0[rbp]
.L3:
	xor	edi, edi
	cmp	rax, rbx
	sete	dil
	call	assert@PLT
	mov	rdi, QWORD PTR 24[rbx]
	call	MANAGER_IS_RELOADING@PLT
	test	eax, eax
	je	.L8
.L4:
	mov	QWORD PTR 0[rbp], 0
	mov	rdi, QWORD PTR 32[rbx]
	call	unit_add_to_gc_queue@PLT
	mov	rdi, QWORD PTR 32[rbx]
	call	unit_add_to_dbus_queue@PLT
	mov	edi, DWORD PTR 16[rbx]
	call	UINT32_TO_PTR@PLT
	mov	rdx, rbx
	mov	esi, eax
	mov	rax, QWORD PTR 24[rbx]
	mov	edi, DWORD PTR [rax]
	call	hashmap_remove_value@PLT
	mov	DWORD PTR [rbx], 0
	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
.L7:
	.cfi_restore_state
	mov	rax, QWORD PTR 32[rbx]
	lea	rbp, 8[rax]
	mov	rax, QWORD PTR 8[rax]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, rbx
	call	bus_job_send_removed_signal@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	job_uninstall, .-job_uninstall
	.comm	JOB_WAITING,4,4
	.comm	JOB_NOP,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_job.c_job_uninstall.c"
	.text
	.align	2
	.global	job_uninstall
	.syntax unified
	.arm
	.fpu softvfp
	.type	job_uninstall, %function
job_uninstall:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0]
	bl	assert
	ldr	r3, .L8
	mov	r0, r4
	ldr	r1, [r3]
	bl	job_set_state
	ldr	r3, .L8+4
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	ldreq	r3, [r4, #16]
	ldrne	r6, [r4, #16]
	ldreq	r0, [r3, #4]
	ldrne	r0, [r6]
	addeq	r6, r3, #4
	sub	r0, r0, r4
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [r4, #12]
	bl	MANAGER_IS_RELOADING
	cmp	r0, #0
	beq	.L7
.L4:
	mov	r5, #0
	ldr	r0, [r4, #16]
	str	r5, [r6]
	bl	unit_add_to_gc_queue
	ldr	r0, [r4, #16]
	bl	unit_add_to_dbus_queue
	ldr	r3, [r4, #12]
	ldr	r0, [r4, #8]
	ldr	r6, [r3]
	bl	UINT32_TO_PTR
	mov	r2, r4
	mov	r1, r0
	mov	r0, r6
	bl	hashmap_remove_value
	str	r5, [r4]
	pop	{r4, r5, r6, pc}
.L7:
	mov	r0, r4
	bl	bus_job_send_removed_signal
	b	.L4
.L9:
	.align	2
.L8:
	.word	JOB_WAITING
	.word	JOB_NOP
	.size	job_uninstall, .-job_uninstall
	.comm	JOB_WAITING,4,4
	.comm	JOB_NOP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
