	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_collect_clk_info         ## -- Begin function cudbg_collect_clk_info
	.p2align	4, 0x90
_cudbg_collect_clk_info:                ## @cudbg_collect_clk_info
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	cmpl	$0, (%r13)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	-64(%rbp), %rcx
	movl	$52, %edx
	callq	_cudbg_get_buff
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	-64(%rbp), %r12
	movl	$1000000000, %eax               ## imm = 0x3B9ACA00
	xorl	%edx, %edx
	idivl	(%r13)
	movl	%eax, (%r12)
	movq	_TP_TIMER_RESOLUTION_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_t4_read_reg
	movl	%eax, 4(%r12)
	movl	%eax, %edi
	callq	_TIMERRESOLUTION_G
	movl	%eax, 8(%r12)
	movl	4(%r12), %edi
	callq	_DELAYEDACKRESOLUTION_G
	movl	%eax, 12(%r12)
	movl	(%r12), %edx
	movb	8(%r12), %cl
	movl	%edx, %esi
	shll	%cl, %esi
	movslq	%esi, %rcx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	imulq	$1125899907, %rcx, %rbx         ## imm = 0x431BDE83
	movq	%rbx, %rcx
	shrq	$63, %rcx
	shrq	$32, %rbx
	sarl	$18, %ebx
	addl	%ecx, %ebx
	movl	%eax, %ecx
	shll	%cl, %edx
	movslq	%edx, %rax
	imulq	$1125899907, %rax, %r14         ## imm = 0x431BDE83
	movq	%r14, %rax
	shrq	$63, %rax
	shrq	$32, %r14
	sarl	$18, %r14d
	addl	%eax, %r14d
	movq	_TP_DACK_TIMER_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_t4_read_reg
	imull	%r14d, %eax
	movl	%eax, 16(%r12)
	movq	_TP_RXT_MIN_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_t4_read_reg
	imull	%ebx, %eax
	movl	%eax, 20(%r12)
	movq	_TP_RXT_MAX_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_t4_read_reg
	imull	%ebx, %eax
	movl	%eax, 24(%r12)
	movq	_TP_PERS_MIN_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_t4_read_reg
	imull	%ebx, %eax
	movl	%eax, 28(%r12)
	movq	_TP_PERS_MAX_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_t4_read_reg
	imull	%ebx, %eax
	movl	%eax, 32(%r12)
	movq	_TP_KEEP_IDLE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_t4_read_reg
	imull	%ebx, %eax
	movl	%eax, 36(%r12)
	movq	_TP_KEEP_INTVL_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_t4_read_reg
	imull	%ebx, %eax
	movl	%eax, 40(%r12)
	movq	_TP_INIT_SRTT_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_t4_read_reg
	movl	%eax, %edi
	callq	_INITSRTT_G
	imull	%ebx, %eax
	movl	%eax, 44(%r12)
	movq	_TP_FINWAIT2_TIMER_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_t4_read_reg
	imull	%ebx, %eax
	movl	%eax, 48(%r12)
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_cudbg_write_and_release_buff
	jmp	LBB0_4
LBB0_1:
	movq	_CUDBG_STATUS_CCLK_NOT_DEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CUDBG_STATUS_CCLK_NOT_DEFINED,4,2 ## @CUDBG_STATUS_CCLK_NOT_DEFINED
	.comm	_TP_TIMER_RESOLUTION_A,4,2      ## @TP_TIMER_RESOLUTION_A
	.comm	_TP_DACK_TIMER_A,4,2            ## @TP_DACK_TIMER_A
	.comm	_TP_RXT_MIN_A,4,2               ## @TP_RXT_MIN_A
	.comm	_TP_RXT_MAX_A,4,2               ## @TP_RXT_MAX_A
	.comm	_TP_PERS_MIN_A,4,2              ## @TP_PERS_MIN_A
	.comm	_TP_PERS_MAX_A,4,2              ## @TP_PERS_MAX_A
	.comm	_TP_KEEP_IDLE_A,4,2             ## @TP_KEEP_IDLE_A
	.comm	_TP_KEEP_INTVL_A,4,2            ## @TP_KEEP_INTVL_A
	.comm	_TP_INIT_SRTT_A,4,2             ## @TP_INIT_SRTT_A
	.comm	_TP_FINWAIT2_TIMER_A,4,2        ## @TP_FINWAIT2_TIMER_A
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_collect_clk_info         ; -- Begin function cudbg_collect_clk_info
	.p2align	2
