	.file	"extr_aic7xxx_core.c_ahc_busy_tcl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ahc_busy_tcl, @function
ahc_busy_tcl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR AHC_SCB_BTT[rip], eax
	je	.L2
	mov	rsi, QWORD PTR SCBPTR[rip]
	call	ahc_inb@PLT
	mov	rdi, r12
	mov	r14, rax
	call	TCL_LUN@PLT
	mov	rsi, QWORD PTR SCBPTR[rip]
	mov	rdi, rbp
	mov	rdx, rax
	call	ahc_outb@PLT
	mov	rdi, r12
	call	TCL_TARGET_OFFSET@PLT
	add	rax, QWORD PTR SCB_64_BTT[rip]
	mov	rdx, r13
	mov	rdi, rbp
	mov	rsi, rax
	call	ahc_outb@PLT
	mov	rsi, QWORD PTR SCBPTR[rip]
	mov	rdx, r14
.L4:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	ahc_outb@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rsi
	call	TCL_TARGET_OFFSET@PLT
	add	rax, QWORD PTR BUSY_TARGETS[rip]
	mov	rdx, r13
	mov	rsi, rax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	ahc_busy_tcl, .-ahc_busy_tcl
	.comm	SCB_64_BTT,8,8
	.comm	SCBPTR,8,8
	.comm	BUSY_TARGETS,8,8
	.comm	AHC_SCB_BTT,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_aic7xxx_core.c_ahc_busy_tcl.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ahc_busy_tcl, %function
ahc_busy_tcl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L5
	ldr	ip, [r0]
	ldr	r3, [r3]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	tst	ip, r3
	mov	r4, r0
	mov	r5, r1
	mov	r6, r2
	beq	.L2
	ldr	r7, .L5+4
	ldr	r1, [r7]
	bl	ahc_inb
	mov	r8, r0
	mov	r0, r5
	ldr	r9, [r7]
	bl	TCL_LUN
	mov	r1, r9
	mov	r2, r0
	mov	r0, r4
	bl	ahc_outb
	mov	r0, r5
	bl	TCL_TARGET_OFFSET
	mov	r1, r0
	ldr	r3, .L5+8
	mov	r2, r6
	ldr	r3, [r3]
	mov	r0, r4
	add	r1, r1, r3
	bl	ahc_outb
	mov	r2, r8
	mov	r0, r4
	ldr	r1, [r7]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	ahc_outb
.L2:
	mov	r0, r1
	bl	TCL_TARGET_OFFSET
	mov	r1, r0
	ldr	r3, .L5+12
	mov	r2, r6
	ldr	r3, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	add	r1, r1, r3
	b	ahc_outb
.L6:
	.align	2
.L5:
	.word	AHC_SCB_BTT
	.word	SCBPTR
	.word	SCB_64_BTT
	.word	BUSY_TARGETS
	.size	ahc_busy_tcl, .-ahc_busy_tcl
	.comm	SCB_64_BTT,4,4
	.comm	SCBPTR,4,4
	.comm	BUSY_TARGETS,4,4
	.comm	AHC_SCB_BTT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
