	.file	"extr_coresight-etb10.c___etb_disable_hw.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"timeout while waiting for completion of Manual Flush\n"
	.align 8
.LC1:
	.string	"timeout while waiting for Formatter to Stop\n"
	.text
	.p2align 4
	.type	__etb_disable_hw, @function
__etb_disable_hw:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	r12, QWORD PTR 8[rdi]
	mov	rdi, QWORD PTR [rdi]
	call	CS_UNLOCK@PLT
	mov	rdi, QWORD PTR ETB_FFCR[rip]
	add	rdi, QWORD PTR [rbx]
	call	readl_relaxed@PLT
	or	eax, DWORD PTR ETB_FFCR_STOP_FI[rip]
	mov	rsi, QWORD PTR ETB_FFCR[rip]
	mov	edi, eax
	add	rsi, QWORD PTR [rbx]
	mov	ebp, eax
	call	writel_relaxed@PLT
	mov	edi, DWORD PTR ETB_FFCR_FON_MAN[rip]
	mov	rsi, QWORD PTR ETB_FFCR[rip]
	add	rsi, QWORD PTR [rbx]
	or	edi, ebp
	call	writel_relaxed@PLT
	mov	edx, DWORD PTR ETB_FFCR_BIT[rip]
	mov	rdi, QWORD PTR [rbx]
	xor	ecx, ecx
	mov	rsi, QWORD PTR ETB_FFCR[rip]
	call	coresight_timeout@PLT
	test	rax, rax
	jne	.L12
.L2:
	xor	edi, edi
	mov	rsi, QWORD PTR ETB_CTL_REG[rip]
	add	rsi, QWORD PTR [rbx]
	call	writel_relaxed@PLT
	mov	edx, DWORD PTR ETB_FFSR_BIT[rip]
	mov	rdi, QWORD PTR [rbx]
	mov	ecx, 1
	mov	rsi, QWORD PTR ETB_FFSR[rip]
	call	coresight_timeout@PLT
	test	rax, rax
	jne	.L13
	mov	rdi, QWORD PTR [rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	CS_LOCK@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	dev_err@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, r12
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	rdi, QWORD PTR [rbx]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	CS_LOCK@PLT
	.cfi_endproc
.LFE0:
	.size	__etb_disable_hw, .-__etb_disable_hw
	.comm	ETB_FFSR_BIT,4,4
	.comm	ETB_FFSR,8,8
	.comm	ETB_FFCR_STOP_FI,4,4
	.comm	ETB_FFCR_FON_MAN,4,4
	.comm	ETB_FFCR_BIT,4,4
	.comm	ETB_FFCR,8,8
	.comm	ETB_CTL_REG,8,8
	.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_coresight-etb10.c___etb_disable_hw.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"timeout while waiting for completion of Manual Flus"
	.ascii	"h\012\000"
	.align	2
.LC1:
	.ascii	"timeout while waiting for Formatter to Stop\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__etb_disable_hw, %function
__etb_disable_hw:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r5, .L14
	ldr	r0, [r0]
	ldr	r7, [r4, #4]
	bl	CS_UNLOCK
	ldr	r3, [r5]
	ldr	r0, [r4]
	add	r0, r0, r3
	bl	readl_relaxed
	ldr	r3, .L14+4
	ldr	r1, [r4]
	ldr	r6, [r3]
	ldr	r3, [r5]
	orr	r6, r0, r6
	add	r1, r1, r3
	mov	r0, r6
	bl	writel_relaxed
	ldr	r3, .L14+8
	ldr	r1, [r4]
	ldr	r0, [r3]
	ldr	r3, [r5]
	orr	r0, r6, r0
	add	r1, r1, r3
	bl	writel_relaxed
	ldr	r3, .L14+12
	ldr	r1, [r5]
	ldr	r2, [r3]
	ldr	r0, [r4]
	mov	r3, #0
	bl	coresight_timeout
	cmp	r0, #0
	bne	.L12
.L2:
	ldr	r3, .L14+16
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r0, #0
	add	r1, r1, r3
	bl	writel_relaxed
	ldr	r3, .L14+20
	ldr	r2, .L14+24
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r3, #1
	ldr	r0, [r4]
	bl	coresight_timeout
	cmp	r0, #0
	bne	.L13
	ldr	r0, [r4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	CS_LOCK
.L12:
	mov	r0, r7
	ldr	r1, .L14+28
	bl	dev_err
	b	.L2
.L13:
	mov	r0, r7
	ldr	r1, .L14+32
	bl	dev_err
	ldr	r0, [r4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	CS_LOCK
.L15:
	.align	2
.L14:
	.word	ETB_FFCR
	.word	ETB_FFCR_STOP_FI
	.word	ETB_FFCR_FON_MAN
	.word	ETB_FFCR_BIT
	.word	ETB_CTL_REG
	.word	ETB_FFSR
	.word	ETB_FFSR_BIT
	.word	.LC0
	.word	.LC1
	.size	__etb_disable_hw, .-__etb_disable_hw
	.comm	ETB_FFSR_BIT,4,4
	.comm	ETB_FFSR,4,4
	.comm	ETB_FFCR_STOP_FI,4,4
	.comm	ETB_FFCR_FON_MAN,4,4
	.comm	ETB_FFCR_BIT,4,4
	.comm	ETB_FFCR,4,4
	.comm	ETB_CTL_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
