	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_ipsec_vf_del_sa          ## -- Begin function ixgbe_ipsec_vf_del_sa
	.p2align	4, 0x90
_ixgbe_ipsec_vf_del_sa:                 ## @ixgbe_ipsec_vf_del_sa
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	cmpl	$0, (%rax,%rdx,4)
	je	LBB0_7
## %bb.1:
	movq	8(%rdi), %rdi
	movq	8(%rsi), %rcx
	movq	_IXGBE_IPSEC_BASE_TX_INDEX@GOTPCREL(%rip), %rsi
	movq	%rcx, %rax
	subq	(%rsi), %rax
	jae	LBB0_8
## %bb.2:
	movq	_IXGBE_IPSEC_BASE_RX_INDEX@GOTPCREL(%rip), %rax
	subq	(%rax), %rcx
	movq	_IXGBE_IPSEC_MAX_SA_COUNT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jae	LBB0_15
## %bb.3:
	movq	8(%rdi), %rax
	movq	%rcx, %rsi
	shlq	$5, %rsi
	cmpl	$0, 24(%rax,%rsi)
	je	LBB0_14
## %bb.4:
	movq	_IXGBE_RXTXMOD_VF@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	testl	%edi, (%rax,%rsi)
	je	LBB0_18
## %bb.5:
	cmpq	%rdx, 8(%rax,%rsi)
	jne	LBB0_18
## %bb.6:
	addq	%rsi, %rax
	addq	$16, %rax
	jmp	LBB0_13
LBB0_7:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_e_err
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_8:
	movq	_IXGBE_IPSEC_MAX_SA_COUNT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_16
## %bb.9:
	movq	(%rdi), %rcx
	movq	%rax, %rsi
	shlq	$5, %rsi
	cmpl	$0, 24(%rcx,%rsi)
	je	LBB0_14
## %bb.10:
	movq	_IXGBE_RXTXMOD_VF@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	testl	%edi, (%rcx,%rsi)
	je	LBB0_19
## %bb.11:
	cmpq	%rdx, 8(%rcx,%rsi)
	jne	LBB0_19
## %bb.12:
	leaq	(%rcx,%rsi), %rax
	addq	$16, %rax
LBB0_13:
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ixgbe_ipsec_del_sa
	movq	%rbx, %rdi
	callq	_kzfree
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_15:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_16:
	movq	_drv@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%rax, %rcx
LBB0_17:
	xorl	%eax, %eax
	callq	_e_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_18:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_19:
	movq	_drv@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%rax, %rcx
LBB0_20:
	xorl	%eax, %eax
	callq	_e_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_21:
	subl	(%rax), %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vf %d attempted to delete an SA\n"

	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_IXGBE_IPSEC_BASE_TX_INDEX,8,3  ## @IXGBE_IPSEC_BASE_TX_INDEX
	.comm	_IXGBE_IPSEC_BASE_RX_INDEX,8,3  ## @IXGBE_IPSEC_BASE_RX_INDEX
	.comm	_IXGBE_IPSEC_MAX_SA_COUNT,8,3   ## @IXGBE_IPSEC_MAX_SA_COUNT
L_.str.1:                               ## @.str.1
	.asciz	"vf %d SA index %d out of range\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IXGBE_RXTXMOD_VF,4,2           ## @IXGBE_RXTXMOD_VF
L_.str.2:                               ## @.str.2
	.asciz	"vf %d bad Rx SA index %d\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.3:                               ## @.str.3
	.asciz	"vf %d bad Tx SA index %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_ipsec_vf_del_sa          ; -- Begin function ixgbe_ipsec_vf_del_sa
	.p2align	2
