	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_ipsec_restore            ## -- Begin function ixgbe_ipsec_restore
	.p2align	4, 0x90
_ixgbe_ipsec_restore:                   ## @ixgbe_ipsec_restore
	.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	_IXGBE_FLAG2_IPSEC_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	leaq	4(%rdi), %r14
	callq	_ixgbe_ipsec_stop_engine
	movq	%rbx, %rdi
	callq	_ixgbe_ipsec_clear_hw_tables
	movq	%rbx, %rdi
	callq	_ixgbe_ipsec_start_engine
	movq	_IXGBE_IPSEC_MAX_SA_COUNT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r12,%rbx), %ecx
	movl	8(%r12,%rbx), %edx
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_ixgbe_ipsec_set_tx_sa
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movq	_IXGBE_IPSEC_MAX_SA_COUNT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$32, %rbx
	cmpq	%rax, %r13
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %r12
	movq	16(%r15), %rax
	cmpq	$0, 24(%rax,%rbx)
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax,%rbx), %r9d
	movq	16(%rax,%rbx), %rdi
	movq	_IXGBE_RXTXMOD_VF@GOTPCREL(%rip), %rcx
	testl	%r9d, (%rcx)
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_ixgbe_ipsec_del_sa
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 24(%r12,%rbx)
	je	LBB0_17
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_IXGBE_RXTXMOD_VF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12,%rbx)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r12,%rbx), %rdi
	callq	_ixgbe_ipsec_del_sa
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rdi), %edx
	movl	12(%rax,%rbx), %ecx
	movl	4(%rax,%rbx), %esi
	movl	8(%rax,%rbx), %r8d
	movl	%esi, (%rsp)
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_ixgbe_ipsec_set_rx_sa
	cmpq	$0, 24(%r12,%rbx)
	jne	LBB0_14
	jmp	LBB0_17
LBB0_6:
	movq	_IXGBE_IPSEC_MAX_RX_IP_COUNT@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.7:
	movl	$8, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addq	$16, %r13
	cmpq	%rcx, %rbx
	jge	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	cmpq	$0, (%rcx,%r13)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	-8(%rcx,%r13), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ixgbe_ipsec_set_rx_ip
	movl	(%r12), %eax
	jmp	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_FLAG2_IPSEC_ENABLED,4,2  ## @IXGBE_FLAG2_IPSEC_ENABLED
	.comm	_IXGBE_IPSEC_MAX_SA_COUNT,4,2   ## @IXGBE_IPSEC_MAX_SA_COUNT
	.comm	_IXGBE_RXTXMOD_VF,4,2           ## @IXGBE_RXTXMOD_VF
	.comm	_IXGBE_IPSEC_MAX_RX_IP_COUNT,4,2 ## @IXGBE_IPSEC_MAX_RX_IP_COUNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_ipsec_restore            ; -- Begin function ixgbe_ipsec_restore
	.p2align	2
_ixgbe_ipsec_restore:                   ; @ixgbe_ipsec_restore
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IXGBE_FLAG2_IPSEC_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IXGBE_FLAG2_IPSEC_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.1:
	mov	x20, x0
	ldr	x21, [x0, #8]
	add	x19, x0, #4
	bl	_ixgbe_ipsec_stop_engine
	mov	x0, x20
	bl	_ixgbe_ipsec_clear_hw_tables
	mov	x0, x20
	bl	_ixgbe_ipsec_start_engine
Lloh3:
	adrp	x22, _IXGBE_IPSEC_MAX_SA_COUNT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IXGBE_IPSEC_MAX_SA_COUNT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.2:
	mov	x20, #0
	mov	w23, #24
Lloh5:
	adrp	x24, _IXGBE_RXTXMOD_VF@GOTPAGE
Lloh6:
	ldr	x24, [x24, _IXGBE_RXTXMOD_VF@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldp	w3, w2, [x8, #-20]
	mov	x0, x19
	mov	x1, x20
	bl	_ixgbe_ipsec_set_tx_sa
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x22]
	add	x23, x23, #32
	cmp	x20, x8
	b.ge	LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x25, x8, [x21, #8]
	ldr	x9, [x8, x23]
	cbz	x9, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, x23
	ldur	w5, [x8, #-24]
	ldr	w9, [x24]
	ldur	x0, [x8, #-8]
	tst	w9, w5
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_ixgbe_ipsec_del_sa
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25, x23]
	cbz	x8, LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x25, x23
	ldur	w9, [x8, #-24]
	ldr	w10, [x24]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldur	x0, [x8, #-8]
	bl	_ixgbe_ipsec_del_sa
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x0]
	ldp	w4, w3, [x8, #-16]
	ldur	w6, [x8, #-20]
	mov	x0, x19
	mov	x1, x20
	bl	_ixgbe_ipsec_set_rx_sa
	ldr	x8, [x25, x23]
	cbnz	x8, LBB0_9
	b	LBB0_4
LBB0_12:
Lloh7:
	adrp	x22, _IXGBE_IPSEC_MAX_RX_IP_COUNT@GOTPAGE
Lloh8:
	ldr	x22, [x22, _IXGBE_IPSEC_MAX_RX_IP_COUNT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.13:
	mov	x23, #0
	mov	x20, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x20, x20, #1
	add	x23, x23, #16
	cmp	x20, w8, sxtw
	b.ge	LBB0_17
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21]
	add	x10, x9, x23
	ldr	x10, [x10, #8]
	cbz	x10, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w2, [x9, x23]
	mov	x0, x19
	mov	x1, x20
	bl	_ixgbe_ipsec_set_rx_ip
	ldr	w8, [x22]
	b	LBB0_14
LBB0_17:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_FLAG2_IPSEC_ENABLED,4,2  ; @IXGBE_FLAG2_IPSEC_ENABLED
	.comm	_IXGBE_IPSEC_MAX_SA_COUNT,4,2   ; @IXGBE_IPSEC_MAX_SA_COUNT
	.comm	_IXGBE_RXTXMOD_VF,4,2           ; @IXGBE_RXTXMOD_VF
	.comm	_IXGBE_IPSEC_MAX_RX_IP_COUNT,4,2 ; @IXGBE_IPSEC_MAX_RX_IP_COUNT
.subsections_via_symbols
