	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enable_bars
_enable_bars:                           ## @enable_bars
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -320(%rbp)                ## 4-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NFP_PCIE_BAR_PCIE2CPP_MapType_GENERAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_NFP_PCIE_BAR_PCIE2CPP_MapType
	movq	_NFP_PCIE_BAR_PCIE2CPP_LengthSelect_32BIT@GOTPCREL(%rip), %rbx
	orl	(%rbx), %eax
	movl	%eax, -296(%rbp)                ## 4-byte Spill
	movq	_NFP_PCIE_BAR_PCIE2CPP_MapType_BULK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_NFP_PCIE_BAR_PCIE2CPP_MapType
	orl	(%rbx), %eax
	movl	%eax, -304(%rbp)                ## 4-byte Spill
	movq	_NFP_CPP_TARGET_ISLAND_XPB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_NFP_PCIE_BAR_PCIE2CPP_Target_BaseAddress
	movl	%eax, -312(%rbp)                ## 4-byte Spill
	movq	_NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_NFP_PCIE_BAR_PCIE2CPP_MapType
	movl	%eax, -64(%rbp)
	movq	_NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_NFP_PCIE_BAR_PCIE2CPP_MapType
	movl	%eax, -60(%rbp)
	movq	_NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_NFP_PCIE_BAR_PCIE2CPP_MapType
	movl	%eax, -56(%rbp)
	movq	_NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_NFP_PCIE_BAR_PCIE2CPP_MapType
	movl	%eax, -52(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -176(%rbp)
	movaps	%xmm0, -192(%rbp)
	movaps	%xmm0, -208(%rbp)
	movaps	%xmm0, -224(%rbp)
	movaps	%xmm0, -240(%rbp)
	movaps	%xmm0, -256(%rbp)
	movaps	%xmm0, -272(%rbp)
	movl	$0, -80(%rbp)
	leaq	L_.str(%rip), %rdx
	xorl	%r15d, %r15d
	leaq	-272(%rbp), %rdi
	movl	$195, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movl	%eax, -280(%rbp)                ## 4-byte Spill
	movq	8(%r13), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, 64(%r14)
	movq	$0, 56(%r14)
	movq	%r13, 48(%r14)
	movl	%r15d, (%r14)
	movq	%r14, %rdi
	callq	_nfp_bar_resource_len
	leaq	-1(%rax), %rdi
	movq	%rdi, 40(%r14)
	callq	_fls
	movq	%rax, 16(%r14)
	movq	$0, 32(%r14)
	movq	$0, 8(%r14)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	addq	$72, %r14
	movq	8(%r13), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r15d
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	80(%r13), %rax
	movl	%r15d, %ebx
	shrl	$2, %ebx
	andl	$536870910, %ebx                ## imm = 0x1FFFFFFE
	shlq	$2, %rbx
	addq	8(%rax), %rbx
	movq	%rbx, %rdi
	callq	_resource_type
	testl	%eax, (%r12)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$-72, %r14
	jmp	LBB0_5
LBB0_6:
	subq	8(%r13), %r14
	shrq	$3, %r14
	imull	$954437177, %r14d, %eax         ## imm = 0x38E38E39
	movl	%eax, (%r13)
	cmpl	$7, %eax
	jg	LBB0_8
## %bb.7:
	movl	16(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_28
LBB0_8:
	movl	%eax, -284(%rbp)                ## 4-byte Spill
	movslq	-280(%rbp), %r14                ## 4-byte Folded Reload
	leaq	72(%r13), %rdi
	callq	_mutex_init
	movl	-320(%rbp), %edi                ## 4-byte Reload
	callq	_NFP_CPP_INTERFACE_UNIT_of
	shll	$4, %eax
	andl	$48, %eax
	orl	$64, %eax
	movl	%eax, 48(%r13)
	movl	$16, 52(%r13)
	movq	8(%r13), %r12
	movq	%r12, %rdi
	callq	_nfp_bar_resource_len
	movq	_NFP_PCI_MIN_MAP_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_10
## %bb.9:
	movq	8(%r12), %rax
	jmp	LBB0_11
LBB0_10:
	movq	%r12, %rdi
	callq	_nfp_bar_resource_start
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_nfp_bar_resource_len
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_ioremap_nocache
	movq	%rax, 8(%r12)
LBB0_11:
	leaq	(%r14,%rbp), %r15
	addq	$-272, %r15                     ## imm = 0xFEF0
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	movl	$195, %esi
	subl	-280(%rbp), %esi                ## 4-byte Folded Reload
	leaq	L_.str.2(%rip), %rdx
	movl	$0, -280(%rbp)                  ## 4-byte Folded Spill
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_snprintf
	movl	%eax, %r14d
	leaq	24(%r12), %rdi
	callq	_atomic_inc
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	-296(%rbp), %edx                ## 4-byte Reload
	callq	_nfp6000_bar_write
	movq	8(%r12), %rbx
	movq	_NFP_PCIE_SRAM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rbx,%rax,4), %rax
	addq	$16384, %rax                    ## imm = 0x4000
	movq	%rax, 64(%r13)
	movq	80(%r13), %rax
	movl	(%rax), %edx
	leal	-128(%rdx), %ecx
	cmpl	$3, %ecx
	jb	LBB0_15
## %bb.13:
	cmpl	$131, %edx
	jne	LBB0_26
## %bb.14:
	movl	4(%rax), %eax
	andl	$7, %eax
	movl	%eax, -280(%rbp)                ## 4-byte Spill
LBB0_15:
	movslq	%r14d, %rax
	addq	%rax, %r15
	decl	-284(%rbp)                      ## 4-byte Folded Spill
	movl	-280(%rbp), %edi                ## 4-byte Reload
	callq	_NFP_PCIE_BAR
	cltq
	leaq	(%rbx,%rax,4), %rax
	movq	%rax, 40(%r13)
	movq	_NFP_PCIE_EM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	addq	8(%r12), %rax
	movq	%rax, 32(%r13)
LBB0_16:
	movq	80(%r13), %rax
	movl	(%rax), %edx
	leal	-128(%rdx), %eax
	cmpl	$3, %eax
	ja	LBB0_26
## %bb.17:
	movl	-304(%rbp), %r14d               ## 4-byte Reload
	orl	-312(%rbp), %r14d               ## 4-byte Folded Reload
	leaq	-77(%rbp), %rdx
	cltq
	leaq	l_switch.table.enable_bars(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	%rax, -320(%rbp)                ## 8-byte Spill
	movq	8(%r13), %rbx
	leaq	72(%rbx), %r12
	movl	%edx, %esi
	subl	%r15d, %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_snprintf
	cltq
	addq	%r15, %rax
	movq	%rax, -304(%rbp)                ## 8-byte Spill
	addq	$96, %rbx
	movq	%rbx, %rdi
	callq	_atomic_inc
	decl	-284(%rbp)                      ## 4-byte Folded Spill
	movq	%r13, -280(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_nfp6000_bar_write
	movl	$288, %r12d                     ## imm = 0x120
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-280(%rbp), %rax                ## 8-byte Reload
	movq	56(%rax), %rax
	movq	$0, 16(%rax,%r13)
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%r15
	addq	$72, %r12
	addq	$24, %r13
	cmpq	$4, %r15
	je	LBB0_25
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	cmpq	-320(%rbp), %r15                ## 8-byte Folded Reload
	jae	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_NFP_PCIE_EXPLICIT_BARS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r15
	jge	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-280(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %r14
	leaq	(%r14,%r12), %rbx
	movq	%rbx, %rdi
	callq	_nfp_bar_resource_start
	movl	%eax, -296(%rbp)                ## 4-byte Spill
	movq	%rbx, -312(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_nfp_bar_resource_len
	movl	-296(%rbp), %edi                ## 4-byte Reload
	movq	%rax, %rsi
	callq	_ioremap_nocache
	movq	%r14, -296(%rbp)                ## 8-byte Spill
	movq	%rax, 8(%r14,%r12)
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=1
	leal	4(%r15), %ecx
	leaq	-77(%rbp), %rax
	movl	%eax, %esi
	movq	-304(%rbp), %rdi                ## 8-byte Reload
	subl	%edi, %esi
	leaq	L_.str.5(%rip), %rdx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_snprintf
	cltq
	movq	%rax, -328(%rbp)                ## 8-byte Spill
	movq	-296(%rbp), %rbx                ## 8-byte Reload
	leaq	(%rbx,%r12), %rdi
	addq	$24, %rdi
	callq	_atomic_inc
	movq	16(%rbx,%r12), %rax
	movq	-280(%rbp), %r14                ## 8-byte Reload
	movq	56(%r14), %rcx
	movq	%rax, 16(%rcx,%r13)
	movq	8(%rbx,%r12), %rax
	movq	%rax, 8(%rcx,%r13)
	movl	-64(%rbp,%r15,4), %edx
	movq	%r14, %rdi
	movq	-312(%rbp), %rsi                ## 8-byte Reload
	callq	_nfp6000_bar_write
	movq	56(%r14), %rax
	movq	(%rax,%r13), %rdi
	movl	$16, %edx
	leaq	L_.memset_pattern(%rip), %rsi
	callq	_memset_pattern16
	movq	-328(%rbp), %rax                ## 8-byte Reload
	addq	%rax, -304(%rbp)                ## 8-byte Folded Spill
	decl	-284(%rbp)                      ## 4-byte Folded Spill
	movq	8(%rbx,%r12), %rax
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-280(%rbp), %rcx                ## 8-byte Reload
	movq	24(%rcx), %rcx
	movq	%rax, (%rcx,%r15,8)
	jmp	LBB0_24
LBB0_26:
	movl	16(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	8(%r13), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.27:
	callq	_iounmap
	jmp	LBB0_28
LBB0_25:
	movq	-280(%rbp), %r14                ## 8-byte Reload
	movq	8(%r14), %rdi
	movl	(%r14), %esi
	movq	_bar_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movl	$72, %edx
	xorl	%r8d, %r8d
	callq	_sort
	movl	(%r14), %r8d
	movl	16(%r14), %edi
	leaq	L_.str.6(%rip), %rsi
	leaq	-272(%rbp), %rdx
	movl	-284(%rbp), %ecx                ## 4-byte Reload
	callq	_dev_info
LBB0_28:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.29:
	movl	%ebx, %eax
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_PCIE_BAR_PCIE2CPP_MapType_GENERAL,4,2 ## @NFP_PCIE_BAR_PCIE2CPP_MapType_GENERAL
	.comm	_NFP_PCIE_BAR_PCIE2CPP_LengthSelect_32BIT,4,2 ## @NFP_PCIE_BAR_PCIE2CPP_LengthSelect_32BIT
	.comm	_NFP_PCIE_BAR_PCIE2CPP_MapType_BULK,4,2 ## @NFP_PCIE_BAR_PCIE2CPP_MapType_BULK
	.comm	_NFP_CPP_TARGET_ISLAND_XPB,4,2  ## @NFP_CPP_TARGET_ISLAND_XPB
	.comm	_NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT0,4,2 ## @NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT0
	.comm	_NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT1,4,2 ## @NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT1
	.comm	_NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT2,4,2 ## @NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT2
	.comm	_NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT3,4,2 ## @NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RESERVED BARs: "

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.1:                               ## @.str.1
	.asciz	"No usable BARs found!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NFP_PCI_MIN_MAP_SIZE,8,3       ## @NFP_PCI_MIN_MAP_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"0.0: General/MSI-X SRAM, "

	.comm	_NFP_PCIE_SRAM,4,2              ## @NFP_PCIE_SRAM
L_.str.3:                               ## @.str.3
	.asciz	"Unsupported device ID: %04hx!\n"

	.comm	_NFP_PCIE_EM,4,2                ## @NFP_PCIE_EM
L_.str.4:                               ## @.str.4
	.asciz	"0.1: PCIe XPB/MSI-X PBA, "

	.comm	_NFP_PCIE_EXPLICIT_BARS,4,2     ## @NFP_PCIE_EXPLICIT_BARS
L_.str.5:                               ## @.str.5
	.asciz	"0.%d: Explicit%d, "

	.comm	_bar_cmp,4,2                    ## @bar_cmp
L_.str.6:                               ## @.str.6
	.asciz	"%sfree: %d/%d\n"

	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern
L_.memset_pattern:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1

	.no_dead_strip	_enable_bars
	.section	__TEXT,__const
	.p2align	3                               ## @switch.table.enable_bars
l_switch.table.enable_bars:
	.quad	4                               ## 0x4
	.quad	4                               ## 0x4
	.quad	4                               ## 0x4
	.quad	1                               ## 0x1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enable_bars
_enable_bars:                           ; @enable_bars
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #368
	.cfi_def_cfa_offset 368
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #288]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #304]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #320]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #336]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #352]            ; 16-byte Folded Spill
	add	x29, sp, #352
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _NFP_PCIE_BAR_PCIE2CPP_MapType_GENERAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NFP_PCIE_BAR_PCIE2CPP_MapType_GENERAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_NFP_PCIE_BAR_PCIE2CPP_MapType
	mov	x22, x0
Lloh6:
	adrp	x20, _NFP_PCIE_BAR_PCIE2CPP_LengthSelect_32BIT@GOTPAGE
Lloh7:
	ldr	x20, [x20, _NFP_PCIE_BAR_PCIE2CPP_LengthSelect_32BIT@GOTPAGEOFF]
	ldr	w28, [x20]
Lloh8:
	adrp	x8, _NFP_PCIE_BAR_PCIE2CPP_MapType_BULK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NFP_PCIE_BAR_PCIE2CPP_MapType_BULK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_NFP_PCIE_BAR_PCIE2CPP_MapType
	ldr	w8, [x20]
	stp	w8, w0, [sp, #20]               ; 8-byte Folded Spill
Lloh11:
	adrp	x8, _NFP_CPP_TARGET_ISLAND_XPB@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NFP_CPP_TARGET_ISLAND_XPB@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_NFP_PCIE_BAR_PCIE2CPP_Target_BaseAddress
	mov	x21, x0
Lloh14:
	adrp	x8, _NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT0@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_NFP_PCIE_BAR_PCIE2CPP_MapType
	stur	w0, [x29, #-112]
Lloh17:
	adrp	x8, _NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT1@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_NFP_PCIE_BAR_PCIE2CPP_MapType
	stur	w0, [x29, #-108]
Lloh20:
	adrp	x8, _NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT2@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT2@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_NFP_PCIE_BAR_PCIE2CPP_MapType
	stur	w0, [x29, #-104]
Lloh23:
	adrp	x8, _NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT3@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT3@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_NFP_PCIE_BAR_PCIE2CPP_MapType
	stur	w0, [x29, #-100]
	str	wzr, [sp, #224]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #192]
	stp	q0, q0, [sp, #160]
	stp	q0, q0, [sp, #128]
	stp	q0, q0, [sp, #96]
	stp	q0, q0, [sp, #64]
	stp	q0, q0, [sp, #32]
Lloh26:
	adrp	x2, l_.str@PAGE
Lloh27:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #32
	mov	w1, #195
	bl	_snprintf
	mov	x25, x0
	ldr	x24, [x19, #8]
	mov	x0, x24
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w27, #0
Lloh28:
	adrp	x20, _IORESOURCE_MEM@GOTPAGE
Lloh29:
	ldr	x20, [x20, _IORESOURCE_MEM@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	stp	xzr, x26, [x24, #56]
	str	x19, [x24, #48]
	str	w27, [x24]
	mov	x0, x24
	bl	_nfp_bar_resource_len
	sub	x0, x0, #1
	str	x0, [x24, #40]
	bl	_fls
	str	xzr, [x24, #32]
	stp	xzr, x0, [x24, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w27, w27, #1
	add	x24, x24, #72
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	w27, w0
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #80]
	ldr	x8, [x8, #8]
	lsr	w9, w27, #2
	and	w9, w9, #0x1ffffffe
	add	x26, x8, w9, uxtw #2
	mov	x0, x26
	bl	_resource_type
	ldr	w8, [x20]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x24, x24, #72
	b	LBB0_3
LBB0_6:
	ldr	x8, [x19, #8]
	sub	x8, x24, x8
	lsr	x8, x8, #3
	mov	w9, #36409
	movk	w9, #14563, lsl #16
	mul	w27, w8, w9
	str	w27, [x19]
	cmp	w27, #7
	b.gt	LBB0_8
; %bb.7:
	ldr	w0, [x19, #16]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_28
LBB0_8:
	add	x8, sp, #32
	add	x24, x8, w25, sxtw
	add	x0, x19, #72
	bl	_mutex_init
	mov	x0, x23
	bl	_NFP_CPP_INTERFACE_UNIT_of
	mov	w8, #64
	bfi	w8, w0, #4, #2
	mov	w9, #16
	stp	w8, w9, [x19, #48]
	ldr	x23, [x19, #8]
	mov	x0, x23
	bl	_nfp_bar_resource_len
Lloh35:
	adrp	x8, _NFP_PCI_MIN_MAP_SIZE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NFP_PCI_MIN_MAP_SIZE@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_10
; %bb.9:
	ldr	x0, [x23, #8]
	cbnz	x0, LBB0_11
	b	LBB0_16
LBB0_10:
	mov	x0, x23
	bl	_nfp_bar_resource_start
	mov	x26, x0
	mov	x0, x23
	bl	_nfp_bar_resource_len
	mov	x1, x0
	mov	x0, x26
	bl	_ioremap_nocache
	str	x0, [x23, #8]
	cbz	x0, LBB0_16
LBB0_11:
	orr	w26, w28, w22
	mov	w8, #195
	sub	w1, w8, w25
Lloh38:
	adrp	x2, l_.str.2@PAGE
Lloh39:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x24
	bl	_snprintf
	mov	x22, x0
	add	x0, x23, #24
	bl	_atomic_inc
	mov	x0, x19
	mov	x1, x23
	mov	x2, x26
	bl	_nfp6000_bar_write
	ldr	x20, [x23, #8]
Lloh40:
	adrp	x8, _NFP_PCIE_SRAM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _NFP_PCIE_SRAM@GOTPAGEOFF]
Lloh42:
	ldrsw	x8, [x8]
	add	x8, x20, x8, lsl #2
	add	x8, x8, #4, lsl #12             ; =16384
	str	x8, [x19, #64]
	ldr	x9, [x19, #80]
	ldr	w8, [x9]
	sub	w10, w8, #128
	cmp	w10, #3
	b.hs	LBB0_13
; %bb.12:
	mov	w0, #0
	b	LBB0_15
LBB0_13:
	cmp	w8, #131
	b.ne	LBB0_25
; %bb.14:
	ldr	w8, [x9, #4]
	and	w0, w8, #0x7
LBB0_15:
	add	x24, x24, w22, sxtw
	sub	w27, w27, #1
	bl	_NFP_PCIE_BAR
	add	x8, x20, w0, sxtw #2
	str	x8, [x19, #40]
	ldr	x8, [x23, #8]
Lloh43:
	adrp	x9, _NFP_PCIE_EM@GOTPAGE
Lloh44:
	ldr	x9, [x9, _NFP_PCIE_EM@GOTPAGEOFF]
Lloh45:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #2
	str	x8, [x19, #32]
LBB0_16:
	ldr	x8, [x19, #80]
	ldr	w8, [x8]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hi	LBB0_25
; %bb.17:
	ldp	w10, w8, [sp, #20]              ; 8-byte Folded Reload
	orr	w8, w10, w8
	orr	w22, w8, w21
Lloh46:
	adrp	x8, l_switch.table.enable_bars@PAGE
Lloh47:
	add	x8, x8, l_switch.table.enable_bars@PAGEOFF
	add	x10, sp, #32
	add	x10, x10, #195
	ldr	x28, [x8, w9, sxtw #3]
	ldr	x20, [x19, #8]
	add	x23, x20, #72
	str	x10, [sp, #24]                  ; 8-byte Folded Spill
	sub	w1, w10, w24
Lloh48:
	adrp	x2, l_.str.4@PAGE
Lloh49:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x24
	bl	_snprintf
	add	x21, x24, w0, sxtw
	add	x0, x20, #96
	bl	_atomic_inc
	sub	w20, w27, #1
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_nfp6000_bar_write
	mov	x27, #0
	mov	x22, #0
Lloh50:
	adrp	x23, _NFP_PCIE_EXPLICIT_BARS@GOTPAGE
Lloh51:
	ldr	x23, [x23, _NFP_PCIE_EXPLICIT_BARS@GOTPAGEOFF]
	mov	w26, #288
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x19, #56]
	add	x8, x8, x27
	str	xzr, [x8, #16]
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x22, x22, #1
	add	x26, x26, #72
	add	x27, x27, #24
	cmp	x22, #4
	b.eq	LBB0_27
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	cmp	x22, x28
	b.hs	LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldrsw	x8, [x23]
	cmp	x22, x8
	b.ge	LBB0_18
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x19, #8]
	add	x24, x8, x26
	mov	x0, x24
	bl	_nfp_bar_resource_start
	mov	x25, x0
	mov	x0, x24
	bl	_nfp_bar_resource_len
	mov	x1, x0
	mov	x0, x25
	bl	_ioremap_nocache
	str	x0, [x24, #8]
	cbz	x0, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x8, x22, #4
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	sub	w1, w9, w21
	stp	x8, x22, [sp]
	mov	x0, x21
Lloh52:
	adrp	x2, l_.str.5@PAGE
Lloh53:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_snprintf
	mov	x25, x0
	add	x0, x24, #24
	bl	_atomic_inc
	ldr	x8, [x24, #16]
	ldr	x9, [x19, #56]
	add	x9, x9, x27
	str	x8, [x9, #16]
	ldr	x8, [x24, #8]
	str	x8, [x9, #8]
	sub	x8, x29, #112
	ldr	w2, [x8, x22, lsl #2]
	mov	x0, x19
	mov	x1, x24
	bl	_nfp6000_bar_write
	ldr	x8, [x19, #56]
	ldr	x0, [x8, x27]
Lloh54:
	adrp	x1, l_.memset_pattern@PAGE
Lloh55:
	add	x1, x1, l_.memset_pattern@PAGEOFF
	mov	w2, #16
	bl	_memset_pattern16
	add	x21, x21, w25, sxtw
	sub	w20, w20, #1
	ldr	x0, [x24, #8]
LBB0_24:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x19, #24]
	str	x0, [x8, x22, lsl #3]
	b	LBB0_19
LBB0_25:
	ldr	w0, [x19, #16]
	str	x8, [sp]
Lloh56:
	adrp	x1, l_.str.3@PAGE
Lloh57:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
Lloh58:
	adrp	x8, _EINVAL@GOTPAGE
Lloh59:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_28
; %bb.26:
	bl	_iounmap
	b	LBB0_28
LBB0_27:
	ldr	x0, [x19, #8]
	ldr	w1, [x19]
Lloh61:
	adrp	x8, _bar_cmp@GOTPAGE
Lloh62:
	ldr	x8, [x8, _bar_cmp@GOTPAGEOFF]
Lloh63:
	ldr	w3, [x8]
	mov	w2, #72
	mov	x4, #0
	bl	_sort
	ldr	w0, [x19, #16]
	ldr	w4, [x19]
Lloh64:
	adrp	x1, l_.str.6@PAGE
Lloh65:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x2, sp, #32
	mov	x3, x20
	bl	_dev_info
	mov	w20, #0
LBB0_28:
	ldur	x8, [x29, #-96]
Lloh66:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh67:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh68:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.29:
	mov	x0, x20
	ldp	x29, x30, [sp, #352]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #336]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #320]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #304]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #368
	ret
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_PCIE_BAR_PCIE2CPP_MapType_GENERAL,4,2 ; @NFP_PCIE_BAR_PCIE2CPP_MapType_GENERAL
	.comm	_NFP_PCIE_BAR_PCIE2CPP_LengthSelect_32BIT,4,2 ; @NFP_PCIE_BAR_PCIE2CPP_LengthSelect_32BIT
	.comm	_NFP_PCIE_BAR_PCIE2CPP_MapType_BULK,4,2 ; @NFP_PCIE_BAR_PCIE2CPP_MapType_BULK
	.comm	_NFP_CPP_TARGET_ISLAND_XPB,4,2  ; @NFP_CPP_TARGET_ISLAND_XPB
	.comm	_NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT0,4,2 ; @NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT0
	.comm	_NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT1,4,2 ; @NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT1
	.comm	_NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT2,4,2 ; @NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT2
	.comm	_NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT3,4,2 ; @NFP_PCIE_BAR_PCIE2CPP_MapType_EXPLICIT3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RESERVED BARs: "

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.1:                               ; @.str.1
	.asciz	"No usable BARs found!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NFP_PCI_MIN_MAP_SIZE,8,3       ; @NFP_PCI_MIN_MAP_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"0.0: General/MSI-X SRAM, "

	.comm	_NFP_PCIE_SRAM,4,2              ; @NFP_PCIE_SRAM
l_.str.3:                               ; @.str.3
	.asciz	"Unsupported device ID: %04hx!\n"

	.comm	_NFP_PCIE_EM,4,2                ; @NFP_PCIE_EM
l_.str.4:                               ; @.str.4
	.asciz	"0.1: PCIe XPB/MSI-X PBA, "

	.comm	_NFP_PCIE_EXPLICIT_BARS,4,2     ; @NFP_PCIE_EXPLICIT_BARS
l_.str.5:                               ; @.str.5
	.asciz	"0.%d: Explicit%d, "

	.comm	_bar_cmp,4,2                    ; @bar_cmp
l_.str.6:                               ; @.str.6
	.asciz	"%sfree: %d/%d\n"

	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern
l_.memset_pattern:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1

	.no_dead_strip	_enable_bars
	.section	__TEXT,__const
	.p2align	3                               ; @switch.table.enable_bars
l_switch.table.enable_bars:
	.quad	4                               ; 0x4
	.quad	4                               ; 0x4
	.quad	4                               ; 0x4
	.quad	1                               ; 0x1

.subsections_via_symbols
