	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_collect_mps_tcam         ## -- Begin function cudbg_collect_mps_tcam
	.p2align	4, 0x90
_cudbg_collect_mps_tcam:                ## @cudbg_collect_mps_tcam
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	(%rdi), %rax
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movl	(%rax), %r12d
	leal	(,%r12,4), %r14d
	leaq	-80(%rbp), %rcx
	movl	%r14d, %edx
	callq	_cudbg_get_buff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	testl	%r12d, %r12d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jle	LBB0_8
## %bb.2:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_cudbg_collect_tcam_index
	testl	%eax, %eax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %r14
	incl	%r15d
	cmpl	%r15d, %r12d
	jne	LBB0_3
## %bb.7:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_8
## %bb.9:
	leaq	-80(%rbp), %rsi
	movq	%r13, %rdi
	callq	_cudbg_write_and_release_buff
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_8:
	movq	_CUDBG_SYSTEM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, (%rcx)
	jmp	LBB0_5
LBB0_4:
	movl	%eax, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
LBB0_5:
	leaq	-80(%rbp), %rsi
	movq	%r13, %rdi
	callq	_cudbg_put_buff
LBB0_10:
	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_SYSTEM_ERROR,4,2         ## @CUDBG_SYSTEM_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_collect_mps_tcam         ; -- Begin function cudbg_collect_mps_tcam
	.p2align	2
_cudbg_collect_mps_tcam:                ; @cudbg_collect_mps_tcam
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
	stp	xzr, xzr, [sp]
	ldr	w26, [x8]
	lsl	w22, w26, #2
	mov	x3, sp
	mov	x2, x22
	bl	_cudbg_get_buff
	mov	x23, x0
	cbnz	w0, LBB0_10
; %bb.1:
	cmp	w26, #1
	b.lt	LBB0_7
; %bb.2:
	mov	w24, #0
	ldr	x25, [sp]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x25
	mov	x2, x24
	bl	_cudbg_collect_tcam_index
	cbnz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #4
	add	w24, w24, #1
	cmp	w26, w24
	b.ne	LBB0_3
; %bb.5:
	cbz	w22, LBB0_7
; %bb.6:
	mov	x1, sp
	mov	x0, x19
	mov	x2, x21
	bl	_cudbg_write_and_release_buff
	mov	x23, x0
	b	LBB0_10
LBB0_7:
Lloh0:
	adrp	x8, _CUDBG_SYSTEM_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CUDBG_SYSTEM_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	b	LBB0_9
LBB0_8:
	mov	x23, x0
LBB0_9:
	str	w23, [x20]
	mov	x1, sp
	mov	x0, x19
	bl	_cudbg_put_buff
LBB0_10:
	mov	x0, x23
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CUDBG_SYSTEM_ERROR,4,2         ; @CUDBG_SYSTEM_ERROR
.subsections_via_symbols
