	.file	"extr_loopback.c_gb_loopback_fn.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"iteration_count"
.LC1:
	.string	"load test complete\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"continuing on with new test set\n"
	.text
	.p2align 4
	.type	gb_loopback_fn, @function
gb_loopback_fn:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	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, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 80[rdi]
	mov	r13, QWORD PTR [rax]
	mov	rdi, r13
	call	gb_pm_runtime_get_sync@PLT
	mov	DWORD PTR 12[rsp], eax
	test	eax, eax
	jne	.L1
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR [r15]
	test	edx, edx
	jne	.L8
.L4:
	mov	rdi, r13
	call	gb_pm_runtime_put_autosuspend@PLT
	mov	eax, DWORD PTR [r15]
	mov	esi, 1
	test	eax, eax
	je	.L38
.L7:
	mov	edi, DWORD PTR 72[r15]
	call	wait_event_interruptible@PLT
	mov	rdi, r13
	call	gb_pm_runtime_get_sync@PLT
	test	eax, eax
	jne	.L39
.L8:
	xor	eax, eax
	call	kthread_should_stop@PLT
	test	rax, rax
	jne	.L5
	mov	rdi, r15
	call	gb_loopback_async_wait_to_send@PLT
	xor	eax, eax
	call	kthread_should_stop@PLT
	test	rax, rax
	jne	.L5
	lea	rbp, 36[r15]
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	rax, QWORD PTR 16[r15]
	cmp	QWORD PTR 8[r15], rax
	je	.L40
	mov	eax, DWORD PTR 60[r15]
	mov	edi, DWORD PTR 56[r15]
	mov	r12d, DWORD PTR 32[r15]
	mov	r14d, DWORD PTR [r15]
	mov	DWORD PTR 8[rsp], eax
	call	ktime_to_ns@PLT
	test	rax, rax
	je	.L41
.L13:
	cmp	QWORD PTR 48[r15], 0
	mov	eax, DWORD PTR GB_LOOPBACK_TYPE_PING[rip]
	je	.L14
	cmp	r14d, eax
	je	.L42
	cmp	DWORD PTR GB_LOOPBACK_TYPE_TRANSFER[rip], r14d
	je	.L43
	cmp	DWORD PTR GB_LOOPBACK_TYPE_SINK[rip], r14d
	je	.L44
.L16:
	test	ebx, ebx
	je	.L18
	add	DWORD PTR 40[r15], 1
	add	QWORD PTR 24[r15], 1
.L18:
	add	QWORD PTR 8[r15], 1
	mov	rdi, rbp
	call	mutex_unlock@PLT
	test	r12d, r12d
	je	.L3
	cmp	r12d, 19999
	jg	.L23
	lea	esi, 100[r12]
	mov	edi, r12d
	call	usleep_range@PLT
	mov	edx, DWORD PTR [r15]
	test	edx, edx
	je	.L4
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L14:
	cmp	r14d, eax
	je	.L45
	cmp	DWORD PTR GB_LOOPBACK_TYPE_TRANSFER[rip], r14d
	je	.L46
	cmp	DWORD PTR GB_LOOPBACK_TYPE_SINK[rip], r14d
	je	.L47
.L20:
	test	ebx, ebx
	je	.L22
	add	DWORD PTR 40[r15], 1
.L22:
	add	QWORD PTR 24[r15], 1
	xor	esi, esi
	test	ebx, ebx
	mov	rdi, r15
	setne	sil
	call	gb_loopback_calculate_stats@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L41:
	call	ktime_get@PLT
	mov	DWORD PTR 56[r15], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rdi, rbp
	call	mutex_unlock@PLT
	mov	rdi, r15
	call	gb_loopback_async_wait_all@PLT
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	rax, QWORD PTR 16[r15]
	cmp	QWORD PTR 24[r15], rax
	je	.L48
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	call	dev_dbg@PLT
.L11:
	mov	rdi, rbp
	call	mutex_unlock@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L23:
	movsx	rdi, r12d
	sar	r12d, 31
	imul	rdi, rdi, 274877907
	sar	rdi, 38
	sub	edi, r12d
	call	msleep@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L38:
	xor	eax, eax
	call	kthread_should_stop@PLT
	xor	esi, esi
	test	rax, rax
	setne	sil
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L39:
	mov	DWORD PTR 12[rsp], eax
