	.file	"extr_cx88-tvaudio.c_cx88_detect_nicam.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"start nicam autodetect.\n"
.LC1:
	.string	"nicam is detected.\n"
.LC2:
	.string	"nicam is not detected.\n"
	.text
	.p2align 4
	.type	cx88_detect_nicam, @function
cx88_detect_nicam:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, 6
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	dprintk@PLT
.L4:
	mov	edi, DWORD PTR AUD_NICAM_STATUS2[rip]
	call	cx_read@PLT
	and	eax, 2
	mov	r12d, eax
	jne	.L8
	mov	esi, 20000
	mov	edi, 10000
	call	usleep_range@PLT
	sub	ebx, 1
	jne	.L4
	lea	rdi, .LC2[rip]
	call	dprintk@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	mov	r12d, 1
	call	dprintk@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cx88_detect_nicam, .-cx88_detect_nicam
	.comm	AUD_NICAM_STATUS2,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_cx88-tvaudio.c_cx88_detect_nicam.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"start nicam autodetect.\012\000"
	.align	2
.LC1:
	.ascii	"nicam is detected.\012\000"
	.align	2
.LC2:
	.ascii	"nicam is not detected.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cx88_detect_nicam, %function
cx88_detect_nicam:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r0, .L9
	bl	dprintk
	mov	r5, #6
	ldr	r6, .L9+4
	ldr	r8, .L9+8
	ldr	r7, .L9+12
.L4:
	ldr	r0, [r6]
	bl	cx_read
	ands	r4, r0, #2
	bne	.L8
	mov	r1, r8
	mov	r0, r7
	bl	usleep_range
	subs	r5, r5, #1
	bne	.L4
	ldr	r0, .L9+16
	bl	dprintk
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r4, #1
	ldr	r0, .L9+20
	bl	dprintk
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	AUD_NICAM_STATUS2
	.word	20000
	.word	10000
	.word	.LC2
	.word	.LC1
	.size	cx88_detect_nicam, .-cx88_detect_nicam
	.comm	AUD_NICAM_STATUS2,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
