	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_bar
_compute_bar:                           ## @compute_bar
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_NFP_CPP_NUM_TARGETS@GOTPCREL(%rip), %rax
	cmpl	%r8d, (%rax)
	jle	LBB0_5
## %bb.1:
	movl	%r9d, %r12d
	movl	%r8d, %ebx
	movq	%rsi, %r13
	movl	40(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	cmpl	$8, %eax
	je	LBB0_8
## %bb.3:
	cmpl	$4, %eax
	jne	LBB0_5
## %bb.4:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	_NFP_PCIE_BAR_PCIE2CPP_LengthSelect_32BIT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_7:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	_NFP_PCIE_BAR_PCIE2CPP_LengthSelect_0BYTE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	_NFP_PCIE_BAR_PCIE2CPP_LengthSelect_64BIT@GOTPCREL(%rip), %rax
LBB0_9:
	movq	24(%rbp), %r15
	movl	(%rax), %edi
	callq	_NFP_PCIE_BAR_PCIE2CPP_LengthSelect
	testl	%r12d, %r12d
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_17
## %bb.10:
	movq	_NFP_CPP_ACTION_RW@GOTPCREL(%rip), %rcx
	cmpl	%r12d, (%rcx)
	je	LBB0_17
## %bb.11:
	movq	%r13, %rdi
	callq	_NFP_PCIE_P2C_FIXED_SIZE
	negl	%eax
	movslq	%eax, %r15
	movq	_NFP_PCIE_BAR_PCIE2CPP_MapType_FIXED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_NFP_PCIE_BAR_PCIE2CPP_MapType
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_NFP_PCIE_BAR_PCIE2CPP_Target_BaseAddress
	movq	%rax, %rbx
	movl	%r12d, %edi
	callq	_NFP_PCIE_BAR_PCIE2CPP_Action_BaseAddress
	movq	%rax, %r12
	movl	16(%rbp), %edi
	callq	_NFP_PCIE_BAR_PCIE2CPP_Token_BaseAddress
	movq	%rax, %rcx
	movq	%r15, %rdx
	movq	24(%rbp), %rax
	andq	%rax, %rdx
	movq	32(%rbp), %rsi
	addq	%rax, %rsi
	decq	%rsi
	andq	%r15, %rsi
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rsi, %rdx
	jne	LBB0_20
## %bb.12:
	orq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	orq	%r12, %rbx
	orq	%rcx, %rbx
	orq	%r14, %rbx
	movl	$24, %ecx
	cmpl	%ecx, (%r13)
	jl	LBB0_20
	jmp	LBB0_13
LBB0_17:
	movq	%r13, %rdi
	callq	_NFP_PCIE_P2C_BULK_SIZE
	negl	%eax
	movq	%r15, %r12
	movslq	%eax, %r15
	movq	_NFP_PCIE_BAR_PCIE2CPP_MapType_BULK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_NFP_PCIE_BAR_PCIE2CPP_MapType
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_NFP_PCIE_BAR_PCIE2CPP_Target_BaseAddress
	movq	%rax, %rbx
	movl	16(%rbp), %edi
	callq	_NFP_PCIE_BAR_PCIE2CPP_Token_BaseAddress
	movq	%rax, %rcx
	movq	%r15, %rdx
	andq	%r12, %rdx
	movq	32(%rbp), %rax
	leaq	(%r12,%rax), %rsi
	decq	%rsi
	andq	%r15, %rsi
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rsi, %rdx
	jne	LBB0_20
## %bb.18:
	orq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	orq	%rcx, %rbx
	orq	%r14, %rbx
	movl	$19, %ecx
	cmpl	%ecx, (%r13)
	jge	LBB0_13
LBB0_20:
	negl	%eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%rdx, %rsi
                                        ## kill: def $cl killed $cl killed $ecx
	shrq	%cl, %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%rdx, (%rax)
LBB0_15:
	xorl	%eax, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.16:
	orq	%rbx, %rsi
	movq	%rsi, (%rcx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_CPP_NUM_TARGETS,4,2        ## @NFP_CPP_NUM_TARGETS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NFP_PCIE_BAR_PCIE2CPP_LengthSelect_64BIT,4,2 ## @NFP_PCIE_BAR_PCIE2CPP_LengthSelect_64BIT
	.comm	_NFP_PCIE_BAR_PCIE2CPP_LengthSelect_32BIT,4,2 ## @NFP_PCIE_BAR_PCIE2CPP_LengthSelect_32BIT
	.comm	_NFP_PCIE_BAR_PCIE2CPP_LengthSelect_0BYTE,4,2 ## @NFP_PCIE_BAR_PCIE2CPP_LengthSelect_0BYTE
	.comm	_NFP_CPP_ACTION_RW,4,2          ## @NFP_CPP_ACTION_RW
	.comm	_NFP_PCIE_BAR_PCIE2CPP_MapType_FIXED,4,2 ## @NFP_PCIE_BAR_PCIE2CPP_MapType_FIXED
	.comm	_NFP_PCIE_BAR_PCIE2CPP_MapType_BULK,4,2 ## @NFP_PCIE_BAR_PCIE2CPP_MapType_BULK
	.no_dead_strip	_compute_bar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_bar
_compute_bar:                           ; @compute_bar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, _NFP_CPP_NUM_TARGETS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_CPP_NUM_TARGETS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w4
	b.le	LBB0_5
; %bb.1:
	mov	x22, x7
	mov	x23, x6
	mov	x26, x5
	mov	x24, x4
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	ldr	w8, [x29, #24]
	cbz	w8, LBB0_6
; %bb.2:
	cmp	w8, #8
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #4
	b.ne	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _NFP_PCIE_BAR_PCIE2CPP_LengthSelect_32BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NFP_PCIE_BAR_PCIE2CPP_LengthSelect_32BIT@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_6:
Lloh8:
	adrp	x8, _NFP_PCIE_BAR_PCIE2CPP_LengthSelect_0BYTE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NFP_PCIE_BAR_PCIE2CPP_LengthSelect_0BYTE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x8, _NFP_PCIE_BAR_PCIE2CPP_LengthSelect_64BIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NFP_PCIE_BAR_PCIE2CPP_LengthSelect_64BIT@GOTPAGEOFF]
LBB0_8:
	ldr	x28, [x29, #16]
	ldr	w0, [x8]
	bl	_NFP_PCIE_BAR_PCIE2CPP_LengthSelect
	mov	x27, x0
	cbz	w26, LBB0_12
; %bb.9:
Lloh12:
	adrp	x8, _NFP_CPP_ACTION_RW@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NFP_CPP_ACTION_RW@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w26
	b.eq	LBB0_12
; %bb.10:
	str	x27, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x21
	bl	_NFP_PCIE_P2C_FIXED_SIZE
	neg	w8, w0
	sxtw	x25, w8
Lloh15:
	adrp	x8, _NFP_PCIE_BAR_PCIE2CPP_MapType_FIXED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NFP_PCIE_BAR_PCIE2CPP_MapType_FIXED@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_NFP_PCIE_BAR_PCIE2CPP_MapType
	mov	x27, x0
	mov	x0, x24
	bl	_NFP_PCIE_BAR_PCIE2CPP_Target_BaseAddress
	mov	x24, x0
	mov	x0, x26
	bl	_NFP_PCIE_BAR_PCIE2CPP_Action_BaseAddress
	mov	x26, x0
	mov	x0, x23
	bl	_NFP_PCIE_BAR_PCIE2CPP_Token_BaseAddress
	and	x8, x25, x22
	add	x9, x22, x28
	sub	x9, x9, #1
	and	x10, x9, x25
Lloh18:
	adrp	x9, _EINVAL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	x8, x10
	b.ne	LBB0_15
; %bb.11:
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	orr	x10, x27, x10
	orr	x10, x10, x24
	orr	x10, x10, x26
	orr	x10, x10, x0
	mov	w11, #24
	b	LBB0_14
LBB0_12:
	mov	x0, x21
	bl	_NFP_PCIE_P2C_BULK_SIZE
	neg	w8, w0
	sxtw	x25, w8
Lloh21:
	adrp	x8, _NFP_PCIE_BAR_PCIE2CPP_MapType_BULK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NFP_PCIE_BAR_PCIE2CPP_MapType_BULK@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_NFP_PCIE_BAR_PCIE2CPP_MapType
	mov	x26, x0
	mov	x0, x24
	bl	_NFP_PCIE_BAR_PCIE2CPP_Target_BaseAddress
	mov	x24, x0
	mov	x0, x23
	bl	_NFP_PCIE_BAR_PCIE2CPP_Token_BaseAddress
	and	x8, x25, x22
	add	x9, x22, x28
	sub	x9, x9, #1
	and	x10, x9, x25
Lloh24:
	adrp	x9, _EINVAL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	x8, x10
	b.ne	LBB0_15
; %bb.13:
	orr	x10, x26, x27
	orr	x10, x10, x24
	orr	x10, x10, x0
	mov	w11, #19
LBB0_14:
	ldr	w12, [x21]
	cmp	w12, w11
	b.ge	LBB0_17
LBB0_15:
	neg	w0, w9
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	cbz	x20, LBB0_19
; %bb.18:
	str	x8, [x20]
LBB0_19:
	mov	w0, #0
	cbz	x19, LBB0_16
; %bb.20:
	lsr	x8, x8, x11
	orr	x8, x8, x10
	str	x8, [x19]
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_CPP_NUM_TARGETS,4,2        ; @NFP_CPP_NUM_TARGETS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NFP_PCIE_BAR_PCIE2CPP_LengthSelect_64BIT,4,2 ; @NFP_PCIE_BAR_PCIE2CPP_LengthSelect_64BIT
	.comm	_NFP_PCIE_BAR_PCIE2CPP_LengthSelect_32BIT,4,2 ; @NFP_PCIE_BAR_PCIE2CPP_LengthSelect_32BIT
	.comm	_NFP_PCIE_BAR_PCIE2CPP_LengthSelect_0BYTE,4,2 ; @NFP_PCIE_BAR_PCIE2CPP_LengthSelect_0BYTE
	.comm	_NFP_CPP_ACTION_RW,4,2          ; @NFP_CPP_ACTION_RW
	.comm	_NFP_PCIE_BAR_PCIE2CPP_MapType_FIXED,4,2 ; @NFP_PCIE_BAR_PCIE2CPP_MapType_FIXED
	.comm	_NFP_PCIE_BAR_PCIE2CPP_MapType_BULK,4,2 ; @NFP_PCIE_BAR_PCIE2CPP_MapType_BULK
	.no_dead_strip	_compute_bar
.subsections_via_symbols
