	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cudbg_collect_tcam_index
_cudbg_collect_tcam_index:              ## @cudbg_collect_tcam_index
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	movl	8(%r13), %edi
	callq	_CHELSIO_CHIP_VERSION
	movq	_CHELSIO_T6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	jge	LBB0_1
## %bb.8:
	movl	%r12d, %edi
	callq	_MPS_CLS_TCAM_Y_L
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_t4_read_reg64
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_MPS_CLS_TCAM_X_L
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_t4_read_reg64
	movl	%eax, %edx
	jmp	LBB0_9
LBB0_1:
	movl	$1, %edi
	callq	_CTLREQID_V
	movl	%eax, %r14d
	xorl	%edi, %edi
	callq	_CTLCMDTYPE_V
	movl	%eax, %ebx
	orl	%r14d, %ebx
	xorl	%edi, %edi
	callq	_CTLXYBITSEL_V
	movl	%eax, %r14d
	orl	%ebx, %r14d
	leal	-256(%r12), %edi
	xorl	%ebx, %ebx
	cmpl	$256, %r12d                     ## imm = 0x100
	setge	%bl
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	cmovll	%r12d, %edi
	callq	_CTLTCAMINDEX_V
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_CTLTCAMSEL_V
	movl	%eax, %ebx
	orl	%r12d, %ebx
	orl	%r14d, %ebx
	movq	_MPS_CLS_TCAM_DATA2_CTL_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_t4_write_reg
	movq	_MPS_CLS_TCAM_RDATA1_REQ_ID1_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_t4_read_reg
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_DMACH_G
	movq	_MPS_CLS_TCAM_RDATA0_REQ_ID1_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_t4_read_reg
	movq	_MPS_CLS_TCAM_RDATA2_REQ_ID1_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_t4_read_reg
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_DATALKPTYPE_G
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, 64(%r15)
	movq	_DATAVIDH2_F@GOTPCREL(%rip), %rcx
	movl	%r13d, %r14d
	andl	(%rcx), %r14d
	movq	_DATALKPTYPE_M@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.3:
	movl	%r13d, %edi
	callq	_DATAVIDH1_G
	orl	%eax, %r14d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%r14d, (%r15)
	shll	$16, %r14d
	movl	%r12d, %edi
	callq	_VIDL_G
	orl	%r14d, %eax
	movl	%eax, (%r15)
	movq	_DATADIPHIT_F@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r13d, %eax
	movl	%eax, 4(%r15)
	jmp	LBB0_5
LBB0_4:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%r14d, 8(%r15)
	movl	%r12d, %edi
	callq	_VIDL_G
	movl	%eax, 12(%r15)
LBB0_5:
	movq	_MPS_CLS_TCAM_DATA2_CTL_A@GOTPCREL(%rip), %r14
	movq	_MPS_CLS_TCAM_RDATA1_REQ_ID1_A@GOTPCREL(%rip), %r12
	movl	%r13d, %edi
	callq	_DATAPORTNUM_G
	movl	%eax, 68(%r15)
	movl	$1, %edi
	callq	_CTLXYBITSEL_V
	orl	%eax, %ebx
	movl	(%r14), %esi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_t4_write_reg
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_t4_read_reg
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_DMACH_G
	movq	_MPS_CLS_TCAM_RDATA0_REQ_ID1_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_t4_read_reg
	movq	_MPS_CLS_TCAM_RDATA2_REQ_ID1_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_t4_read_reg
	movl	64(%r15), %ecx
                                        ## implicit-def: $ebx
                                        ## implicit-def: $edx
	testl	%ecx, %ecx
	movq	-104(%rbp), %r12                ## 8-byte Reload
	je	LBB0_9
## %bb.6:
                                        ## implicit-def: $ebx
                                        ## implicit-def: $edx
	movq	_DATALKPTYPE_M@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	je	LBB0_9
