	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_ethtool_get_link_ksettings
_efx_ethtool_get_link_ksettings:        ## @efx_ethtool_get_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	8(%r14), %esi
	leaq	-20(%rbp), %rdi
	callq	_ethtool_convert_link_mode_to_legacy_u32
	movq	_SUPPORTED_Pause@GOTPCREL(%rip), %rax
	movq	_SUPPORTED_Asym_Pause@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	orl	-20(%rbp), %esi
	movl	%esi, -20(%rbp)
	movl	8(%r14), %edi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movq	%rbx, %rdi
	callq	_LOOPBACK_INTERNAL
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	24(%rbx), %eax
	movl	%eax, 4(%r14)
	cmpq	$0, 16(%rbx)
	jne	LBB0_2
## %bb.3:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_5:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPPORTED_Pause,4,2            ## @SUPPORTED_Pause
	.comm	_SUPPORTED_Asym_Pause,4,2       ## @SUPPORTED_Asym_Pause
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.no_dead_strip	_efx_ethtool_get_link_ksettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_ethtool_get_link_ksettings
_efx_ethtool_get_link_ksettings:        ; @efx_ethtool_get_link_ksettings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_netdev_priv
	mov	x20, x0
	bl	_mutex_lock
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w1, [x19, #8]
	add	x0, sp, #12
	bl	_ethtool_convert_link_mode_to_legacy_u32
Lloh0:
	adrp	x8, _SUPPORTED_Pause@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPPORTED_Pause@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SUPPORTED_Asym_Pause@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SUPPORTED_Asym_Pause@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	orr	w1, w8, w9
	str	w1, [sp, #12]
	ldr	w0, [x19, #8]
	bl	_ethtool_convert_legacy_u32_to_link_mode
	mov	x0, x20
	bl	_LOOPBACK_INTERNAL
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x20, #24]
	str	w8, [x19, #4]
	ldr	x8, [x20, #16]
Lloh6:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh8:
	adrp	x10, _DUPLEX_HALF@GOTPAGE
Lloh9:
	ldr	x10, [x10, _DUPLEX_HALF@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SUPPORTED_Pause,4,2            ; @SUPPORTED_Pause
	.comm	_SUPPORTED_Asym_Pause,4,2       ; @SUPPORTED_Asym_Pause
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.no_dead_strip	_efx_ethtool_get_link_ksettings
.subsections_via_symbols
