	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ena_get_link_ksettings
_ena_get_link_ksettings:                ## @ena_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	%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
	callq	_netdev_priv
	movq	(%rax), %rdi
	leaq	-48(%rbp), %rsi
	callq	_ena_com_get_link_params
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movl	-44(%rbp), %eax
	movl	%eax, 8(%r14)
	movq	_ENA_ADMIN_GET_FEATURE_LINK_DESC_AUTONEG_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, -48(%rbp)
	je	LBB0_2
## %bb.3:
	movq	_supported@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_Autoneg@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_ethtool_link_ksettings_add_link_mode
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_ethtool_link_ksettings_add_link_mode
	movl	(%r15), %eax
	testl	%eax, -48(%rbp)
	sete	%al
	testb	%al, %al
	je	LBB0_5
LBB0_6:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movb	$1, %al
	testb	%al, %al
	jne	LBB0_6
LBB0_5:
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENA_ADMIN_GET_FEATURE_LINK_DESC_AUTONEG_MASK,4,2 ## @ENA_ADMIN_GET_FEATURE_LINK_DESC_AUTONEG_MASK
	.comm	_supported,4,2                  ## @supported
	.comm	_Autoneg,4,2                    ## @Autoneg
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.no_dead_strip	_ena_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 ena_get_link_ksettings
_ena_get_link_ksettings:                ; @ena_get_link_ksettings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	bl	_netdev_priv
	ldr	x0, [x0]
	add	x1, sp, #8
	bl	_ena_com_get_link_params
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.1:
	ldp	w9, w8, [sp, #8]
	str	w8, [x19, #8]
Lloh0:
	adrp	x21, _ENA_ADMIN_GET_FEATURE_LINK_DESC_AUTONEG_MASK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ENA_ADMIN_GET_FEATURE_LINK_DESC_AUTONEG_MASK@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w9
	b.eq	LBB0_3
; %bb.2:
Lloh2:
	adrp	x22, _supported@GOTPAGE
Lloh3:
	ldr	x22, [x22, _supported@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh4:
	adrp	x23, _Autoneg@GOTPAGE
Lloh5:
	ldr	x23, [x23, _Autoneg@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_ethtool_link_ksettings_add_link_mode
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_ethtool_link_ksettings_add_link_mode
	ldr	w8, [sp, #8]
	ldr	w9, [x21]
	tst	w9, w8
	cset	w8, eq
	b	LBB0_4
LBB0_3:
	mov	w8, #1
LBB0_4:
Lloh6:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh8:
	adrp	x10, _AUTONEG_DISABLE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AUTONEG_DISABLE@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, ne
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENA_ADMIN_GET_FEATURE_LINK_DESC_AUTONEG_MASK,4,2 ; @ENA_ADMIN_GET_FEATURE_LINK_DESC_AUTONEG_MASK
	.comm	_supported,4,2                  ; @supported
	.comm	_Autoneg,4,2                    ; @Autoneg
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.no_dead_strip	_ena_get_link_ksettings
.subsections_via_symbols
