	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_nsp_hwinfo_lookup          ## -- Begin function nfp_nsp_hwinfo_lookup
	.p2align	4, 0x90
_nfp_nsp_hwinfo_lookup:                 ## @nfp_nsp_hwinfo_lookup
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	_u32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NFP_HWINFO_LOOKUP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%edx, %esi
	movl	%eax, %edx
	callq	_min_t
	movl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	___nfp_nsp_hwinfo_lookup
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_strnlen
	movl	%eax, %ecx
	movl	$0, %eax
	cmpl	%ebx, %ecx
	jne	LBB0_3
## %bb.2:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_nfp_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_u32,4,2                        ## @u32
	.comm	_NFP_HWINFO_LOOKUP_SIZE,4,2     ## @NFP_HWINFO_LOOKUP_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NSP HWinfo value not NULL-terminated\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_nsp_hwinfo_lookup          ; -- Begin function nfp_nsp_hwinfo_lookup
	.p2align	2
_nfp_nsp_hwinfo_lookup:                 ; @nfp_nsp_hwinfo_lookup
	.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	x8, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x9, _u32@GOTPAGE
Lloh1:
	ldr	x9, [x9, _u32@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
Lloh3:
	adrp	x9, _NFP_HWINFO_LOOKUP_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NFP_HWINFO_LOOKUP_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x9]
	mov	x1, x8
	bl	_min_t
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w3, #0
	bl	___nfp_nsp_hwinfo_lookup
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_strnlen
	cmp	w0, w21
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nfp_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_u32,4,2                        ; @u32
	.comm	_NFP_HWINFO_LOOKUP_SIZE,4,2     ; @NFP_HWINFO_LOOKUP_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NSP HWinfo value not NULL-terminated\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
