	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_nffw_info_mip_first        ## -- Begin function nfp_nffw_info_mip_first
	.p2align	4, 0x90
_nfp_nffw_info_mip_first:               ## @nfp_nffw_info_mip_first
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_nfp_nffw_info_fwid_first
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_nffw_fwinfo_mip_cppid_get
	movl	%eax, (%r15)
	movq	%rbx, %rdi
	callq	_nffw_fwinfo_mip_offset_get
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_nffw_fwinfo_mip_mu_da_get
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r12), %edi
	callq	_nfp_cpp_mu_locality_lsb
	movl	%eax, %ecx
	movq	_NFP_MU_ADDR_ACCESS_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	%cl, %eax
	notl	%eax
	andl	(%r14), %eax
	movl	%eax, (%r14)
	movq	_NFP_MU_ADDR_ACCESS_TYPE_DIRECT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%eax, %edx
	movl	%edx, (%r14)
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_4:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NFP_MU_ADDR_ACCESS_TYPE_MASK,4,2 ## @NFP_MU_ADDR_ACCESS_TYPE_MASK
	.comm	_NFP_MU_ADDR_ACCESS_TYPE_DIRECT,4,2 ## @NFP_MU_ADDR_ACCESS_TYPE_DIRECT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_nffw_info_mip_first        ; -- Begin function nfp_nffw_info_mip_first
	.p2align	2
_nfp_nffw_info_mip_first:               ; @nfp_nffw_info_mip_first
	.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	x22, x1
	mov	x20, x0
	bl	_nfp_nffw_info_fwid_first
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	bl	_nffw_fwinfo_mip_cppid_get
	str	w0, [x22]
	mov	x0, x21
	bl	_nffw_fwinfo_mip_offset_get
	str	w0, [x19]
	mov	x0, x21
	bl	_nffw_fwinfo_mip_mu_da_get
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x20]
	bl	_nfp_cpp_mu_locality_lsb
	mov	x8, x0
	mov	w0, #0
Lloh0:
	adrp	x9, _NFP_MU_ADDR_ACCESS_TYPE_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NFP_MU_ADDR_ACCESS_TYPE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsl	w9, w9, w8
	ldr	w10, [x19]
	bic	w9, w10, w9
	str	w9, [x19]
Lloh3:
	adrp	x10, _NFP_MU_ADDR_ACCESS_TYPE_DIRECT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NFP_MU_ADDR_ACCESS_TYPE_DIRECT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	lsl	w8, w10, w8
	orr	w8, w8, w9
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
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	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NFP_MU_ADDR_ACCESS_TYPE_MASK,4,2 ; @NFP_MU_ADDR_ACCESS_TYPE_MASK
	.comm	_NFP_MU_ADDR_ACCESS_TYPE_DIRECT,4,2 ; @NFP_MU_ADDR_ACCESS_TYPE_DIRECT
.subsections_via_symbols
