	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_traverse_tlvs
_nfp_traverse_tlvs:                     ## @nfp_traverse_tlvs
	.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	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movslq	%edx, %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	cmpq	$8, %r13
	jb	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %edi
	movl	4(%rbx), %ecx
	orl	%edi, %ecx
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	callq	_be32_to_cpu
	cltq
	leaq	-8(%r13), %rcx
	cmpq	%rax, %rcx
	jb	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %edi
	callq	_be32_to_cpu
	testb	$3, %al
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	$8, %eax
	cltq
	leaq	(%rbx,%rax), %r14
	subq	%rax, %r13
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	*-48(%rbp)                      ## 8-byte Folded Reload
	movq	%r14, %rbx
	testl	%eax, %eax
	je	LBB0_1
	jmp	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_nfp_traverse_tlvs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_traverse_tlvs
_nfp_traverse_tlvs:                     ; @nfp_traverse_tlvs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x4
	mov	x20, x3
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x22, x1
	mov	x21, x0
	sxtw	x23, w2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	subs	x24, x23, #8
	b.lo	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	w0, w8, [x22]
	orr	w8, w8, w0
	cbz	w8, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_be32_to_cpu
	cmp	x24, w0, sxtw
	b.lo	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x22]
	bl	_be32_to_cpu
	tst	w0, #0x3
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w8, w0, #8
	sxtw	x8, w8
	add	x24, x22, x8
	sub	x23, x23, x8
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	blr	x19
	mov	x22, x24
	cbz	w0, LBB0_1
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_nfp_traverse_tlvs
.subsections_via_symbols
