	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_fill_le_tcam_info        ## -- Begin function cudbg_fill_le_tcam_info
	.p2align	4, 0x90
_cudbg_fill_le_tcam_info:               ## @cudbg_fill_le_tcam_info
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_LE_DB_TID_HASHBASE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_t4_read_reg
	movl	%eax, (%r14)
	movq	_LE_DB_ROUTING_TABLE_INDEX_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t4_read_reg
	movl	%eax, 4(%r14)
	movl	(%r15), %edi
	callq	_is_t6
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_LE_DB_CLIP_TABLE_INDEX_A@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_LE_DB_CLCAM_TID_BASE_A@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t4_read_reg
	movl	%eax, 8(%r14)
	movq	_LE_DB_FILTER_TABLE_INDEX_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t4_read_reg
	movl	%eax, 12(%r14)
	movq	_LE_DB_SERVER_INDEX_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t4_read_reg
	movl	%eax, 16(%r14)
	movq	_LE_DB_CONFIG_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t4_read_reg
	movl	%eax, %ebx
	movq	_HASHEN_S@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%eax, %ebx
	jae	LBB0_7
## %bb.4:
	movq	_LE_DB_HASH_CONFIG_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t4_read_reg
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_CHELSIO_CHIP_VERSION
	movq	_CHELSIO_T5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_6
## %bb.5:
	andl	$1048575, %ebx                  ## imm = 0xFFFFF
	addl	(%r14), %ebx
	jmp	LBB0_13
LBB0_7:
	movl	(%r15), %edi
	callq	_is_t6
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	_ASLIPCOMPEN_F@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_9
## %bb.10:
	movq	_CUDBG_MAX_TID_COMP_DIS@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	movl	%ebx, %edi
	callq	_HASHTIDSIZE_G
	movl	$1, %ebx
	movl	%eax, %ecx
	shll	%cl, %ebx
	addl	(%r14), %ebx
	jmp	LBB0_13
LBB0_11:
	movq	_CUDBG_MAX_TCAM_TID@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_9:
	movq	_CUDBG_MAX_TID_COMP_EN@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ebx
LBB0_13:
	movl	%ebx, 20(%r14)
	movl	(%r15), %edi
	callq	_is_t6
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_CUDBG_T6_CLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 20(%r14)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LE_DB_TID_HASHBASE_A,4,2       ## @LE_DB_TID_HASHBASE_A
	.comm	_LE_DB_ROUTING_TABLE_INDEX_A,4,2 ## @LE_DB_ROUTING_TABLE_INDEX_A
	.comm	_LE_DB_CLCAM_TID_BASE_A,4,2     ## @LE_DB_CLCAM_TID_BASE_A
	.comm	_LE_DB_CLIP_TABLE_INDEX_A,4,2   ## @LE_DB_CLIP_TABLE_INDEX_A
	.comm	_LE_DB_FILTER_TABLE_INDEX_A,4,2 ## @LE_DB_FILTER_TABLE_INDEX_A
	.comm	_LE_DB_SERVER_INDEX_A,4,2       ## @LE_DB_SERVER_INDEX_A
	.comm	_LE_DB_CONFIG_A,4,2             ## @LE_DB_CONFIG_A
	.comm	_HASHEN_S,4,2                   ## @HASHEN_S
	.comm	_LE_DB_HASH_CONFIG_A,4,2        ## @LE_DB_HASH_CONFIG_A
	.comm	_CHELSIO_T5,8,3                 ## @CHELSIO_T5
	.comm	_ASLIPCOMPEN_F,4,2              ## @ASLIPCOMPEN_F
	.comm	_CUDBG_MAX_TID_COMP_EN,4,2      ## @CUDBG_MAX_TID_COMP_EN
	.comm	_CUDBG_MAX_TID_COMP_DIS,4,2     ## @CUDBG_MAX_TID_COMP_DIS
	.comm	_CUDBG_MAX_TCAM_TID,4,2         ## @CUDBG_MAX_TCAM_TID
	.comm	_CUDBG_T6_CLIP,4,2              ## @CUDBG_T6_CLIP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_fill_le_tcam_info        ; -- Begin function cudbg_fill_le_tcam_info
	.p2align	2
_cudbg_fill_le_tcam_info:               ; @cudbg_fill_le_tcam_info
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _LE_DB_TID_HASHBASE_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LE_DB_TID_HASHBASE_A@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_t4_read_reg
	str	w0, [x19]
Lloh3:
	adrp	x8, _LE_DB_ROUTING_TABLE_INDEX_A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LE_DB_ROUTING_TABLE_INDEX_A@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t4_read_reg
	str	w0, [x19, #4]
	ldr	w0, [x20]
	bl	_is_t6
Lloh6:
	adrp	x8, _LE_DB_CLIP_TABLE_INDEX_A@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LE_DB_CLIP_TABLE_INDEX_A@GOTPAGEOFF]
