	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function df_v3_6_pmc_get_count
_df_v3_6_pmc_get_count:                 ## @df_v3_6_pmc_get_count
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, (%rdx)
	cmpl	$128, (%rdi)
	jne	LBB0_4
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-40(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	callq	_df_v3_6_pmc_get_read_settings
	movq	-40(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.2:
	movq	-32(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	callq	_df_v3_6_perfmon_rreg
	movq	-48(%rbp), %r9
	movq	%r9, %rax
	shlq	$32, %rax
	movq	-56(%rbp), %r8
	orq	%r8, %rax
	movq	%rax, (%r15)
	movq	_DF_V3_6_PERFMON_OVERFLOW@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	cmovbq	%rax, %rdx
	movq	%rdx, (%r15)
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rcx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_DRM_DEBUG_DRIVER
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DF_V3_6_PERFMON_OVERFLOW,8,3   ## @DF_V3_6_PERFMON_OVERFLOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"config=%llx addr=%08x:%08x val=%08x:%08x"

	.no_dead_strip	_df_v3_6_pmc_get_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function df_v3_6_pmc_get_count
_df_v3_6_pmc_get_count:                 ; @df_v3_6_pmc_get_count
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	str	xzr, [x2]
	ldr	w8, [x0]
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	add	x2, sp, #24
	add	x3, sp, #16
	bl	_df_v3_6_pmc_get_read_settings
	ldp	x3, x1, [sp, #16]
	cmp	x1, #0
	ccmp	x3, #0, #4, ne
	b.eq	LBB0_3
; %bb.2:
	add	x2, sp, #8
	mov	x4, sp
	mov	x0, x21
	bl	_df_v3_6_perfmon_rreg
	ldp	x5, x4, [sp]
	orr	x8, x4, x5, lsl #32
	str	x8, [x20]
Lloh0:
	adrp	x9, _DF_V3_6_PERFMON_OVERFLOW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DF_V3_6_PERFMON_OVERFLOW@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x8, xzr, lo
	str	x8, [x20]
	ldp	x3, x2, [sp, #16]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DRM_DEBUG_DRIVER
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DF_V3_6_PERFMON_OVERFLOW,8,3   ; @DF_V3_6_PERFMON_OVERFLOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"config=%llx addr=%08x:%08x val=%08x:%08x"

	.no_dead_strip	_df_v3_6_pmc_get_count
.subsections_via_symbols