## %bb.7:
	movq	_DATAVIDH2_F@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	andl	%eax, %r15d
	movl	%eax, %edi
	callq	_DATAVIDH1_G
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%ebx, 16(%r15)
	shll	$16, %ebx
	movl	%r14d, %edi
	callq	_VIDL_G
	orl	%ebx, %eax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, 16(%r15)
                                        ## implicit-def: $ebx
                                        ## implicit-def: $edx
LBB0_9:
	testl	%ebx, %edx
	jne	LBB0_25
## %bb.10:
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_MPS_CLS_SRAM_L
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_t4_read_reg
	movl	%eax, 20(%r15)
	movl	%r12d, %edi
	callq	_MPS_CLS_SRAM_H
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_t4_read_reg
	movl	%eax, 24(%r15)
	movl	8(%r13), %edi
	callq	_is_t5
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_REPLICATE_F@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movl	8(%r13), %edi
	callq	_is_t6
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	_T6_REPLICATE_F@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	andl	20(%r15), %eax
	movl	%eax, 28(%r15)
	testl	%eax, %eax
	je	LBB0_24
LBB0_17:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	leaq	-168(%rbp), %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	_FW_LDST_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FW_CMD_OP_V
	movl	%eax, %ebx
	movq	_FW_CMD_REQUEST_F@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_FW_CMD_READ_F@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_FW_LDST_ADDRSPC_MPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FW_LDST_CMD_ADDRSPACE_V
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_htonl
	movq	%rax, -120(%rbp)
	movq	-120(%rbp), %rax
	movq	%rax, 48(%rsp)
	movups	-168(%rbp), %xmm0
	movups	-152(%rbp), %xmm1
	movups	-136(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_FW_LEN16
	movl	%eax, %edi
	callq	_htonl
	movq	%rax, -128(%rbp)
	movq	_FW_LDST_MPS_RPLC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FW_LDST_CMD_FID_V
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_FW_LDST_CMD_IDX_V
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_htons
	movl	%eax, -136(%rbp)
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	callq	_is_fw_attached
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movl	16(%r13), %esi
	leaq	-168(%rbp), %rdx
	movq	%r13, %rdi
	movl	$56, %ecx
	movq	%rdx, %r8
	callq	_t4_wr_mbox
	testl	%eax, %eax
	jne	LBB0_20
LBB0_19:
	movq	%r14, %rdi
	callq	_is_fw_attached
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movl	-136(%rbp), %eax
	movl	%eax, -64(%rbp)
	movups	-168(%rbp), %xmm0
	movups	-152(%rbp), %xmm1
	movaps	%xmm1, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	jmp	LBB0_22
LBB0_20:
	leaq	-96(%rbp), %rsi
	movq	%r13, %rdi
	callq	_cudbg_mps_rpl_backdoor
LBB0_22:
	movl	-68(%rbp), %edi
	callq	_ntohl
	movq	56(%r15), %rcx
	movq	%rax, (%rcx)
	movl	-72(%rbp), %edi
	callq	_ntohl
	movq	56(%r15), %rcx
	movq	%rax, 8(%rcx)
	movl	-76(%rbp), %edi
	callq	_ntohl
	movq	56(%r15), %rcx
	movq	%rax, 16(%rcx)
	movl	-80(%rbp), %edi
	callq	_ntohl
	movq	56(%r15), %rcx
	movq	%rax, 24(%rcx)
	movq	(%r13), %rax
	movq	_CUDBG_MAX_RPLC_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jle	LBB0_24
## %bb.23:
	movl	-84(%rbp), %edi
	callq	_ntohl
	movq	56(%r15), %rcx
	movq	%rax, 32(%rcx)
	movl	-88(%rbp), %edi
	callq	_ntohl
	movq	56(%r15), %rcx
	movq	%rax, 40(%rcx)
	movl	-92(%rbp), %edi
	callq	_ntohl
	movq	56(%r15), %rcx
	movq	%rax, 48(%rcx)
	movl	-96(%rbp), %edi
	callq	_ntohl
	movq	56(%r15), %rcx
	movq	%rax, 56(%rcx)
LBB0_24:
	movl	52(%r15), %edx
	leaq	48(%r15), %rcx
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_cudbg_tcamxy2valmask
	movl	%r12d, 32(%r15)
	movq	(%r13), %rax
	movq	%rax, 40(%r15)
LBB0_25:
	xorl	%eax, %eax
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	28(%r15), %eax
	testl	%eax, %eax
	jne	LBB0_17
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_CHELSIO_T6,8,3                 ## @CHELSIO_T6
	.comm	_MPS_CLS_TCAM_DATA2_CTL_A,4,2   ## @MPS_CLS_TCAM_DATA2_CTL_A
	.comm	_MPS_CLS_TCAM_RDATA1_REQ_ID1_A,4,2 ## @MPS_CLS_TCAM_RDATA1_REQ_ID1_A
	.comm	_MPS_CLS_TCAM_RDATA0_REQ_ID1_A,4,2 ## @MPS_CLS_TCAM_RDATA0_REQ_ID1_A
	.comm	_MPS_CLS_TCAM_RDATA2_REQ_ID1_A,4,2 ## @MPS_CLS_TCAM_RDATA2_REQ_ID1_A
	.comm	_DATALKPTYPE_M,4,2              ## @DATALKPTYPE_M
	.comm	_DATAVIDH2_F,4,2                ## @DATAVIDH2_F
	.comm	_DATADIPHIT_F,4,2               ## @DATADIPHIT_F
	.comm	_REPLICATE_F,4,2                ## @REPLICATE_F
	.comm	_T6_REPLICATE_F,4,2             ## @T6_REPLICATE_F
	.comm	_FW_LDST_CMD,4,2                ## @FW_LDST_CMD
	.comm	_FW_CMD_REQUEST_F,4,2           ## @FW_CMD_REQUEST_F
	.comm	_FW_CMD_READ_F,4,2              ## @FW_CMD_READ_F
	.comm	_FW_LDST_ADDRSPC_MPS,4,2        ## @FW_LDST_ADDRSPC_MPS
	.comm	_FW_LDST_MPS_RPLC,4,2           ## @FW_LDST_MPS_RPLC
	.comm	_CUDBG_MAX_RPLC_SIZE,8,3        ## @CUDBG_MAX_RPLC_SIZE
	.no_dead_strip	_cudbg_collect_tcam_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cudbg_collect_tcam_index
_cudbg_collect_tcam_index:              ; @cudbg_collect_tcam_index
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x20, x2
	mov	x19, x1
	mov	x27, x0
	ldr	x21, [x0]
	ldr	w0, [x21, #8]
	bl	_CHELSIO_CHIP_VERSION
Lloh0:
	adrp	x8, _CHELSIO_T6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHELSIO_T6@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_MPS_CLS_TCAM_Y_L
	mov	x1, x0
	mov	x0, x21
	bl	_t4_read_reg64
	mov	x23, x0
	mov	x0, x20
	bl	_MPS_CLS_TCAM_X_L
	mov	x1, x0
	mov	x0, x21
	bl	_t4_read_reg64
	mov	x24, x0
	b	LBB0_8
LBB0_2:
	mov	x28, x27
	mov	w0, #1
	bl	_CTLREQID_V
	mov	x23, x0
	mov	w0, #0
	bl	_CTLCMDTYPE_V
	orr	w22, w0, w23
	mov	w0, #0
	bl	_CTLXYBITSEL_V
	orr	w22, w22, w0
	cmp	w20, #255
	cset	w23, gt
	subs	w8, w20, #256
	csel	w0, w20, w8, lt
	bl	_CTLTCAMINDEX_V
	mov	x24, x0
	mov	x0, x23
	bl	_CTLTCAMSEL_V
	orr	w8, w0, w24
	orr	w23, w22, w8
Lloh3:
	adrp	x8, _MPS_CLS_TCAM_DATA2_CTL_A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MPS_CLS_TCAM_DATA2_CTL_A@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x23
	bl	_t4_write_reg
Lloh6:
	adrp	x8, _MPS_CLS_TCAM_RDATA1_REQ_ID1_A@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MPS_CLS_TCAM_RDATA1_REQ_ID1_A@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_t4_read_reg
	mov	x24, x0
	bl	_DMACH_G
Lloh9:
	adrp	x8, _MPS_CLS_TCAM_RDATA0_REQ_ID1_A@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MPS_CLS_TCAM_RDATA0_REQ_ID1_A@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_t4_read_reg
Lloh12:
	adrp	x8, _MPS_CLS_TCAM_RDATA2_REQ_ID1_A@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MPS_CLS_TCAM_RDATA2_REQ_ID1_A@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_t4_read_reg
	mov	x25, x0
	bl	_DATALKPTYPE_G
	str	w0, [x19, #64]
Lloh15:
	adrp	x22, _DATALKPTYPE_M@GOTPAGE
Lloh16:
	ldr	x22, [x22, _DATALKPTYPE_M@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh17:
	adrp	x26, _DATAVIDH2_F@GOTPAGE
Lloh18:
	ldr	x26, [x26, _DATAVIDH2_F@GOTPAGEOFF]
	ldr	w9, [x26]
	and	w27, w9, w25
	cmp	w0, #0
	ccmp	w0, w8, #4, ne
	b.ne	LBB0_4
; %bb.3:
	str	w27, [x19, #8]
	mov	x0, x24
	bl	_VIDL_G
	str	w0, [x19, #12]
	b	LBB0_5
LBB0_4:
	mov	x0, x25
	bl	_DATAVIDH1_G
	orr	w27, w27, w0
	str	w27, [x19]
	mov	x0, x24
	bl	_VIDL_G
	orr	w8, w0, w27, lsl #16
	str	w8, [x19]
Lloh19:
	adrp	x8, _DATADIPHIT_F@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DATADIPHIT_F@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	and	w8, w8, w25
	str	w8, [x19, #4]
LBB0_5:
	mov	x27, x28
Lloh22:
	adrp	x24, _MPS_CLS_TCAM_DATA2_CTL_A@GOTPAGE
Lloh23:
	ldr	x24, [x24, _MPS_CLS_TCAM_DATA2_CTL_A@GOTPAGEOFF]
Lloh24:
	adrp	x28, _MPS_CLS_TCAM_RDATA1_REQ_ID1_A@GOTPAGE
Lloh25:
	ldr	x28, [x28, _MPS_CLS_TCAM_RDATA1_REQ_ID1_A@GOTPAGEOFF]
	mov	x0, x25
	bl	_DATAPORTNUM_G
	str	w0, [x19, #68]
	mov	w0, #1
	bl	_CTLXYBITSEL_V
	orr	w2, w0, w23
Lloh26:
	ldr	w1, [x24]
	mov	x0, x21
	bl	_t4_write_reg
Lloh27:
	ldr	w1, [x28]
	mov	x0, x21
	bl	_t4_read_reg
	mov	x25, x0
	bl	_DMACH_G
Lloh28:
	adrp	x8, _MPS_CLS_TCAM_RDATA0_REQ_ID1_A@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MPS_CLS_TCAM_RDATA0_REQ_ID1_A@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_t4_read_reg
Lloh31:
	adrp	x8, _MPS_CLS_TCAM_RDATA2_REQ_ID1_A@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MPS_CLS_TCAM_RDATA2_REQ_ID1_A@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_t4_read_reg
	ldr	w8, [x19, #64]
                                        ; implicit-def: $w23
                                        ; implicit-def: $w24
	cbz	w8, LBB0_8
; %bb.6:
	ldr	w9, [x22]
                                        ; implicit-def: $w23
                                        ; implicit-def: $w24
	cmp	w8, w9
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x26]
	and	w22, w8, w0
	bl	_DATAVIDH1_G
	orr	w22, w22, w0
	str	w22, [x19, #16]
	mov	x0, x25
	bl	_VIDL_G
	orr	w8, w0, w22, lsl #16
	str	w8, [x19, #16]
                                        ; implicit-def: $w23
                                        ; implicit-def: $w24
LBB0_8:
	tst	w24, w23
	b.ne	LBB0_22
; %bb.9:
	mov	x0, x20
	bl	_MPS_CLS_SRAM_L
	mov	x1, x0
	mov	x0, x21
	bl	_t4_read_reg
	str	w0, [x19, #20]
	mov	x0, x20
	bl	_MPS_CLS_SRAM_H
	mov	x1, x0
	mov	x0, x21
	bl	_t4_read_reg
	str	w0, [x19, #24]
	ldr	w0, [x21, #8]
	bl	_is_t5
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w8, [x19, #20]
Lloh34:
	adrp	x9, _REPLICATE_F@GOTPAGE
Lloh35:
	ldr	x9, [x9, _REPLICATE_F@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
	ldr	w0, [x21, #8]
	bl	_is_t6
	cbz	x0, LBB0_23
; %bb.12:
	ldr	w8, [x19, #20]
Lloh36:
	adrp	x9, _T6_REPLICATE_F@GOTPAGE
Lloh37:
	ldr	x9, [x9, _T6_REPLICATE_F@GOTPAGEOFF]
LBB0_13:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x19, #28]
	cbz	w8, LBB0_21
LBB0_14:
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #56
	bl	_memset
Lloh38:
	adrp	x8, _FW_LDST_CMD@GOTPAGE
Lloh39:
	ldr	x8, [x8, _FW_LDST_CMD@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_FW_CMD_OP_V
Lloh41:
	adrp	x8, _FW_CMD_REQUEST_F@GOTPAGE
Lloh42:
	ldr	x8, [x8, _FW_CMD_REQUEST_F@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	adrp	x9, _FW_CMD_READ_F@GOTPAGE
Lloh45:
	ldr	x9, [x9, _FW_CMD_READ_F@GOTPAGEOFF]
	orr	w8, w8, w0
Lloh46:
	ldr	w9, [x9]
	orr	w22, w8, w9
Lloh47:
	adrp	x8, _FW_LDST_ADDRSPC_MPS@GOTPAGE
Lloh48:
	ldr	x8, [x8, _FW_LDST_ADDRSPC_MPS@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	bl	_FW_LDST_CMD_ADDRSPACE_V
	orr	w0, w22, w0
	bl	_htonl
	str	x0, [sp, #104]
	ldur	q0, [sp, #56]
	ldur	q1, [sp, #72]
	stp	q0, q1, [sp]
	ldur	q0, [sp, #88]
	str	q0, [sp, #32]
	str	x0, [sp, #48]
	mov	x0, sp
	bl	_FW_LEN16
	bl	_htonl
	str	x0, [sp, #96]
Lloh50:
	adrp	x8, _FW_LDST_MPS_RPLC@GOTPAGE
Lloh51:
	ldr	x8, [x8, _FW_LDST_MPS_RPLC@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	bl	_FW_LDST_CMD_FID_V
	mov	x25, x0
	mov	x0, x20
	bl	_FW_LDST_CMD_IDX_V
	orr	w0, w0, w25
	bl	_htons
	str	w0, [sp, #88]
	mov	x0, x27
	bl	_is_fw_attached
	cbz	x0, LBB0_16
; %bb.15:
	ldr	w1, [x21, #16]
	add	x2, sp, #56
	add	x4, sp, #56
	mov	x0, x21
	mov	w3, #56
	bl	_t4_wr_mbox
	cbnz	w0, LBB0_18
LBB0_16:
	mov	x0, x27
	bl	_is_fw_attached
	cbz	x0, LBB0_18
; %bb.17:
	ldur	q0, [sp, #56]
	ldur	q1, [sp, #72]
	stp	q0, q1, [sp]
	ldr	w8, [sp, #88]
	str	w8, [sp, #32]
	b	LBB0_19
LBB0_18:
	mov	x1, sp
	mov	x0, x21
	bl	_cudbg_mps_rpl_backdoor
LBB0_19:
	ldr	w0, [sp, #28]
	bl	_ntohl
	ldr	x8, [x19, #56]
	str	x0, [x8]
	ldr	w0, [sp, #24]
	bl	_ntohl
	ldr	x8, [x19, #56]
	str	x0, [x8, #8]
	ldr	w0, [sp, #20]
	bl	_ntohl
	ldr	x8, [x19, #56]
	str	x0, [x8, #16]
	ldr	w0, [sp, #16]
	bl	_ntohl
	ldr	x8, [x19, #56]
	str	x0, [x8, #24]
	ldr	x8, [x21]
Lloh53:
	adrp	x9, _CUDBG_MAX_RPLC_SIZE@GOTPAGE
Lloh54:
	ldr	x9, [x9, _CUDBG_MAX_RPLC_SIZE@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_21
; %bb.20:
	ldr	w0, [sp, #12]
	bl	_ntohl
	ldr	x8, [x19, #56]
	str	x0, [x8, #32]
	ldr	w0, [sp, #8]
	bl	_ntohl
	ldr	x8, [x19, #56]
	str	x0, [x8, #40]
	ldr	w0, [sp, #4]
	bl	_ntohl
	ldr	x8, [x19, #56]
	str	x0, [x8, #48]
	ldr	w0, [sp]
	bl	_ntohl
	ldr	x8, [x19, #56]
	str	x0, [x8, #56]
LBB0_21:
	ldr	w2, [x19, #52]
	add	x3, x19, #48
	mov	x0, x24
	mov	x1, x23
	bl	_cudbg_tcamxy2valmask
	str	w20, [x19, #32]
	ldr	x8, [x21]
	str	x8, [x19, #40]
LBB0_22:
	mov	w0, #0
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_23:
	ldr	w8, [x19, #28]
	cbnz	w8, LBB0_14
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_CHELSIO_T6,8,3                 ; @CHELSIO_T6
	.comm	_MPS_CLS_TCAM_DATA2_CTL_A,4,2   ; @MPS_CLS_TCAM_DATA2_CTL_A
	.comm	_MPS_CLS_TCAM_RDATA1_REQ_ID1_A,4,2 ; @MPS_CLS_TCAM_RDATA1_REQ_ID1_A
	.comm	_MPS_CLS_TCAM_RDATA0_REQ_ID1_A,4,2 ; @MPS_CLS_TCAM_RDATA0_REQ_ID1_A
	.comm	_MPS_CLS_TCAM_RDATA2_REQ_ID1_A,4,2 ; @MPS_CLS_TCAM_RDATA2_REQ_ID1_A
	.comm	_DATALKPTYPE_M,4,2              ; @DATALKPTYPE_M
	.comm	_DATAVIDH2_F,4,2                ; @DATAVIDH2_F
	.comm	_DATADIPHIT_F,4,2               ; @DATADIPHIT_F
	.comm	_REPLICATE_F,4,2                ; @REPLICATE_F
	.comm	_T6_REPLICATE_F,4,2             ; @T6_REPLICATE_F
	.comm	_FW_LDST_CMD,4,2                ; @FW_LDST_CMD
	.comm	_FW_CMD_REQUEST_F,4,2           ; @FW_CMD_REQUEST_F
	.comm	_FW_CMD_READ_F,4,2              ; @FW_CMD_READ_F
	.comm	_FW_LDST_ADDRSPC_MPS,4,2        ; @FW_LDST_ADDRSPC_MPS
	.comm	_FW_LDST_MPS_RPLC,4,2           ; @FW_LDST_MPS_RPLC
	.comm	_CUDBG_MAX_RPLC_SIZE,8,3        ; @CUDBG_MAX_RPLC_SIZE
	.no_dead_strip	_cudbg_collect_tcam_index
.subsections_via_symbols
