	.file	"extr_mtd_torturetest.c_countdiffs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	countdiffs, @function
countdiffs:
.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
	lea	ebx, [rdx+rcx]
	cmp	edx, ebx
	jnb	.L11
	mov	eax, edx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	rax, 1
	cmp	ebx, eax
	jbe	.L11
.L5:
	movzx	edx, BYTE PTR [rdi+rax]
	movzx	ecx, BYTE PTR [rsi+rax]
	cmp	dl, cl
	je	.L3
	mov	r11d, eax
	cmp	ebx, eax
	jbe	.L1
	mov	r10d, eax
	sub	ebx, 1
	lea	ebp, 1[rax]
	add	rdi, r10
	sub	ebx, eax
	add	rsi, r10
	add	rbx, rdi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	cmp	rdi, rbx
	je	.L1
	mov	rax, rdi
	add	rdi, 1
	sub	rax, r10
	movzx	edx, BYTE PTR [rax+rbp]
	mov	rax, rsi
	add	rsi, 1
	sub	rax, r10
	movzx	ecx, BYTE PTR [rax+rbp]
.L4:
	cmp	dl, cl
	je	.L10
	add	DWORD PTR [r8], 1
	mov	ecx, 8
	mov	edx, 1
	.p2align 4,,10
	.p2align 3
.L9:
	movzx	eax, BYTE PTR [rdi]
	xor	al, BYTE PTR [rsi]
	movzx	eax, al
	test	eax, edx
	je	.L8
	add	DWORD PTR [r9], 1
.L8:
	add	edx, edx
	sub	ecx, 1
	jne	.L9
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r11d, -1
.L1:
	mov	eax, r11d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	countdiffs, .-countdiffs
	.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_mtd_torturetest.c_countdiffs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	countdiffs, %function
countdiffs:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	add	r3, r2, r3
	push	{r4, r5, r6, r7, r8, r9, lr}
	cmp	r2, r3
	ldr	r6, [sp, #28]
	ldr	r5, [sp, #32]
	bcs	.L11
	sub	r2, r2, #1
	sub	r9, r1, #1
	add	r7, r0, r2
	mov	ip, r0
	add	r2, r1, r2
	add	r9, r9, r3
	rsb	r4, r1, #1
	b	.L5
.L3:
	cmp	r2, r9
	beq	.L11
.L5:
	ldrb	lr, [r7, #1]!	@ zero_extendqisi2
	add	r0, r4, r2
	ldrb	r8, [r2, #1]!	@ zero_extendqisi2
	cmp	lr, r8
	beq	.L3
	cmp	r3, r0
	popls	{r4, r5, r6, r7, r8, r9, pc}
	sub	r7, ip, #1
	add	r4, r1, r0
	add	r7, r7, r3
	add	ip, ip, r0
	b	.L4
.L20:
	cmp	r7, ip
	popeq	{r4, r5, r6, r7, r8, r9, pc}
.L21:
	ldrb	lr, [ip, #1]!	@ zero_extendqisi2
	ldrb	r8, [r4, #1]!	@ zero_extendqisi2
.L4:
	cmp	r8, lr
	beq	.L20
	mov	r2, #1
	mov	r1, #8
	ldr	r3, [r6]
	add	r3, r3, r2
	str	r3, [r6]
.L9:
	ldrb	r3, [ip]	@ zero_extendqisi2
	ldrb	lr, [r4]	@ zero_extendqisi2
	eor	r3, r3, lr
	tst	r3, r2
	ldrne	r3, [r5]
	lsl	r2, r2, #1
	addne	r3, r3, #1
	strne	r3, [r5]
	subs	r1, r1, #1
	bne	.L9
	cmp	r7, ip
	bne	.L21
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L11:
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, pc}
	.size	countdiffs, .-countdiffs
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
