	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tp_init
_tp_init:                               ## @tp_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_t1_is_asic
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	_F_TP_IN_CSPI_CPL@GOTPCREL(%rip), %rax
	movq	_F_TP_IN_CSPI_CHECK_IP_CSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_F_TP_IN_CSPI_CHECK_TCP_CSUM@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_F_TP_IN_ESPI_ETHERNET@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	cmpl	$0, 4(%r15)
	jne	LBB0_2
## %bb.3:
	movq	_F_OFFLOAD_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_2:
	movq	_F_TP_IN_ESPI_CHECK_IP_CSUM@GOTPCREL(%rip), %rcx
	movq	_F_TP_IN_ESPI_CHECK_TCP_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
LBB0_4:
	orl	%eax, %edi
	movq	_A_TP_IN_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	callq	_writel
	movq	_F_TP_OUT_CSPI_CPL@GOTPCREL(%rip), %rax
	movq	_F_TP_OUT_ESPI_ETHERNET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_F_TP_OUT_ESPI_GENERATE_IP_CSUM@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_F_TP_OUT_ESPI_GENERATE_TCP_CSUM@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_A_TP_OUT_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	callq	_writel
	movl	$64, %edi
	callq	_V_IP_TTL
	movl	%eax, %r13d
	movq	_F_PATH_MTU@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movl	(%r15), %edi
	callq	_V_5TUPLE_LOOKUP
	movl	%eax, %ebx
	movl	$29, %edi
	callq	_V_SYN_COOKIE_PARAMETER
	orl	%eax, %ebx
	orl	%r13d, %ebx
	movq	_A_TP_GLOBAL_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	%r12, %rdi
	callq	_is_T2
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	cmpl	$2, 8(%r12)
	jl	LBB0_6
## %bb.7:
	movq	_DROP_MSEC@GOTPCREL(%rip), %rax
	movl	%r14d, %ecx
	imulq	$274877907, %rcx, %rdi          ## imm = 0x10624DD3
	shrq	$38, %rdi
	imull	(%rax), %edi
	movq	_F_ENABLE_TX_DROP@GOTPCREL(%rip), %rax
	movq	_F_ENABLE_TX_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_V_DROP_TICKS_CNT
	movl	%eax, %r14d
	movq	_DROP_PKTS_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_V_NUM_PKTS_DROPPED
	orl	%eax, %ebx
	orl	%r14d, %ebx
	movq	_A_TP_TX_DROP_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_F_TP_IN_CSPI_CPL,4,2           ## @F_TP_IN_CSPI_CPL
	.comm	_F_TP_IN_CSPI_CHECK_IP_CSUM,4,2 ## @F_TP_IN_CSPI_CHECK_IP_CSUM
	.comm	_F_TP_IN_CSPI_CHECK_TCP_CSUM,4,2 ## @F_TP_IN_CSPI_CHECK_TCP_CSUM
	.comm	_F_TP_IN_ESPI_ETHERNET,4,2      ## @F_TP_IN_ESPI_ETHERNET
	.comm	_F_OFFLOAD_DISABLE,4,2          ## @F_OFFLOAD_DISABLE
	.comm	_F_TP_IN_ESPI_CHECK_IP_CSUM,4,2 ## @F_TP_IN_ESPI_CHECK_IP_CSUM
	.comm	_F_TP_IN_ESPI_CHECK_TCP_CSUM,4,2 ## @F_TP_IN_ESPI_CHECK_TCP_CSUM
	.comm	_A_TP_IN_CONFIG,8,3             ## @A_TP_IN_CONFIG
	.comm	_F_TP_OUT_CSPI_CPL,4,2          ## @F_TP_OUT_CSPI_CPL
	.comm	_F_TP_OUT_ESPI_ETHERNET,4,2     ## @F_TP_OUT_ESPI_ETHERNET
	.comm	_F_TP_OUT_ESPI_GENERATE_IP_CSUM,4,2 ## @F_TP_OUT_ESPI_GENERATE_IP_CSUM
	.comm	_F_TP_OUT_ESPI_GENERATE_TCP_CSUM,4,2 ## @F_TP_OUT_ESPI_GENERATE_TCP_CSUM
	.comm	_A_TP_OUT_CONFIG,8,3            ## @A_TP_OUT_CONFIG
	.comm	_F_PATH_MTU,4,2                 ## @F_PATH_MTU
	.comm	_A_TP_GLOBAL_CONFIG,8,3         ## @A_TP_GLOBAL_CONFIG
	.comm	_DROP_MSEC,4,2                  ## @DROP_MSEC
	.comm	_F_ENABLE_TX_DROP,4,2           ## @F_ENABLE_TX_DROP
	.comm	_F_ENABLE_TX_ERROR,4,2          ## @F_ENABLE_TX_ERROR
	.comm	_DROP_PKTS_CNT,4,2              ## @DROP_PKTS_CNT
	.comm	_A_TP_TX_DROP_CONFIG,8,3        ## @A_TP_TX_DROP_CONFIG
	.no_dead_strip	_tp_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tp_init
