	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_cpp_model_autodetect       ## -- Begin function nfp_cpp_model_autodetect
	.p2align	4, 0x90
_nfp_cpp_model_autodetect:              ## @nfp_cpp_model_autodetect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$1, %edi
	movl	$1, %esi
	movl	$16, %edx
	callq	_NFP_XPB_DEVICE
	movq	_NFP_PL_DEVICE_ID@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_nfp_xpb_readl
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	_NFP_PL_DEVICE_MODEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	-20(%rbp), %ecx
	movl	%ecx, (%r14)
	movq	_NFP_PL_DEVICE_ID_MASK@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	je	LBB0_3
## %bb.2:
	addl	$-16, %ecx
	movl	%ecx, (%r14)
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_PL_DEVICE_ID,8,3           ## @NFP_PL_DEVICE_ID
	.comm	_NFP_PL_DEVICE_MODEL_MASK,4,2   ## @NFP_PL_DEVICE_MODEL_MASK
	.comm	_NFP_PL_DEVICE_ID_MASK,4,2      ## @NFP_PL_DEVICE_ID_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_cpp_model_autodetect       ; -- Begin function nfp_cpp_model_autodetect
	.p2align	2
_nfp_cpp_model_autodetect:              ; @nfp_cpp_model_autodetect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w0, #1
	mov	w1, #1
	mov	w2, #16
	bl	_NFP_XPB_DEVICE
Lloh0:
	adrp	x8, _NFP_PL_DEVICE_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_PL_DEVICE_ID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, x0
	add	x2, sp, #12
	mov	x0, x20
	bl	_nfp_xpb_readl
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _NFP_PL_DEVICE_MODEL_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NFP_PL_DEVICE_MODEL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x19]
Lloh6:
	adrp	x9, _NFP_PL_DEVICE_ID_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NFP_PL_DEVICE_ID_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	w0, #0
	sub	w8, w8, #16
	str	w8, [x19]
	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
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_PL_DEVICE_ID,8,3           ; @NFP_PL_DEVICE_ID
	.comm	_NFP_PL_DEVICE_MODEL_MASK,4,2   ; @NFP_PL_DEVICE_MODEL_MASK
	.comm	_NFP_PL_DEVICE_ID_MASK,4,2      ; @NFP_PL_DEVICE_ID_MASK
.subsections_via_symbols
