	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_net_read_caps
_nfp_net_read_caps:                     ## @nfp_net_read_caps
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_NFP_NET_CFG_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_nn_readl
	movl	%eax, (%rbx)
	movq	_NFP_NET_CFG_MAX_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nn_readl
	movq	%rax, 40(%rbx)
	movl	32(%rbx), %eax
	cmpl	$4, %eax
	jne	LBB0_1
## %bb.5:
	movl	$1, 16(%rbx)
	jmp	LBB0_9
LBB0_1:
	movl	20(%rbx), %r9d
	testl	%r9d, %r9d
	je	LBB0_4
## %bb.2:
	movl	(%rbx), %edx
	movq	_NFP_NET_CFG_CTRL_RSS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%edx, %esi
	je	LBB0_6
## %bb.3:
	movq	_NFP_NET_CFG_CTRL_CHAIN_META@GOTPCREL(%rip), %r8
	xorl	%edi, %edi
	movl	(%r8), %ecx
	andl	%edx, %ecx
	setne	%dil
	movl	%edi, 16(%rbx)
	jne	LBB0_7
## %bb.8:
	cmpl	$2, %eax
	jl	LBB0_12
LBB0_9:
	movq	_NFP_NET_CFG_RX_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nn_readl
	movq	_NFP_NET_MAX_PREPEND@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jge	LBB0_10
## %bb.11:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_nn_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_10:
	movq	%rax, 24(%rbx)
	movl	20(%rbx), %r9d
	jmp	LBB0_13
LBB0_4:
	movl	$1, 16(%rbx)
	movq	_NFP_NET_CFG_CTRL_RSS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rbx), %edx
	jmp	LBB0_7
LBB0_6:
	movl	$1, 16(%rbx)
LBB0_7:
	notl	%esi
	andl	%edx, %esi
	movl	%esi, (%rbx)
	cmpl	$2, %eax
	jge	LBB0_9
LBB0_12:
	movq	_NFP_NET_RX_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
LBB0_13:
	xorl	%eax, %eax
	testl	%r9d, %r9d
	jne	LBB0_15
## %bb.14:
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	andl	%ecx, (%rbx)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_NET_CFG_CAP,4,2            ## @NFP_NET_CFG_CAP
	.comm	_NFP_NET_CFG_MAX_MTU,4,2        ## @NFP_NET_CFG_MAX_MTU
	.comm	_NFP_NET_CFG_CTRL_RSS,4,2       ## @NFP_NET_CFG_CTRL_RSS
	.comm	_NFP_NET_CFG_CTRL_CHAIN_META,4,2 ## @NFP_NET_CFG_CTRL_CHAIN_META
	.comm	_NFP_NET_CFG_RX_OFFSET,4,2      ## @NFP_NET_CFG_RX_OFFSET
	.comm	_NFP_NET_MAX_PREPEND,8,3        ## @NFP_NET_MAX_PREPEND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid rx offset: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NFP_NET_RX_OFFSET,8,3          ## @NFP_NET_RX_OFFSET
	.no_dead_strip	_nfp_net_read_caps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_net_read_caps
_nfp_net_read_caps:                     ; @nfp_net_read_caps
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _NFP_NET_CFG_CAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_NET_CFG_CAP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_nn_readl
	str	w0, [x19]
Lloh3:
	adrp	x8, _NFP_NET_CFG_MAX_MTU@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NFP_NET_CFG_MAX_MTU@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nn_readl
	str	x0, [x19, #40]
	ldr	w9, [x19, #32]
	cmp	w9, #4
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x19, #16]
	b	LBB0_6
LBB0_2:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_11
; %bb.3:
	ldr	w10, [x19]
Lloh6:
	adrp	x11, _NFP_NET_CFG_CTRL_RSS@GOTPAGE
Lloh7:
	ldr	x11, [x11, _NFP_NET_CFG_CTRL_RSS@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_12
; %bb.4:
Lloh9:
	adrp	x12, _NFP_NET_CFG_CTRL_CHAIN_META@GOTPAGE
Lloh10:
	ldr	x12, [x12, _NFP_NET_CFG_CTRL_CHAIN_META@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	ands	w12, w12, w10
	cset	w13, ne
	str	w13, [x19, #16]
	cbnz	w12, LBB0_13
; %bb.5:
	cmp	w9, #2
	b.lt	LBB0_14
LBB0_6:
Lloh12:
	adrp	x8, _NFP_NET_CFG_RX_OFFSET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NFP_NET_CFG_RX_OFFSET@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nn_readl
	mov	x2, x0
Lloh15:
	adrp	x8, _NFP_NET_MAX_PREPEND@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NFP_NET_MAX_PREPEND@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ge	LBB0_8
; %bb.7:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nn_err
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
	str	x2, [x19, #24]
	ldr	w8, [x19, #20]
	mov	w0, #0
	cbnz	w8, LBB0_10
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	ldr	w9, [x19]
	and	w8, w9, w8
	str	w8, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	w10, #1
	str	w10, [x19, #16]
Lloh23:
	adrp	x10, _NFP_NET_CFG_CTRL_RSS@GOTPAGE
Lloh24:
	ldr	x10, [x10, _NFP_NET_CFG_CTRL_RSS@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x10]
	ldr	w10, [x19]
	b	LBB0_13
LBB0_12:
	mov	w12, #1
	str	w12, [x19, #16]
LBB0_13:
	bic	w10, w10, w11
	str	w10, [x19]
	cmp	w9, #2
	b.ge	LBB0_6
LBB0_14:
Lloh26:
	adrp	x9, _NFP_NET_RX_OFFSET@GOTPAGE
Lloh27:
	ldr	x9, [x9, _NFP_NET_RX_OFFSET@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	str	x9, [x19, #24]
	mov	w0, #0
	cbnz	w8, LBB0_10
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_NET_CFG_CAP,4,2            ; @NFP_NET_CFG_CAP
	.comm	_NFP_NET_CFG_MAX_MTU,4,2        ; @NFP_NET_CFG_MAX_MTU
	.comm	_NFP_NET_CFG_CTRL_RSS,4,2       ; @NFP_NET_CFG_CTRL_RSS
	.comm	_NFP_NET_CFG_CTRL_CHAIN_META,4,2 ; @NFP_NET_CFG_CTRL_CHAIN_META
	.comm	_NFP_NET_CFG_RX_OFFSET,4,2      ; @NFP_NET_CFG_RX_OFFSET
	.comm	_NFP_NET_MAX_PREPEND,8,3        ; @NFP_NET_MAX_PREPEND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid rx offset: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NFP_NET_RX_OFFSET,8,3          ; @NFP_NET_RX_OFFSET
	.no_dead_strip	_nfp_net_read_caps
.subsections_via_symbols
