	.file	"extr_ztest.c_ztest_fletcher.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"scalar"
.LC1:
	.string	"cycle"
	.text
	.p2align 4
	.globl	ztest_fletcher
	.type	ztest_fletcher, @function
ztest_fletcher:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	r14, 40[rsp]
	call	gethrtime@PLT
	add	rax, QWORD PTR NANOSEC[rip]
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	gethrtime@PLT
	cmp	rax, QWORD PTR 24[rsp]
	jg	.L15
.L6:
	xor	eax, eax
	call	ztest_random_blocksize@PLT
	mov	esi, DWORD PTR UMEM_NOFAIL[rip]
	mov	edi, eax
	mov	ebp, eax
	call	umem_alloc@PLT
	mov	esi, DWORD PTR B_FALSE[rip]
	mov	edi, ebp
	mov	r15, rax
	call	abd_alloc@PLT
	mov	esi, DWORD PTR B_TRUE[rip]
	mov	edi, ebp
	mov	QWORD PTR [rsp], rax
	call	abd_alloc@PLT
	mov	QWORD PTR 8[rsp], rax
	movsx	rax, ebp
	shr	rax, 2
	je	.L3
	lea	rbx, [r15+rax*4]
	mov	r12, r15
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR UINT_MAX[rip]
	add	r12, 4
	call	ztest_random@PLT
	mov	DWORD PTR -4[r12], eax
	cmp	r12, rbx
	jne	.L4
.L3:
	mov	rdi, QWORD PTR [rsp]
	mov	ecx, ebp
	xor	edx, edx
	mov	rsi, r15
	lea	r13, 44[rsp]
	lea	r12, 52[rsp]
	call	abd_copy_from_buf_off@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	ecx, ebp
	xor	edx, edx
	mov	rsi, r15
	lea	rbx, 48[rsp]
	call	abd_copy_from_buf_off@PLT
	lea	rdi, .LC0[rip]
	call	fletcher_4_impl_set@PLT
	mov	edi, eax
	call	VERIFY0@PLT
	mov	rcx, r14
	xor	edx, edx
	mov	esi, ebp
	mov	rdi, r15
	call	fletcher_4_native@PLT
	mov	rcx, r13
	xor	edx, edx
	mov	esi, ebp
	mov	rdi, r15
	call	fletcher_4_byteswap@PLT
	lea	rdi, .LC1[rip]
	call	fletcher_4_impl_set@PLT
	mov	edi, eax
	call	VERIFY0@PLT
	mov	DWORD PTR 20[rsp], 100
	.p2align 4,,10
	.p2align 3
.L5:
	xor	edx, edx
	mov	rcx, r12
	mov	esi, ebp
	mov	rdi, r15
	call	fletcher_4_byteswap@PLT
	mov	rcx, rbx
	xor	edx, edx
	mov	esi, ebp
	mov	rdi, r15
	call	fletcher_4_native@PLT
	mov	edx, 4
	mov	rsi, r14
	mov	rdi, rbx
	call	bcmp@PLT
	mov	edi, eax
	call	VERIFY0@PLT
	mov	edx, 4
	mov	rsi, r13
	mov	rdi, r12
	call	bcmp@PLT
	mov	edi, eax
	call	VERIFY0@PLT
	mov	rdi, QWORD PTR [rsp]
	xor	edx, edx
	mov	rcx, r12
	mov	esi, ebp
	call	abd_fletcher_4_byteswap@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	rcx, rbx
	xor	edx, edx
	mov	esi, ebp
	call	abd_fletcher_4_native@PLT
	mov	edx, 4
	mov	rsi, r14
	mov	rdi, rbx
	call	bcmp@PLT
	mov	edi, eax
	call	VERIFY0@PLT
	mov	edx, 4
	mov	rsi, r13
	mov	rdi, r12
	call	bcmp@PLT
	mov	edi, eax
	call	VERIFY0@PLT
	mov	rdi, QWORD PTR 8[rsp]
	xor	edx, edx
	mov	rcx, r12
	mov	esi, ebp
	call	abd_fletcher_4_byteswap@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	rcx, rbx
	xor	edx, edx
	mov	esi, ebp
	call	abd_fletcher_4_native@PLT
	mov	edx, 4
	mov	rsi, r14
	mov	rdi, rbx
	call	bcmp@PLT
	mov	edi, eax
	call	VERIFY0@PLT
	mov	edx, 4
	mov	rsi, r13
	mov	rdi, r12
	call	bcmp@PLT
	mov	edi, eax
	call	VERIFY0@PLT
	sub	DWORD PTR 20[rsp], 1
	jne	.L5
	mov	esi, ebp
	mov	rdi, r15
	call	umem_free@PLT
	mov	rdi, QWORD PTR [rsp]
	call	abd_free@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	abd_free@PLT
	xor	eax, eax
	call	gethrtime@PLT
	cmp	rax, QWORD PTR 24[rsp]
	jle	.L6