_cudbg_collect_clk_info:                ; @cudbg_collect_clk_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x21, [x0]
	stp	xzr, xzr, [sp]
	ldr	w8, [x21]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x3, sp
	mov	w2, #52
	bl	_cudbg_get_buff
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	x22, [sp]
	ldr	w8, [x21]
	mov	w9, #51712
	movk	w9, #15258, lsl #16
	sdiv	w8, w9, w8
	str	w8, [x22]
Lloh0:
	adrp	x8, _TP_TIMER_RESOLUTION_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TP_TIMER_RESOLUTION_A@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_t4_read_reg
	str	w0, [x22, #4]
	bl	_TIMERRESOLUTION_G
	str	w0, [x22, #8]
	ldr	w0, [x22, #4]
	bl	_DELAYEDACKRESOLUTION_G
	str	w0, [x22, #12]
	ldr	w8, [x22]
	ldr	w9, [x22, #8]
	lsl	w9, w8, w9
	mov	w10, #56963
	movk	w10, #17179, lsl #16
	smull	x9, w9, w10
	lsr	x11, x9, #32
	lsr	x9, x9, #63
	add	w23, w9, w11, asr #18
	lsl	w8, w8, w0
	smull	x8, w8, w10
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w24, w8, w9, asr #18
Lloh3:
	adrp	x8, _TP_DACK_TIMER_A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TP_DACK_TIMER_A@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_t4_read_reg
	mul	w8, w0, w24
	str	w8, [x22, #16]
Lloh6:
	adrp	x8, _TP_RXT_MIN_A@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TP_RXT_MIN_A@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_t4_read_reg
	mul	w8, w0, w23
	str	w8, [x22, #20]
Lloh9:
	adrp	x8, _TP_RXT_MAX_A@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TP_RXT_MAX_A@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_t4_read_reg
	mul	w8, w0, w23
	str	w8, [x22, #24]
Lloh12:
	adrp	x8, _TP_PERS_MIN_A@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TP_PERS_MIN_A@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_t4_read_reg
	mul	w8, w0, w23
	str	w8, [x22, #28]
Lloh15:
	adrp	x8, _TP_PERS_MAX_A@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TP_PERS_MAX_A@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_t4_read_reg
	mul	w8, w0, w23
	str	w8, [x22, #32]
Lloh18:
	adrp	x8, _TP_KEEP_IDLE_A@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TP_KEEP_IDLE_A@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_t4_read_reg
	mul	w8, w0, w23
	str	w8, [x22, #36]
Lloh21:
	adrp	x8, _TP_KEEP_INTVL_A@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TP_KEEP_INTVL_A@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_t4_read_reg
	mul	w8, w0, w23
	str	w8, [x22, #40]
Lloh24:
	adrp	x8, _TP_INIT_SRTT_A@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TP_INIT_SRTT_A@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_t4_read_reg
	bl	_INITSRTT_G
	mul	w8, w0, w23
	str	w8, [x22, #44]
Lloh27:
	adrp	x8, _TP_FINWAIT2_TIMER_A@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TP_FINWAIT2_TIMER_A@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_t4_read_reg
	mul	w8, w0, w23
	str	w8, [x22, #48]
	mov	x1, sp
	mov	x0, x20
	mov	x2, x19
	bl	_cudbg_write_and_release_buff
	b	LBB0_4
LBB0_3:
Lloh30:
	adrp	x8, _CUDBG_STATUS_CCLK_NOT_DEFINED@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CUDBG_STATUS_CCLK_NOT_DEFINED@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
LBB0_4:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_CUDBG_STATUS_CCLK_NOT_DEFINED,4,2 ; @CUDBG_STATUS_CCLK_NOT_DEFINED
	.comm	_TP_TIMER_RESOLUTION_A,4,2      ; @TP_TIMER_RESOLUTION_A
	.comm	_TP_DACK_TIMER_A,4,2            ; @TP_DACK_TIMER_A
	.comm	_TP_RXT_MIN_A,4,2               ; @TP_RXT_MIN_A
	.comm	_TP_RXT_MAX_A,4,2               ; @TP_RXT_MAX_A
	.comm	_TP_PERS_MIN_A,4,2              ; @TP_PERS_MIN_A
	.comm	_TP_PERS_MAX_A,4,2              ; @TP_PERS_MAX_A
	.comm	_TP_KEEP_IDLE_A,4,2             ; @TP_KEEP_IDLE_A
	.comm	_TP_KEEP_INTVL_A,4,2            ; @TP_KEEP_INTVL_A
	.comm	_TP_INIT_SRTT_A,4,2             ; @TP_INIT_SRTT_A
	.comm	_TP_FINWAIT2_TIMER_A,4,2        ; @TP_FINWAIT2_TIMER_A
.subsections_via_symbols
