	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_collect_tp_la            ## -- Begin function cudbg_collect_tp_la
	.p2align	4, 0x90
_cudbg_collect_tp_la:                   ## @cudbg_collect_tp_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	_TPLA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	16(,%rax,4), %edx
	leaq	-48(%rbp), %rcx
	callq	_cudbg_get_buff
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %r12
	movq	_TP_DBG_LA_CONFIG_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t4_read_reg
	movl	%eax, %edi
	callq	_DBGLAMODE_G
	movl	%eax, 8(%r12)
	movq	(%r12), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_t4_tp_read_la
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_cudbg_write_and_release_buff
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TPLA_SIZE,4,2                  ## @TPLA_SIZE
	.comm	_TP_DBG_LA_CONFIG_A,4,2         ## @TP_DBG_LA_CONFIG_A
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_collect_tp_la            ; -- Begin function cudbg_collect_tp_la
	.p2align	2
_cudbg_collect_tp_la:                   ; @cudbg_collect_tp_la
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
	stp	xzr, xzr, [sp]
Lloh0:
	adrp	x8, _TPLA_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TPLA_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w8, #2
	add	w2, w8, #16
	mov	x3, sp
	bl	_cudbg_get_buff
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x22, [sp]
Lloh3:
	adrp	x8, _TP_DBG_LA_CONFIG_A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TP_DBG_LA_CONFIG_A@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_t4_read_reg
	bl	_DBGLAMODE_G
	str	w0, [x22, #8]
	ldr	x1, [x22]
	mov	x0, x21
	mov	x2, #0
	bl	_t4_tp_read_la
	mov	x1, sp
	mov	x0, x20
	mov	x2, x19
	bl	_cudbg_write_and_release_buff
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TPLA_SIZE,4,2                  ; @TPLA_SIZE
	.comm	_TP_DBG_LA_CONFIG_A,4,2         ; @TP_DBG_LA_CONFIG_A
.subsections_via_symbols