_tp_init:                               ; @tp_init
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_t1_is_asic
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _F_TP_IN_CSPI_CPL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _F_TP_IN_CSPI_CPL@GOTPAGEOFF]
Lloh2:
	adrp	x9, _F_TP_IN_CSPI_CHECK_IP_CSUM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _F_TP_IN_CSPI_CHECK_IP_CSUM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _F_TP_IN_CSPI_CHECK_TCP_CSUM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _F_TP_IN_CSPI_CHECK_TCP_CSUM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _F_TP_IN_ESPI_ETHERNET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _F_TP_IN_ESPI_ETHERNET@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x21, #4]
Lloh12:
	adrp	x10, _F_TP_IN_ESPI_CHECK_IP_CSUM@GOTPAGE
Lloh13:
	ldr	x10, [x10, _F_TP_IN_ESPI_CHECK_IP_CSUM@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _F_TP_IN_ESPI_CHECK_TCP_CSUM@GOTPAGE
Lloh16:
	ldr	x11, [x11, _F_TP_IN_ESPI_CHECK_TCP_CSUM@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	orr	w10, w11, w10
Lloh18:
	adrp	x11, _F_OFFLOAD_DISABLE@GOTPAGE
Lloh19:
	ldr	x11, [x11, _F_OFFLOAD_DISABLE@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	cmp	w9, #0
	csel	w9, w11, w10, eq
	orr	w0, w8, w9
	ldr	x8, [x19]
Lloh21:
	adrp	x9, _A_TP_IN_CONFIG@GOTPAGE
Lloh22:
	ldr	x9, [x9, _A_TP_IN_CONFIG@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh24:
	adrp	x8, _F_TP_OUT_CSPI_CPL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _F_TP_OUT_CSPI_CPL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _F_TP_OUT_ESPI_ETHERNET@GOTPAGE
Lloh28:
	ldr	x9, [x9, _F_TP_OUT_ESPI_ETHERNET@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
Lloh30:
	adrp	x10, _F_TP_OUT_ESPI_GENERATE_IP_CSUM@GOTPAGE
Lloh31:
	ldr	x10, [x10, _F_TP_OUT_ESPI_GENERATE_IP_CSUM@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh32:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh33:
	adrp	x9, _F_TP_OUT_ESPI_GENERATE_TCP_CSUM@GOTPAGE
Lloh34:
	ldr	x9, [x9, _F_TP_OUT_ESPI_GENERATE_TCP_CSUM@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x19]
Lloh36:
	adrp	x9, _A_TP_OUT_CONFIG@GOTPAGE
Lloh37:
	ldr	x9, [x9, _A_TP_OUT_CONFIG@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #64
	bl	_V_IP_TTL
Lloh39:
	adrp	x8, _F_PATH_MTU@GOTPAGE
Lloh40:
	ldr	x8, [x8, _F_PATH_MTU@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	orr	w22, w8, w0
	ldr	w0, [x21]
	bl	_V_5TUPLE_LOOKUP
	orr	w21, w22, w0
	mov	w0, #29
	bl	_V_SYN_COOKIE_PARAMETER
	orr	w0, w21, w0
	ldr	x8, [x19]
Lloh42:
	adrp	x9, _A_TP_GLOBAL_CONFIG@GOTPAGE
Lloh43:
	ldr	x9, [x9, _A_TP_GLOBAL_CONFIG@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	bl	_is_T2
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.3:
Lloh45:
	adrp	x8, _DROP_MSEC@GOTPAGE
Lloh46:
	ldr	x8, [x8, _DROP_MSEC@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	umull	x9, w20, w9
	lsr	x9, x9, #38
Lloh48:
	adrp	x10, _F_ENABLE_TX_DROP@GOTPAGE
Lloh49:
	ldr	x10, [x10, _F_ENABLE_TX_DROP@GOTPAGEOFF]
	mul	w0, w8, w9
Lloh50:
	ldr	w8, [x10]
Lloh51:
	adrp	x9, _F_ENABLE_TX_ERROR@GOTPAGE
Lloh52:
	ldr	x9, [x9, _F_ENABLE_TX_ERROR@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	orr	w20, w9, w8
	bl	_V_DROP_TICKS_CNT
	orr	w20, w20, w0
Lloh54:
	adrp	x8, _DROP_PKTS_CNT@GOTPAGE
Lloh55:
	ldr	x8, [x8, _DROP_PKTS_CNT@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	bl	_V_NUM_PKTS_DROPPED
	orr	w0, w20, w0
	ldr	x8, [x19]
Lloh57:
	adrp	x9, _A_TP_TX_DROP_CONFIG@GOTPAGE
Lloh58:
	ldr	x9, [x9, _A_TP_TX_DROP_CONFIG@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	add	x1, x9, x8
	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
	b	_writel
LBB0_4:
	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	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_F_TP_IN_CSPI_CPL,4,2           ; @F_TP_IN_CSPI_CPL
	.comm	_F_TP_IN_CSPI_CHECK_IP_CSUM,4,2 ; @F_TP_IN_CSPI_CHECK_IP_CSUM
	.comm	_F_TP_IN_CSPI_CHECK_TCP_CSUM,4,2 ; @F_TP_IN_CSPI_CHECK_TCP_CSUM
	.comm	_F_TP_IN_ESPI_ETHERNET,4,2      ; @F_TP_IN_ESPI_ETHERNET
	.comm	_F_OFFLOAD_DISABLE,4,2          ; @F_OFFLOAD_DISABLE
	.comm	_F_TP_IN_ESPI_CHECK_IP_CSUM,4,2 ; @F_TP_IN_ESPI_CHECK_IP_CSUM
	.comm	_F_TP_IN_ESPI_CHECK_TCP_CSUM,4,2 ; @F_TP_IN_ESPI_CHECK_TCP_CSUM
	.comm	_A_TP_IN_CONFIG,8,3             ; @A_TP_IN_CONFIG
	.comm	_F_TP_OUT_CSPI_CPL,4,2          ; @F_TP_OUT_CSPI_CPL
	.comm	_F_TP_OUT_ESPI_ETHERNET,4,2     ; @F_TP_OUT_ESPI_ETHERNET
	.comm	_F_TP_OUT_ESPI_GENERATE_IP_CSUM,4,2 ; @F_TP_OUT_ESPI_GENERATE_IP_CSUM
	.comm	_F_TP_OUT_ESPI_GENERATE_TCP_CSUM,4,2 ; @F_TP_OUT_ESPI_GENERATE_TCP_CSUM
	.comm	_A_TP_OUT_CONFIG,8,3            ; @A_TP_OUT_CONFIG
	.comm	_F_PATH_MTU,4,2                 ; @F_PATH_MTU
	.comm	_A_TP_GLOBAL_CONFIG,8,3         ; @A_TP_GLOBAL_CONFIG
	.comm	_DROP_MSEC,4,2                  ; @DROP_MSEC
	.comm	_F_ENABLE_TX_DROP,4,2           ; @F_ENABLE_TX_DROP
	.comm	_F_ENABLE_TX_ERROR,4,2          ; @F_ENABLE_TX_ERROR
	.comm	_DROP_PKTS_CNT,4,2              ; @DROP_PKTS_CNT
	.comm	_A_TP_TX_DROP_CONFIG,8,3        ; @A_TP_TX_DROP_CONFIG
	.no_dead_strip	_tp_init
.subsections_via_symbols
