	.file	"extr_swap.c_crc32_threadfn.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	crc32_threadfn, @function
crc32_threadfn:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	r15, 8[rdi]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	lea	r14, 4[rdi]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	lea	r13, 40[rdi]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r13
	call	atomic_read@PLT
	mov	esi, 1
	test	rax, rax
	je	.L15
.L2:
	mov	edi, DWORD PTR 56[rbx]
	call	wait_event@PLT
	xor	eax, eax
	call	kthread_should_stop@PLT
	test	rax, rax
	jne	.L12
	xor	esi, esi
	mov	rdi, r13
	xor	ebp, ebp
	call	atomic_set@PLT
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdx, QWORD PTR 16[rbx]
	mov	eax, ebp
	mov	r12, QWORD PTR 32[rbx]
	add	ebp, 1
	mov	rcx, QWORD PTR 24[rbx]
	mov	rdx, QWORD PTR [rdx+rax*8]
	mov	edi, DWORD PTR [r12]
	mov	esi, DWORD PTR [rcx+rax*4]
	mov	edx, DWORD PTR [rdx]
	call	crc32_le@PLT
	mov	DWORD PTR [r12], eax
	cmp	DWORD PTR [rbx], ebp
	ja	.L4
.L6:
	mov	rdi, r15
	mov	esi, 1
	call	atomic_set@PLT
	mov	rdi, r14
	call	wake_up@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	call	kthread_should_stop@PLT
	xor	esi, esi
	test	rax, rax
	setne	sil
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	mov	QWORD PTR 48[rbx], 0
	mov	rdi, r15
	mov	esi, 1
	call	atomic_set@PLT
	mov	rdi, r14
	call	wake_up@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	crc32_threadfn, .-crc32_threadfn
	.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_swap.c_crc32_threadfn.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	crc32_threadfn, %function
crc32_threadfn:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	add	r7, r0, #24
	add	r9, r0, #8
	add	r8, r0, #4
.L5:
	mov	r0, r7
	ldr	r4, [r5, #32]
	bl	atomic_read
	cmp	r0, #0
	movne	r1, #1
	beq	.L14
.L2:
	mov	r0, r4
	bl	wait_event
	bl	kthread_should_stop
	subs	r4, r0, #0
	bne	.L11
	mov	r1, r4
	mov	r0, r7
	bl	atomic_set
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L6
.L4:
	ldr	r3, [r5, #12]
	ldr	r6, [r5, #20]
	ldr	r2, [r3, r4, lsl #2]
	ldr	r3, [r5, #16]
	ldr	r2, [r2]
	ldr	r1, [r3, r4, lsl #2]
	ldr	r0, [r6]
	bl	crc32_le
	str	r0, [r6]
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bhi	.L4
.L6:
	mov	r1, #1
	mov	r0, r9
	bl	atomic_set
	mov	r0, r8
	bl	wake_up
	b	.L5
.L14:
	bl	kthread_should_stop
	subs	r1, r0, #0
	movne	r1, #1
	b	.L2
.L11:
	mov	r4, #0
	mov	r1, #1
	mov	r0, r9
	str	r4, [r5, #28]
	bl	atomic_set
	mov	r0, r8
	bl	wake_up
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	crc32_threadfn, .-crc32_threadfn
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
