	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_init_ipsec_offload       ## -- Begin function ixgbe_init_ipsec_offload
	.p2align	4, 0x90
_ixgbe_init_ipsec_offload:              ## @ixgbe_init_ipsec_offload
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rax
	movq	_ixgbe_mac_82598EB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r15
	leaq	16(%rdi), %r14
	movq	_IXGBE_SECTXSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_IXGBE_READ_REG
	movl	%eax, %ebx
	movq	_IXGBE_SECTXSTAT_SECTX_OFF_DIS@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_IXGBE_SECRXSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_IXGBE_READ_REG
	movq	_IXGBE_SECRXSTAT_SECRX_OFF_DIS@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	%ebx, %eax
	je	LBB0_2
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r14
	movl	40(%rax), %edi
	callq	_hash_init
	movq	_IXGBE_IPSEC_MAX_SA_COUNT@GOTPCREL(%rip), %r12
	movslq	(%r12), %rdi
	shlq	$2, %rdi
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movslq	(%r12), %rdi
	shlq	$2, %rdi
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	_IXGBE_IPSEC_MAX_RX_IP_COUNT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	shlq	$2, %rdi
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r14)
	movq	%r14, 8(%r15)
	movq	%r15, %rdi
	callq	_ixgbe_ipsec_stop_engine
	movq	%r15, %rdi
	callq	_ixgbe_ipsec_clear_hw_tables
	movq	(%r15), %rax
	movq	_ixgbe_xfrmdev_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_7
LBB0_8:
	movq	16(%r14), %rdi
	callq	_kfree
	movq	8(%r14), %rdi
	callq	_kfree
	movq	(%r14), %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_kfree
LBB0_9:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ixgbe_mac_82598EB,8,3          ## @ixgbe_mac_82598EB
	.comm	_IXGBE_SECTXSTAT,4,2            ## @IXGBE_SECTXSTAT
	.comm	_IXGBE_SECTXSTAT_SECTX_OFF_DIS,4,2 ## @IXGBE_SECTXSTAT_SECTX_OFF_DIS
	.comm	_IXGBE_SECRXSTAT,4,2            ## @IXGBE_SECRXSTAT
	.comm	_IXGBE_SECRXSTAT_SECRX_OFF_DIS,4,2 ## @IXGBE_SECRXSTAT_SECRX_OFF_DIS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_IXGBE_IPSEC_MAX_SA_COUNT,4,2   ## @IXGBE_IPSEC_MAX_SA_COUNT
	.comm	_IXGBE_IPSEC_MAX_RX_IP_COUNT,4,2 ## @IXGBE_IPSEC_MAX_RX_IP_COUNT
	.comm	_ixgbe_xfrmdev_ops,4,2          ## @ixgbe_xfrmdev_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate memory for SA tables"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_init_ipsec_offload       ; -- Begin function ixgbe_init_ipsec_offload
	.p2align	2
_ixgbe_init_ipsec_offload:              ; @ixgbe_init_ipsec_offload
	.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, [x20, #16]!
Lloh0:
	adrp	x9, _ixgbe_mac_82598EB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ixgbe_mac_82598EB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _IXGBE_SECTXSTAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IXGBE_SECTXSTAT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_IXGBE_READ_REG
Lloh6:
	adrp	x8, _IXGBE_SECTXSTAT_SECTX_OFF_DIS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IXGBE_SECTXSTAT_SECTX_OFF_DIS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w21, w8, w0
Lloh9:
	adrp	x8, _IXGBE_SECRXSTAT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IXGBE_SECRXSTAT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_IXGBE_READ_REG
Lloh12:
	adrp	x8, _IXGBE_SECRXSTAT_SECRX_OFF_DIS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IXGBE_SECRXSTAT_SECRX_OFF_DIS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w8, w8, w0
	orr	w8, w21, w8
	cbz	w8, LBB0_3
LBB0_2:
	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
	ret
LBB0_3:
Lloh15:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.4:
	mov	x20, x0
	ldr	w0, [x0, #40]
	bl	_hash_init
Lloh17:
	adrp	x22, _IXGBE_IPSEC_MAX_SA_COUNT@GOTPAGE
Lloh18:
	ldr	x22, [x22, _IXGBE_IPSEC_MAX_SA_COUNT@GOTPAGEOFF]
	ldrsw	x8, [x22]
	lsl	x0, x8, #2
	ldr	w1, [x21]
	bl	_kzalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_8
; %bb.5:
	ldrsw	x8, [x22]
	lsl	x0, x8, #2
	ldr	w1, [x21]
	bl	_kzalloc
	str	x0, [x20]
	cbz	x0, LBB0_8
; %bb.6:
Lloh19:
	adrp	x8, _IXGBE_IPSEC_MAX_RX_IP_COUNT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IXGBE_IPSEC_MAX_RX_IP_COUNT@GOTPAGEOFF]
Lloh21:
	ldrsw	x8, [x8]
	lsl	x0, x8, #2
	ldr	w1, [x21]
	bl	_kzalloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_8
; %bb.7:
	stp	xzr, xzr, [x20, #24]
	str	x20, [x19, #8]
	mov	x0, x19
	bl	_ixgbe_ipsec_stop_engine
	mov	x0, x19
	bl	_ixgbe_ipsec_clear_hw_tables
	ldr	x8, [x19]
Lloh22:
	adrp	x9, _ixgbe_xfrmdev_ops@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ixgbe_xfrmdev_ops@GOTPAGEOFF]
	str	x9, [x8]
	b	LBB0_2
LBB0_8:
	ldr	x0, [x20, #16]
	bl	_kfree
	ldr	x0, [x20, #8]
	bl	_kfree
	ldr	x0, [x20]
	bl	_kfree
	mov	x0, x20
	bl	_kfree
LBB0_9:
	ldr	x0, [x19]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	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	_netdev_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ixgbe_mac_82598EB,8,3          ; @ixgbe_mac_82598EB
	.comm	_IXGBE_SECTXSTAT,4,2            ; @IXGBE_SECTXSTAT
	.comm	_IXGBE_SECTXSTAT_SECTX_OFF_DIS,4,2 ; @IXGBE_SECTXSTAT_SECTX_OFF_DIS
	.comm	_IXGBE_SECRXSTAT,4,2            ; @IXGBE_SECRXSTAT
	.comm	_IXGBE_SECRXSTAT_SECRX_OFF_DIS,4,2 ; @IXGBE_SECRXSTAT_SECRX_OFF_DIS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_IXGBE_IPSEC_MAX_SA_COUNT,4,2   ; @IXGBE_IPSEC_MAX_SA_COUNT
	.comm	_IXGBE_IPSEC_MAX_RX_IP_COUNT,4,2 ; @IXGBE_IPSEC_MAX_RX_IP_COUNT
	.comm	_ixgbe_xfrmdev_ops,4,2          ; @ixgbe_xfrmdev_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate memory for SA tables"

.subsections_via_symbols
