	.file	"extr_arm_smmuv3_pmu.c_smmu_pmu_event_update.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	smmu_pmu_event_update, @function
smmu_pmu_event_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	lea	r12, 8[r15]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR 4[rdi]
	call	to_smmu_pmu@PLT
	mov	r14d, DWORD PTR 12[r15]
	mov	r13, rax
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, r12
	call	local64_read@PLT
	mov	esi, r14d
	mov	rdi, r13
	mov	rbx, rax
	call	smmu_pmu_counter_get_value@PLT
	mov	rsi, rbx
	mov	rdi, r12
	mov	rdx, rax
	mov	rbp, rax
	call	local64_cmpxchg@PLT
	cmp	rax, rbx
	jne	.L2
	mov	rdi, rbp
	mov	rsi, r15
	sub	rdi, rax
	and	rdi, QWORD PTR 0[r13]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	local64_add@PLT
	.cfi_endproc
.LFE0:
	.size	smmu_pmu_event_update, .-smmu_pmu_event_update
	.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_arm_smmuv3_pmu.c_smmu_pmu_event_update.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	smmu_pmu_event_update, %function
smmu_pmu_event_update:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r0
	ldr	r0, [r0, #4]
	bl	to_smmu_pmu
	mov	r7, r0
	ldr	r9, [r8, #12]
	add	r6, r8, #8
.L2:
	mov	r0, r6
	bl	local64_read
	mov	r1, r9
	mov	r4, r0
	mov	r0, r7
	bl	smmu_pmu_counter_get_value
	mov	r1, r4
	mov	r2, r0
	mov	r5, r0
	mov	r0, r6
	bl	local64_cmpxchg
	cmp	r0, r4
	bne	.L2
	ldr	r3, [r7]
	sub	r0, r5, r0
	mov	r1, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	and	r0, r0, r3
	b	local64_add
	.size	smmu_pmu_event_update, .-smmu_pmu_event_update
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
