	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_cpp_from_nfp6000_pcie      ## -- Begin function nfp_cpp_from_nfp6000_pcie
	.p2align	4, 0x90
_nfp_cpp_from_nfp6000_pcie:             ## @nfp_cpp_from_nfp6000_pcie
	.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
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	%r14, %rdi
	callq	_pcie_print_link_status
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, 16(%rax)
	movq	%r14, 8(%rax)
	movq	%rax, %rdi
	addq	$4, %rdi
	callq	_init_waitqueue_head
	movq	%r15, %rdi
	callq	_spin_lock_init
	movq	%r14, %rdi
	callq	_nfp6000_get_interface
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_NFP_CPP_INTERFACE_TYPE_of
	movq	_NFP_CPP_INTERFACE_TYPE_PCI@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_3
## %bb.5:
	movl	%ebx, %edi
	callq	_NFP_CPP_INTERFACE_CHANNEL_of
	movq	_NFP_CPP_INTERFACE_CHANNEL_PEROPENER@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_enable_bars
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.10:
	movq	_nfp6000_pcie_ops@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nfp_cpp_from_operations        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_3:
	movl	%ebx, %edi
	callq	_NFP_CPP_INTERFACE_TYPE_of
	movq	(%r12), %rcx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_6:
	movl	%ebx, %edi
	callq	_NFP_CPP_INTERFACE_CHANNEL_of
	movq	(%r12), %rcx
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_8:
	movq	%r15, %rdi
	callq	_kfree
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Netronome Flow Processor NFP4000/NFP5000/NFP6000 PCIe Card Probe\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NFP_CPP_INTERFACE_TYPE_PCI,8,3 ## @NFP_CPP_INTERFACE_TYPE_PCI
L_.str.1:                               ## @.str.1
	.asciz	"Interface type %d is not the expected %d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_NFP_CPP_INTERFACE_CHANNEL_PEROPENER,8,3 ## @NFP_CPP_INTERFACE_CHANNEL_PEROPENER
L_.str.2:                               ## @.str.2
	.asciz	"Interface channel %d is not the expected %d\n"

	.comm	_nfp6000_pcie_ops,4,2           ## @nfp6000_pcie_ops
L_.str.3:                               ## @.str.3
	.asciz	"NFP6000 PCI setup failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_cpp_from_nfp6000_pcie      ; -- Begin function nfp_cpp_from_nfp6000_pcie
	.p2align	2
_nfp_cpp_from_nfp6000_pcie:             ; @nfp_cpp_from_nfp6000_pcie
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	mov	x0, x19
	bl	_pcie_print_link_status
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	stp	x19, x19, [x0, #8]
	add	x0, x0, #4
	bl	_init_waitqueue_head
	mov	x0, x20
	bl	_spin_lock_init
	mov	x0, x19
	bl	_nfp6000_get_interface
	mov	x21, x0
	bl	_NFP_CPP_INTERFACE_TYPE_of
Lloh5:
	adrp	x22, _NFP_CPP_INTERFACE_TYPE_PCI@GOTPAGE
Lloh6:
	ldr	x22, [x22, _NFP_CPP_INTERFACE_TYPE_PCI@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x21
	bl	_NFP_CPP_INTERFACE_CHANNEL_of
Lloh7:
	adrp	x22, _NFP_CPP_INTERFACE_CHANNEL_PEROPENER@GOTPAGE
Lloh8:
	ldr	x22, [x22, _NFP_CPP_INTERFACE_CHANNEL_PEROPENER@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	bl	_enable_bars
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.4:
Lloh9:
	adrp	x0, _nfp6000_pcie_ops@GOTPAGE
Lloh10:
	ldr	x0, [x0, _nfp6000_pcie_ops@GOTPAGEOFF]
	mov	x1, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_nfp_cpp_from_operations
LBB0_5:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_6:
	mov	x0, x21
	bl	_NFP_CPP_INTERFACE_TYPE_of
	ldr	x8, [x22]
	stp	x0, x8, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
	mov	x0, x21
	bl	_NFP_CPP_INTERFACE_CHANNEL_of
	ldr	x8, [x22]
	stp	x0, x8, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_dev_err
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x20
	bl	_kfree
LBB0_10:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Netronome Flow Processor NFP4000/NFP5000/NFP6000 PCIe Card Probe\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NFP_CPP_INTERFACE_TYPE_PCI,8,3 ; @NFP_CPP_INTERFACE_TYPE_PCI
l_.str.1:                               ; @.str.1
	.asciz	"Interface type %d is not the expected %d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_NFP_CPP_INTERFACE_CHANNEL_PEROPENER,8,3 ; @NFP_CPP_INTERFACE_CHANNEL_PEROPENER
l_.str.2:                               ; @.str.2
	.asciz	"Interface channel %d is not the expected %d\n"

	.comm	_nfp6000_pcie_ops,4,2           ; @nfp6000_pcie_ops
l_.str.3:                               ; @.str.3
	.asciz	"NFP6000 PCI setup failed\n"

.subsections_via_symbols
