	.file	"extr_aic79xx_core.c_ahd_handle_devreset.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%s: %s on %c:%d. %d SCBs aborted\n"
	.text
	.p2align 4
	.type	ahd_handle_devreset, @function
ahd_handle_devreset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r10, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 72
	mov	edx, DWORD PTR 12[rsi]
	mov	esi, DWORD PTR 8[rsi]
	mov	r9d, DWORD PTR 16[rbx]
	mov	r8d, DWORD PTR SCB_LIST_NULL[rip]
	push	rcx
	.cfi_def_cfa_offset 80
	mov	rcx, r10
	call	ahd_abort_scbs@PLT
	mov	r8d, DWORD PTR TRUE[rip]
	mov	rsi, rbx
	mov	rdi, rbp
	mov	ecx, DWORD PTR AHD_TRANS_CUR[rip]
	mov	edx, DWORD PTR MSG_EXT_WDTR_BUS_8_BIT[rip]
	mov	r14d, eax
	call	ahd_set_width@PLT
	mov	eax, DWORD PTR TRUE[rip]
	xor	edx, edx
	xor	r8d, r8d
	mov	r9d, DWORD PTR AHD_TRANS_CUR[rip]
	xor	ecx, ecx
	mov	rsi, rbx
	mov	rdi, rbp
	mov	DWORD PTR [rsp], eax
	call	ahd_set_syncrate@PLT
	cmp	QWORD PTR CAM_SEL_TIMEOUT[rip], r12
	pop	rax
	.cfi_def_cfa_offset 72
	pop	rdx
	.cfi_def_cfa_offset 64
	je	.L2
	mov	edx, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR 12[rbx]
	mov	rdi, rbp
	mov	r8d, DWORD PTR AC_SENT_BDR[rip]
	mov	rcx, QWORD PTR CAM_LUN_WILDCARD[rip]
	call	ahd_send_async@PLT
.L2:
	test	r13, r13
	je	.L1
	cmp	QWORD PTR bootverbose[rip], 0
	jne	.L9
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	r15d, DWORD PTR 8[rbx]
	mov	r12d, DWORD PTR 12[rbx]
	mov	rdi, rbp
	call	ahd_name@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	r9d, r14d
	mov	rdx, r13
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	r8d, r15d
	pop	rbp
	.cfi_def_cfa_offset 40
	mov	ecx, r12d
	mov	esi, eax
	pop	r12
	.cfi_def_cfa_offset 32
	lea	rdi, .LC0[rip]
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	printk@PLT
	.cfi_endproc
.LFE0:
	.size	ahd_handle_devreset, .-ahd_handle_devreset
	.comm	bootverbose,8,8
	.comm	TRUE,4,4
	.comm	SCB_LIST_NULL,4,4
	.comm	MSG_EXT_WDTR_BUS_8_BIT,4,4
	.comm	MSG_BUS_DEV_RESET,4,4
	.comm	CAM_SEL_TIMEOUT,8,8
	.comm	CAM_LUN_WILDCARD,8,8
	.comm	AHD_TRANS_CUR,4,4
	.comm	AHD_NUM_LUNS,8,8
	.comm	AC_SENT_BDR,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_aic79xx_core.c_ahd_handle_devreset.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: %s on %c:%d. %d SCBs aborted\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ahd_handle_devreset, %function
ahd_handle_devreset:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r3
	mov	r4, r1
	mov	r3, r2
	ldr	r1, [r1, #12]
	ldr	r2, .L13
	sub	sp, sp, #16
	ldr	ip, [r2]
	stmib	sp, {r1, r6}
	ldmib	r4, {r1, r2}
	str	ip, [sp]
	mov	r5, r0
	ldr	r10, [sp, #48]
	bl	ahd_abort_scbs
	ldr	r9, .L13+4
	ldr	r8, .L13+8
	ldr	r3, [r9]
	ldr	r2, .L13+12
	str	r3, [sp]
	mov	r1, r4
	ldr	r3, [r8]
	ldr	r2, [r2]
	mov	r7, r0
	mov	r0, r5
	bl	ahd_set_width
	mov	r3, #0
	ldr	r1, [r9]
	ldr	r2, [r8]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, r3
	mov	r1, r4
	mov	r0, r5
	bl	ahd_set_syncrate
	ldr	r3, .L13+16
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L2
	ldr	r2, .L13+20
	ldr	r3, .L13+24
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [sp]
	mov	r0, r5
	ldr	r2, [r4, #4]
	ldr	r1, [r4, #8]
	bl	ahd_send_async
.L2:
	cmp	r10, #0
	beq	.L1
	ldr	r3, .L13+28
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
.L1:
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	mov	r0, r5
	bl	ahd_name
	mov	r2, r10
	mov	r1, r0
	ldr	r3, [r4, #4]
	str	r7, [sp, #52]
	str	r3, [sp, #48]
	ldr	r3, [r4, #8]
	ldr	r0, .L13+32
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	printk
.L14:
	.align	2
.L13:
	.word	SCB_LIST_NULL
	.word	TRUE
	.word	AHD_TRANS_CUR
	.word	MSG_EXT_WDTR_BUS_8_BIT
	.word	CAM_SEL_TIMEOUT
	.word	AC_SENT_BDR
	.word	CAM_LUN_WILDCARD
	.word	bootverbose
	.word	.LC0
	.size	ahd_handle_devreset, .-ahd_handle_devreset
	.comm	bootverbose,4,4
	.comm	TRUE,4,4
	.comm	SCB_LIST_NULL,4,4
	.comm	MSG_EXT_WDTR_BUS_8_BIT,4,4
	.comm	MSG_BUS_DEV_RESET,4,4
	.comm	CAM_SEL_TIMEOUT,4,4
	.comm	CAM_LUN_WILDCARD,4,4
	.comm	AHD_TRANS_CUR,4,4
	.comm	AHD_NUM_LUNS,4,4
	.comm	AC_SENT_BDR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