_ixgbe_ipsec_vf_del_sa:                 ; @ixgbe_ipsec_vf_del_sa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x0]
	ldr	w8, [x8, x2, lsl #2]
	cbz	w8, LBB0_7
; %bb.1:
	ldr	x9, [x0, #8]
	ldr	x10, [x1, #8]
Lloh0:
	adrp	x8, _IXGBE_IPSEC_BASE_TX_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IXGBE_IPSEC_BASE_TX_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	subs	x8, x10, x8
	b.hs	LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _IXGBE_IPSEC_BASE_RX_INDEX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IXGBE_IPSEC_BASE_RX_INDEX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x11, _IXGBE_IPSEC_MAX_SA_COUNT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _IXGBE_IPSEC_MAX_SA_COUNT@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	sub	x8, x10, x8
	cmp	x8, x11
	b.hs	LBB0_14
; %bb.3:
	ldr	x9, [x9, #8]
	add	x10, x9, x8, lsl #5
	ldr	w10, [x10, #24]
	cbz	w10, LBB0_13
; %bb.4:
	lsl	x10, x8, #5
	ldr	w10, [x9, x10]
Lloh9:
	adrp	x11, _IXGBE_RXTXMOD_VF@GOTPAGE
Lloh10:
	ldr	x11, [x11, _IXGBE_RXTXMOD_VF@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_6
; %bb.5:
	add	x9, x9, x8, lsl #5
	ldr	x10, [x9, #8]
	cmp	x10, x2
	b.eq	LBB0_12
LBB0_6:
Lloh12:
	adrp	x9, _drv@GOTPAGE
Lloh13:
	ldr	x9, [x9, _drv@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_7:
Lloh17:
	adrp	x8, _drv@GOTPAGE
Lloh18:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_e_err
Lloh22:
	adrp	x8, _EPERM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_17
LBB0_8:
Lloh24:
	adrp	x10, _IXGBE_IPSEC_MAX_SA_COUNT@GOTPAGE
Lloh25:
	ldr	x10, [x10, _IXGBE_IPSEC_MAX_SA_COUNT@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	cmp	x8, x10
	b.hs	LBB0_14
; %bb.9:
	ldr	x9, [x9]
	add	x10, x9, x8, lsl #5
	ldr	w10, [x10, #24]
	cbz	w10, LBB0_13
; %bb.10:
	lsl	x10, x8, #5
	ldr	w10, [x9, x10]
Lloh27:
	adrp	x11, _IXGBE_RXTXMOD_VF@GOTPAGE
Lloh28:
	ldr	x11, [x11, _IXGBE_RXTXMOD_VF@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_15
; %bb.11:
	add	x9, x9, x8, lsl #5
	ldr	x10, [x9, #8]
	cmp	x10, x2
	b.ne	LBB0_15
LBB0_12:
	add	x8, x9, #16
	ldr	x19, [x8]
	mov	x0, x19
	bl	_ixgbe_ipsec_del_sa
	mov	x0, x19
	bl	_kzfree
LBB0_13:
	mov	w0, #0
	b	LBB0_18
LBB0_14:
Lloh30:
	adrp	x9, _drv@GOTPAGE
Lloh31:
	ldr	x9, [x9, _drv@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_e_err
Lloh35:
	adrp	x8, _EINVAL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
Lloh37:
	adrp	x9, _drv@GOTPAGE
Lloh38:
	ldr	x9, [x9, _drv@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh40:
	adrp	x1, l_.str.3@PAGE
Lloh41:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_16:
	bl	_e_err
Lloh42:
	adrp	x8, _ENOENT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vf %d attempted to delete an SA\n"

	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_IXGBE_IPSEC_BASE_TX_INDEX,8,3  ; @IXGBE_IPSEC_BASE_TX_INDEX
	.comm	_IXGBE_IPSEC_BASE_RX_INDEX,8,3  ; @IXGBE_IPSEC_BASE_RX_INDEX
	.comm	_IXGBE_IPSEC_MAX_SA_COUNT,8,3   ; @IXGBE_IPSEC_MAX_SA_COUNT
l_.str.1:                               ; @.str.1
	.asciz	"vf %d SA index %d out of range\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IXGBE_RXTXMOD_VF,4,2           ; @IXGBE_RXTXMOD_VF
l_.str.2:                               ; @.str.2
	.asciz	"vf %d bad Rx SA index %d\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.3:                               ; @.str.3
	.asciz	"vf %d bad Tx SA index %d\n"

.subsections_via_symbols
