	.file	"extr_core.c_perf_swevent_set_period.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	perf_swevent_set_period, @function
perf_swevent_set_period:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	lea	rbp, 8[rdi]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movsx	r14, DWORD PTR [rdi]
	mov	eax, DWORD PTR 4[rdi]
	mov	r13, r14
	mov	DWORD PTR [rdi], eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rdi, [r14+rax]
	mov	esi, r13d
	call	div64_u64@PLT
	mov	rdx, rbx
	mov	rsi, rbx
	mov	rdi, rbp
	mov	r12d, eax
	mov	eax, r13d
	imul	eax, r12d
	cdqe
	sub	rdx, rax
	call	local64_cmpxchg@PLT
	cmp	rax, rbx
	je	.L1
.L2:
	mov	rdi, rbp
	call	local64_read@PLT
	mov	rbx, rax
	test	rax, rax
	jns	.L8
	xor	r12d, r12d
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	perf_swevent_set_period, .-perf_swevent_set_period
	.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_core.c_perf_swevent_set_period.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	perf_swevent_set_period, %function
perf_swevent_set_period:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	ldr	r3, [r0, #4]
	ldr	r6, [r0]
	str	r3, [r7], #8
	b	.L2
.L8:
	mov	r1, r6
	bl	div64_u64
	mul	r2, r0, r6
	mov	r5, r0
	mov	r1, r4
	mov	r0, r7
	sub	r2, r4, r2
	bl	local64_cmpxchg
	cmp	r0, r4
	beq	.L1
.L2:
	mov	r0, r7
	bl	local64_read
	subs	r4, r0, #0
	add	r0, r6, r4
	bge	.L8
	mov	r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
	.size	perf_swevent_set_period, .-perf_swevent_set_period
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
