	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_net_set_link_ksettings
_nfp_net_set_link_ksettings:            ## @nfp_net_set_link_ksettings
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_nfp_port_from_netdev
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	___nfp_port_get_eth_port
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_warn
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%r15), %rax
	movl	(%rax), %edi
	movl	4(%r13), %esi
	callq	_nfp_eth_config_start
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.16:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_6:
	movq	(%r14), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.8:
	movq	_NFP_ANEG_AUTO@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_NFP_ANEG_DISABLED@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	___nfp_eth_set_aneg
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_10
LBB0_14:
	movq	%r12, %rdi
	callq	_nfp_eth_config_cleanup_end
	jmp	LBB0_15
LBB0_10:
	movl	8(%r14), %eax
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.11:
	cltd
	idivl	(%r13)
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	___nfp_eth_set_speed
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
LBB0_12:
	movq	%r12, %rdi
	callq	_nfp_eth_config_commit_end
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jg	LBB0_15
## %bb.13:
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_nfp_net_refresh_port_table
	movl	%r14d, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Changing settings not allowed on an active interface. It may cause the port to be disabled until driver reload.\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_NFP_ANEG_AUTO,4,2              ## @NFP_ANEG_AUTO
	.comm	_NFP_ANEG_DISABLED,4,2          ## @NFP_ANEG_DISABLED
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.no_dead_strip	_nfp_net_set_link_ksettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_net_set_link_ksettings
_nfp_net_set_link_ksettings:            ; @nfp_net_set_link_ksettings
	.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, x1
	mov	x22, x0
	bl	_nfp_port_from_netdev
	mov	x19, x0
	bl	___nfp_port_get_eth_port
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x0, x22
	bl	_netif_running
	cbz	x0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_netdev_warn
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_5:
	mov	x0, x23
	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_6:
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldr	w1, [x21, #4]
	bl	_nfp_eth_config_start
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x22
	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_8:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh8:
	adrp	x10, _NFP_ANEG_AUTO@GOTPAGE
Lloh9:
	ldr	x10, [x10, _NFP_ANEG_AUTO@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x11, _NFP_ANEG_DISABLED@GOTPAGE
Lloh12:
	ldr	x11, [x11, _NFP_ANEG_DISABLED@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	mov	x0, x22
	bl	___nfp_eth_set_aneg
	mov	x23, x0
	cbz	w0, LBB0_10
LBB0_9:
	mov	x0, x22
	bl	_nfp_eth_config_cleanup_end
	b	LBB0_5
LBB0_10:
	ldr	w8, [x20, #8]
Lloh13:
	adrp	x9, _SPEED_UNKNOWN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_12
; %bb.11:
	ldr	w9, [x21]
	sdiv	w1, w8, w9
	mov	x0, x22
	bl	___nfp_eth_set_speed
	mov	x23, x0
	cbnz	w0, LBB0_9
LBB0_12:
	mov	x0, x22
	bl	_nfp_eth_config_commit_end
	cmp	w0, #0
	b.le	LBB0_14
; %bb.13:
	mov	w23, #0
	b	LBB0_5
LBB0_14:
	mov	x23, x0
	mov	x0, x19
	bl	_nfp_net_refresh_port_table
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Changing settings not allowed on an active interface. It may cause the port to be disabled until driver reload.\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_NFP_ANEG_AUTO,4,2              ; @NFP_ANEG_AUTO
	.comm	_NFP_ANEG_DISABLED,4,2          ; @NFP_ANEG_DISABLED
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.no_dead_strip	_nfp_net_set_link_ksettings
.subsections_via_symbols
