	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_ipsec_remove_trailer
_mlx5e_ipsec_remove_trailer:            ## @mlx5e_ipsec_remove_trailer
	.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
	movq	%rdi, %r13
	movl	(%rsi), %edi
	callq	_crypto_aead_authsize
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_ipv6_hdr
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_ip_hdr
	movq	%rax, %r15
	movl	(%r13), %esi
	subl	%r12d, %esi
	addl	$-2, %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	$1, %ecx
	callq	_skb_copy_bits
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movl	-44(%rbp), %eax
	addl	%eax, %r12d
	addl	$2, %r12d
	movl	(%r13), %esi
	subl	%r12d, %esi
	movq	%r13, %rdi
	callq	_pskb_trim
	movq	8(%r13), %rbx
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_htons
	cmpq	%rax, %rbx
	je	LBB0_2
## %bb.3:
	movq	(%r14), %rdi
	callq	_ntohs
	movl	%r12d, %ecx
	subq	%rcx, %rax
	movq	%rax, %rdi
	callq	_htons
	movq	%rax, (%r14)
	jmp	LBB0_4
LBB0_2:
	movq	(%r15), %rdi
	callq	_ntohs
	movl	%r12d, %ecx
	subq	%rcx, %rax
	movq	%rax, %rdi
	callq	_htons
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_ip_send_check
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_IP,8,3                   ## @ETH_P_IP
	.no_dead_strip	_mlx5e_ipsec_remove_trailer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_ipsec_remove_trailer
_mlx5e_ipsec_remove_trailer:            ; @mlx5e_ipsec_remove_trailer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x0
	ldr	w0, [x1]
	bl	_crypto_aead_authsize
	mov	x22, x0
	mov	x0, x21
	bl	_ipv6_hdr
	mov	x19, x0
	mov	x0, x21
	bl	_ip_hdr
	mov	x20, x0
	ldr	w8, [x21]
	sub	w8, w8, w22
	sub	w1, w8, #2
	add	x2, sp, #12
	mov	x0, x21
	mov	w3, #1
	bl	_skb_copy_bits
	mov	x23, x0
	bl	_unlikely
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
	add	w8, w22, w8
	add	w22, w8, #2
	ldr	w8, [x21]
	sub	w1, w8, w22
	mov	x0, x21
	bl	_pskb_trim
	ldr	x21, [x21, #8]
Lloh0:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	bl	_htons
	cmp	x21, x0
	b.eq	LBB0_3
; %bb.2:
	ldr	x0, [x19]
	bl	_ntohs
	sub	x0, x0, w22, uxtw
	bl	_htons
	mov	w23, #0
	str	x0, [x19]
	b	LBB0_4
LBB0_3:
	ldr	x0, [x20]
	bl	_ntohs
	sub	x0, x0, w22, uxtw
	bl	_htons
	str	x0, [x20]
	mov	x0, x20
	bl	_ip_send_check
	mov	w23, #0
LBB0_4:
	mov	x0, x23
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_IP,8,3                   ; @ETH_P_IP
	.no_dead_strip	_mlx5e_ipsec_remove_trailer
.subsections_via_symbols
