	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_collect_pbt_tables       ## -- Begin function cudbg_collect_pbt_tables
	.p2align	4, 0x90
_cudbg_collect_pbt_tables:              ## @cudbg_collect_pbt_tables
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	leaq	-80(%rbp), %rcx
	movl	$32, %edx
	callq	_cudbg_get_buff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.1:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r14
	movq	_CUDBG_CHAC_PBT_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_CUDBG_PBT_DYNAMIC_ENTRIES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_7
## %bb.2:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r15,%r12), %rsi
	movq	24(%r14), %rcx
	addq	%r12, %rcx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_t4_cim_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movq	_CUDBG_PBT_DYNAMIC_ENTRIES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r12
	cmpq	%rax, %r13
	jl	LBB0_4
## %bb.6:
	movq	_CUDBG_CHAC_PBT_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_7:
	movq	_CUDBG_PBT_STATIC_ENTRIES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.8:
	addq	$64, %r15
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%r15,%r12), %rsi
	movq	16(%r14), %rcx
	addq	%r12, %rcx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_t4_cim_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	incq	%r13
	movq	_CUDBG_PBT_STATIC_ENTRIES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r12
	cmpq	%rax, %r13
	jl	LBB0_10
LBB0_11:
	movq	_CUDBG_LRF_ENTRIES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_15
## %bb.12:
	movq	_CUDBG_CHAC_PBT_LRF@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%r15), %rsi
	movq	8(%r14), %rcx
	addq	%r15, %rcx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_t4_cim_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%r13
	movq	_CUDBG_LRF_ENTRIES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r15
	cmpq	%rax, %r13
	jl	LBB0_14
LBB0_15:
	movq	_CUDBG_PBT_DATA_ENTRIES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_19
## %bb.16:
	movq	_CUDBG_CHAC_PBT_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%r15), %rsi
	movq	(%r14), %rcx
	addq	%r15, %rcx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_t4_cim_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.17:                              ##   in Loop: Header=BB0_18 Depth=1
	incq	%r13
	movq	_CUDBG_PBT_DATA_ENTRIES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r15
	cmpq	%rax, %r13
	jl	LBB0_18
LBB0_19:
	leaq	-80(%rbp), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_cudbg_write_and_release_buff
	movl	%eax, %ebx
	jmp	LBB0_20
LBB0_5:
	movl	%eax, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	leaq	-80(%rbp), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_cudbg_put_buff
LBB0_20:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CUDBG_CHAC_PBT_ADDR,8,3        ## @CUDBG_CHAC_PBT_ADDR
	.comm	_CUDBG_PBT_DYNAMIC_ENTRIES,4,2  ## @CUDBG_PBT_DYNAMIC_ENTRIES
	.comm	_CUDBG_PBT_STATIC_ENTRIES,4,2   ## @CUDBG_PBT_STATIC_ENTRIES
	.comm	_CUDBG_CHAC_PBT_LRF,8,3         ## @CUDBG_CHAC_PBT_LRF
	.comm	_CUDBG_LRF_ENTRIES,4,2          ## @CUDBG_LRF_ENTRIES
	.comm	_CUDBG_CHAC_PBT_DATA,8,3        ## @CUDBG_CHAC_PBT_DATA
	.comm	_CUDBG_PBT_DATA_ENTRIES,4,2     ## @CUDBG_PBT_DATA_ENTRIES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_collect_pbt_tables       ; -- Begin function cudbg_collect_pbt_tables
	.p2align	2
_cudbg_collect_pbt_tables:              ; @cudbg_collect_pbt_tables
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0]
	stp	xzr, xzr, [sp]
	mov	x3, sp
	mov	w2, #32
	bl	_cudbg_get_buff
	mov	x23, x0
	cbnz	w0, LBB0_22
; %bb.1:
Lloh0:
	adrp	x8, _CUDBG_CHAC_PBT_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CUDBG_CHAC_PBT_ADDR@GOTPAGEOFF]
	ldr	x24, [sp]
Lloh2:
	ldr	x25, [x8]
Lloh3:
	adrp	x27, _CUDBG_PBT_DYNAMIC_ENTRIES@GOTPAGE
