	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_net_tls_init               ## -- Begin function nfp_net_tls_init
	.p2align	4, 0x90
_nfp_net_tls_init:                      ## @nfp_net_tls_init
	.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	_NFP_NET_TLS_OPCODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%eax, (%rdi)
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	movl	4(%rdi), %eax
	movq	_NFP_NET_TLS_CCM_MBOX_OPS_MASK@GOTPCREL(%rip), %rcx
	notl	%eax
	testl	%eax, (%rcx)
	jne	LBB0_11
## %bb.2:
	movq	16(%rbx), %r15
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_nfp_ccm_mbox_fits
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_nfp_net_tls_reset
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movq	%rbx, %rdi
	callq	_nn_ctrl_bar_lock
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_nn_writel
	movq	_NFP_NET_CFG_UPDATE_CRYPTO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	___nfp_net_reconfig
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_nn_ctrl_bar_unlock
	testl	%r14d, %r14d
	jne	LBB0_11
## %bb.6:
	movl	(%rbx), %eax
	movq	_NFP_NET_TLS_OPCODE_MASK_RX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	_NETIF_F_HW_TLS_RX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 12(%r15)
	orl	%ecx, 8(%r15)
LBB0_8:
	movq	_NFP_NET_TLS_OPCODE_MASK_TX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movq	_NETIF_F_HW_TLS_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r15)
	orl	%eax, 8(%r15)
LBB0_10:
	movq	_nfp_net_tls_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%r15)
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_3:
	movl	12(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nn_warn
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_NET_TLS_OPCODE_MASK,4,2    ## @NFP_NET_TLS_OPCODE_MASK
	.comm	_NFP_NET_TLS_CCM_MBOX_OPS_MASK,4,2 ## @NFP_NET_TLS_CCM_MBOX_OPS_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disabling TLS offload - mbox too small: %d\n"

	.comm	_NFP_NET_CFG_UPDATE_CRYPTO,4,2  ## @NFP_NET_CFG_UPDATE_CRYPTO
	.comm	_NFP_NET_TLS_OPCODE_MASK_RX,4,2 ## @NFP_NET_TLS_OPCODE_MASK_RX
	.comm	_NETIF_F_HW_TLS_RX,4,2          ## @NETIF_F_HW_TLS_RX
	.comm	_NFP_NET_TLS_OPCODE_MASK_TX,4,2 ## @NFP_NET_TLS_OPCODE_MASK_TX
	.comm	_NETIF_F_HW_TLS_TX,4,2          ## @NETIF_F_HW_TLS_TX
	.comm	_nfp_net_tls_ops,4,2            ## @nfp_net_tls_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_net_tls_init               ; -- Begin function nfp_net_tls_init
	.p2align	2
_nfp_net_tls_init:                      ; @nfp_net_tls_init
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _NFP_NET_TLS_OPCODE_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NFP_NET_TLS_OPCODE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #4]
Lloh3:
	adrp	x9, _NFP_NET_TLS_CCM_MBOX_OPS_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NFP_NET_TLS_CCM_MBOX_OPS_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_11
; %bb.2:
	ldr	x21, [x19, #16]
	mov	x0, x19
	mov	w1, #4
	bl	_nfp_ccm_mbox_fits
	cbz	w0, LBB0_10
; %bb.3:
	mov	x0, x19
	bl	_nfp_net_tls_reset
	mov	x20, x0
	cbnz	w0, LBB0_12
; %bb.4:
	mov	x0, x19
	bl	_nn_ctrl_bar_lock
	ldr	w1, [x19, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_nn_writel
Lloh6:
	adrp	x8, _NFP_NET_CFG_UPDATE_CRYPTO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NFP_NET_CFG_UPDATE_CRYPTO@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	___nfp_net_reconfig
	mov	x20, x0
	mov	x0, x19
	bl	_nn_ctrl_bar_unlock
	cbnz	w20, LBB0_12
; %bb.5:
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _NFP_NET_TLS_OPCODE_MASK_RX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NFP_NET_TLS_OPCODE_MASK_RX@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh12:
	adrp	x9, _NETIF_F_HW_TLS_RX@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NETIF_F_HW_TLS_RX@GOTPAGEOFF]
	ldr	d0, [x21, #8]
	ld1r.2s	{ v1 }, [x9]
	orr.8b	v0, v0, v1
	str	d0, [x21, #8]
LBB0_7:
Lloh14:
	adrp	x9, _NFP_NET_TLS_OPCODE_MASK_TX@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NFP_NET_TLS_OPCODE_MASK_TX@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh17:
	adrp	x8, _NETIF_F_HW_TLS_TX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NETIF_F_HW_TLS_TX@GOTPAGEOFF]
	ldr	d0, [x21, #8]
	ld1r.2s	{ v1 }, [x8]
	orr.8b	v0, v0, v1
	str	d0, [x21, #8]
LBB0_9:
	mov	w20, #0
Lloh19:
	adrp	x8, _nfp_net_tls_ops@GOTPAGE
Lloh20:
	ldr	x8, [x8, _nfp_net_tls_ops@GOTPAGEOFF]
	str	x8, [x21]
	b	LBB0_12
LBB0_10:
	ldr	w2, [x19, #12]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nn_warn
LBB0_11:
	mov	w20, #0
LBB0_12:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_NET_TLS_OPCODE_MASK,4,2    ; @NFP_NET_TLS_OPCODE_MASK
	.comm	_NFP_NET_TLS_CCM_MBOX_OPS_MASK,4,2 ; @NFP_NET_TLS_CCM_MBOX_OPS_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disabling TLS offload - mbox too small: %d\n"

	.comm	_NFP_NET_CFG_UPDATE_CRYPTO,4,2  ; @NFP_NET_CFG_UPDATE_CRYPTO
	.comm	_NFP_NET_TLS_OPCODE_MASK_RX,4,2 ; @NFP_NET_TLS_OPCODE_MASK_RX
	.comm	_NETIF_F_HW_TLS_RX,4,2          ; @NETIF_F_HW_TLS_RX
	.comm	_NFP_NET_TLS_OPCODE_MASK_TX,4,2 ; @NFP_NET_TLS_OPCODE_MASK_TX
	.comm	_NETIF_F_HW_TLS_TX,4,2          ; @NETIF_F_HW_TLS_TX
	.comm	_nfp_net_tls_ops,4,2            ; @nfp_net_tls_ops
.subsections_via_symbols
