	.file	"extr_test_kmod.c_test_dev_kmod_stop_tests.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Ending request_module() tests\n"
	.align 8
.LC1:
	.string	"Stopping still-running thread %i\n"
	.text
	.p2align 4
	.type	test_dev_kmod_stop_tests, @function
test_dev_kmod_stop_tests:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rsi, .LC0[rip]
	xor	eax, eax
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 4[rdi]
	call	dev_info@PLT
	mov	rdi, r12
	call	mutex_lock@PLT
	mov	eax, DWORD PTR 16[r12]
	test	eax, eax
	je	.L2
	xor	ebx, ebx
	lea	r13, .LC1[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	add	ebx, 1
	cmp	DWORD PTR 16[r12], ebx
	jbe	.L2
.L7:
	mov	ebp, ebx
	sal	rbp, 4
	add	rbp, QWORD PTR 8[r12]
	mov	rdi, QWORD PTR 8[rbp]
	test	rdi, rdi
	je	.L4
	call	IS_ERR@PLT
	test	eax, eax
	je	.L11
.L5:
	cmp	QWORD PTR 8[rbp], 0
	je	.L4
	cmp	QWORD PTR 0[rbp], 0
	je	.L4
	mov	rdi, rbp
	add	ebx, 1
	call	test_kmod_put_module@PLT
	cmp	DWORD PTR 16[r12], ebx
	ja	.L7
.L2:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[r12]
	mov	edx, ebx
	mov	rsi, r13
	call	dev_info@PLT
	mov	rdi, QWORD PTR 8[rbp]
	call	kthread_stop@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	test_dev_kmod_stop_tests, .-test_dev_kmod_stop_tests
	.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_test_kmod.c_test_dev_kmod_stop_tests.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Ending request_module() tests\012\000"
	.align	2
.LC1:
	.ascii	"Stopping still-running thread %i\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_dev_kmod_stop_tests, %function
test_dev_kmod_stop_tests:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	ldr	r1, .L22
	ldr	r0, [r0, #4]
	bl	dev_info
	mov	r0, r7
	bl	mutex_lock
	ldr	r3, [r7, #12]
	cmp	r3, #0
	beq	.L2
	mov	r4, #0
	ldr	r9, .L22+4
	b	.L7
.L4:
	add	r4, r4, #1
	cmp	r3, r4
	bls	.L2
.L7:
	ldr	r6, [r7, #8]
	lsl	r8, r4, #3
	add	r5, r6, r4, lsl #3
	ldr	r0, [r5, #4]
	cmp	r0, #0
	beq	.L4
	bl	IS_ERR
	cmp	r0, #0
	beq	.L21
.L5:
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [r6, r8]
	cmp	r3, #0
	bne	.L17
.L19:
	ldr	r3, [r7, #12]
	add	r4, r4, #1
	cmp	r3, r4
	bhi	.L7
.L2:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	mutex_unlock
.L17:
	mov	r0, r5
	bl	test_kmod_put_module
	b	.L19
.L21:
	mov	r2, r4
	mov	r1, r9
	ldr	r0, [r7, #4]
	bl	dev_info
	ldr	r0, [r5, #4]
	bl	kthread_stop
	b	.L5
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	.LC1
	.size	test_dev_kmod_stop_tests, .-test_dev_kmod_stop_tests
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
