	.file	"extr_ctl.c_ctl_queue.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ctl_queue: unknown I/O type %d\n"
	.text
	.p2align 4
	.globl	ctl_queue
	.type	ctl_queue, @function
ctl_queue:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	CTL_PORT@PLT
	mov	r12, rax
	mov	rax, QWORD PTR 0[rbp]
	movsx	rdi, DWORD PTR [rax]
	call	CTL_DEBUG_PRINT@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	rdi, r12
	call	ctl_lun_map_from_port@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	DWORD PTR 8[rbp], eax
	lea	eax, -128[rsi]
	cmp	eax, 1
	ja	.L2
	mov	eax, DWORD PTR ctl_debug[rip]
	test	DWORD PTR CTL_DEBUG_CDB[rip], eax
	jne	.L10
.L3:
	mov	rdi, rbp
	call	ctl_enqueue_incoming@PLT
	mov	eax, DWORD PTR CTL_RETVAL_COMPLETE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	printf@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, rbp
	call	ctl_io_print@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	ctl_queue, .-ctl_queue
	.comm	time_uptime,4,4
	.comm	ctl_debug,4,4
	.comm	EINVAL,4,4
	.comm	CTL_RETVAL_COMPLETE,4,4
	.comm	CTL_DEBUG_CDB,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_ctl.c_ctl_queue.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ctl_queue: unknown I/O type %d\012\000"
	.text
	.align	2
	.global	ctl_queue
	.syntax unified
	.arm
	.fpu softvfp
	.type	ctl_queue, %function
ctl_queue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	CTL_PORT
	mov	r5, r0
	ldr	r3, [r4]
	ldr	r0, [r3]
	bl	CTL_DEBUG_PRINT
	ldr	r1, [r4, #4]
	mov	r0, r5
	bl	ctl_lun_map_from_port
	ldr	r1, [r4]
	str	r0, [r4, #8]
	sub	r3, r1, #128
	cmp	r3, #1
	bhi	.L2
	ldr	r2, .L11
	ldr	r3, .L11+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L10
.L3:
	mov	r0, r4
	bl	ctl_enqueue_incoming
	ldr	r3, .L11+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r0, .L11+12
	bl	printf
	ldr	r3, .L11+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L10:
	mov	r0, r4
	bl	ctl_io_print
	b	.L3
.L12:
	.align	2
.L11:
	.word	ctl_debug
	.word	CTL_DEBUG_CDB
	.word	CTL_RETVAL_COMPLETE
	.word	.LC0
	.word	EINVAL
	.size	ctl_queue, .-ctl_queue
	.comm	time_uptime,4,4
	.comm	ctl_debug,4,4
	.comm	EINVAL,4,4
	.comm	CTL_RETVAL_COMPLETE,4,4
	.comm	CTL_DEBUG_CDB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
