	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uncore_pmu_event_del
_uncore_pmu_event_del:                  ## @uncore_pmu_event_del
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_uncore_event_to_box
	movq	%rax, %r15
	movq	_PERF_EF_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_uncore_pmu_event_stop
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.1:
	movq	8(%r15), %rcx
	movb	$3, %r12b
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, (%rcx,%rbx,8)
	je	LBB0_3
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	addb	$3, %r12b
	cmpq	%rbx, %rax
	jne	LBB0_2
	jmp	LBB0_13
LBB0_3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_uncore_put_event_constraint
	movl	(%r15), %esi
	leal	1(%rbx), %ecx
	leal	-1(%rsi), %r9d
	cmpl	%esi, %ecx
	jge	LBB0_11
## %bb.4:
	movl	%r9d, %ecx
	movq	%rcx, %rdi
	subq	%rbx, %rdi
	leaq	-1(%rdi), %r8
	testb	$3, %dil
	je	LBB0_5
## %bb.6:
	addb	%r12b, %sil
	movzbl	%sil, %edi
	andl	$3, %edi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rbx), %rsi
	movq	8(%r15), %rdx
	movq	8(%rdx,%rbx,8), %rax
	movq	%rax, (%rdx,%rbx,8)
	movq	%rsi, %rbx
	decq	%rdi
	jne	LBB0_7
## %bb.8:
	cmpq	$3, %r8
	jae	LBB0_9
	jmp	LBB0_11
LBB0_5:
	movq	%rbx, %rsi
	cmpq	$3, %r8
	jb	LBB0_11
LBB0_9:
	subq	%rsi, %rcx
	movq	%rsi, %rdx
	shlq	$3, %rdx
	leaq	(,%rsi,8), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	leaq	(%rax,%rsi), %rbx
	movq	8(%rbx,%rdi,8), %rbx
	addq	%rdx, %rax
	movq	%rbx, (%rax,%rdi,8)
	movq	8(%r15), %rax
	leaq	(%rax,%rsi), %rbx
	addq	$8, %rbx
	movq	8(%rbx,%rdi,8), %rbx
	leaq	8(%rax,%rdx), %rax
	movq	%rbx, (%rax,%rdi,8)
	movq	8(%r15), %rax
	leaq	16(%rax,%rsi), %rbx
	movq	8(%rbx,%rdi,8), %rbx
	leaq	16(%rax,%rdx), %rax
	movq	%rbx, (%rax,%rdi,8)
	movq	8(%r15), %rax
	leaq	24(%rax,%rsi), %rbx
	movq	8(%rbx,%rdi,8), %rbx
	addq	%rdx, %rax
	addq	$24, %rax
	movq	%rbx, (%rax,%rdi,8)
	addq	$4, %rdi
	cmpq	%rdi, %rcx
	jne	LBB0_10
LBB0_11:
	movl	%r9d, (%r15)
LBB0_13:
	movl	$-1, (%r14)
	movq	$-1, 8(%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PERF_EF_UPDATE,4,2             ## @PERF_EF_UPDATE
	.no_dead_strip	_uncore_pmu_event_del
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uncore_pmu_event_del
_uncore_pmu_event_del:                  ; @uncore_pmu_event_del
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_uncore_event_to_box
	mov	x20, x0
Lloh0:
	adrp	x8, _PERF_EF_UPDATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PERF_EF_UPDATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_uncore_pmu_event_stop
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x21, #0
	ldr	x9, [x20, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x21, lsl #3]
	cmp	x10, x19
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	cmp	x8, x21
	b.ne	LBB0_2
	b	LBB0_7
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_uncore_put_event_constraint
	ldr	w9, [x20]
	add	w10, w21, #1
	sub	w8, w9, #1
	cmp	w10, w9
	b.ge	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	add	x9, x9, x21, lsl #3
	add	x10, x21, #1
	ldr	x11, [x9, #8]
	str	x11, [x9]
	mov	x21, x10
	cmp	x8, x10
	b.ne	LBB0_5
LBB0_6:
	str	w8, [x20]
LBB0_7:
	mov	w8, #-1
	str	w8, [x19]
	mov	x8, #-1
	str	x8, [x19, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PERF_EF_UPDATE,4,2             ; @PERF_EF_UPDATE
	.no_dead_strip	_uncore_pmu_event_del
.subsections_via_symbols
