	.file	"extr_vhba_faulty.c_vhba_task.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vhba_task, @function
vhba_task:
.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	rdi, QWORD PTR 16[rdi]
	call	mtx_lock@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 16[rbx]
	mov	edx, DWORD PTR sim_links[rip]
	mov	rsi, rbp
	lea	rdi, 8[rax]
	call	TAILQ_REMOVE@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	faulty_act@PLT
	mov	rax, QWORD PTR [rbx]
	sub	rax, 1
	mov	QWORD PTR [rbx], rax
	je	.L10
.L3:
	mov	rax, QWORD PTR 16[rbx]
	lea	rdi, 8[rax]
	call	TAILQ_FIRST@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L4
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 16[rbx]
	mov	edx, DWORD PTR sim_links[rip]
	mov	rsi, rbp
	lea	rdi, 4[rax]
	call	TAILQ_REMOVE@PLT
	mov	rdi, rbp
	call	xpt_done@PLT
.L5:
	mov	rax, QWORD PTR 16[rbx]
	lea	rdi, 4[rax]
	call	TAILQ_FIRST@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L6
	mov	rdi, QWORD PTR 16[rbx]
	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
	jmp	mtx_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	DWORD PTR 8[rbx], 1
	call	arc4random@PLT
	movzx	eax, al
	add	rax, 1
	mov	QWORD PTR [rbx], rax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	vhba_task, .-vhba_task
	.comm	sim_links,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_vhba_faulty.c_vhba_task.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vhba_task, %function
vhba_task:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, [r0, #8]
	bl	mtx_lock
	mov	r7, #1
	ldr	r6, .L11
	b	.L3
.L4:
	ldr	r0, [r4, #8]
	mov	r1, r5
	ldr	r2, [r6]
	add	r0, r0, #8
	bl	TAILQ_REMOVE
	mov	r1, r5
	mov	r0, r4
	bl	faulty_act
	ldr	r3, [r4]
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r4]
	beq	.L10
.L3:
	ldr	r0, [r4, #8]
	add	r0, r0, #8
	bl	TAILQ_FIRST
	subs	r5, r0, #0
	bne	.L4
	ldr	r6, .L11
	b	.L5
.L6:
	mov	r1, r5
	ldr	r2, [r6]
	add	r0, r0, #4
	bl	TAILQ_REMOVE
	mov	r0, r5
	bl	xpt_done
.L5:
	ldr	r0, [r4, #8]
	add	r0, r0, #4
	bl	TAILQ_FIRST
	subs	r5, r0, #0
	ldr	r0, [r4, #8]
	bne	.L6
	pop	{r4, r5, r6, r7, r8, lr}
	b	mtx_unlock
.L10:
	str	r7, [r4, #4]
	bl	arc4random
	and	r3, r0, #255
	add	r3, r3, #1
	str	r3, [r4]
	b	.L3
.L12:
	.align	2
.L11:
	.word	sim_links
	.size	vhba_task, .-vhba_task
	.comm	sim_links,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
