	.file	"extr_aic79xx_core.c_ahd_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Hardware SCB size is incorrect"
	.align 8
.LC1:
	.string	"%s: current sensing timeout 1\n"
	.align 8
.LC2:
	.string	"%s: current sensing timeout 2\n"
	.align 8
.LC3:
	.string	"%s: Timedout during current-sensing test\n"
	.align 8
.LC4:
	.string	"%s: current sensing timeout 3\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC5:
	.string	"%s: %s Channel %s\n"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"%s: WARNING. Termination is not configured correctly.\n%s: WARNING. SCSI bus operations may FAIL.\n"
	.text
	.p2align 4
	.globl	ahd_init
	.type	ahd_init, @function
ahd_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR AHD_MODE_SCSI_MSK[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	edx, esi
	call	AHD_ASSERT_MODES@PLT
	mov	rdi, rbx
	call	ahd_probe_stack_size@PLT
	mov	edx, DWORD PTR GFP_ATOMIC[rip]
	mov	esi, 4
	mov	DWORD PTR 104[rbx], eax
	mov	edi, eax
	call	kmalloc_array@PLT
	mov	QWORD PTR 96[rbx], rax
	test	rax, rax
	je	.L54
	lea	rdi, .LC0[rip]
	call	panic@PLT
	mov	eax, DWORD PTR AHD_INITIATORROLE[rip]
	or	DWORD PTR [rbx], eax
	mov	ecx, DWORD PTR AHD_TMODE_ENABLE[rip]
	mov	eax, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR AHD_TARGETMODE[rip]
	bt	ecx, eax
	jnc	.L4
	mov	eax, DWORD PTR 8[rbx]
.L5:
	movsx	rcx, DWORD PTR AHD_SCB_MAX[rip]
	add	DWORD PTR 28[rbx], 1
	lea	rbp, 4[0+rcx*4]
	test	eax, edx
	je	.L6
	movsx	rax, DWORD PTR AHD_TMODE_CMDS[rip]
	lea	rbp, 0[rbp+rax*4]
.L6:
	mov	eax, DWORD PTR 12[rbx]
	test	DWORD PTR AHD_PKT_BITBUCKET_BUG[rip], eax
	je	.L7
	add	rbp, QWORD PTR PKT_OVERRUN_BUFSIZE[rip]
.L7:
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	lea	rax, 88[rbx]
	mov	esi, DWORD PTR 92[rbx]
	mov	edx, 1
	push	rax
	.cfi_def_cfa_offset 96
	mov	eax, DWORD PTR BUS_SPACE_MAXSIZE_32BIT[rip]
	mov	rdi, rbx
	mov	r8, QWORD PTR BUS_SPACE_MAXADDR_32BIT[rip]
	mov	r9d, DWORD PTR BUS_SPACE_MAXADDR[rip]
	push	0
	.cfi_def_cfa_offset 104
	push	rax
	.cfi_def_cfa_offset 112
	push	1
	.cfi_def_cfa_offset 120
	lea	rcx, 1[r8]
	push	rbp
	.cfi_def_cfa_offset 128
	push	0
	.cfi_def_cfa_offset 136
	push	0
	.cfi_def_cfa_offset 144
	call	ahd_dma_tag_create@PLT
	add	rsp, 64
	.cfi_def_cfa_offset 80
	test	rax, rax
	jne	.L54
	add	DWORD PTR 28[rbx], 1
	mov	esi, DWORD PTR 88[rbx]
	lea	rdx, 48[rbx]
	lea	r8, 56[rbx]
	mov	ecx, DWORD PTR BUS_DMA_NOWAIT[rip]
	mov	rdi, rbx
	call	ahd_dmamem_alloc@PLT
	test	rax, rax
	je	.L9
	.p2align 4,,10
	.p2align 3
.L54:
	mov	eax, DWORD PTR ENOMEM[rip]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L56
	add	rsp, 24
	.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
.L4:
	.cfi_restore_state
	mov	eax, edx
	not	eax
	and	eax, DWORD PTR 8[rbx]
	mov	DWORD PTR 8[rbx], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	add	DWORD PTR 28[rbx], 1
	lea	r12, 40[rbx]
	mov	esi, DWORD PTR 88[rbx]
	mov	r8, rbp
	mov	rcx, QWORD PTR 48[rbx]
	mov	edx, DWORD PTR 56[rbx]
	push	0
	.cfi_def_cfa_offset 88
	mov	rdi, rbx
	push	r12
	.cfi_def_cfa_offset 96
	mov	r9d, DWORD PTR ahd_dmamap_cb[rip]
	call	ahd_dmamap_load@PLT
	mov	rax, QWORD PTR AHD_QOUT_SIZE[rip]
	mov	rbp, QWORD PTR 48[rbx]
	pop	rsi
	.cfi_def_cfa_offset 88
	pop	r8
	.cfi_def_cfa_offset 80
	lea	rdi, 0[0+rax*4]
	mov	QWORD PTR 80[rbx], rbp
	mov	eax, DWORD PTR 8[rbx]
	add	rbp, rdi
	add	rdi, QWORD PTR 40[rbx]
	test	DWORD PTR AHD_TARGETMODE[rip], eax
	je	.L11
	movsx	rax, DWORD PTR AHD_TMODE_CMDS[rip]
	mov	QWORD PTR 72[rbx], rbp
	mov	rdx, rax
	lea	rdi, [rdi+rax*4]
	sal	rdx, 4
	add	rbp, rdx
.L11:
	mov	eax, DWORD PTR 12[rbx]
	test	DWORD PTR AHD_PKT_BITBUCKET_BUG[rip], eax
	je	.L12
	mov	rax, QWORD PTR PKT_OVERRUN_BUFSIZE[rip]
	mov	QWORD PTR 16[rbx], rbp
	add	rdi, rax
	lea	rbp, 0[rbp+rax*4]
.L12:
	mov	QWORD PTR 32[rbx], rbp
	mov	QWORD PTR 64[rbx], r12
	call	ahd_htole32@PLT
	mov	rdi, rbx
	mov	DWORD PTR 0[rbp], eax
	add	DWORD PTR 28[rbx], 1
	call	ahd_init_scbdata@PLT
	test	rax, rax
	jne	.L54
	mov	edx, DWORD PTR [rbx]
	test	DWORD PTR AHD_INITIATORROLE[rip], edx
	jne	.L14
	mov	eax, DWORD PTR AHD_RESET_BUS_A[rip]
	not	eax
	and	eax, edx
	mov	DWORD PTR [rbx], eax
.L14:
	mov	rdi, rbx
	call	ahd_platform_init@PLT
	mov	rdi, rbx
	call	ahd_chip_init@PLT
	mov	esi, DWORD PTR AHD_MODE_SCSI_MSK[rip]
	mov	rdi, rbx
	mov	edx, esi
	call	AHD_ASSERT_MODES@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR AHD_CURRENT_SENSING[rip], eax
	je	.L16
	mov	edx, DWORD PTR CURSENSE_ENB[rip]
	mov	esi, DWORD PTR FLXADDR_ROMSTAT_CURSENSECTL[rip]
	mov	rdi, rbx
	call	ahd_write_flexport@PLT
	test	eax, eax
	jne	.L57
	mov	eax, DWORD PTR FLX_FSTAT_BUSY[rip]
	mov	DWORD PTR 4[rsp], eax
	test	eax, eax
	je	.L18
	mov	ebp, 20
	lea	r12, 4[rsp]
	.p2align 4,,10
	.p2align 3
.L21:
	mov	esi, DWORD PTR FLXADDR_FLEXSTAT[rip]
	mov	rdx, r12
	mov	rdi, rbx
	call	ahd_read_flexport@PLT
	test	eax, eax
	jne	.L58
	mov	eax, DWORD PTR 4[rsp]
	sub	ebp, 1
	test	DWORD PTR FLX_FSTAT_BUSY[rip], eax
	je	.L20
	test	ebp, ebp
	jne	.L21
.L22:
	mov	rdi, rbx
	call	ahd_name@PLT
	lea	rdi, .LC3[rip]
	mov	esi, eax
	xor	eax, eax
	call	printk@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, rbx
	call	ahd_restart@PLT
	mov	esi, DWORD PTR AHD_STAT_UPDATE_US[rip]
	lea	rdi, 24[rbx]
	call	ahd_timer_reset@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L57:
	mov	rdi, rbx
	call	ahd_name@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	xor	eax, eax
	call	printk@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L20:
	test	ebp, ebp
	je	.L22
.L18:
	mov	esi, DWORD PTR FLXADDR_CURRENT_STAT[rip]
	mov	rdx, rsp
	mov	rdi, rbx
	call	ahd_read_flexport@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L59
	mov	esi, DWORD PTR FLXADDR_ROMSTAT_CURSENSECTL[rip]
	xor	edx, edx
	mov	rdi, rbx
	xor	ebp, ebp
	lea	r12, .LC5[rip]
	call	ahd_write_flexport@PLT
	mov	edx, DWORD PTR [rsp]
.L29:
	mov	eax, DWORD PTR FLX_CSTAT_MASK[rip]
	and	eax, edx
	cmp	eax, 129
	jg	.L24
	cmp	eax, 127
	jg	.L60
.L26:
	mov	ecx, DWORD PTR FLX_CSTAT_SHIFT[rip]
	add	rbp, 4
	sar	edx, cl
	mov	DWORD PTR [rsp], edx
	cmp	rbp, 16
	jne	.L29
	test	r13d, r13d
	je	.L16
	mov	rdi, rbx
	call	ahd_name@PLT
	mov	rdi, rbx
	mov	r12d, eax
	call	ahd_name@PLT
	mov	edx, r12d
	lea	rdi, .LC6[rip]
	mov	esi, eax
	xor	eax, eax
	call	printk@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L24:
	lea	ecx, -130[rax]
	cmp	ecx, 1
	ja	.L26
	test	r13d, r13d
	jne	.L28
	mov	ecx, DWORD PTR bootverbose[rip]
	test	ecx, ecx
	je	.L26
.L28:
	mov	rdx, QWORD PTR termstat_strings[rip]
	cdqe
	mov	rdi, rbx
	mov	r15d, DWORD PTR [rdx+rax*4]
	mov	rax, QWORD PTR channel_strings[rip]
	mov	r14d, DWORD PTR [rax+rbp]
	call	ahd_name@PLT
	mov	ecx, r15d
	mov	rdi, r12
	mov	esi, eax
	mov	edx, r14d
	xor	eax, eax
	call	printk@PLT
	mov	edx, DWORD PTR [rsp]
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L60:
	add	r13d, 1
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L58:
	mov	rdi, rbx
	call	ahd_name@PLT
	lea	rdi, .LC2[rip]
	mov	esi, eax
	xor	eax, eax
	call	printk@PLT
	jmp	.L16
.L59:
	mov	rdi, rbx
	call	ahd_name@PLT
	lea	rdi, .LC4[rip]
	mov	esi, eax
	xor	eax, eax
	call	printk@PLT
	jmp	.L16
.L56:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ahd_init, .-ahd_init
	.comm	termstat_strings,8,8
	.comm	channel_strings,8,8
	.comm	bootverbose,4,4
	.comm	ahd_dmamap_cb,4,4
	.comm	ahd_debug,4,4
	.comm	PKT_OVERRUN_BUFSIZE,8,8
	.comm	GFP_ATOMIC,4,4
	.comm	FLX_FSTAT_BUSY,4,4
	.comm	FLX_CSTAT_SHIFT,4,4
	.comm	FLX_CSTAT_MASK,4,4
	.comm	FLXADDR_ROMSTAT_CURSENSECTL,4,4
	.comm	FLXADDR_FLEXSTAT,4,4
	.comm	FLXADDR_CURRENT_STAT,4,4
	.comm	ENOMEM,4,4
	.comm	CURSENSE_ENB,4,4
	.comm	BUS_SPACE_MAXSIZE_32BIT,4,4
	.comm	BUS_SPACE_MAXADDR_32BIT,8,8
	.comm	BUS_SPACE_MAXADDR,4,4
	.comm	BUS_DMA_NOWAIT,4,4
	.comm	AHD_TMODE_ENABLE,4,4
	.comm	AHD_TMODE_CMDS,4,4
	.comm	AHD_TARGETMODE,4,4
	.comm	AHD_STAT_UPDATE_US,4,4
	.comm	AHD_SHOW_TERMCTL,4,4
	.comm	AHD_SEQUENCER_DEBUG,4,4
	.comm	AHD_SCB_MAX,4,4
	.comm	AHD_RESET_BUS_A,4,4
	.comm	AHD_QOUT_SIZE,8,8
	.comm	AHD_PKT_BITBUCKET_BUG,4,4
	.comm	AHD_MODE_SCSI_MSK,4,4
	.comm	AHD_INITIATORROLE,4,4
	.comm	AHD_DEBUG_SEQUENCER,4,4
	.comm	AHD_CURRENT_SENSING,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_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Hardware SCB size is incorrect\000"
	.align	2
.LC1:
	.ascii	"%s: current sensing timeout 1\012\000"
	.align	2
.LC2:
	.ascii	"%s: current sensing timeout 2\012\000"
	.align	2
.LC3:
	.ascii	"%s: Timedout during current-sensing test\012\000"
	.align	2
.LC4:
	.ascii	"%s: current sensing timeout 3\012\000"
	.align	2
.LC5:
	.ascii	"%s: %s Channel %s\012\000"
	.align	2
.LC6:
	.ascii	"%s: WARNING. Termination is not configured correctl"
	.ascii	"y.\012%s: WARNING. SCSI bus operations may FAIL.\012"
	.ascii	"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ahd_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	ahd_init, %function
ahd_init:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r6, .L61
	ldr	r3, .L61+4
	ldr	r2, [r6]
	sub	sp, sp, #68
	mov	r1, r2
	ldr	r3, [r3]
	str	r3, [sp, #60]
	mov	r3,#0
	bl	AHD_ASSERT_MODES
	mov	r0, r4
	bl	ahd_probe_stack_size
	ldr	r3, .L61+8
	mov	r1, #4
	ldr	r2, [r3]
	str	r0, [r4, #68]
	bl	kmalloc_array
	cmp	r0, #0
	str	r0, [r4, #64]
	beq	.L54
	ldr	r0, .L61+12
	bl	panic
	ldr	r3, .L61+16
	ldr	r7, .L61+20
	ldr	r2, [r3]
	ldr	r3, [r4, #4]
	ldr	r1, [r7]
	asr	r2, r2, r3
	ldr	r3, [r4]
	ldr	r8, .L61+24
	orr	r3, r3, r1
	str	r3, [r4]
	tst	r2, #1
	ldr	r3, [r4, #8]
	ldr	r2, [r8]
	ldr	r1, .L61+28
	biceq	r3, r3, r2
	streq	r3, [r4, #8]
	tst	r3, r2
	ldr	r3, [r4, #24]
	ldr	r5, [r1]
	add	r3, r3, #1
	str	r3, [r4, #24]
	ldrne	r3, .L61+32
	ldr	r9, .L61+36
	ldrne	r3, [r3]
	add	r5, r5, #1
	lsl	r5, r5, #2
	ldr	r2, [r4, #12]
	addne	r5, r5, r3, lsl #2
	ldr	r3, [r9]
	mov	r1, #0
	tst	r2, r3
	mov	r2, #1
	ldrne	r3, .L61+40
	ldr	r0, .L61+44
	ldrne	r3, [r3]
	ldr	ip, .L61+48
	addne	r5, r5, r3
	ldr	r3, .L61+52
	ldr	r0, [r0]
	ldr	r3, [r3]
	ldr	ip, [ip]
	str	r0, [sp, #24]
	add	r0, r4, #56
	str	r3, [sp]
	str	r0, [sp, #32]
	str	r5, [sp, #16]
	str	ip, [sp, #4]
	str	r1, [sp, #28]
	str	r1, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #20]
	mov	r0, r4
	ldr	r1, [r4, #60]
	add	r3, r3, r2
	bl	ahd_dma_tag_create
	cmp	r0, #0
	beq	.L8
.L54:
	ldr	r3, .L61+56
	ldr	r5, [r3]
.L1:
	ldr	r3, .L61+4
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L56
	mov	r0, r5
	add	sp, sp, #68
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	ldr	r3, [r4, #24]
	ldr	r1, .L61+60
	add	r3, r3, #1
	add	r2, r4, #40
	str	r3, [r4, #24]
	ldr	r3, [r1]
	str	r2, [sp]
	mov	r0, r4
	ldr	r1, [r4, #56]
	add	r2, r4, #36
	bl	ahd_dmamem_alloc
	cmp	r0, #0
	bne	.L54
	ldr	r2, .L61+64
	ldr	r3, [r4, #24]
	ldr	r2, [r2]
	add	r3, r3, #1
	add	r10, r4, #32
	str	r0, [sp, #12]
	str	r5, [sp]
	str	r2, [sp, #4]
	str	r3, [r4, #24]
	str	r10, [sp, #8]
	ldr	r3, [r4, #36]
	ldr	r2, [r4, #40]
	ldr	r1, [r4, #56]
	mov	r0, r4
	bl	ahd_dmamap_load
	ldr	r3, .L61+68
	ldr	r2, [r8]
	ldr	r1, [r4, #8]
	ldr	r3, [r3]
	ldr	r5, [r4, #36]
	ldr	r0, [r4, #32]
	tst	r1, r2
	add	r0, r0, r3, lsl #2
	str	r5, [r4, #52]
	add	r5, r5, r3, lsl #2
	ldrne	r3, .L61+32
	strne	r5, [r4, #48]
	ldrne	r3, [r3]
	ldr	r2, [r4, #12]
	addne	r5, r5, r3, lsl #4
	addne	r0, r0, r3, lsl #2
	ldr	r3, [r9]
	str	r10, [r4, #44]
	tst	r2, r3
	ldrne	r3, .L61+40
	strne	r5, [r4, #16]
	ldrne	r3, [r3]
	addne	r5, r5, r3, lsl #2
	addne	r0, r0, r3
	str	r5, [r4, #28]
	bl	ahd_htole32
	ldr	r3, [r4, #24]
	str	r0, [r5]
	add	r3, r3, #1
	mov	r0, r4
	str	r3, [r4, #24]
	bl	ahd_init_scbdata
	subs	r5, r0, #0
	bne	.L54
	ldr	r2, [r7]
	ldr	r3, [r4]
	mov	r0, r4
	tst	r3, r2
	ldreq	r2, .L61+72
	ldreq	r2, [r2]
	biceq	r3, r3, r2
	streq	r3, [r4]
	bl	ahd_platform_init
	mov	r0, r4
	bl	ahd_chip_init
	ldr	r2, [r6]
	mov	r0, r4
	mov	r1, r2
	bl	AHD_ASSERT_MODES
	ldr	r3, .L61+76
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L16
	ldr	r3, .L61+80
	ldr	r8, .L61+84
	mov	r0, r4
	ldr	r2, [r3]
	ldr	r1, [r8]
	bl	ahd_write_flexport
	cmp	r0, #0
	bne	.L57
	ldr	r9, .L61+88
	ldr	r3, [r9]
	cmp	r3, #0
	str	r3, [sp, #56]
	beq	.L18
	mov	r6, #20
	ldr	r7, .L61+92
.L21:
	mov	r0, r4
	ldr	r1, [r7]
	add	r2, sp, #56
	bl	ahd_read_flexport
	cmp	r0, #0
	bne	.L58
	ldr	r2, [sp, #56]
	ldr	r3, [r9]
	sub	r6, r6, #1
	tst	r2, r3
	beq	.L20
	cmp	r6, #0
	bne	.L21
.L22:
	mov	r0, r4
	bl	ahd_name
	mov	r1, r0
	ldr	r0, .L61+96
	bl	printk
.L16:
	mov	r0, r4
	bl	ahd_restart
	ldr	r3, .L61+100
	add	r0, r4, #20
	ldr	r1, [r3]
	bl	ahd_timer_reset
	b	.L1
.L57:
	mov	r0, r4
	bl	ahd_name
	mov	r1, r0
	ldr	r0, .L61+104
	bl	printk
	b	.L16
.L20:
	cmp	r6, #0
	beq	.L22
.L18:
	ldr	r3, .L61+108
	mov	r0, r4
	ldr	r1, [r3]
	add	r2, sp, #52
	bl	ahd_read_flexport
	subs	r7, r0, #0
	bne	.L59
	mov	r6, r7
	mov	r2, r7
	ldr	r1, [r8]
	mov	r0, r4
	bl	ahd_write_flexport
	ldr	r9, .L61+112
	ldr	r2, [sp, #52]
	ldr	r8, .L61+116
	ldr	fp, .L61+120
	ldr	r10, .L61+124
	str	r5, [sp, #44]
.L29:
	ldr	r3, [r9]
	and	r5, r2, r3
	cmp	r5, #129
	bgt	.L24
	cmp	r5, #127
	bgt	.L60
.L26:
	ldr	r3, [r8]
	add	r6, r6, #1
	asr	r2, r2, r3
	cmp	r6, #4
	str	r2, [sp, #52]
	bne	.L29
	cmp	r7, #0
	ldr	r5, [sp, #44]
	beq	.L16
	mov	r0, r4
	bl	ahd_name
	mov	r6, r0
	mov	r0, r4
	bl	ahd_name
	mov	r1, r6
	mov	r2, r0
	ldr	r0, .L61+128
	bl	printk
	b	.L16
.L24:
	sub	r1, r5, #130
	cmp	r1, #1
	bhi	.L26
	cmp	r7, #0
	bne	.L28
	ldr	r3, .L61+132
	ldr	r1, [r3]
	cmp	r1, #0
	beq	.L26
.L28:
	mov	r0, r4
	bl	ahd_name
	ldr	ip, [fp]
	ldr	r2, [r10]
	mov	r1, r0
	ldr	r2, [r2, r6, lsl #2]
	ldr	r3, [ip, r5, lsl #2]
	ldr	r0, .L61+136
	bl	printk
	ldr	r2, [sp, #52]
	b	.L26
.L60:
	add	r7, r7, #1
	b	.L28
.L58:
	mov	r0, r4
	bl	ahd_name
	mov	r1, r0
	ldr	r0, .L61+140
	bl	printk
	b	.L16
.L59:
	mov	r0, r4
	bl	ahd_name
	mov	r1, r0
	ldr	r0, .L61+144
	bl	printk
	b	.L16
.L56:
	bl	__stack_chk_fail
.L62:
	.align	2
.L61:
	.word	AHD_MODE_SCSI_MSK
	.word	.LC7
	.word	GFP_ATOMIC
	.word	.LC0
	.word	AHD_TMODE_ENABLE
	.word	AHD_INITIATORROLE
	.word	AHD_TARGETMODE
	.word	AHD_SCB_MAX
	.word	AHD_TMODE_CMDS
	.word	AHD_PKT_BITBUCKET_BUG
	.word	PKT_OVERRUN_BUFSIZE
	.word	BUS_SPACE_MAXSIZE_32BIT
	.word	BUS_SPACE_MAXADDR
	.word	BUS_SPACE_MAXADDR_32BIT
	.word	ENOMEM
	.word	BUS_DMA_NOWAIT
	.word	ahd_dmamap_cb
	.word	AHD_QOUT_SIZE
	.word	AHD_RESET_BUS_A
	.word	AHD_CURRENT_SENSING
	.word	CURSENSE_ENB
	.word	FLXADDR_ROMSTAT_CURSENSECTL
	.word	FLX_FSTAT_BUSY
	.word	FLXADDR_FLEXSTAT
	.word	.LC3
	.word	AHD_STAT_UPDATE_US
	.word	.LC1
	.word	FLXADDR_CURRENT_STAT
	.word	FLX_CSTAT_MASK
	.word	FLX_CSTAT_SHIFT
	.word	termstat_strings
	.word	channel_strings
	.word	.LC6
	.word	bootverbose
	.word	.LC5
	.word	.LC2
	.word	.LC4
	.size	ahd_init, .-ahd_init
	.comm	termstat_strings,4,4
	.comm	channel_strings,4,4
	.comm	bootverbose,4,4
	.comm	ahd_dmamap_cb,4,4
	.comm	ahd_debug,4,4
	.comm	PKT_OVERRUN_BUFSIZE,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	FLX_FSTAT_BUSY,4,4
	.comm	FLX_CSTAT_SHIFT,4,4
	.comm	FLX_CSTAT_MASK,4,4
	.comm	FLXADDR_ROMSTAT_CURSENSECTL,4,4
	.comm	FLXADDR_FLEXSTAT,4,4
	.comm	FLXADDR_CURRENT_STAT,4,4
	.comm	ENOMEM,4,4
	.comm	CURSENSE_ENB,4,4
	.comm	BUS_SPACE_MAXSIZE_32BIT,4,4
	.comm	BUS_SPACE_MAXADDR_32BIT,4,4
	.comm	BUS_SPACE_MAXADDR,4,4
	.comm	BUS_DMA_NOWAIT,4,4
	.comm	AHD_TMODE_ENABLE,4,4
	.comm	AHD_TMODE_CMDS,4,4
	.comm	AHD_TARGETMODE,4,4
	.comm	AHD_STAT_UPDATE_US,4,4
	.comm	AHD_SHOW_TERMCTL,4,4
	.comm	AHD_SEQUENCER_DEBUG,4,4
	.comm	AHD_SCB_MAX,4,4
	.comm	AHD_RESET_BUS_A,4,4
	.comm	AHD_QOUT_SIZE,4,4
	.comm	AHD_PKT_BITBUCKET_BUG,4,4
	.comm	AHD_MODE_SCSI_MSK,4,4
	.comm	AHD_INITIATORROLE,4,4
	.comm	AHD_DEBUG_SEQUENCER,4,4
	.comm	AHD_CURRENT_SENSING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
