	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_fpga_ipsec_release_sa_ctx
_mlx5_fpga_ipsec_release_sa_ctx:        ## @mlx5_fpga_ipsec_release_sa_ctx
	.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	%rdi, %r15
	movq	16(%rdi), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %r14
	movq	%r14, %rdi
	callq	_is_v2_sadb_supported
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_MLX5_FPGA_IPSEC_CMD_OP_DEL_SA@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_MLX5_FPGA_IPSEC_CMD_OP_DEL_SA_V2@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	leaq	8(%r15), %rsi
	movq	%rbx, %rdi
	callq	_mlx5_fpga_ipsec_update_hw_sa
	movq	$0, 8(%r15)
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	4(%r14), %rdi
	movq	_rhash_sa@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_rhashtable_remove_fast
	movl	%eax, %edi
	callq	_WARN_ON
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_FPGA_IPSEC_CMD_OP_DEL_SA_V2,4,2 ## @MLX5_FPGA_IPSEC_CMD_OP_DEL_SA_V2
	.comm	_MLX5_FPGA_IPSEC_CMD_OP_DEL_SA,4,2 ## @MLX5_FPGA_IPSEC_CMD_OP_DEL_SA
	.comm	_rhash_sa,4,2                   ## @rhash_sa
	.no_dead_strip	_mlx5_fpga_ipsec_release_sa_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_fpga_ipsec_release_sa_ctx
_mlx5_fpga_ipsec_release_sa_ctx:        ; @mlx5_fpga_ipsec_release_sa_ctx
	.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, x0
	ldr	x8, [x0, #16]
	ldr	x21, [x8]
	ldr	x19, [x21]
	mov	x0, x19
	bl	_is_v2_sadb_supported
Lloh0:
	adrp	x8, _MLX5_FPGA_IPSEC_CMD_OP_DEL_SA_V2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_FPGA_IPSEC_CMD_OP_DEL_SA_V2@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MLX5_FPGA_IPSEC_CMD_OP_DEL_SA@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MLX5_FPGA_IPSEC_CMD_OP_DEL_SA@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w2, [x8]
	add	x1, x20, #8
	mov	x0, x21
	bl	_mlx5_fpga_ipsec_update_hw_sa
	str	xzr, [x20, #8]
	cbz	w0, LBB0_2
; %bb.1:
	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	_WARN_ON
LBB0_2:
	mov	x0, x19
	bl	_mutex_lock
	add	x0, x19, #4
Lloh4:
	adrp	x8, _rhash_sa@GOTPAGE
Lloh5:
	ldr	x8, [x8, _rhash_sa@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_rhashtable_remove_fast
	bl	_WARN_ON
	mov	x0, x19
	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	_mutex_unlock
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_FPGA_IPSEC_CMD_OP_DEL_SA_V2,4,2 ; @MLX5_FPGA_IPSEC_CMD_OP_DEL_SA_V2
	.comm	_MLX5_FPGA_IPSEC_CMD_OP_DEL_SA,4,2 ; @MLX5_FPGA_IPSEC_CMD_OP_DEL_SA
	.comm	_rhash_sa,4,2                   ; @rhash_sa
	.no_dead_strip	_mlx5_fpga_ipsec_release_sa_ctx
.subsections_via_symbols
