	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uncore_assign_hw_event
_uncore_assign_hw_event:                ## @uncore_assign_hw_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	%edx, (%rsi)
	movq	(%rdi), %rax
	movslq	%edx, %rcx
	movq	(%rax,%rcx,8), %rsi
	incq	%rsi
	movq	%rsi, (%rax,%rcx,8)
	movq	%rsi, 16(%rbx)
	movq	_UNCORE_PMC_IDX_FIXED@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_uncore_fixed_ctr
	movl	%eax, 4(%rbx)
	movq	%r14, %rdi
	callq	_uncore_fixed_ctl
	movl	%eax, 8(%rbx)
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	movl	%edx, %esi
	callq	_uncore_event_ctl
	movl	%eax, 8(%rbx)
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_uncore_perf_ctr
	movl	%eax, 4(%rbx)
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNCORE_PMC_IDX_FIXED,4,2       ## @UNCORE_PMC_IDX_FIXED
	.no_dead_strip	_uncore_assign_hw_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uncore_assign_hw_event
_uncore_assign_hw_event:                ; @uncore_assign_hw_event
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	sbfiz	x9, x2, #3, #32
	ldr	x10, [x8, x9]
	add	x10, x10, #1
	str	x10, [x8, x9]
	str	w2, [x1]
	str	x10, [x1, #16]
Lloh0:
	adrp	x8, _UNCORE_PMC_IDX_FIXED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UNCORE_PMC_IDX_FIXED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_2
; %bb.1:
	bl	_uncore_fixed_ctr
	str	w0, [x19, #4]
	mov	x0, x20
	bl	_uncore_fixed_ctl
	str	w0, [x19, #8]
	b	LBB0_3
LBB0_2:
	mov	x1, x2
	bl	_uncore_event_ctl
	str	w0, [x19, #8]
	ldr	w1, [x19]
	mov	x0, x20
	bl	_uncore_perf_ctr
	str	w0, [x19, #4]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UNCORE_PMC_IDX_FIXED,4,2       ; @UNCORE_PMC_IDX_FIXED
	.no_dead_strip	_uncore_assign_hw_event
.subsections_via_symbols
