	.file	"extr_sym_hipd.c_sym_reset_scsi_bus.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"dp1,d15-8,"
.LC1:
	.string	""
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"%s: suspicious SCSI data while resetting the BUS.\n"
	.align 8
.LC3:
	.string	"%s: %sdp0,d7-0,rst,req,ack,bsy,sel,atn,msg,c/d,i/o = 0x%lx, expecting 0x%lx\n"
	.text
	.p2align 4
	.type	sym_reset_scsi_bus, @function
sym_reset_scsi_bus:
.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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	call	sym_soft_reset@PLT
	test	ebx, ebx
	jne	.L17
.L2:
	mov	esi, DWORD PTR TE[rip]
	mov	edi, DWORD PTR nc_stest3[rip]
	call	OUTB@PLT
	mov	edi, DWORD PTR nc_dcntl[rip]
	mov	esi, DWORD PTR 0[rbp]
	and	esi, DWORD PTR IRQM[rip]
	call	OUTB@PLT
	mov	esi, DWORD PTR CRST[rip]
	mov	edi, DWORD PTR nc_scntl1[rip]
	call	OUTB@PLT
	mov	edi, 200
	call	UDELAY@PLT
	mov	eax, DWORD PTR SYM_SETUP_SCSI_BUS_CHECK[rip]
	test	eax, eax
	jne	.L3
.L6:
	xor	r12d, r12d
.L4:
	mov	edi, DWORD PTR nc_scntl1[rip]
	xor	esi, esi
	call	OUTB@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edi, DWORD PTR nc_sstat0[rip]
	call	INB@PLT
	mov	edi, DWORD PTR nc_sstat2[rip]
	mov	r14d, eax
	sal	eax, 17
	sal	r14d, 7
	and	eax, 131072
	and	r14d, 256
	or	r14d, eax
	call	INB@PLT
	mov	edi, DWORD PTR nc_sbdl[rip]
	mov	ebx, eax
	call	INW@PLT
	mov	edi, DWORD PTR nc_sbdl[rip]
	sal	ebx, 26
	mov	r13d, eax
	and	ebx, 67108864
	call	INW@PLT
	mov	edi, DWORD PTR nc_sbcl[rip]
	mov	r12d, eax
	call	INB@PLT
	mov	edx, r13d
	sal	r12d, 10
	or	eax, r14d
	sal	edx, 9
	and	r12d, 66846720
	or	ebx, eax
	and	edx, 130560
	mov	eax, DWORD PTR 4[rbp]
	or	edx, ebx
	or	r12d, edx
	and	edx, 262143
	test	DWORD PTR FE_WIDE[rip], eax
	cmove	r12d, edx
	cmp	r12d, 256
	je	.L6
	mov	rdi, rbp
	lea	r13, .LC0[rip]
	call	sym_name@PLT
	lea	rdi, .LC2[rip]
	mov	rsi, rax
	xor	eax, eax
	call	printf@PLT
	lea	rdx, .LC1[rip]
	mov	eax, DWORD PTR 4[rbp]
	mov	rdi, rbp
	test	DWORD PTR FE_WIDE[rip], eax
	cmove	r13, rdx
	call	sym_name@PLT
	mov	ecx, r12d
	xor	r12d, r12d
	mov	r8d, 256
	mov	rsi, rax
	mov	rdx, r13
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	printf@PLT
	cmp	DWORD PTR SYM_SETUP_SCSI_BUS_CHECK[rip], 1
	sete	r12b
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, DWORD PTR RST[rip]
	mov	edi, DWORD PTR nc_sien[rip]
	call	OUTW@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	sym_reset_scsi_bus, .-sym_reset_scsi_bus
	.comm	nc_stest3,4,4
	.comm	nc_sstat2,4,4
	.comm	nc_sstat0,4,4
	.comm	nc_sien,4,4
	.comm	nc_scntl1,4,4
	.comm	nc_sbdl,4,4
	.comm	nc_sbcl,4,4
	.comm	nc_dcntl,4,4
	.comm	TE,4,4
	.comm	SYM_SETUP_SCSI_BUS_CHECK,4,4
	.comm	RST,4,4
	.comm	IRQM,4,4
	.comm	FE_WIDE,4,4
	.comm	CRST,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_sym_hipd.c_sym_reset_scsi_bus.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dp1,d15-8,\000"
	.align	2