Lloh8:
	adrp	x9, _LE_DB_CLCAM_TID_BASE_A@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LE_DB_CLCAM_TID_BASE_A@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t4_read_reg
	str	w0, [x19, #8]
Lloh10:
	adrp	x8, _LE_DB_FILTER_TABLE_INDEX_A@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LE_DB_FILTER_TABLE_INDEX_A@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t4_read_reg
	str	w0, [x19, #12]
Lloh13:
	adrp	x8, _LE_DB_SERVER_INDEX_A@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LE_DB_SERVER_INDEX_A@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t4_read_reg
	str	w0, [x19, #16]
Lloh16:
	adrp	x8, _LE_DB_CONFIG_A@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LE_DB_CONFIG_A@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t4_read_reg
Lloh19:
	adrp	x8, _HASHEN_S@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HASHEN_S@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	lsr	w8, w0, w8
	tbz	w8, #0, LBB0_3
; %bb.1:
Lloh22:
	adrp	x8, _LE_DB_HASH_CONFIG_A@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LE_DB_HASH_CONFIG_A@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t4_read_reg
	mov	x21, x0
	ldr	w0, [x20]
	bl	_CHELSIO_CHIP_VERSION
Lloh25:
	adrp	x8, _CHELSIO_T5@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CHELSIO_T5@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_5
; %bb.2:
	and	w8, w21, #0xfffff
	ldr	w9, [x19]
	add	w8, w9, w8
	b	LBB0_8
LBB0_3:
	mov	x21, x0
	ldr	w0, [x20]
	bl	_is_t6
	cbz	x0, LBB0_6
; %bb.4:
Lloh28:
	adrp	x8, _ASLIPCOMPEN_F@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ASLIPCOMPEN_F@GOTPAGEOFF]
Lloh30:
	adrp	x9, _CUDBG_MAX_TID_COMP_EN@GOTPAGE
Lloh31:
	ldr	x9, [x9, _CUDBG_MAX_TID_COMP_EN@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x10, _CUDBG_MAX_TID_COMP_DIS@GOTPAGE
Lloh34:
	ldr	x10, [x10, _CUDBG_MAX_TID_COMP_DIS@GOTPAGEOFF]
	tst	w8, w21
	csel	x8, x10, x9, eq
	b	LBB0_7
LBB0_5:
	mov	x0, x21
	bl	_HASHTIDSIZE_G
	mov	w8, #1
	lsl	w8, w8, w0
	ldr	w9, [x19]
	add	w8, w8, w9
	b	LBB0_8
LBB0_6:
Lloh35:
	adrp	x8, _CUDBG_MAX_TCAM_TID@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CUDBG_MAX_TCAM_TID@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
LBB0_8:
	str	w8, [x19, #20]
	ldr	w0, [x20]
	bl	_is_t6
	cbz	x0, LBB0_10
; %bb.9:
Lloh37:
	adrp	x8, _CUDBG_T6_CLIP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CUDBG_T6_CLIP@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	ldr	w9, [x19, #20]
	add	w8, w9, w8
	str	w8, [x19, #20]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_LE_DB_TID_HASHBASE_A,4,2       ; @LE_DB_TID_HASHBASE_A
	.comm	_LE_DB_ROUTING_TABLE_INDEX_A,4,2 ; @LE_DB_ROUTING_TABLE_INDEX_A
	.comm	_LE_DB_CLCAM_TID_BASE_A,4,2     ; @LE_DB_CLCAM_TID_BASE_A
	.comm	_LE_DB_CLIP_TABLE_INDEX_A,4,2   ; @LE_DB_CLIP_TABLE_INDEX_A
	.comm	_LE_DB_FILTER_TABLE_INDEX_A,4,2 ; @LE_DB_FILTER_TABLE_INDEX_A
	.comm	_LE_DB_SERVER_INDEX_A,4,2       ; @LE_DB_SERVER_INDEX_A
	.comm	_LE_DB_CONFIG_A,4,2             ; @LE_DB_CONFIG_A
	.comm	_HASHEN_S,4,2                   ; @HASHEN_S
	.comm	_LE_DB_HASH_CONFIG_A,4,2        ; @LE_DB_HASH_CONFIG_A
	.comm	_CHELSIO_T5,8,3                 ; @CHELSIO_T5
	.comm	_ASLIPCOMPEN_F,4,2              ; @ASLIPCOMPEN_F
	.comm	_CUDBG_MAX_TID_COMP_EN,4,2      ; @CUDBG_MAX_TID_COMP_EN
	.comm	_CUDBG_MAX_TID_COMP_DIS,4,2     ; @CUDBG_MAX_TID_COMP_DIS
	.comm	_CUDBG_MAX_TCAM_TID,4,2         ; @CUDBG_MAX_TCAM_TID
	.comm	_CUDBG_T6_CLIP,4,2              ; @CUDBG_T6_CLIP
.subsections_via_symbols
