	.file	"extr_cz_ih.c_cz_ih_get_wptr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"IH ring buffer overflow (0x%08X, 0x%08X, 0x%08X)\n"
	.text
	.p2align 4
	.type	cz_ih_get_wptr, @function
cz_ih_get_wptr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 8[rsi]
	mov	edi, DWORD PTR [rax]
	call	le32_to_cpu@PLT
	mov	edx, DWORD PTR RB_OVERFLOW[rip]
	mov	esi, DWORD PTR IH_RB_WPTR[rip]
	mov	edi, eax
	mov	ebp, eax
	call	REG_GET_FIELD@PLT
	test	rax, rax
	jne	.L8
	mov	eax, DWORD PTR 4[rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	and	eax, ebp
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edx, DWORD PTR RB_OVERFLOW[rip]
	mov	esi, DWORD PTR IH_RB_WPTR[rip]
	mov	edi, ebp
	xor	ecx, ecx
	call	REG_SET_FIELD@PLT
	mov	r8d, DWORD PTR 4[rbx]
	mov	ecx, DWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR [r12]
	lea	r13d, 16[rax]
	mov	edx, eax
	mov	ebp, eax
	and	r8d, r13d
	call	dev_warn@PLT
	and	r13d, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR mmIH_RB_CNTL[rip]
	mov	DWORD PTR [rbx], r13d
	call	RREG32@PLT
	mov	edx, DWORD PTR WPTR_OVERFLOW_CLEAR[rip]
	mov	esi, DWORD PTR IH_RB_CNTL[rip]
	mov	ecx, 1
	mov	edi, eax
	call	REG_SET_FIELD@PLT
	mov	edi, DWORD PTR mmIH_RB_CNTL[rip]
	mov	esi, eax
	call	WREG32@PLT
	mov	eax, DWORD PTR 4[rbx]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	and	eax, ebp
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cz_ih_get_wptr, .-cz_ih_get_wptr
	.comm	mmIH_RB_CNTL,4,4
	.comm	WPTR_OVERFLOW_CLEAR,4,4
	.comm	RB_OVERFLOW,4,4
	.comm	IH_RB_WPTR,4,4
	.comm	IH_RB_CNTL,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_cz_ih.c_cz_ih_get_wptr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"IH ring buffer overflow (0x%08X, 0x%08X, 0x%08X)\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cz_ih_get_wptr, %function
cz_ih_get_wptr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r1, #8]
	sub	sp, sp, #8
	mov	r8, r0
	ldr	r0, [r3]
	mov	r4, r1
	bl	le32_to_cpu
	ldr	r7, .L9
	ldr	r6, .L9+4
	ldr	r2, [r7]
	ldr	r1, [r6]
	mov	r5, r0
	bl	REG_GET_FIELD
	cmp	r0, #0
	bne	.L8
	ldr	r0, [r4, #4]
	and	r0, r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r2, [r7]
	ldr	r1, [r6]
	mov	r0, r5
	mov	r3, #0
	bl	REG_SET_FIELD
	mov	r5, r0
	ldr	r3, [r4, #4]
	add	r7, r0, #16
	and	r3, r3, r7
	ldr	r0, [r8]
	str	r3, [sp]
	mov	r2, r5
	ldr	r3, [r4]
	ldr	r1, .L9+8
	bl	dev_warn
	ldr	r3, [r4, #4]
	ldr	r6, .L9+12
	and	r3, r3, r7
	str	r3, [r4]
	ldr	r0, [r6]
	bl	RREG32
	ldr	r3, .L9+16
	ldr	r2, .L9+20
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r3, #1
	bl	REG_SET_FIELD
	mov	r1, r0
	ldr	r0, [r6]
	bl	WREG32
	ldr	r0, [r4, #4]
	and	r0, r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	RB_OVERFLOW
	.word	IH_RB_WPTR
	.word	.LC0
	.word	mmIH_RB_CNTL
	.word	IH_RB_CNTL
	.word	WPTR_OVERFLOW_CLEAR
	.size	cz_ih_get_wptr, .-cz_ih_get_wptr
	.comm	mmIH_RB_CNTL,4,4
	.comm	WPTR_OVERFLOW_CLEAR,4,4
	.comm	RB_OVERFLOW,4,4
	.comm	IH_RB_WPTR,4,4
	.comm	IH_RB_CNTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
