	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_collect_cim_la           ## -- Begin function cudbg_collect_cim_la
	.p2align	4, 0x90
_cudbg_collect_cim_la:                  ## @cudbg_collect_cim_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	$0, -44(%rbp)
	movl	4(%r13), %edi
	callq	_is_t6
	movl	(%r13), %ecx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	leal	(%rax,%rax,4), %eax
	leal	40(,%rax,8), %edx
	jmp	LBB0_3
LBB0_2:
	leal	7(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	shll	$2, %edx
	andl	$-32, %edx
LBB0_3:
	addl	$4, %edx
	leaq	-64(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_cudbg_get_buff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	_UP_UP_DBG_LA_CFG_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_t4_cim_read
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	movl	%eax, %ebx
	movl	%eax, (%r14)
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_cudbg_put_buff
	jmp	LBB0_8
LBB0_6:
	movq	-64(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	-64(%rbp), %rsi
	addq	$4, %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_t4_cim_read_la
	testl	%eax, %eax
	js	LBB0_5
## %bb.7:
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_cudbg_write_and_release_buff
	movl	%eax, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UP_UP_DBG_LA_CFG_A,4,2         ## @UP_UP_DBG_LA_CFG_A
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_collect_cim_la           ; -- Begin function cudbg_collect_cim_la
	.p2align	2
_cudbg_collect_cim_la:                  ; @cudbg_collect_cim_la
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0]
	stp	xzr, xzr, [sp, #16]
	str	wzr, [sp, #12]
	ldr	w0, [x22, #4]
	bl	_is_t6
	ldr	w8, [x22]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w9, w9, w8, lt
	lsl	w9, w9, #2
	and	w9, w9, #0xffffffe0
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	smull	x8, w8, w10
	lsr	x10, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w10
	mov	w10, #40
	mul	w8, w8, w10
	add	w8, w8, #40
	cmp	x0, #0
	csel	w8, w9, w8, eq
	add	w2, w8, #4
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x21
	bl	_cudbg_get_buff
	mov	x23, x0
	cbnz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _UP_UP_DBG_LA_CFG_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UP_UP_DBG_LA_CFG_A@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x22
	mov	w2, #1
	bl	_t4_cim_read
	cbz	w0, LBB0_3
LBB0_2:
	mov	x23, x0
	str	w0, [x20]
	add	x1, sp, #16
	mov	x0, x19
	bl	_cudbg_put_buff
	b	LBB0_5
LBB0_3:
	ldr	x0, [sp, #16]
	add	x1, sp, #12
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [sp, #16]
	add	x1, x8, #4
	mov	x0, x22
	mov	x2, #0
	bl	_t4_cim_read_la
	tbnz	w0, #31, LBB0_2
; %bb.4:
	add	x1, sp, #16
	mov	x0, x19
	mov	x2, x21
	bl	_cudbg_write_and_release_buff
	mov	x23, x0
LBB0_5:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UP_UP_DBG_LA_CFG_A,4,2         ; @UP_UP_DBG_LA_CFG_A
.subsections_via_symbols
