	.file	"extr_ich.c_ich_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"primary codec not ready!\n"
	.text
	.p2align 4
	.type	ich_init, @function
ich_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	edx, DWORD PTR ICH_GLOB_CTL_COLD[rip]
	mov	ecx, 4
	mov	rbp, rdi
	mov	esi, DWORD PTR ICH_REG_GLOB_CNT[rip]
	call	ich_wr@PLT
	mov	edi, 600000
	call	DELAY@PLT
	mov	esi, DWORD PTR ICH_REG_GLOB_STA[rip]
	mov	edx, 4
	mov	rdi, rbp
	call	ich_rd@PLT
	test	DWORD PTR ICH_GLOB_STA_PCR[rip], eax
	jne	.L2
	mov	rax, QWORD PTR INTEL_VENDORID[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L16
.L2:
	mov	esi, DWORD PTR ICH_REG_GLOB_CNT[rip]
	mov	edx, DWORD PTR ICH_GLOB_CTL_COLD[rip]
	mov	rdi, rbp
	mov	ecx, 4
	call	ich_wr@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	ich_resetchan@PLT
	test	rax, rax
	je	.L4
.L13:
	mov	eax, DWORD PTR ENXIO[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	esi, 1
	mov	rdi, rbp
	call	ich_resetchan@PLT
	test	rax, rax
	jne	.L13
	cmp	QWORD PTR 16[rbp], 0
	jne	.L7
	xor	eax, eax
.L17:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbp]
	cmp	rax, QWORD PTR INTEL_82801DB[rip]
	je	.L3
	cmp	rax, QWORD PTR INTEL_82801EB[rip]
	je	.L3
	cmp	rax, QWORD PTR INTEL_6300ESB[rip]
	je	.L3
	cmp	rax, QWORD PTR INTEL_82801FB[rip]
	je	.L3
	cmp	rax, QWORD PTR INTEL_82801GB[rip]
	jne	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR ICH_IGNORE_PCR[rip]
	or	DWORD PTR 28[rbp], eax
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR 24[rbp]
	call	device_printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, 2
	mov	rdi, rbp
	call	ich_resetchan@PLT
	test	rax, rax
	jne	.L13
	xor	eax, eax
	jmp	.L17
	.cfi_endproc
.LFE0:
	.size	ich_init, .-ich_init
	.comm	INTEL_VENDORID,8,8
	.comm	INTEL_82801GB,8,8
	.comm	INTEL_82801FB,8,8
	.comm	INTEL_82801EB,8,8
	.comm	INTEL_82801DB,8,8
	.comm	INTEL_6300ESB,8,8
	.comm	ICH_REG_GLOB_STA,4,4
	.comm	ICH_REG_GLOB_CNT,4,4
	.comm	ICH_IGNORE_PCR,4,4
	.comm	ICH_GLOB_STA_PCR,4,4
	.comm	ICH_GLOB_CTL_PRES,4,4
	.comm	ICH_GLOB_CTL_COLD,4,4
	.comm	ENXIO,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_ich.c_ich_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"primary codec not ready!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ich_init, %function
ich_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r6, .L16
	ldr	r5, .L16+4
	mov	r3, #4
	ldr	r2, [r6]
	ldr	r1, [r5]
	bl	ich_wr
	ldr	r0, .L16+8
	bl	DELAY
	ldr	r3, .L16+12
	mov	r0, r4
	ldr	r1, [r3]
	mov	r2, #4
	bl	ich_rd
	ldr	r3, .L16+16
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L2
	ldr	r3, .L16+20
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L15
.L2:
	mov	r3, #4
	ldr	r2, [r6]
	ldr	r1, [r5]
	mov	r0, r4
	bl	ich_wr
	mov	r1, #0
	mov	r0, r4
	bl	ich_resetchan
	cmp	r0, #0
	beq	.L4
.L13:
	ldr	r3, .L16+24
	ldr	r5, [r3]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L4:
	mov	r1, #1
	mov	r0, r4
	bl	ich_resetchan
	subs	r5, r0, #0
	bne	.L13
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L1
	mov	r0, r4
	mov	r1, #2
	bl	ich_resetchan
	cmp	r0, #0
	beq	.L1
	b	.L13
.L15:
	ldr	r2, .L16+28
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L3
	ldr	r2, .L16+32
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L3
	ldr	r2, .L16+36
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L3
	ldr	r2, .L16+40
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L3
	ldr	r2, .L16+44
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L2
.L3:
	ldr	r2, .L16+48
	ldr	r3, [r4, #16]
	ldr	r2, [r2]
	ldr	r1, .L16+52
	orr	r3, r3, r2
	ldr	r0, [r4, #12]
	str	r3, [r4, #16]
	bl	device_printf
	b	.L2
.L17:
	.align	2
.L16:
	.word	ICH_GLOB_CTL_COLD
	.word	ICH_REG_GLOB_CNT
	.word	600000
	.word	ICH_REG_GLOB_STA
	.word	ICH_GLOB_STA_PCR
	.word	INTEL_VENDORID
	.word	ENXIO
	.word	INTEL_82801DB
	.word	INTEL_82801EB
	.word	INTEL_6300ESB
	.word	INTEL_82801FB
	.word	INTEL_82801GB
	.word	ICH_IGNORE_PCR
	.word	.LC0
	.size	ich_init, .-ich_init
	.comm	INTEL_VENDORID,4,4
	.comm	INTEL_82801GB,4,4
	.comm	INTEL_82801FB,4,4
	.comm	INTEL_82801EB,4,4
	.comm	INTEL_82801DB,4,4
	.comm	INTEL_6300ESB,4,4
	.comm	ICH_REG_GLOB_STA,4,4
	.comm	ICH_REG_GLOB_CNT,4,4
	.comm	ICH_IGNORE_PCR,4,4
	.comm	ICH_GLOB_STA_PCR,4,4
	.comm	ICH_GLOB_CTL_PRES,4,4
	.comm	ICH_GLOB_CTL_COLD,4,4
	.comm	ENXIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
