	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_collect_ulptx_la         ## -- Begin function cudbg_collect_ulptx_la
	.p2align	4, 0x90
_cudbg_collect_ulptx_la:                ## @cudbg_collect_ulptx_la
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	leaq	-64(%rbp), %rcx
	movl	$60, %edx
	callq	_cudbg_get_buff
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r13
	movq	_CUDBG_ENTITY_SIGNATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	_CUDBG_ULPTX_LA_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movl	$48, (%r13)
	movq	_CUDBG_NUM_ULPTX@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.2:
	xorl	%edx, %edx
	movq	_ULP_TX_LA_RDDATA_0_A@GOTPCREL(%rip), %r14
	movq	_CUDBG_NUM_ULPTX_READ@GOTPCREL(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	movq	_CUDBG_NUM_ULPTX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	movq	%r12, %r14
	movq	%r13, %r12
	movq	%r15, %r13
	movq	%rbx, %r15
	jae	LBB0_7
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	shlq	$4, %rbx
	movq	_ULP_TX_LA_RDPTR_0_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_t4_read_reg
	movq	52(%r13), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rdx,8)
	movq	_ULP_TX_LA_WRPTR_0_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_t4_read_reg
	movq	44(%r13), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rdx,8)
	movq	(%r14), %rsi
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_t4_read_reg
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	36(%r13), %rcx
	movq	%rax, (%rcx,%rdx,8)
	cmpq	$0, (%r15)
	movq	%r15, %rbx
	movq	%r13, %r15
	movq	%r12, %r13
	movq	%r14, %r12
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rsi
	addq	-88(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	%r13, %rdi
	callq	_t4_read_reg
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	28(%r15), %rcx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, (%rcx,%r14,8)
	incq	%r14
	cmpq	(%rbx), %r14
	jb	LBB0_5
	jmp	LBB0_6
LBB0_7:
	movq	_CUDBG_NUM_ULPTX_ASIC_READ@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_10
## %bb.8:
	xorl	%r14d, %r14d
	movq	_ULP_TX_ASIC_DEBUG_CTRL_A@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_t4_write_reg
	movq	(%r15), %rsi
	movq	%r12, %rdi
	callq	_t4_read_reg
	movq	20(%r13), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	_ULP_TX_ASIC_DEBUG_0_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_t4_read_reg
	movq	12(%r13), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	%rax, (%rcx)
	movq	_ULP_TX_ASIC_DEBUG_1_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_t4_read_reg
	movq	12(%r13), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	%rax, 8(%rcx)
	movq	_ULP_TX_ASIC_DEBUG_2_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_t4_read_reg
	movq	12(%r13), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	%rax, 16(%rcx)
	movq	_ULP_TX_ASIC_DEBUG_3_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_t4_read_reg
	movq	12(%r13), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	%rax, 24(%rcx)
	movq	_ULP_TX_ASIC_DEBUG_4_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_t4_read_reg
	movq	12(%r13), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	%rax, 32(%rcx)
	movq	_PM_RX_BASE_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_t4_read_reg
	movq	12(%r13), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	%rax, 40(%rcx)
	incq	%r14
	cmpq	(%rbx), %r14
	jb	LBB0_9
LBB0_10:
	leaq	-64(%rbp), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_cudbg_write_and_release_buff
LBB0_11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CUDBG_ENTITY_SIGNATURE,4,2     ## @CUDBG_ENTITY_SIGNATURE
	.comm	_CUDBG_ULPTX_LA_REV,4,2         ## @CUDBG_ULPTX_LA_REV
	.comm	_CUDBG_NUM_ULPTX,8,3            ## @CUDBG_NUM_ULPTX
	.comm	_ULP_TX_LA_RDPTR_0_A,8,3        ## @ULP_TX_LA_RDPTR_0_A
	.comm	_ULP_TX_LA_WRPTR_0_A,8,3        ## @ULP_TX_LA_WRPTR_0_A
	.comm	_ULP_TX_LA_RDDATA_0_A,8,3       ## @ULP_TX_LA_RDDATA_0_A
	.comm	_CUDBG_NUM_ULPTX_READ,8,3       ## @CUDBG_NUM_ULPTX_READ
	.comm	_CUDBG_NUM_ULPTX_ASIC_READ,8,3  ## @CUDBG_NUM_ULPTX_ASIC_READ
	.comm	_ULP_TX_ASIC_DEBUG_CTRL_A,8,3   ## @ULP_TX_ASIC_DEBUG_CTRL_A
	.comm	_ULP_TX_ASIC_DEBUG_0_A,8,3      ## @ULP_TX_ASIC_DEBUG_0_A
	.comm	_ULP_TX_ASIC_DEBUG_1_A,8,3      ## @ULP_TX_ASIC_DEBUG_1_A
	.comm	_ULP_TX_ASIC_DEBUG_2_A,8,3      ## @ULP_TX_ASIC_DEBUG_2_A
	.comm	_ULP_TX_ASIC_DEBUG_3_A,8,3      ## @ULP_TX_ASIC_DEBUG_3_A
	.comm	_ULP_TX_ASIC_DEBUG_4_A,8,3      ## @ULP_TX_ASIC_DEBUG_4_A
	.comm	_PM_RX_BASE_ADDR,8,3            ## @PM_RX_BASE_ADDR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_collect_ulptx_la         ; -- Begin function cudbg_collect_ulptx_la
	.p2align	2
_cudbg_collect_ulptx_la:                ; @cudbg_collect_ulptx_la
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
	stp	xzr, xzr, [sp, #16]
	add	x3, sp, #16
	mov	w2, #60
	bl	_cudbg_get_buff
	cbnz	w0, LBB0_11
; %bb.1:
	stp	x20, x19, [sp]                  ; 16-byte Folded Spill
Lloh0:
	adrp	x8, _CUDBG_ENTITY_SIGNATURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CUDBG_ENTITY_SIGNATURE@GOTPAGEOFF]
	ldr	x22, [sp, #16]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22, #8]
Lloh3:
	adrp	x8, _CUDBG_ULPTX_LA_REV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CUDBG_ULPTX_LA_REV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #48
	stp	w9, w8, [x22]
Lloh6:
	adrp	x19, _CUDBG_NUM_ULPTX@GOTPAGE
Lloh7:
	ldr	x19, [x19, _CUDBG_NUM_ULPTX@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.2:
	mov	x20, #0
Lloh8:
	adrp	x23, _ULP_TX_LA_RDPTR_0_A@GOTPAGE
Lloh9:
	ldr	x23, [x23, _ULP_TX_LA_RDPTR_0_A@GOTPAGEOFF]
Lloh10:
	adrp	x24, _ULP_TX_LA_WRPTR_0_A@GOTPAGE
Lloh11:
	ldr	x24, [x24, _ULP_TX_LA_WRPTR_0_A@GOTPAGEOFF]
Lloh12:
	adrp	x25, _ULP_TX_LA_RDDATA_0_A@GOTPAGE
Lloh13:
	ldr	x25, [x25, _ULP_TX_LA_RDDATA_0_A@GOTPAGEOFF]
Lloh14:
	adrp	x26, _CUDBG_NUM_ULPTX_READ@GOTPAGE
Lloh15:
	ldr	x26, [x26, _CUDBG_NUM_ULPTX_READ@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	ldr	x8, [x19]
	cmp	x20, x8
	b.hs	LBB0_7
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [x23]
	lsl	x27, x20, #4
	add	x1, x8, x27
	mov	x0, x21
	bl	_t4_read_reg
	ldur	x8, [x22, #52]
	lsl	x28, x20, #3
	str	x0, [x8, x28]
	ldr	x8, [x24]
	add	x1, x8, x27
	mov	x0, x21
	bl	_t4_read_reg
	ldur	x8, [x22, #44]
	str	x0, [x8, x28]
	ldr	x8, [x25]
	add	x1, x8, x27
	mov	x0, x21
	bl	_t4_read_reg
	ldur	x8, [x22, #36]
	str	x0, [x8, x28]
	ldr	x8, [x26]
	cbz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, #0
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25]
	add	x1, x8, x27
	mov	x0, x21
	bl	_t4_read_reg
	ldur	x8, [x22, #28]
	ldr	x8, [x8, x20, lsl #3]
	str	x0, [x8, x28, lsl #3]
	add	x28, x28, #1
	ldr	x8, [x26]
	cmp	x28, x8
	b.lo	LBB0_6
	b	LBB0_3
LBB0_7:
Lloh16:
	adrp	x27, _CUDBG_NUM_ULPTX_ASIC_READ@GOTPAGE
Lloh17:
	ldr	x27, [x27, _CUDBG_NUM_ULPTX_ASIC_READ@GOTPAGEOFF]
	ldr	x8, [x27]
	cbz	x8, LBB0_10
; %bb.8:
	mov	x24, #0
Lloh18:
	adrp	x25, _ULP_TX_ASIC_DEBUG_CTRL_A@GOTPAGE
Lloh19:
	ldr	x25, [x25, _ULP_TX_ASIC_DEBUG_CTRL_A@GOTPAGEOFF]
Lloh20:
	adrp	x28, _ULP_TX_ASIC_DEBUG_2_A@GOTPAGE
Lloh21:
	ldr	x28, [x28, _ULP_TX_ASIC_DEBUG_2_A@GOTPAGEOFF]
Lloh22:
	adrp	x19, _ULP_TX_ASIC_DEBUG_3_A@GOTPAGE
Lloh23:
	ldr	x19, [x19, _ULP_TX_ASIC_DEBUG_3_A@GOTPAGEOFF]
Lloh24:
	adrp	x20, _ULP_TX_ASIC_DEBUG_4_A@GOTPAGE
Lloh25:
	ldr	x20, [x20, _ULP_TX_ASIC_DEBUG_4_A@GOTPAGEOFF]
Lloh26:
	adrp	x23, _PM_RX_BASE_ADDR@GOTPAGE
Lloh27:
	ldr	x23, [x23, _PM_RX_BASE_ADDR@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x25]
	mov	x0, x21
	mov	w2, #1
	bl	_t4_write_reg
	ldr	x1, [x25]
	mov	x0, x21
	bl	_t4_read_reg
	ldur	x8, [x22, #20]
	lsl	x26, x24, #3
	str	x0, [x8, x26]
Lloh28:
	adrp	x8, _ULP_TX_ASIC_DEBUG_0_A@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ULP_TX_ASIC_DEBUG_0_A@GOTPAGEOFF]
Lloh30:
	ldr	x1, [x8]
	mov	x0, x21
	bl	_t4_read_reg
	ldur	x8, [x22, #12]
	ldr	x8, [x8, x26]
	str	x0, [x8]
Lloh31:
	adrp	x8, _ULP_TX_ASIC_DEBUG_1_A@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ULP_TX_ASIC_DEBUG_1_A@GOTPAGEOFF]
Lloh33:
	ldr	x1, [x8]
	mov	x0, x21
	bl	_t4_read_reg
	ldur	x8, [x22, #12]
	ldr	x8, [x8, x26]
	str	x0, [x8, #8]
	ldr	x1, [x28]
	mov	x0, x21
	bl	_t4_read_reg
	ldur	x8, [x22, #12]
	ldr	x8, [x8, x26]
	str	x0, [x8, #16]
	ldr	x1, [x19]
	mov	x0, x21
	bl	_t4_read_reg
	ldur	x8, [x22, #12]
	ldr	x8, [x8, x26]
	str	x0, [x8, #24]
	ldr	x1, [x20]
	mov	x0, x21
	bl	_t4_read_reg
	ldur	x8, [x22, #12]
	ldr	x8, [x8, x26]
	str	x0, [x8, #32]
	ldr	x1, [x23]
	mov	x0, x21
	bl	_t4_read_reg
	ldur	x8, [x22, #12]
	ldr	x8, [x8, x26]
	str	x0, [x8, #40]
	add	x24, x24, #1
	ldr	x8, [x27]
	cmp	x24, x8
	b.lo	LBB0_9
LBB0_10:
	add	x1, sp, #16
	ldp	x0, x2, [sp]                    ; 16-byte Folded Reload
	bl	_cudbg_write_and_release_buff
LBB0_11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_CUDBG_ENTITY_SIGNATURE,4,2     ; @CUDBG_ENTITY_SIGNATURE
	.comm	_CUDBG_ULPTX_LA_REV,4,2         ; @CUDBG_ULPTX_LA_REV
	.comm	_CUDBG_NUM_ULPTX,8,3            ; @CUDBG_NUM_ULPTX
	.comm	_ULP_TX_LA_RDPTR_0_A,8,3        ; @ULP_TX_LA_RDPTR_0_A
	.comm	_ULP_TX_LA_WRPTR_0_A,8,3        ; @ULP_TX_LA_WRPTR_0_A
	.comm	_ULP_TX_LA_RDDATA_0_A,8,3       ; @ULP_TX_LA_RDDATA_0_A
	.comm	_CUDBG_NUM_ULPTX_READ,8,3       ; @CUDBG_NUM_ULPTX_READ
	.comm	_CUDBG_NUM_ULPTX_ASIC_READ,8,3  ; @CUDBG_NUM_ULPTX_ASIC_READ
	.comm	_ULP_TX_ASIC_DEBUG_CTRL_A,8,3   ; @ULP_TX_ASIC_DEBUG_CTRL_A
	.comm	_ULP_TX_ASIC_DEBUG_0_A,8,3      ; @ULP_TX_ASIC_DEBUG_0_A
	.comm	_ULP_TX_ASIC_DEBUG_1_A,8,3      ; @ULP_TX_ASIC_DEBUG_1_A
	.comm	_ULP_TX_ASIC_DEBUG_2_A,8,3      ; @ULP_TX_ASIC_DEBUG_2_A
	.comm	_ULP_TX_ASIC_DEBUG_3_A,8,3      ; @ULP_TX_ASIC_DEBUG_3_A
	.comm	_ULP_TX_ASIC_DEBUG_4_A,8,3      ; @ULP_TX_ASIC_DEBUG_4_A
	.comm	_PM_RX_BASE_ADDR,8,3            ; @PM_RX_BASE_ADDR
.subsections_via_symbols