.L15:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ztest_fletcher, .-ztest_fletcher
	.comm	UMEM_NOFAIL,4,4
	.comm	UINT_MAX,4,4
	.comm	NANOSEC,8,8
	.comm	B_TRUE,4,4
	.comm	B_FALSE,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_ztest.c_ztest_fletcher.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"scalar\000"
	.align	2
.LC1:
	.ascii	"cycle\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ztest_fletcher
	.syntax unified
	.arm
	.fpu softvfp
	.type	ztest_fletcher, %function
ztest_fletcher:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L17
	sub	sp, sp, #36
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	gethrtime
	ldr	r3, .L17+4
	ldr	r9, .L17+8
	ldr	r3, [r3]
	ldr	fp, .L17+12
	add	r3, r0, r3
	str	r3, [sp, #4]
	bl	gethrtime
	ldr	r3, [sp, #4]
	cmp	r0, r3
	bgt	.L15
.L6:
	bl	ztest_random_blocksize
	ldr	r3, .L17+16
	mov	r4, r0
	ldr	r1, [r3]
	bl	umem_alloc
	ldr	r3, .L17+20
	mov	r6, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	abd_alloc
	ldr	r3, .L17+24
	mov	r8, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	abd_alloc
	lsrs	r5, r4, #2
	mov	r7, r0
	beq	.L3
	mov	r10, r6
	add	r5, r6, r5, lsl #2
.L4:
	ldr	r0, [r9]
	bl	ztest_random
	str	r0, [r10], #4
	cmp	r10, r5
	bne	.L4
.L3:
	mov	r3, r4
	mov	r2, #0
	mov	r1, r6
	mov	r0, r8
	bl	abd_copy_from_buf_off
	mov	r3, r4
	mov	r2, #0
	mov	r1, r6
	mov	r0, r7
	bl	abd_copy_from_buf_off
	mov	r0, fp
	bl	fletcher_4_impl_set
	bl	VERIFY0
	mov	r2, #0
	mov	r1, r4
	add	r3, sp, #12
	mov	r0, r6
	bl	fletcher_4_native
	mov	r2, #0
	mov	r1, r4
	add	r3, sp, #16
	mov	r0, r6
	bl	fletcher_4_byteswap
	ldr	r0, .L17+28
	bl	fletcher_4_impl_set
	bl	VERIFY0
	mov	r5, #100
.L5:
	mov	r2, #0
	mov	r1, r4
	add	r3, sp, #24
	mov	r0, r6
	bl	fletcher_4_byteswap
	add	r3, sp, #20
	mov	r2, #0
	mov	r1, r4
	mov	r0, r6
	bl	fletcher_4_native
	mov	r2, #4
	add	r1, sp, #12
	add	r0, sp, #20
	bl	memcmp
	bl	VERIFY0
	mov	r2, #4
	add	r1, sp, #16
	add	r0, sp, #24
	bl	memcmp
	bl	VERIFY0
	mov	r2, #0
	mov	r1, r4
	add	r3, sp, #24
	mov	r0, r8
	bl	abd_fletcher_4_byteswap
	add	r3, sp, #20
	mov	r2, #0
	mov	r1, r4
	mov	r0, r8
	bl	abd_fletcher_4_native
	mov	r2, #4
	add	r1, sp, #12
	add	r0, sp, #20
	bl	memcmp
	bl	VERIFY0
	mov	r2, #4
	add	r1, sp, #16
	add	r0, sp, #24
	bl	memcmp
	bl	VERIFY0
	mov	r2, #0
	mov	r1, r4
	add	r3, sp, #24
	mov	r0, r7
	bl	abd_fletcher_4_byteswap
	add	r3, sp, #20
	mov	r2, #0
	mov	r1, r4
	mov	r0, r7
	bl	abd_fletcher_4_native
	mov	r2, #4
	add	r1, sp, #12
	add	r0, sp, #20
	bl	memcmp
	bl	VERIFY0
	mov	r2, #4
	add	r1, sp, #16
	add	r0, sp, #24
	bl	memcmp
	bl	VERIFY0
	subs	r5, r5, #1
	bne	.L5
	mov	r1, r4
	mov	r0, r6
	bl	umem_free
	mov	r0, r8
	bl	abd_free
	mov	r0, r7
	bl	abd_free
	bl	gethrtime
	ldr	r3, [sp, #4]
	cmp	r0, r3
	ble	.L6
.L15:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC2
	.word	NANOSEC
	.word	UINT_MAX
	.word	.LC0
	.word	UMEM_NOFAIL
	.word	B_FALSE
	.word	B_TRUE
	.word	.LC1
	.size	ztest_fletcher, .-ztest_fletcher
	.comm	UMEM_NOFAIL,4,4
	.comm	UINT_MAX,4,4
	.comm	NANOSEC,4,4
	.comm	B_TRUE,4,4
	.comm	B_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
