	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cudbg_read_tid
_cudbg_read_tid:                        ## @cudbg_read_tid
	.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, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %r15
	movq	_NUM_LE_DB_DBGI_REQ_DATA_INSTANCES@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_LE_DB_DBGI_REQ_DATA_A@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rbx
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_t4_write_reg
	incq	%r13
	movslq	(%r12), %rax
	addl	$4, %ebx
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_3:
	movl	$4, %edi
	callq	_DBGICMD_V
	movl	%eax, %r12d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_DBGITID_V
	movl	%eax, %r13d
	orl	%r12d, %r13d
	movq	_LE_DB_DBGI_REQ_TCAM_CMD_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_t4_write_reg
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%r13d, (%r14)
	movq	_DBGICMDSTRT_F@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$1, %edi
	callq	_DBGICMDMODE_V
	movl	%eax, %r12d
	orl	%ebx, %r12d
	movq	_LE_DB_DBGI_CONFIG_A@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_t4_write_reg
	movl	%r12d, 4(%r14)
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_t4_read_reg
	movq	_DBGICMDBUSY_F@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_12
## %bb.4:
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_t4_read_reg
	testl	%eax, (%r12)
	je	LBB0_12
## %bb.5:
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_t4_read_reg
	testl	%eax, (%r12)
	je	LBB0_12
## %bb.6:
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_t4_read_reg
	testl	%eax, (%r12)
	je	LBB0_12
## %bb.7:
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_t4_read_reg
	testl	%eax, (%r12)
	je	LBB0_12
## %bb.8:
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_t4_read_reg
	testl	%eax, (%r12)
	je	LBB0_12
## %bb.9:
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_t4_read_reg
	testl	%eax, (%r12)
	je	LBB0_12
## %bb.10:
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_t4_read_reg
	jmp	LBB0_11
LBB0_12:
	movq	_LE_DB_DBGI_RSP_STATUS_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_t4_read_reg
	movl	%eax, 8(%r14)
	testb	$1, %al
	jne	LBB0_13
LBB0_11:
	movq	_CUDBG_SYSTEM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_13:
	movq	_NUM_LE_DB_DBGI_RSP_DATA_INSTANCES@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	movq	%r14, %r12
	jle	LBB0_16
## %bb.14:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rbx
	movq	_LE_DB_DBGI_RSP_DATA_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_t4_read_reg
	movq	16(%r12), %rcx
	movq	%rax, (%rcx,%r14,8)
	incq	%r14
	movslq	(%r13), %rax
	addl	$4, %ebx
	cmpq	%rax, %r14
	jl	LBB0_15
LBB0_16:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%r12)
	xorl	%eax, %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_LE_DB_DBGI_REQ_DATA_INSTANCES,4,2 ## @NUM_LE_DB_DBGI_REQ_DATA_INSTANCES
	.comm	_LE_DB_DBGI_REQ_DATA_A,8,3      ## @LE_DB_DBGI_REQ_DATA_A
	.comm	_LE_DB_DBGI_REQ_TCAM_CMD_A,8,3  ## @LE_DB_DBGI_REQ_TCAM_CMD_A
	.comm	_DBGICMDSTRT_F,4,2              ## @DBGICMDSTRT_F
	.comm	_LE_DB_DBGI_CONFIG_A,8,3        ## @LE_DB_DBGI_CONFIG_A
	.comm	_DBGICMDBUSY_F,4,2              ## @DBGICMDBUSY_F
	.comm	_CUDBG_SYSTEM_ERROR,4,2         ## @CUDBG_SYSTEM_ERROR
	.comm	_LE_DB_DBGI_RSP_STATUS_A,8,3    ## @LE_DB_DBGI_RSP_STATUS_A
	.comm	_NUM_LE_DB_DBGI_RSP_DATA_INSTANCES,4,2 ## @NUM_LE_DB_DBGI_RSP_DATA_INSTANCES
	.comm	_LE_DB_DBGI_RSP_DATA_A,8,3      ## @LE_DB_DBGI_RSP_DATA_A
	.no_dead_strip	_cudbg_read_tid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cudbg_read_tid
_cudbg_read_tid:                        ; @cudbg_read_tid
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x21, x1
	ldr	x20, [x0]
Lloh0:
	adrp	x22, _NUM_LE_DB_DBGI_REQ_DATA_INSTANCES@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NUM_LE_DB_DBGI_REQ_DATA_INSTANCES@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w23, #0
	mov	x24, #0
Lloh2:
	adrp	x25, _LE_DB_DBGI_REQ_DATA_A@GOTPAGE
Lloh3:
	ldr	x25, [x25, _LE_DB_DBGI_REQ_DATA_A@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	add	x1, x8, w23, sxtw
	mov	x0, x20
	mov	w2, #0
	bl	_t4_write_reg
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	w23, w23, #4
	cmp	x24, x8
	b.lt	LBB0_2
LBB0_3:
	mov	w0, #4
	bl	_DBGICMD_V
	mov	x22, x0
	mov	x0, x21
	bl	_DBGITID_V
	orr	w22, w0, w22
Lloh4:
	adrp	x8, _LE_DB_DBGI_REQ_TCAM_CMD_A@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LE_DB_DBGI_REQ_TCAM_CMD_A@GOTPAGEOFF]
