	.file	"extr_qla_target.c_qlt_make_handle.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"qla_target(%d): Ran out of empty cmd slots\n"
	.text
	.p2align 4
	.type	qlt_make_handle, @function
qlt_make_handle:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8, QWORD PTR 8[rdi]
	mov	esi, DWORD PTR 8[r8]
	mov	rax, QWORD PTR [r8]
	cmp	esi, 1
	jle	.L2
	mov	r11, QWORD PTR QLA_TGT_SKIP_HANDLE[rip]
	movsx	r10, esi
	mov	edx, 1
	mov	r9d, 1
	.p2align 4,,10
	.p2align 3
.L6:
	add	rax, 1
	cmp	r10, rax
	cmove	rax, r9
	cmp	r11, rax
	je	.L4
	mov	rcx, QWORD PTR 16[r8]
	mov	ecx, DWORD PTR [rcx+rax*4]
	test	ecx, ecx
	je	.L5
.L4:
	add	edx, 1
	cmp	edx, esi
	jne	.L6
.L2:
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	rsi, QWORD PTR [rdi]
	mov	edi, DWORD PTR ql_dbg_io[rip]
	lea	rcx, .LC0[rip]
	mov	edx, 12379
	mov	r8d, DWORD PTR [rsi]
	call	ql_dbg@PLT
	mov	rax, QWORD PTR QLA_TGT_NULL_HANDLE[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	mov	QWORD PTR [r8], rax
	ret
	.cfi_endproc
.LFE0:
	.size	qlt_make_handle, .-qlt_make_handle
	.comm	ql_dbg_io,4,4
	.comm	QLA_TGT_SKIP_HANDLE,8,8
	.comm	QLA_TGT_NULL_HANDLE,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_qla_target.c_qlt_make_handle.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"qla_target(%d): Ran out of empty cmd slots\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qlt_make_handle, %function
qlt_make_handle:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	ip, [r0, #4]
	mov	r4, r0
	ldm	ip, {r0, r2}
	cmp	r2, #1
	sub	sp, sp, #8
	ble	.L2
	mov	r3, #1
	ldr	r1, .L12
	ldr	lr, [r1]
.L6:
	add	r0, r0, #1
	cmp	r0, r2
	moveq	r0, #1
	cmp	lr, r0
	add	r3, r3, #1
	beq	.L4
	ldr	r1, [ip, #8]
	ldr	r1, [r1, r0, lsl #2]
	cmp	r1, #0
	beq	.L5
.L4:
	cmp	r3, r2
	bne	.L6
.L2:
	ldr	r1, [r4]
	ldr	r3, .L12+4
	ldr	r2, [r1]
	str	r2, [sp]
	ldr	r0, [r3]
	ldr	r2, .L12+8
	ldr	r3, .L12+12
	bl	ql_dbg
	ldr	r3, .L12+16
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L5:
	str	r0, [ip]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L13:
	.align	2
.L12:
	.word	QLA_TGT_SKIP_HANDLE
	.word	ql_dbg_io
	.word	12379
	.word	.LC0
	.word	QLA_TGT_NULL_HANDLE
	.size	qlt_make_handle, .-qlt_make_handle
	.comm	ql_dbg_io,4,4
	.comm	QLA_TGT_SKIP_HANDLE,4,4
	.comm	QLA_TGT_NULL_HANDLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
