	.file	"extr_qla3xxx.c_ql_get_full_dup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ql_get_full_dup, @function
ql_get_full_dup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, 4[rdi]
	xor	esi, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR QL_PHY_GIO_SEM_MASK[rip]
	mov	rdi, rbp
	lea	edx, [rax+rax]
	or	edx, DWORD PTR QL_RESOURCE_BITS_BASE_CODE[rip]
	sal	edx, 7
	call	ql_sem_spinlock@PLT
	test	rax, rax
	jne	.L6
	mov	rdi, rbp
	call	ql_is_link_full_dup@PLT
	mov	esi, DWORD PTR QL_PHY_GIO_SEM_MASK[rip]
	mov	rdi, rbp
	mov	r12d, eax
	call	ql_sem_unlock@PLT
	mov	rdi, r13
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.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
.L6:
	.cfi_restore_state
	mov	rdi, r13
	xor	r12d, r12d
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ql_get_full_dup, .-ql_get_full_dup
	.comm	QL_RESOURCE_BITS_BASE_CODE,4,4
	.comm	QL_PHY_GIO_SEM_MASK,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_qla3xxx.c_ql_get_full_dup.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ql_get_full_dup, %function
ql_get_full_dup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	add	r5, r0, #4
	mov	r1, #0
	mov	r0, r5
	bl	spin_lock_irqsave
	ldr	r2, .L7
	ldr	r3, [r4]
	ldr	r2, [r2]
	ldr	r6, .L7+4
	orr	r2, r2, r3, lsl #1
	mov	r0, r4
	ldr	r1, [r6]
	lsl	r2, r2, #7
	bl	ql_sem_spinlock
	cmp	r0, #0
	bne	.L6
	mov	r0, r4
	bl	ql_is_link_full_dup
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	ldr	r1, [r6]
	bl	ql_sem_unlock
	mov	r0, r5
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L6:
	mov	r4, #0
	mov	r0, r5
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	QL_RESOURCE_BITS_BASE_CODE
	.word	QL_PHY_GIO_SEM_MASK
	.size	ql_get_full_dup, .-ql_get_full_dup
	.comm	QL_RESOURCE_BITS_BASE_CODE,4,4
	.comm	QL_PHY_GIO_SEM_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
