	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_collect_hw_sched         ## -- Begin function cudbg_collect_hw_sched
	.p2align	4, 0x90
_cudbg_collect_hw_sched:                ## @cudbg_collect_hw_sched
	.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), %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	cmpl	$0, (%r12)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-64(%rbp), %rcx
	movl	$32, %edx
	callq	_cudbg_get_buff
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r13
	movq	_TP_TX_MOD_QUEUE_REQ_MAP_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_t4_read_reg
	movl	%eax, 24(%r13)
	movq	_TP_MOD_CONFIG_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_t4_read_reg
	movl	%eax, %edi
	callq	_TIMERMODE_G
	movl	%eax, 20(%r13)
	movl	16(%r13), %esi
	movq	%r12, %rdi
	callq	_t4_read_pace_tbl
	movq	_NTX_SCHED@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.4:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdx
	addq	%r15, %rdx
	movq	(%r13), %rcx
	addq	%r15, %rcx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$1, %r8d
	callq	_t4_get_tx_sched
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	leaq	-64(%rbp), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_cudbg_write_and_release_buff
	jmp	LBB0_7
LBB0_1:
	movq	_CUDBG_STATUS_CCLK_NOT_DEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	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_TX_MOD_QUEUE_REQ_MAP_A,4,2  ## @TP_TX_MOD_QUEUE_REQ_MAP_A
	.comm	_TP_MOD_CONFIG_A,4,2            ## @TP_MOD_CONFIG_A
	.comm	_NTX_SCHED,4,2                  ## @NTX_SCHED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_collect_hw_sched         ; -- Begin function cudbg_collect_hw_sched
	.p2align	2
_cudbg_collect_hw_sched:                ; @cudbg_collect_hw_sched
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x21, [x0]
	stp	xzr, xzr, [sp]
	ldr	w8, [x21]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x3, sp
	mov	w2, #32
	bl	_cudbg_get_buff
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	x23, [sp]
Lloh0:
	adrp	x8, _TP_TX_MOD_QUEUE_REQ_MAP_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TP_TX_MOD_QUEUE_REQ_MAP_A@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_t4_read_reg
	str	w0, [x23, #24]
Lloh3:
	adrp	x8, _TP_MOD_CONFIG_A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TP_MOD_CONFIG_A@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_t4_read_reg
	bl	_TIMERMODE_G
	str	w0, [x23, #20]
	ldr	w1, [x23, #16]
	mov	x0, x21
	bl	_t4_read_pace_tbl
Lloh6:
	adrp	x24, _NTX_SCHED@GOTPAGE
Lloh7:
	ldr	x24, [x24, _NTX_SCHED@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x25, #0
	mov	x22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x23]
	add	x2, x8, x25
	add	x3, x9, x25
	mov	x0, x21
	mov	x1, x22
	mov	w4, #1
	bl	_t4_get_tx_sched
	add	x22, x22, #1
	ldrsw	x8, [x24]
	add	x25, x25, #4
	cmp	x22, x8
	b.lt	LBB0_4
LBB0_5:
	mov	x1, sp
	mov	x0, x20
	mov	x2, x19
	bl	_cudbg_write_and_release_buff
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _CUDBG_STATUS_CCLK_NOT_DEFINED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CUDBG_STATUS_CCLK_NOT_DEFINED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CUDBG_STATUS_CCLK_NOT_DEFINED,4,2 ; @CUDBG_STATUS_CCLK_NOT_DEFINED
	.comm	_TP_TX_MOD_QUEUE_REQ_MAP_A,4,2  ; @TP_TX_MOD_QUEUE_REQ_MAP_A
	.comm	_TP_MOD_CONFIG_A,4,2            ; @TP_MOD_CONFIG_A
	.comm	_NTX_SCHED,4,2                  ; @NTX_SCHED
.subsections_via_symbols
