	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_dump_hwinfo_field
_nfp_dump_hwinfo_field:                 ## @nfp_dump_hwinfo_field
	.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	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rdx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	8(%rsi), %edi
	callq	_be32_to_cpu
	movq	%rax, %r15
	movq	(%rbx), %r14
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_strnlen
	cmpq	%r15, %rax
	jne	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%rax, %r15
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_nfp_hwinfo_lookup
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_strlen
	movq	%rax, %rbx
	leaq	(%r15,%rax), %rdi
	addq	$2, %rdi
	callq	_ALIGN8
	leaq	16(%rax), %rsi
	movq	_NFP_DUMPSPEC_TYPE_HWINFO_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rdx
	callq	_nfp_add_tlv
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rdi
	leaq	1(%r15), %rdx
	movq	%r14, %rsi
	callq	_memcpy
	movq	(%r13), %rax
	leaq	(%rax,%r15), %rdi
	incq	%rdi
	incq	%rbx
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%esi, %esi
	subl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nfp_dump_error_tlv             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_NFP_DUMPSPEC_TYPE_HWINFO_FIELD,4,2 ## @NFP_DUMPSPEC_TYPE_HWINFO_FIELD
	.no_dead_strip	_nfp_dump_hwinfo_field
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_dump_hwinfo_field
_nfp_dump_hwinfo_field:                 ; @nfp_dump_hwinfo_field
	.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	x19, x2
	mov	x23, x1
	mov	x22, x0
	ldr	x25, [x2]
	ldr	w0, [x1, #8]
	bl	_be32_to_cpu
	mov	x24, x0
	ldr	x20, [x23]
	mov	x0, x20
	mov	x1, x24
	bl	_strnlen
	cmp	x0, x24
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x21, x0
	ldr	w0, [x22]
	mov	x1, x20
	bl	_nfp_hwinfo_lookup
	cbz	x0, LBB0_6
; %bb.3:
	mov	x22, x0
	bl	_strlen
	mov	x23, x0
	add	x8, x21, x0
	add	x0, x8, #2
	bl	_ALIGN8
	add	x1, x0, #16
Lloh2:
	adrp	x8, _NFP_DUMPSPEC_TYPE_HWINFO_FIELD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NFP_DUMPSPEC_TYPE_HWINFO_FIELD@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x2, x19
	bl	_nfp_add_tlv
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x0, [x25]
	add	x2, x21, #1
	mov	x1, x20
	bl	_memcpy
	ldr	x8, [x25]
	add	x8, x8, x21
	add	x0, x8, #1
	add	x2, x23, #1
	mov	x1, x22
	bl	_memcpy
	mov	w0, #0
LBB0_5:
	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
LBB0_6:
Lloh5:
	adrp	x8, _ENOENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w1, w8
	mov	x0, x23
	mov	x2, x19
	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
	b	_nfp_dump_error_tlv
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_NFP_DUMPSPEC_TYPE_HWINFO_FIELD,4,2 ; @NFP_DUMPSPEC_TYPE_HWINFO_FIELD
	.no_dead_strip	_nfp_dump_hwinfo_field
.subsections_via_symbols