.LC1:
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"%s: suspicious SCSI data while resetting the BUS.\012"
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"%s: %sdp0,d7-0,rst,req,ack,bsy,sel,atn,msg,c/d,i/o "
	.ascii	"= 0x%lx, expecting 0x%lx\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sym_reset_scsi_bus, %function
sym_reset_scsi_bus:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	sub	sp, sp, #12
	mov	r6, r0
	bl	sym_soft_reset
	cmp	r4, #0
	bne	.L17
.L2:
	ldr	r2, .L18
	ldr	r3, .L18+4
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	OUTB
	ldr	r3, .L18+8
	ldr	r1, [r6]
	ldr	r2, [r3]
	ldr	r3, .L18+12
	and	r1, r1, r2
	ldr	r0, [r3]
	bl	OUTB
	ldr	r7, .L18+16
	ldr	r3, .L18+20
	ldr	r0, [r7]
	ldr	r1, [r3]
	ldr	r8, .L18+24
	bl	OUTB
	mov	r0, #200
	bl	UDELAY
	ldr	r3, [r8]
	cmp	r3, #0
	bne	.L3
.L6:
	mov	r4, #0
.L4:
	mov	r1, #0
	ldr	r0, [r7]
	bl	OUTB
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r3, .L18+28
	ldr	r5, .L18+32
	ldr	r0, [r3]
	bl	INB
	ldr	r2, .L18+36
	lsl	fp, r0, #7
	lsl	r0, r0, #17
	and	r3, r0, #131072
	and	fp, fp, #256
	ldr	r0, [r2]
	orr	fp, fp, r3
	bl	INB
	mov	r4, r0
	ldr	r0, [r5]
	bl	INW
	mov	r10, r0
	ldr	r0, [r5]
	bl	INW
	ldr	r2, .L18+40
	mov	r5, r0
	ldr	r0, [r2]
	bl	INB
	ldr	r9, .L18+44
	ldr	r2, .L18+48
	lsl	r4, r4, #26
	and	r4, r4, #67108864
	orr	r3, r0, fp
	orr	r3, r4, r3
	and	r10, r2, r10, lsl #9
	ldr	r1, [r9]
	ldr	r2, [r6, #4]
	lsl	r4, r5, #10
	and	r4, r4, #66846720
	orr	r3, r3, r10
	tst	r2, r1
	orr	r4, r4, r3
	biceq	r4, r4, #-16777216
	biceq	r4, r4, #16515072
	cmp	r4, #256
	beq	.L6
	mov	r0, r6
	bl	sym_name
	mov	r1, r0
	ldr	r0, .L18+52
	bl	printf
	mov	r0, r6
	bl	sym_name
	mov	ip, #256
	ldr	r2, [r6, #4]
	ldr	r3, [r9]
	ldr	lr, .L18+56
	tst	r2, r3
	mov	r1, r0
	mov	r3, r4
	ldr	r2, .L18+60
	ldr	r0, .L18+64
	movne	r2, lr
	str	ip, [sp]
	bl	printf
	ldr	r4, [r8]
	sub	r4, r4, #1
	clz	r4, r4
	lsr	r4, r4, #5
	b	.L4
.L17:
	ldr	r2, .L18+68
	ldr	r3, .L18+72
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	OUTW
	b	.L2
.L19:
	.align	2
.L18:
	.word	TE
	.word	nc_stest3
	.word	IRQM
	.word	nc_dcntl
	.word	nc_scntl1
	.word	CRST
	.word	SYM_SETUP_SCSI_BUS_CHECK
	.word	nc_sstat0
	.word	nc_sbdl
	.word	nc_sstat2
	.word	nc_sbcl
	.word	FE_WIDE
	.word	130560
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	RST
	.word	nc_sien
	.size	sym_reset_scsi_bus, .-sym_reset_scsi_bus
	.comm	nc_stest3,4,4
	.comm	nc_sstat2,4,4
	.comm	nc_sstat0,4,4
	.comm	nc_sien,4,4
	.comm	nc_scntl1,4,4
	.comm	nc_sbdl,4,4
	.comm	nc_sbcl,4,4
	.comm	nc_dcntl,4,4
	.comm	TE,4,4
	.comm	SYM_SETUP_SCSI_BUS_CHECK,4,4
	.comm	RST,4,4
	.comm	IRQM,4,4
	.comm	FE_WIDE,4,4
	.comm	CRST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