Lloh6:
	ldr	x1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_t4_write_reg
	str	w22, [x19]
Lloh7:
	adrp	x8, _DBGICMDSTRT_F@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DBGICMDSTRT_F@GOTPAGEOFF]
Lloh9:
	ldr	w22, [x8]
	mov	w0, #1
	bl	_DBGICMDMODE_V
	orr	w22, w0, w22
Lloh10:
	adrp	x23, _LE_DB_DBGI_CONFIG_A@GOTPAGE
Lloh11:
	ldr	x23, [x23, _LE_DB_DBGI_CONFIG_A@GOTPAGEOFF]
	ldr	x1, [x23]
	mov	x0, x20
	mov	x2, x22
	bl	_t4_write_reg
	str	w22, [x19, #4]
	ldr	x1, [x23]
	mov	x0, x20
	bl	_t4_read_reg
Lloh12:
	adrp	x22, _DBGICMDBUSY_F@GOTPAGE
Lloh13:
	ldr	x22, [x22, _DBGICMDBUSY_F@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.4:
	ldr	x1, [x23]
	mov	x0, x20
	bl	_t4_read_reg
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.5:
	ldr	x1, [x23]
	mov	x0, x20
	bl	_t4_read_reg
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.6:
	ldr	x1, [x23]
	mov	x0, x20
	bl	_t4_read_reg
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.7:
	ldr	x1, [x23]
	mov	x0, x20
	bl	_t4_read_reg
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.8:
	ldr	x1, [x23]
	mov	x0, x20
	bl	_t4_read_reg
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.9:
	ldr	x1, [x23]
	mov	x0, x20
	bl	_t4_read_reg
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.10:
	ldr	x1, [x23]
	mov	x0, x20
	bl	_t4_read_reg
	b	LBB0_12
LBB0_11:
Lloh14:
	adrp	x8, _LE_DB_DBGI_RSP_STATUS_A@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LE_DB_DBGI_RSP_STATUS_A@GOTPAGEOFF]
Lloh16:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_t4_read_reg
	str	w0, [x19, #8]
	tbnz	w0, #0, LBB0_13
LBB0_12:
Lloh17:
	adrp	x8, _CUDBG_SYSTEM_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CUDBG_SYSTEM_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	b	LBB0_17
LBB0_13:
Lloh20:
	adrp	x22, _NUM_LE_DB_DBGI_RSP_DATA_INSTANCES@GOTPAGE
Lloh21:
	ldr	x22, [x22, _NUM_LE_DB_DBGI_RSP_DATA_INSTANCES@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.14:
	mov	w23, #0
	mov	x24, #0
Lloh22:
	adrp	x25, _LE_DB_DBGI_RSP_DATA_A@GOTPAGE
Lloh23:
	ldr	x25, [x25, _LE_DB_DBGI_RSP_DATA_A@GOTPAGEOFF]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	add	x1, x8, w23, sxtw
	mov	x0, x20
	bl	_t4_read_reg
	ldr	x8, [x19, #16]
	str	x0, [x8, x24, lsl #3]
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	w23, w23, #4
	cmp	x24, x8
	b.lt	LBB0_15
LBB0_16:
	mov	w0, #0
	str	w21, [x19, #12]
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_LE_DB_DBGI_REQ_DATA_INSTANCES,4,2 ; @NUM_LE_DB_DBGI_REQ_DATA_INSTANCES
	.comm	_LE_DB_DBGI_REQ_DATA_A,8,3      ; @LE_DB_DBGI_REQ_DATA_A
	.comm	_LE_DB_DBGI_REQ_TCAM_CMD_A,8,3  ; @LE_DB_DBGI_REQ_TCAM_CMD_A
	.comm	_DBGICMDSTRT_F,4,2              ; @DBGICMDSTRT_F
	.comm	_LE_DB_DBGI_CONFIG_A,8,3        ; @LE_DB_DBGI_CONFIG_A
	.comm	_DBGICMDBUSY_F,4,2              ; @DBGICMDBUSY_F
	.comm	_CUDBG_SYSTEM_ERROR,4,2         ; @CUDBG_SYSTEM_ERROR
	.comm	_LE_DB_DBGI_RSP_STATUS_A,8,3    ; @LE_DB_DBGI_RSP_STATUS_A
	.comm	_NUM_LE_DB_DBGI_RSP_DATA_INSTANCES,4,2 ; @NUM_LE_DB_DBGI_RSP_DATA_INSTANCES
	.comm	_LE_DB_DBGI_RSP_DATA_A,8,3      ; @LE_DB_DBGI_RSP_DATA_A
	.no_dead_strip	_cudbg_read_tid
.subsections_via_symbols
