	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_add_tlv_size
_nfp_add_tlv_size:                      ## @nfp_add_tlv_size
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rsi), %edi
	callq	_be32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_11
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movq	%rbx, %rdi
	callq	_nfp_csr_spec_valid
	testl	%eax, %eax
	je	LBB0_11
## %bb.4:
	movl	$4, %edi
	callq	_ALIGN8
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_be32_to_cpu
	jmp	LBB0_5
LBB0_8:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_nfp_calc_rtsym_dump_sz
	jmp	LBB0_12
LBB0_6:
	movq	%rbx, %rdi
	callq	_nfp_csr_spec_valid
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	movl	$4, %edi
	callq	_ALIGN8
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_be32_to_cpu
	movq	_NFP_IND_NUM_CONTEXTS@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
LBB0_5:
	movl	%eax, %edi
	callq	_ALIGN8
	movl	%eax, %ecx
	addl	%r15d, %ecx
	movl	(%r14), %eax
	jmp	LBB0_13
LBB0_11:
	movq	%rbx, %rdi
	callq	_nfp_dump_error_tlv_size
	jmp	LBB0_12
LBB0_10:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_nfp_calc_hwinfo_field_sz
	jmp	LBB0_12
LBB0_9:
	movl	(%r15), %edi
	callq	_nfp_hwinfo_get_packed_str_size
	movl	%eax, %edi
	callq	_ALIGN8
	movl	%eax, %ecx
	addl	$4, %ecx
	movl	(%r14), %eax
	jmp	LBB0_13
LBB0_2:
	movq	%r15, %rdi
	callq	_nfp_calc_fwname_tlv_size
LBB0_12:
	movl	(%r14), %ecx
LBB0_13:
	addl	%ecx, %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_8
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_2
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_NFP_IND_NUM_CONTEXTS,4,2       ## @NFP_IND_NUM_CONTEXTS
	.no_dead_strip	_nfp_add_tlv_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_add_tlv_size
_nfp_add_tlv_size:                      ; @nfp_add_tlv_size
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x1]
	bl	_be32_to_cpu
	sub	w8, w0, #128
	cmp	w8, #7
	b.hi	LBB0_8
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x20
	bl	_nfp_csr_spec_valid
	cbz	w0, LBB0_8
; %bb.3:
	mov	w0, #4
	bl	_ALIGN8
	mov	x21, x0
	ldr	w0, [x20]
	bl	_be32_to_cpu
	b	LBB0_7
LBB0_4:
	mov	x0, x21
	mov	x1, x20
	bl	_nfp_calc_rtsym_dump_sz
	b	LBB0_12
LBB0_5:
	mov	x0, x20
	bl	_nfp_csr_spec_valid
	cbz	w0, LBB0_8
; %bb.6:
	mov	w0, #4
	bl	_ALIGN8
	mov	x21, x0
	ldr	w0, [x20]
	bl	_be32_to_cpu
Lloh2:
	adrp	x8, _NFP_IND_NUM_CONTEXTS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NFP_IND_NUM_CONTEXTS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mul	w0, w8, w0
LBB0_7:
	bl	_ALIGN8
	add	w8, w0, w21
	ldr	w0, [x19]
	b	LBB0_13
LBB0_8:
	mov	x0, x20
	bl	_nfp_dump_error_tlv_size
	b	LBB0_12
LBB0_9:
	mov	x0, x21
	mov	x1, x20
	bl	_nfp_calc_hwinfo_field_sz
	b	LBB0_12
LBB0_10:
	ldr	w0, [x21]
	bl	_nfp_hwinfo_get_packed_str_size
	bl	_ALIGN8
	add	w8, w0, #4
	ldr	w0, [x19]
	b	LBB0_13
LBB0_11:
	mov	x0, x21
	bl	_nfp_calc_fwname_tlv_size
LBB0_12:
	ldr	w8, [x19]
LBB0_13:
	add	w8, w8, w0
	str	w8, [x19]
	mov	w0, #0
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_NFP_IND_NUM_CONTEXTS,4,2       ; @NFP_IND_NUM_CONTEXTS
	.no_dead_strip	_nfp_add_tlv_size
.subsections_via_symbols