Lloh4:
	ldr	x27, [x27, _CUDBG_PBT_DYNAMIC_ENTRIES@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x26, x20
	mov	x28, #0
	mov	x20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x25, x28
	ldr	x8, [x24, #24]
	add	x3, x8, x28
	mov	x0, x22
	mov	w2, #1
	bl	_t4_cim_read
	cbnz	w0, LBB0_20
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x27]
	add	x28, x28, #4
	cmp	x20, x8
	b.lt	LBB0_3
; %bb.5:
Lloh5:
	adrp	x8, _CUDBG_CHAC_PBT_ADDR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CUDBG_CHAC_PBT_ADDR@GOTPAGEOFF]
Lloh7:
	ldr	x25, [x8]
	mov	x20, x26
LBB0_6:
Lloh8:
	adrp	x26, _CUDBG_PBT_STATIC_ENTRIES@GOTPAGE
Lloh9:
	ldr	x26, [x26, _CUDBG_PBT_STATIC_ENTRIES@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x27, #0
	mov	x28, #0
	add	x25, x25, #64
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x25, x27
	ldr	x8, [x24, #16]
	add	x3, x8, x27
	mov	x0, x22
	mov	w2, #1
	bl	_t4_cim_read
	cbnz	w0, LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x28, x28, #1
	ldrsw	x8, [x26]
	add	x27, x27, #4
	cmp	x28, x8
	b.lt	LBB0_8
LBB0_10:
Lloh10:
	adrp	x25, _CUDBG_LRF_ENTRIES@GOTPAGE
Lloh11:
	ldr	x25, [x25, _CUDBG_LRF_ENTRIES@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.11:
	mov	x26, #0
	mov	x27, #0
Lloh12:
	adrp	x8, _CUDBG_CHAC_PBT_LRF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CUDBG_CHAC_PBT_LRF@GOTPAGEOFF]
Lloh14:
	ldr	x28, [x8]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x1, x28, x26
	ldr	x8, [x24, #8]
	add	x3, x8, x26
	mov	x0, x22
	mov	w2, #1
	bl	_t4_cim_read
	cbnz	w0, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x25]
	add	x26, x26, #4
	cmp	x27, x8
	b.lt	LBB0_12
LBB0_14:
Lloh15:
	adrp	x25, _CUDBG_PBT_DATA_ENTRIES@GOTPAGE
Lloh16:
	ldr	x25, [x25, _CUDBG_PBT_DATA_ENTRIES@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.15:
	mov	x26, #0
	mov	x27, #0
Lloh17:
	adrp	x8, _CUDBG_CHAC_PBT_DATA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CUDBG_CHAC_PBT_DATA@GOTPAGEOFF]
Lloh19:
	ldr	x28, [x8]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	add	x1, x28, x26
	ldr	x8, [x24]
	add	x3, x8, x26
	mov	x0, x22
	mov	w2, #1
	bl	_t4_cim_read
	cbnz	w0, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x25]
	add	x26, x26, #4
	cmp	x27, x8
	b.lt	LBB0_16
LBB0_18:
	mov	x1, sp
	mov	x0, x19
	mov	x2, x21
	bl	_cudbg_write_and_release_buff
	mov	x23, x0
	b	LBB0_22
LBB0_19:
	mov	x23, x0
	str	w0, [x20]
	b	LBB0_21
LBB0_20:
	mov	x23, x0
	str	w0, [x26]
LBB0_21:
	mov	x1, sp
	mov	x0, x19
	bl	_cudbg_put_buff
LBB0_22:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CUDBG_CHAC_PBT_ADDR,8,3        ; @CUDBG_CHAC_PBT_ADDR
	.comm	_CUDBG_PBT_DYNAMIC_ENTRIES,4,2  ; @CUDBG_PBT_DYNAMIC_ENTRIES
	.comm	_CUDBG_PBT_STATIC_ENTRIES,4,2   ; @CUDBG_PBT_STATIC_ENTRIES
	.comm	_CUDBG_CHAC_PBT_LRF,8,3         ; @CUDBG_CHAC_PBT_LRF
	.comm	_CUDBG_LRF_ENTRIES,4,2          ; @CUDBG_LRF_ENTRIES
	.comm	_CUDBG_CHAC_PBT_DATA,8,3        ; @CUDBG_CHAC_PBT_DATA
	.comm	_CUDBG_PBT_DATA_ENTRIES,4,2     ; @CUDBG_PBT_DATA_ENTRIES
.subsections_via_symbols
