	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ef4_ethtool_get_link_ksettings
_ef4_ethtool_get_link_ksettings:        ## @ef4_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -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
	movq	_supported@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_Pause@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ethtool_link_ksettings_add_link_mode
	movl	(%r15), %esi
	movq	_Asym_Pause@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ethtool_link_ksettings_add_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	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_supported,4,2                  ## @supported
	.comm	_Pause,4,2                      ## @Pause
	.comm	_Asym_Pause,4,2                 ## @Asym_Pause
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.no_dead_strip	_ef4_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 ef4_ethtool_get_link_ksettings
_ef4_ethtool_get_link_ksettings:        ; @ef4_ethtool_get_link_ksettings
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	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
Lloh0:
	adrp	x21, _supported@GOTPAGE
Lloh1:
	ldr	x21, [x21, _supported@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _Pause@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Pause@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ethtool_link_ksettings_add_link_mode
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _Asym_Pause@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Asym_Pause@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ethtool_link_ksettings_add_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]
Lloh8:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh10:
	adrp	x10, _DUPLEX_HALF@GOTPAGE
Lloh11:
	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
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_supported,4,2                  ; @supported
	.comm	_Pause,4,2                      ; @Pause
	.comm	_Asym_Pause,4,2                 ; @Asym_Pause
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.no_dead_strip	_ef4_ethtool_get_link_ksettings
.subsections_via_symbols
