	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_eth_set_configured         ## -- Begin function nfp_eth_set_configured
	.p2align	4, 0x90
_nfp_eth_set_configured:                ## @nfp_eth_set_configured
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	callq	_nfp_eth_config_start
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%r12, %rdi
	callq	_nfp_nsp_get_abi_ver_minor
	cmpl	$19, %eax
	jg	LBB0_2
## %bb.6:
	movq	%r12, %rdi
	callq	_nfp_eth_config_cleanup_end
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r12, %rdi
	callq	_nfp_nsp_config_entries
	movq	%rax, %r15
	movl	%ebx, %r13d
	movl	(%rax,%r13,4), %edi
	callq	_le64_to_cpu
	movq	_NSP_ETH_STATE_CONFIGURED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_FIELD_GET
	cmpl	%r14d, %eax
	je	LBB0_4
## %bb.3:
	movl	(%r15,%r13,4), %edi
	callq	_le64_to_cpu
	movq	_NSP_ETH_CTRL_CONFIGURED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%edi, %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	%r14d, %esi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le64
	movl	%eax, (%r15,%r13,4)
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_nfp_nsp_config_set_modified
LBB0_4:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nfp_eth_config_commit_end      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_NSP_ETH_STATE_CONFIGURED,4,2   ## @NSP_ETH_STATE_CONFIGURED
	.comm	_NSP_ETH_CTRL_CONFIGURED,4,2    ## @NSP_ETH_CTRL_CONFIGURED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_eth_set_configured         ; -- Begin function nfp_eth_set_configured
	.p2align	2
_nfp_eth_set_configured:                ; @nfp_eth_set_configured
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	bl	_nfp_eth_config_start
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
	mov	x0, x19
	bl	_nfp_nsp_get_abi_ver_minor
	cmp	w0, #19
	b.gt	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_nfp_eth_config_cleanup_end
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x19
	bl	_nfp_nsp_config_entries
	mov	x22, x0
	ldr	w0, [x0, w21, uxtw #2]
	bl	_le64_to_cpu
	mov	x1, x0
Lloh3:
	adrp	x8, _NSP_ETH_STATE_CONFIGURED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NSP_ETH_STATE_CONFIGURED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_FIELD_GET
	cmp	w0, w20
	b.eq	LBB0_6
; %bb.5:
	mov	w8, w21
	lsl	x21, x8, #2
	ldr	w0, [x22, x21]
	bl	_le64_to_cpu
Lloh6:
	adrp	x8, _NSP_ETH_CTRL_CONFIGURED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NSP_ETH_CTRL_CONFIGURED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bic	w23, w0, w8
	mov	x0, x8
	mov	x1, x20
	bl	_FIELD_PREP
	orr	w0, w23, w0
	bl	_cpu_to_le64
	str	w0, [x22, x21]
	mov	x0, x19
	mov	w1, #1
	bl	_nfp_nsp_config_set_modified
LBB0_6:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nfp_eth_config_commit_end
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_NSP_ETH_STATE_CONFIGURED,4,2   ; @NSP_ETH_STATE_CONFIGURED
	.comm	_NSP_ETH_CTRL_CONFIGURED,4,2    ; @NSP_ETH_CTRL_CONFIGURED
.subsections_via_symbols
