	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_nffw_info_open             ## -- Begin function nfp_nffw_info_open
	.p2align	4, 0x90
_nfp_nffw_info_open:                    ## @nfp_nffw_info_open
	.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	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	_NFP_RESOURCE_NFP_NFFW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nfp_resource_acquire
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:
	movl	(%rbx), %edi
	callq	_nfp_resource_size
	cmpl	$4, %eax
	jb	LBB0_8
## %bb.5:
	movq	%rbx, %r15
	addq	$16, %r15
	movl	(%rbx), %edi
	callq	_nfp_resource_cpp_id
	movl	%eax, %r12d
	movl	(%rbx), %edi
	callq	_nfp_resource_address
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	movq	%r15, %rcx
	movl	$4, %r8d
	callq	_nfp_cpp_read
	cmpl	$4, %eax
	jl	LBB0_8
## %bb.6:
	movq	%r15, %rdi
	callq	_nffw_res_flg_init_get
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_nffw_res_info_version_get
	movq	_NFFW_INFO_VERSION_CURRENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_10
LBB0_8:
	movl	(%rbx), %edi
	callq	_nfp_resource_release
LBB0_9:
	movq	%rbx, %rdi
	callq	_kfree
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_10:
	movq	%r14, 8(%rbx)
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NFP_RESOURCE_NFP_NFFW,4,2      ## @NFP_RESOURCE_NFP_NFFW
	.comm	_NFFW_INFO_VERSION_CURRENT,8,3  ## @NFFW_INFO_VERSION_CURRENT
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_nffw_info_open             ; -- Begin function nfp_nffw_info_open
	.p2align	2
_nfp_nffw_info_open:                    ; @nfp_nffw_info_open
	.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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _NFP_RESOURCE_NFP_NFFW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NFP_RESOURCE_NFP_NFFW@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_nfp_resource_acquire
	str	w0, [x19]
	bl	_IS_ERR
	cbnz	x0, LBB0_7
; %bb.2:
	mov	x21, x19
	ldr	w0, [x21], #16
	bl	_nfp_resource_size
	cmp	w0, #4
	b.lo	LBB0_6
; %bb.3:
	ldr	w0, [x19]
	bl	_nfp_resource_cpp_id
	mov	x22, x0
	ldr	w0, [x19]
	bl	_nfp_resource_address
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	mov	x3, x21
	mov	w4, #4
	bl	_nfp_cpp_read
	cmp	w0, #4
	b.lt	LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_nffw_res_flg_init_get
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_nffw_res_info_version_get
Lloh6:
	adrp	x8, _NFFW_INFO_VERSION_CURRENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NFFW_INFO_VERSION_CURRENT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_10
LBB0_6:
	ldr	w0, [x19]
	bl	_nfp_resource_release
LBB0_7:
	mov	x0, x19
	bl	_kfree
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
LBB0_10:
	str	x20, [x19, #8]
	mov	x0, x19
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NFP_RESOURCE_NFP_NFFW,4,2      ; @NFP_RESOURCE_NFP_NFFW
	.comm	_NFFW_INFO_VERSION_CURRENT,8,3  ; @NFFW_INFO_VERSION_CURRENT
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
