	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_enet_get_link_ksettings
_bcm_enet_get_link_ksettings:           ## @bcm_enet_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_netdev_priv
	cmpq	$0, 16(%rax)
	je	LBB0_4
## %bb.1:
	movl	(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_2
## %bb.3:
	movq	%r14, %rsi
	callq	_phy_ethtool_ksettings_get
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_4:
	movq	$0, 16(%r14)
	cmpq	$0, 8(%rax)
	jne	LBB0_5
## %bb.6:
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_5:
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r14)
	cmpq	$0, (%rax)
	jne	LBB0_8
## %bb.9:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_ADVERTISED_10baseT_Half@GOTPCREL(%rip), %rax
	movq	_ADVERTISED_10baseT_Full@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_ADVERTISED_100baseT_Half@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	28(%r14), %edi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movl	24(%r14), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movq	_PORT_MII@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_ADVERTISED_10baseT_Half,4,2    ## @ADVERTISED_10baseT_Half
	.comm	_ADVERTISED_10baseT_Full,4,2    ## @ADVERTISED_10baseT_Full
	.comm	_ADVERTISED_100baseT_Half,4,2   ## @ADVERTISED_100baseT_Half
	.comm	_ADVERTISED_100baseT_Full,4,2   ## @ADVERTISED_100baseT_Full
	.comm	_PORT_MII,4,2                   ## @PORT_MII
	.no_dead_strip	_bcm_enet_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 bcm_enet_get_link_ksettings
_bcm_enet_get_link_ksettings:           ; @bcm_enet_get_link_ksettings
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w0, [x20]
	cbz	w0, LBB0_4
; %bb.2:
	mov	x1, x19
	bl	_phy_ethtool_ksettings_get
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	str	xzr, [x19, #16]
Lloh0:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SPEED_10@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SPEED_10@GOTPAGEOFF]
	ldp	x11, x10, [x0]
	cmp	x10, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh4:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
Lloh6:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
	cmp	x11, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh8:
	adrp	x8, _ADVERTISED_10baseT_Half@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ADVERTISED_10baseT_Half@GOTPAGEOFF]
Lloh10:
	adrp	x9, _ADVERTISED_10baseT_Full@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ADVERTISED_10baseT_Full@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _ADVERTISED_100baseT_Half@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ADVERTISED_100baseT_Half@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w1, w8, w9
	ldr	w0, [x19, #28]
	bl	_ethtool_convert_legacy_u32_to_link_mode
	ldr	w0, [x19, #24]
	mov	w1, #0
	bl	_ethtool_convert_legacy_u32_to_link_mode
	mov	w0, #0
Lloh20:
	adrp	x8, _PORT_MII@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PORT_MII@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
Lloh23:
	adrp	x8, _ENODEV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_ADVERTISED_10baseT_Half,4,2    ; @ADVERTISED_10baseT_Half
	.comm	_ADVERTISED_10baseT_Full,4,2    ; @ADVERTISED_10baseT_Full
	.comm	_ADVERTISED_100baseT_Half,4,2   ; @ADVERTISED_100baseT_Half
	.comm	_ADVERTISED_100baseT_Full,4,2   ; @ADVERTISED_100baseT_Full
	.comm	_PORT_MII,4,2                   ; @PORT_MII
	.no_dead_strip	_bcm_enet_get_link_ksettings
.subsections_via_symbols
