	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_ktls_handle_tx_skb       ## -- Begin function mlx5e_ktls_handle_tx_skb
	.p2align	4, 0x90
_mlx5e_ktls_handle_tx_skb:              ## @mlx5e_ktls_handle_tx_skb
	.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	$56, %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	%rdi, %r15
	movl	4(%rdx), %edi
	testl	%edi, %edi
	je	LBB0_16
## %bb.1:
	movq	%r8, %r13
	movq	%rcx, %rbx
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r12
	callq	_tls_is_sk_tx_device_offloaded
	testl	%eax, %eax
	je	LBB0_16
## %bb.2:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %r13d
	movq	%r14, %rdi
	callq	_skb_transport_offset
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_tcp_hdrlen
	addl	%ebx, %eax
	subl	%eax, %r13d
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	je	LBB0_16
## %bb.3:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %edi
	callq	_tls_get_ctx
	movq	%rax, %r12
	xorl	%edi, %edi
	cmpq	%r15, (%rax)
	setne	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_4
LBB0_13:
	movq	%r14, %rdi
	callq	_dev_kfree_skb_any
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_4:
	movq	%r12, %rdi
	callq	_mlx5e_get_ktls_tx_priv_ctx
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_mlx5e_ktls_tx_offload_test_and_clear_pending
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_6
## %bb.5:
	movq	%r15, %rbx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_mlx5e_ktls_tx_post_param_wqes
	movq	%r15, %rdi
	movq	%rbx, %r15
	movl	$4, %esi
	movq	%rbx, %rdx
	callq	_mlx5e_sq_fetch_wqe
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	incl	8(%r12)
LBB0_6:
	movq	%r14, %rdi
	callq	_tcp_hdr
	movl	(%rax), %edi
	callq	_ntohl
	movq	%rax, %rbx
	xorl	%edi, %edi
	cmpq	%rax, (%r13)
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.8:
	movq	%r13, %rdi
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%edx, %r13d
	movq	%rbx, %rcx
	callq	_mlx5e_ktls_tx_handle_ooo
	movl	%eax, %r15d
	movq	_MLX5E_KTLS_SYNC_DONE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r15d
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%r12, %rdi
	movl	$4, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_mlx5e_sq_fetch_wqe
	movq	%rax, %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	%r13d, %edx
	jmp	LBB0_10
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r15
LBB0_10:
	movl	%edx, %ebx
	movslq	%edx, %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	addq	%rax, %rcx
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	%rcx, (%r13)
	movl	8(%r13), %edi
	shll	$8, %edi
	callq	_cpu_to_be32
	movl	%eax, (%r15)
	movq	%r14, %rdi
	callq	_skb_is_gso
	testq	%rax, %rax
	je	LBB0_11
## %bb.14:
	movq	%r14, %rdi
	callq	_skb_shinfo
	movl	(%rax), %eax
	jmp	LBB0_15
LBB0_11:
	movl	$1, %eax
LBB0_15:
	addl	%eax, (%r12)
	addl	%ebx, 4(%r12)
LBB0_16:
	movq	%r14, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_MLX5E_KTLS_SYNC_FAIL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_13
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5E_KTLS_SYNC_DONE,4,2       ## @MLX5E_KTLS_SYNC_DONE
	.comm	_MLX5E_KTLS_SYNC_FAIL,4,2       ## @MLX5E_KTLS_SYNC_FAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_ktls_handle_tx_skb       ; -- Begin function mlx5e_ktls_handle_tx_skb
	.p2align	2
_mlx5e_ktls_handle_tx_skb:              ; @mlx5e_ktls_handle_tx_skb
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x24, x0
	ldr	w0, [x2, #4]
	cbz	w0, LBB0_15
; %bb.1:
	mov	x22, x4
	mov	x21, x3
	mov	x23, x1
	ldr	x27, [x1]
	bl	_tls_is_sk_tx_device_offloaded
	cbz	w0, LBB0_15
; %bb.2:
	ldr	w25, [x19]
	mov	x0, x19
	bl	_skb_transport_offset
	mov	x20, x0
	mov	x0, x19
	bl	_tcp_hdrlen
	add	w8, w0, w20
	subs	w20, w25, w8
	b.eq	LBB0_15
; %bb.3:
	ldr	w0, [x19, #4]
	bl	_tls_get_ctx
	mov	x25, x0
	ldr	x8, [x0]
	cmp	x8, x24
	cset	w0, ne
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_dev_kfree_skb_any
	mov	x19, #0
	b	LBB0_15
LBB0_5:
	mov	x0, x25
	bl	_mlx5e_get_ktls_tx_priv_ctx
	mov	x24, x0
	bl	_mlx5e_ktls_tx_offload_test_and_clear_pending
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x23
	mov	x1, x24
	mov	w2, #0
	mov	w3, #0
	bl	_mlx5e_ktls_tx_post_param_wqes
	mov	x0, x23
	mov	w1, #4
	mov	x2, x22
	bl	_mlx5e_sq_fetch_wqe
	str	x0, [x21]
	ldr	w8, [x27, #8]
	add	w8, w8, #1
	str	w8, [x27, #8]
LBB0_7:
	mov	x0, x19
	bl	_tcp_hdr
	ldr	w0, [x0]
	bl	_ntohl
	mov	x25, x0
	ldr	x8, [x24]
	cmp	x8, x0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.8:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x20
	mov	x3, x25
	bl	_mlx5e_ktls_tx_handle_ooo
	mov	x26, x0
Lloh0:
	adrp	x8, _MLX5E_KTLS_SYNC_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5E_KTLS_SYNC_DONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_16
; %bb.9:
	mov	x0, x23
	mov	w1, #4
	mov	x2, x22
	bl	_mlx5e_sq_fetch_wqe
	mov	x22, x0
	str	x0, [x21]
	b	LBB0_11
LBB0_10:
	ldr	x22, [x21]
LBB0_11:
	add	x8, x25, w20, sxtw
	str	x8, [x24]
	ldr	w8, [x24, #8]
	lsl	w0, w8, #8
	bl	_cpu_to_be32
	str	w0, [x22]
	mov	x0, x19
	bl	_skb_is_gso
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_skb_shinfo
	ldr	w8, [x0]
	b	LBB0_14
LBB0_13:
	mov	w8, #1
LBB0_14:
	ldp	w9, w10, [x27]
	add	w8, w9, w8
	add	w9, w10, w20
	stp	w8, w9, [x27]
LBB0_15:
	mov	x0, x19
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh3:
	adrp	x8, _MLX5E_KTLS_SYNC_FAIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5E_KTLS_SYNC_FAIL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w26, w8
	b.eq	LBB0_4
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5E_KTLS_SYNC_DONE,4,2       ; @MLX5E_KTLS_SYNC_DONE
	.comm	_MLX5E_KTLS_SYNC_FAIL,4,2       ; @MLX5E_KTLS_SYNC_FAIL
.subsections_via_symbols
