	.file	"extr_coresight-stm.c_stm_enable_hw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	stm_enable_hw, @function
stm_enable_hw:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	cmp	QWORD PTR 16[rdi], 0
	mov	rbx, rdi
	jne	.L5
.L2:
	mov	rdi, rbx
	call	stm_port_enable_hw@PLT
	mov	rdi, QWORD PTR 8[rbx]
	call	CS_UNLOCK@PLT
	mov	rsi, QWORD PTR STMSYNCR[rip]
	mov	edi, 4095
	add	rsi, QWORD PTR 8[rbx]
	call	writel_relaxed@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsi, QWORD PTR STMTCSR[rip]
	add	rsi, QWORD PTR 8[rbx]
	sal	edi, 16
	or	edi, 3
	call	writel_relaxed@PLT
	mov	rdi, QWORD PTR 8[rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	CS_LOCK@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	call	stm_hwevent_enable_hw@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	stm_enable_hw, .-stm_enable_hw
	.comm	STMTCSR,8,8
	.comm	STMSYNCR,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-stm.c_stm_enable_hw.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stm_enable_hw, %function
stm_enable_hw:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #8]
	push	{r4, lr}
	cmp	r3, #0
	mov	r4, r0
	bne	.L8
.L2:
	mov	r0, r4
	bl	stm_port_enable_hw
	ldr	r0, [r4, #4]
	bl	CS_UNLOCK
	ldr	r3, .L9
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	ldr	r0, .L9+4
	add	r1, r1, r3
	bl	writel_relaxed
	ldr	r3, .L9+8
	ldr	r0, [r4]
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	lsl	r0, r0, #16
	add	r1, r1, r3
	orr	r0, r0, #3
	bl	writel_relaxed
	ldr	r0, [r4, #4]
	pop	{r4, lr}
	b	CS_LOCK
.L8:
	bl	stm_hwevent_enable_hw
	b	.L2
.L10:
	.align	2
.L9:
	.word	STMSYNCR
	.word	4095
	.word	STMTCSR
	.size	stm_enable_hw, .-stm_enable_hw
	.comm	STMTCSR,4,4
	.comm	STMSYNCR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
