	.file	"extr_aic7770.c_aic7770_chip_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	aic7770_chip_init, @function
aic7770_chip_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, DWORD PTR BUSSPD[rip]
	mov	rbp, rdi
	mov	edx, DWORD PTR [rdi]
	call	ahc_outb@PLT
	mov	edx, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR BUSTIME[rip]
	mov	rdi, rbp
	call	ahc_outb@PLT
	mov	esi, DWORD PTR SBLKCTL[rip]
	mov	rdi, rbp
	call	ahc_inb@PLT
	mov	edx, DWORD PTR AUTOFLUSHDIS[rip]
	mov	esi, DWORD PTR SBLKCTL[rip]
	mov	rdi, rbp
	not	edx
	and	edx, eax
	call	ahc_outb@PLT
	mov	edx, DWORD PTR ENABLE[rip]
	mov	esi, DWORD PTR BCTL[rip]
	mov	rdi, rbp
	call	ahc_outb@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	ahc_chip_init@PLT
	.cfi_endproc
.LFE0:
	.size	aic7770_chip_init, .-aic7770_chip_init
	.comm	SBLKCTL,4,4
	.comm	ENABLE,4,4
	.comm	BUSTIME,4,4
	.comm	BUSSPD,4,4
	.comm	BCTL,4,4
	.comm	AUTOFLUSHDIS,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_aic7770.c_aic7770_chip_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aic7770_chip_init, %function
aic7770_chip_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L4
	ldr	r2, [r0]
	ldr	r1, [r3]
	bl	ahc_outb
	ldr	r3, .L4+4
	ldr	r2, [r4, #4]
	ldr	r1, [r3]
	mov	r0, r4
	bl	ahc_outb
	ldr	r3, .L4+8
	mov	r0, r4
	ldr	r5, [r3]
	mov	r1, r5
	bl	ahc_inb
	mov	r3, r0
	ldr	r2, .L4+12
	mov	r1, r5
	ldr	r2, [r2]
	mov	r0, r4
	bic	r2, r3, r2
	bl	ahc_outb
	ldr	r3, .L4+16
	ldr	r2, .L4+20
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	ahc_outb
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	ahc_chip_init
.L5:
	.align	2
.L4:
	.word	BUSSPD
	.word	BUSTIME
	.word	SBLKCTL
	.word	AUTOFLUSHDIS
	.word	BCTL
	.word	ENABLE
	.size	aic7770_chip_init, .-aic7770_chip_init
	.comm	SBLKCTL,4,4
	.comm	ENABLE,4,4
	.comm	BUSTIME,4,4
	.comm	BUSSPD,4,4
	.comm	BCTL,4,4
	.comm	AUTOFLUSHDIS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