.L1:
	mov	eax, DWORD PTR 12[rsp]
	add	rsp, 24
	.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
	.p2align 4,,10
	.p2align 3
.L45:
	.cfi_restore_state
	mov	rdi, r15
	call	gb_loopback_sync_ping@PLT
	mov	ebx, eax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L42:
	mov	rdi, r15
	call	gb_loopback_async_ping@PLT
	mov	ebx, eax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r13
	call	gb_pm_runtime_put_autosuspend@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L48:
	mov	DWORD PTR [r15], 0
	mov	rdi, QWORD PTR 64[r15]
	xor	esi, esi
	lea	rdx, .LC0[rip]
	mov	QWORD PTR 8[r15], 0
	call	sysfs_notify@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	dev_dbg@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L46:
	mov	esi, DWORD PTR 8[rsp]
	mov	rdi, r15
	call	gb_loopback_sync_transfer@PLT
	mov	ebx, eax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L43:
	mov	esi, DWORD PTR 8[rsp]
	mov	rdi, r15
	call	gb_loopback_async_transfer@PLT
	mov	ebx, eax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L47:
	mov	esi, DWORD PTR 8[rsp]
	mov	rdi, r15
	call	gb_loopback_sync_sink@PLT
	mov	ebx, eax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L44:
	mov	esi, DWORD PTR 8[rsp]
	mov	rdi, r15
	call	gb_loopback_async_sink@PLT
	mov	ebx, eax
	jmp	.L16
	.cfi_endproc
.LFE0:
	.size	gb_loopback_fn, .-gb_loopback_fn
	.comm	GB_LOOPBACK_TYPE_TRANSFER,4,4
	.comm	GB_LOOPBACK_TYPE_SINK,4,4
	.comm	GB_LOOPBACK_TYPE_PING,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_loopback.c_gb_loopback_fn.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"iteration_count\000"
	.align	2
.LC1:
	.ascii	"load test complete\012\000"
	.align	2
.LC2:
	.ascii	"continuing on with new test set\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gb_loopback_fn, %function
