	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_net_tls_resync
_nfp_net_tls_resync:                    ## @nfp_net_tls_resync
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movq	%rcx, %r12
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_TLS_OFFLOAD_CTX_DIR_TX@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_nfp_net_tls_alloc_simple
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_tls_driver_ctx
	movl	%r15d, %ebx
	movq	%rax, %r15
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	(%r13), %r12
	movq	$0, 24(%r12)
	movl	%ebx, %edi
	callq	_nfp_tls_1_2_dir_to_opcode
	movl	%eax, 16(%r12)
	movl	12(%r12), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	8(%r12), %edi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be32
	movl	%eax, 4(%r12)
	movl	(%r12), %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcpy
	movq	_NFP_CCM_TYPE_CRYPTO_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_TLS_OFFLOAD_CTX_DIR_TX@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_8
## %bb.6:
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_nfp_net_tls_communicate_simple
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_9
LBB0_8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%ecx, %edx
	movl	$4, %ecx
	callq	_nfp_ccm_mbox_post
LBB0_9:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS_OFFLOAD_CTX_DIR_TX,4,2     ## @TLS_OFFLOAD_CTX_DIR_TX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sync"

	.comm	_NFP_CCM_TYPE_CRYPTO_UPDATE,4,2 ## @NFP_CCM_TYPE_CRYPTO_UPDATE
	.no_dead_strip	_nfp_net_tls_resync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_net_tls_resync
_nfp_net_tls_resync:                    ; @nfp_net_tls_resync
	.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
	mov	x21, x4
	mov	x22, x3
	mov	x19, x2
	mov	x24, x1
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x25, _TLS_OFFLOAD_CTX_DIR_TX@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TLS_OFFLOAD_CTX_DIR_TX@GOTPAGEOFF]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh4:
	adrp	x10, _GFP_ATOMIC@GOTPAGE
Lloh5:
	ldr	x10, [x10, _GFP_ATOMIC@GOTPAGEOFF]
	cmp	w9, w21
	csel	x8, x8, x10, eq
	ldr	w2, [x8]
	mov	w1, #32
	bl	_nfp_net_tls_alloc_simple
	cbz	x0, LBB0_4
; %bb.1:
	mov	x23, x0
	mov	x0, x24
	mov	x1, x21
	bl	_tls_driver_ctx
	mov	x24, x0
	ldr	x26, [x23]
	str	xzr, [x26, #24]
	mov	x0, x21
	bl	_nfp_tls_1_2_dir_to_opcode
	str	w0, [x26, #16]
	ldr	w0, [x26, #12]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [x26, #8]
	ldr	x1, [x24, #8]
	mov	w2, #8
	bl	_memcpy
	mov	x0, x19
	bl	_cpu_to_be32
	str	w0, [x26, #4]
	ldr	w0, [x26]
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x25]
Lloh6:
	adrp	x9, _NFP_CCM_TYPE_CRYPTO_UPDATE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NFP_CCM_TYPE_CRYPTO_UPDATE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x9]
	cmp	w8, w21
	b.ne	LBB0_5
; %bb.2:
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x23
	bl	_nfp_net_tls_communicate_simple
	cbnz	w0, LBB0_6
; %bb.3:
	str	w19, [x24]
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x3
	mov	w3, #4
	bl	_nfp_ccm_mbox_post
	mov	w0, #0
LBB0_6:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS_OFFLOAD_CTX_DIR_TX,4,2     ; @TLS_OFFLOAD_CTX_DIR_TX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sync"

	.comm	_NFP_CCM_TYPE_CRYPTO_UPDATE,4,2 ; @NFP_CCM_TYPE_CRYPTO_UPDATE
	.no_dead_strip	_nfp_net_tls_resync
.subsections_via_symbols
