	.file	"extr_dpt_i2o.c_adpt_queue_lck.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	adpt_queue_lck, @function
adpt_queue_lck:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rcx, QWORD PTR REQUEST_SENSE[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rax, QWORD PTR 8[rdi]
	mov	rbp, rdi
	mov	QWORD PTR [rdi], rsi
	cmp	QWORD PTR [rax], rcx
	je	.L12
.L2:
	mov	rax, QWORD PTR 32[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rax, QWORD PTR [rax]
	mov	r13, QWORD PTR [rax]
	test	r13, r13
	jne	.L4
.L10:
	mov	r12d, DWORD PTR FAILED[rip]
.L1:
	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
.L4:
	.cfi_restore_state
	xor	eax, eax
	call	rmb@PLT
	mov	r12d, DWORD PTR 0[r13]
	and	r12d, DWORD PTR DPTI_STATE_RESET[rip]
	jne	.L13
	mov	rax, QWORD PTR 32[rbp]
	mov	rdx, QWORD PTR [rax]
	test	rdx, rdx
	je	.L14
.L6:
	mov	QWORD PTR 8[rdx], rax
	mov	eax, DWORD PTR [rdx]
	test	DWORD PTR DPTI_DEV_RESET[rip], eax
	jne	.L10
	mov	rsi, rbp
	mov	rdi, r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	adpt_scsi_to_i2o@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rdi]
	cmp	QWORD PTR [rax], 0
	je	.L2
	mov	eax, DWORD PTR DID_OK[rip]
	xor	r12d, r12d
	sal	eax, 16
	mov	DWORD PTR 24[rdi], eax
	call	rsi
	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
.L13:
	.cfi_restore_state
	mov	r12d, DWORD PTR SCSI_MLQUEUE_HOST_BUSY[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdx, QWORD PTR 16[rax]
	mov	ecx, DWORD PTR 8[rax]
	mov	rdi, r13
	mov	rsi, QWORD PTR 24[rax]
	call	adpt_find_device@PLT
	mov	rdx, rax
	test	rax, rax
	je	.L15
	mov	rax, QWORD PTR 32[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L6
.L15:
	mov	eax, DWORD PTR DID_NO_CONNECT[rip]
	mov	rdi, rbp
	sal	eax, 16
	mov	DWORD PTR 24[rbp], eax
	call	[QWORD PTR 0[rbp]]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	adpt_queue_lck, .-adpt_queue_lck
	.comm	SCSI_MLQUEUE_HOST_BUSY,4,4
	.comm	REQUEST_SENSE,8,8
	.comm	FAILED,4,4
	.comm	DPTI_STATE_RESET,4,4
	.comm	DPTI_DEV_RESET,4,4
	.comm	DID_OK,4,4
	.comm	DID_NO_CONNECT,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_dpt_i2o.c_adpt_queue_lck.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	adpt_queue_lck, %function
adpt_queue_lck:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0, #4]
	ldr	r3, .L19
	ldr	r2, [r2]
	ldr	r3, [r3]
	push	{r4, r5, r6, lr}
	cmp	r2, r3
	mov	r4, r0
	str	r1, [r0]
	beq	.L15
.L2:
	ldr	r3, [r4, #16]
	ldr	r3, [r3, #16]
	ldr	r3, [r3]
	ldr	r6, [r3]
	cmp	r6, #0
	bne	.L4
.L13:
	ldr	r3, .L19+4
	ldr	r5, [r3]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L4:
	bl	rmb
	ldr	r3, .L19+8
	ldr	r5, [r6]
	ldr	r3, [r3]
	ands	r5, r5, r3
	bne	.L16
	ldr	r1, [r4, #16]
	ldr	r2, [r1]
	cmp	r2, #0
	beq	.L17
.L6:
	ldr	r3, .L19+12
	ldr	r0, [r2]
	ldr	r3, [r3]
	str	r1, [r2, #4]
	tst	r0, r3
	bne	.L13
	mov	r1, r4
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	b	adpt_scsi_to_i2o
.L15:
	ldr	r3, [r0, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	mov	r5, #0
	ldr	r3, .L19+16
	ldr	r3, [r3]
	lsl	r3, r3, #16
	str	r3, [r0, #12]
	blx	r1
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L16:
	ldr	r3, .L19+20
	ldr	r5, [r3]
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L17:
	ldr	r2, [r1, #8]
	ldr	r3, [r1, #4]
	mov	r0, r6
	ldr	r1, [r1, #12]
	bl	adpt_find_device
	subs	r2, r0, #0
	ldrne	r1, [r4, #16]
	strne	r2, [r1]
	bne	.L6
.L18:
	ldr	r3, .L19+24
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r2, [r4]
	lsl	r3, r3, #16
	str	r3, [r4, #12]
	blx	r2
	b	.L1
.L20:
	.align	2
.L19:
	.word	REQUEST_SENSE
	.word	FAILED
	.word	DPTI_STATE_RESET
	.word	DPTI_DEV_RESET
	.word	DID_OK
	.word	SCSI_MLQUEUE_HOST_BUSY
	.word	DID_NO_CONNECT
	.size	adpt_queue_lck, .-adpt_queue_lck
	.comm	SCSI_MLQUEUE_HOST_BUSY,4,4
	.comm	REQUEST_SENSE,4,4
	.comm	FAILED,4,4
	.comm	DPTI_STATE_RESET,4,4
	.comm	DPTI_DEV_RESET,4,4
	.comm	DID_OK,4,4
	.comm	DID_NO_CONNECT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