gb_loopback_fn:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r2, [r0, #48]
	sub	sp, sp, #12
	ldr	r7, [r2]
	mov	r9, r0
	mov	r0, r7
	bl	gb_pm_runtime_get_sync
	subs	r3, r0, #0
	str	r3, [sp, #4]
	bne	.L1
	mov	r6, r3
	ldr	r10, .L50
.L3:
	ldr	r3, [r9]
	cmp	r3, #0
	bne	.L8
.L4:
	mov	r0, r7
	bl	gb_pm_runtime_put_autosuspend
	ldr	r3, [r9]
	ldr	r4, [r9, #44]
	cmp	r3, #0
	movne	r1, #1
	beq	.L39
.L7:
	mov	r0, r4
	bl	wait_event_interruptible
	mov	r0, r7
	bl	gb_pm_runtime_get_sync
	cmp	r0, #0
	bne	.L40
.L8:
	bl	kthread_should_stop
	cmp	r0, #0
	bne	.L5
	mov	r0, r9
	bl	gb_loopback_async_wait_to_send
	bl	kthread_should_stop
	subs	r4, r0, #0
	bne	.L5
	add	r5, r9, #20
	mov	r0, r5
	bl	mutex_lock
	ldmib	r9, {r2, r3}
	cmp	r2, r3
	beq	.L41
	ldr	r0, [r9, #32]
	ldr	fp, [r9, #36]
	ldr	r4, [r9, #16]
	ldr	r8, [r9]
	bl	ktime_to_ns
	cmp	r0, #0
	beq	.L42
.L13:
	ldr	r2, [r9, #28]
	ldr	r3, .L50+4
	cmp	r2, #0
	ldr	r3, [r3]
	beq	.L14
	cmp	r8, r3
	beq	.L43
	ldr	r3, [r10]
	cmp	r3, r8
	beq	.L44
	ldr	r3, .L50+8
	ldr	r3, [r3]
	cmp	r3, r8
	beq	.L45
.L16:
	cmp	r6, #0
	beq	.L18
	ldr	r2, [r9, #24]
	ldr	r3, [r9, #12]
	add	r2, r2, #1
	add	r3, r3, #1
	str	r2, [r9, #24]
	str	r3, [r9, #12]
.L18:
	ldr	r3, [r9, #4]
	mov	r0, r5
	add	r3, r3, #1
	str	r3, [r9, #4]
	bl	mutex_unlock
	cmp	r4, #0
	beq	.L3
	ldr	r3, .L50+12
	cmp	r4, r3
	bgt	.L23
	mov	r0, r4
	add	r1, r4, #100
	bl	usleep_range
	ldr	r3, [r9]
	cmp	r3, #0
	beq	.L4
	b	.L8
.L14:
	cmp	r8, r3
	beq	.L46
	ldr	r3, [r10]
	cmp	r3, r8
	beq	.L47
	ldr	r3, .L50+8
	ldr	r3, [r3]
	cmp	r3, r8
	beq	.L48
.L20:
	cmp	r6, #0
	ldrne	r3, [r9, #24]
	mov	r0, r9
	addne	r3, r3, #1
	strne	r3, [r9, #24]
	ldr	r3, [r9, #12]
	subs	r1, r6, #0
	add	r3, r3, #1
	movne	r1, #1
	str	r3, [r9, #12]
	bl	gb_loopback_calculate_stats
	b	.L18
.L42:
	bl	ktime_get
	str	r0, [r9, #32]
	b	.L13
.L41:
	mov	r0, r5
	bl	mutex_unlock
	mov	r0, r9
	bl	gb_loopback_async_wait_all
	mov	r0, r5
	bl	mutex_lock
	ldr	r2, [r9, #12]
	ldr	r3, [r9, #8]
	cmp	r2, r3
	beq	.L49
	mov	r0, r7
	ldr	r1, .L50+16
	bl	dev_dbg
.L11:
	mov	r0, r5
	bl	mutex_unlock
	b	.L3
.L23:
	ldr	r0, .L50+20
	smull	r3, r0, r4, r0
	asr	r4, r4, #31
	rsb	r0, r4, r0, asr #6
	bl	msleep
	b	.L3
.L39:
	bl	kthread_should_stop
	subs	r1, r0, #0
	movne	r1, #1
	b	.L7
.L40:
	str	r0, [sp, #4]
.L1:
	ldr	r0, [sp, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L46:
	mov	r0, r9
	bl	gb_loopback_sync_ping
	mov	r6, r0
	b	.L20
.L43:
	mov	r0, r9
	bl	gb_loopback_async_ping
	mov	r6, r0
	b	.L16
.L5:
	mov	r0, r7
	bl	gb_pm_runtime_put_autosuspend
	ldr	r0, [sp, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L49:
	mov	r1, r4
	ldr	r2, .L50+24
	ldr	r0, [r9, #40]
	str	r4, [r9]
	str	r4, [r9, #4]
	bl	sysfs_notify
	mov	r0, r7
	ldr	r1, .L50+28
	bl	dev_dbg
	b	.L11
.L47:
	mov	r1, fp
	mov	r0, r9
	bl	gb_loopback_sync_transfer
	mov	r6, r0
	b	.L20
.L44:
	mov	r1, fp
	mov	r0, r9
	bl	gb_loopback_async_transfer
	mov	r6, r0
	b	.L16
.L48:
	mov	r1, fp
	mov	r0, r9
	bl	gb_loopback_sync_sink
	mov	r6, r0
	b	.L20
.L45:
	mov	r1, fp
	mov	r0, r9
	bl	gb_loopback_async_sink
	mov	r6, r0
	b	.L16
.L51:
	.align	2
.L50:
	.word	GB_LOOPBACK_TYPE_TRANSFER
	.word	GB_LOOPBACK_TYPE_PING
	.word	GB_LOOPBACK_TYPE_SINK
	.word	19999
	.word	.LC2
	.word	274877907
	.word	.LC0
	.word	.LC1
	.size	gb_loopback_fn, .-gb_loopback_fn
	.comm	GB_LOOPBACK_TYPE_TRANSFER,4,4
	.comm	GB_LOOPBACK_TYPE_SINK,4,4
	.comm	GB_LOOPBACK_TYPE_PING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
