	.file	"extr_ioperf.c_io_perf_test_io_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/usr/local/sbin/mount_nand.sh"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"NAND mounting in LTE not possible on this device. Skipping test!"
	.section	.rodata.str1.1
.LC2:
	.string	"NAND mounted successfully"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"Unable to mount NAND. Skipping test!"
	.section	.rodata.str1.1
.LC4:
	.string	"pthread_setschedparam"
.LC5:
	.string	"setiopolicy"
.LC6:
	.string	"Data buffer allocation"
.LC7:
	.string	"/dev/urandom"
.LC8:
	.string	"Open /dev/urandom"
.LC9:
	.string	"read /dev/urandom"
.LC10:
	.string	"/mnt2/test"
.LC11:
	.string	"Open /mnt2/test for writing!"
.LC12:
	.string	"fcntl F_NOCACHE enable"
.LC13:
	.string	"write test file"
	.text
	.p2align 4
	.type	io_perf_test_io_init, @function
io_perf_test_io_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rsi, .LC0[rip]
	xor	ecx, ecx
	xor	edx, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	r9d, DWORD PTR environ[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rdi, 8[rsp]
	lea	r8, 16[rsp]
	mov	QWORD PTR 16[rsp], rsi
	mov	QWORD PTR 24[rsp], 0
	call	posix_spawn@PLT
	mov	DWORD PTR 4[rsp], eax
	test	eax, eax
	js	.L17
.L2:
	mov	edi, DWORD PTR 8[rsp]
	xor	edx, edx
	lea	rsi, 4[rsp]
	call	waitpid@PLT
	mov	edi, DWORD PTR 4[rsp]
	call	WIFEXITED@PLT
	test	rax, rax
	je	.L3
	mov	edi, DWORD PTR 4[rsp]
	call	WEXITSTATUS@PLT
	test	eax, eax
	je	.L18
.L3:
	lea	rdi, .LC3[rip]
	call	T_SKIP@PLT
.L4:
	mov	eax, DWORD PTR THR_MANAGER_PRI[rip]
	mov	ebp, DWORD PTR SCHED_FIFO[rip]
	xor	ebx, ebx
	mov	DWORD PTR 12[rsp], eax
	xor	eax, eax
	call	pthread_self@PLT
	lea	rdx, 12[rsp]
	mov	esi, ebp
	mov	edi, eax
	call	pthread_setschedparam@PLT
	lea	rsi, .LC4[rip]
	mov	edi, eax
	call	T_ASSERT_POSIX_ZERO@PLT
	mov	edx, DWORD PTR IOPOL_IMPORTANT[rip]
	mov	esi, DWORD PTR IOPOL_SCOPE_PROCESS[rip]
	mov	edi, DWORD PTR IOPOL_TYPE_DISK[rip]
	call	setiopolicy_np@PLT
	lea	rsi, .LC5[rip]
	mov	edi, eax
	call	T_ASSERT_POSIX_ZERO@PLT
	mov	edi, DWORD PTR IO_SIZE[rip]
	sal	edi, 4
	call	malloc@PLT
	lea	rsi, .LC6[rip]
	mov	edi, eax
	mov	DWORD PTR data_buf[rip], eax
	call	T_ASSERT_NOTNULL@PLT
	mov	edx, DWORD PTR S_IRUSR[rip]
	mov	esi, DWORD PTR O_RDONLY[rip]
	lea	rdi, .LC7[rip]
	call	open@PLT
	lea	rsi, .LC8[rip]
	mov	ebp, eax
	mov	edi, eax
	xor	eax, eax
	call	T_ASSERT_POSIX_SUCCESS@PLT
	mov	edx, DWORD PTR IO_SIZE[rip]
	mov	esi, DWORD PTR data_buf[rip]
	mov	edi, ebp
	sal	edx, 4
	call	read@PLT
	lea	rdx, .LC9[rip]
	xor	esi, esi
	mov	rdi, rax
	call	T_ASSERT_GE_INT@PLT
	mov	edi, ebp
	lea	rbp, .LC13[rip]
	call	close@PLT
	mov	edx, DWORD PTR S_IRUSR[rip]
	mov	esi, DWORD PTR O_CREAT[rip]
	lea	rdi, .LC10[rip]
	or	esi, DWORD PTR O_WRONLY[rip]
	call	open@PLT
	lea	rdx, .LC11[rip]
	xor	esi, esi
	mov	edi, eax
	mov	r12d, eax
	xor	eax, eax
	call	T_ASSERT_POSIX_SUCCESS@PLT
	mov	esi, DWORD PTR F_NOCACHE[rip]
	mov	edx, 1
	mov	edi, r12d
	call	fcntl@PLT
	lea	rsi, .LC12[rip]
	mov	edi, eax
	call	T_ASSERT_POSIX_ZERO@PLT
	mov	eax, DWORD PTR FILE_SIZE[rip]
	mov	edx, DWORD PTR IO_SIZE[rip]
	test	eax, eax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR data_buf[rip]
	sal	edx, 4
	mov	edi, r12d
	call	write@PLT
	mov	rdx, rbp
	xor	esi, esi
	mov	rdi, rax
	call	T_ASSERT_GE_INT@PLT
	mov	edx, DWORD PTR IO_SIZE[rip]
	mov	eax, edx
	sal	eax, 4
	add	ebx, eax
	cmp	DWORD PTR FILE_SIZE[rip], ebx
	jg	.L6
.L7:
	mov	edi, r12d
	call	close@PLT
	xor	eax, eax
	call	sync@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	T_SKIP@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rdi, .LC2[rip]
	call	T_PASS@PLT
	jmp	.L4
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	io_perf_test_io_init, .-io_perf_test_io_init
	.comm	environ,4,4
	.comm	data_buf,4,4
	.comm	T_QUIET,4,4
	.comm	THR_MANAGER_PRI,4,4
	.comm	S_IRUSR,4,4
	.comm	SCHED_FIFO,4,4
	.comm	O_WRONLY,4,4
	.comm	O_RDONLY,4,4
	.comm	O_CREAT,4,4
	.comm	IO_SIZE,4,4
	.comm	IOPOL_TYPE_DISK,4,4
	.comm	IOPOL_SCOPE_PROCESS,4,4
	.comm	IOPOL_IMPORTANT,4,4
	.comm	F_NOCACHE,4,4
	.comm	FILE_SIZE,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_ioperf.c_io_perf_test_io_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/usr/local/sbin/mount_nand.sh\000"
	.align	2
.LC1:
	.ascii	"NAND mounting in LTE not possible on this device. S"
	.ascii	"kipping test!\000"
	.align	2
.LC2:
	.ascii	"NAND mounted successfully\000"
	.align	2
.LC3:
	.ascii	"Unable to mount NAND. Skipping test!\000"
	.align	2
.LC4:
	.ascii	"pthread_setschedparam\000"
	.align	2
.LC5:
	.ascii	"setiopolicy\000"
	.align	2
.LC6:
	.ascii	"Data buffer allocation\000"
	.align	2
.LC7:
	.ascii	"/dev/urandom\000"
	.align	2
.LC8:
	.ascii	"Open /dev/urandom\000"
	.align	2
.LC9:
	.ascii	"read /dev/urandom\000"
	.align	2
.LC10:
	.ascii	"/mnt2/test\000"
	.align	2
.LC11:
	.ascii	"Open /mnt2/test for writing!\000"
	.align	2
.LC12:
	.ascii	"fcntl F_NOCACHE enable\000"
	.align	2
.LC13:
	.ascii	"write test file\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	io_perf_test_io_init, %function
io_perf_test_io_init:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r2, .L19
	sub	sp, sp, #36
	ldr	r2, [r2]
	ldr	r1, .L19+4
	ldr	ip, .L19+8
	add	r0, sp, #20
	str	r2, [sp, #4]
	str	r0, [sp]
	mov	r2, r3
	add	r0, sp, #12
	ldr	ip, [ip]
	str	ip, [sp, #28]
	mov	ip,#0
	str	r3, [sp, #24]
	str	r1, [sp, #20]
	bl	posix_spawn
	cmp	r0, #0
	str	r0, [sp, #8]
	blt	.L16
.L2:
	mov	r2, #0
	add	r1, sp, #8
	ldr	r0, [sp, #12]
	bl	waitpid
	ldr	r0, [sp, #8]
	bl	WIFEXITED
	cmp	r0, #0
	beq	.L3
	ldr	r0, [sp, #8]
	bl	WEXITSTATUS
	cmp	r0, #0
	beq	.L17
.L3:
	ldr	r0, .L19+12
	bl	T_SKIP
.L4:
	ldr	r3, .L19+16
	ldr	r6, .L19+20
	ldr	r3, [r3]
	ldr	r7, .L19+24
	str	r3, [sp, #16]
	bl	pthread_self
	ldr	r3, .L19+28
	add	r2, sp, #16
	ldr	r1, [r3]
	bl	pthread_setschedparam
	ldr	r1, .L19+32
	bl	T_ASSERT_POSIX_ZERO
	ldr	r3, .L19+36
	ldr	r2, .L19+40
	ldr	r1, .L19+44
	ldr	r2, [r2]
	ldr	r0, [r3]
	ldr	r1, [r1]
	bl	setiopolicy_np
	ldr	r1, .L19+48
	bl	T_ASSERT_POSIX_ZERO
	ldr	r0, [r6]
	ldr	r5, .L19+52
	lsl	r0, r0, #4
	bl	malloc
	ldr	r1, .L19+56
	str	r0, [r7]
	bl	T_ASSERT_NOTNULL
	ldr	r3, .L19+60
	ldr	r2, [r5]
	ldr	r1, [r3]
	ldr	r0, .L19+64
	bl	open
	mov	r4, r0
	ldr	r1, .L19+68
	bl	T_ASSERT_POSIX_SUCCESS
	ldr	r2, [r6]
	ldr	r1, [r7]
	lsl	r2, r2, #4
	mov	r0, r4
	bl	read
	mov	r1, #0
	ldr	r2, .L19+72
	bl	T_ASSERT_GE_INT
	mov	r0, r4
	bl	close
	ldr	r2, .L19+76
	ldr	r3, .L19+80
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r5]
	orr	r1, r1, r3
	ldr	r0, .L19+84
	bl	open
	mov	r5, r0
	mov	r1, #0
	ldr	r2, .L19+88
	bl	T_ASSERT_POSIX_SUCCESS
	ldr	r3, .L19+92
	mov	r2, #1
	ldr	r1, [r3]
	mov	r0, r5
	ldr	r9, .L19+96
	bl	fcntl
	ldr	r1, .L19+100
	bl	T_ASSERT_POSIX_ZERO
	ldr	r3, [r9]
	cmp	r3, #0
	ble	.L7
	mov	r4, #0
	ldr	r2, [r6]
	ldr	r8, .L19+104
	lsl	r2, r2, #4
.L6:
	ldr	r1, [r7]
	mov	r0, r5
	bl	write
	mov	r2, r8
	mov	r1, #0
	bl	T_ASSERT_GE_INT
	ldr	r2, [r6]
	ldr	r3, [r9]
	add	r4, r4, r2, lsl #4
	cmp	r3, r4
	lsl	r2, r2, #4
	bgt	.L6
.L7:
	mov	r0, r5
	bl	close
	bl	sync
	ldr	r3, .L19+8
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L16:
	ldr	r0, .L19+108
	bl	T_SKIP
	b	.L2
.L17:
	ldr	r0, .L19+112
	bl	T_PASS
	b	.L4
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	environ
	.word	.LC0
	.word	.LC14
	.word	.LC3
	.word	THR_MANAGER_PRI
	.word	IO_SIZE
	.word	data_buf
	.word	SCHED_FIFO
	.word	.LC4
	.word	IOPOL_TYPE_DISK
	.word	IOPOL_IMPORTANT
	.word	IOPOL_SCOPE_PROCESS
	.word	.LC5
	.word	S_IRUSR
	.word	.LC6
	.word	O_RDONLY
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	O_CREAT
	.word	O_WRONLY
	.word	.LC10
	.word	.LC11
	.word	F_NOCACHE
	.word	FILE_SIZE
	.word	.LC12
	.word	.LC13
	.word	.LC1
	.word	.LC2
	.size	io_perf_test_io_init, .-io_perf_test_io_init
	.comm	environ,4,4
	.comm	data_buf,4,4
	.comm	T_QUIET,4,4
	.comm	THR_MANAGER_PRI,4,4
	.comm	S_IRUSR,4,4
	.comm	SCHED_FIFO,4,4
	.comm	O_WRONLY,4,4
	.comm	O_RDONLY,4,4
	.comm	O_CREAT,4,4
	.comm	IO_SIZE,4,4
	.comm	IOPOL_TYPE_DISK,4,4
	.comm	IOPOL_SCOPE_PROCESS,4,4
	.comm	IOPOL_IMPORTANT,4,4
	.comm	F_NOCACHE,4,4
	.comm	FILE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
