	.file	"extr_fireworks_stream.c_check_connection_used_by_others.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Connection established by others: %cPCR[%d]\n"
	.text
	.p2align 4
	.type	check_connection_used_by_others, @function
check_connection_used_by_others:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rdx, 40[rdi]
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	lea	rbp, 8[rdi]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rax, 24[rdi]
	cmp	rsi, rdx
	lea	rsi, 4[rsp]
	cmove	rbp, rax
	mov	rdi, rbp
	call	cmp_connection_check_used@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	jne	.L10
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, r13
	call	amdtp_stream_running@PLT
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR CMP_OUTPUT[rip]
	mov	edx, 111
	mov	ecx, DWORD PTR 8[rbp]
	lea	rsi, .LC0[rip]
	cmp	QWORD PTR 0[rbp], rax
	mov	eax, 105
	mov	rdi, QWORD PTR [rbx]
	cmovne	edx, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	check_connection_used_by_others, .-check_connection_used_by_others
	.comm	EBUSY,4,4
	.comm	CMP_OUTPUT,8,8
	.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_fireworks_stream.c_check_connection_used_by_others.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Connection established by others: %cPCR[%d]\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_connection_used_by_others, %function
check_connection_used_by_others:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	add	r3, r0, #20
	cmp	r1, r3
	sub	sp, sp, #12
	addeq	r7, r0, #12
	addne	r7, r0, #4
	ldr	r3, .L15
	mov	r5, r0
	mov	r6, r1
	mov	r0, r7
	mov	r1, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	cmp_connection_check_used
	subs	r4, r0, #0
	blt	.L1
	ldr	r3, [sp]
	cmp	r3, #0
	bne	.L13
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L13:
	mov	r0, r6
	bl	amdtp_stream_running
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L15+4
	ldr	r2, [r7]
	ldr	r3, [r3]
	ldr	r0, [r5]
	cmp	r2, r3
	moveq	r2, #111
	ldr	r3, [r7, #4]
	movne	r2, #105
	ldr	r1, .L15+8
	bl	dev_err
	ldr	r3, .L15+12
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC1
	.word	CMP_OUTPUT
	.word	.LC0
	.word	EBUSY
	.size	check_connection_used_by_others, .-check_connection_used_by_others
	.comm	EBUSY,4,4
	.comm	CMP_OUTPUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
