	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_enet_set_link_ksettings
_bcm_enet_set_link_ksettings:           ## @bcm_enet_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_netdev_priv
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.1:
	movl	(%r15), %edi
	testl	%edi, %edi
	je	LBB0_2
## %bb.4:
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_ethtool_ksettings_set      ## TAILCALL
LBB0_5:
	cmpq	$0, 24(%r14)
	jne	LBB0_9
## %bb.6:
	movq	(%r14), %rcx
	movq	_SPEED_100@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %rcx
	je	LBB0_8
## %bb.7:
	movq	_SPEED_10@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_9
LBB0_8:
	movq	8(%r14), %rsi
	movq	_PORT_MII@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_9
## %bb.10:
	xorl	%esi, %esi
	cmpq	%rdx, %rcx
	sete	%sil
	movl	%esi, (%rax)
	movq	16(%r14), %rcx
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rcx
	sete	%sil
	movl	%esi, 4(%rax)
	movq	%r15, %rdi
	callq	_netif_running
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_bcm_enet_adjust_link
	jmp	LBB0_12
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_PORT_MII,8,3                   ## @PORT_MII
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.no_dead_strip	_bcm_enet_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 bcm_enet_set_link_ksettings
_bcm_enet_set_link_ksettings:           ; @bcm_enet_set_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	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w0, [x19]
	cbz	w0, LBB0_9
; %bb.2:
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_phy_ethtool_ksettings_set
LBB0_3:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_8
; %bb.4:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _SPEED_10@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SPEED_10@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.5:
	ldr	x10, [x20, #8]
Lloh6:
	adrp	x11, _PORT_MII@GOTPAGE
Lloh7:
	ldr	x11, [x11, _PORT_MII@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_8
; %bb.6:
	cmp	x8, x9
	cset	w8, eq
Lloh9:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
	ldr	x10, [x20, #16]
Lloh11:
	ldr	x9, [x9]
	cmp	x10, x9
	cset	w9, eq
	stp	w8, w9, [x0]
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_11
; %bb.7:
	mov	x0, x19
	bl	_bcm_enet_adjust_link
	mov	w0, #0
	b	LBB0_11
LBB0_8:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_PORT_MII,8,3                   ; @PORT_MII
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.no_dead_strip	_bcm_enet_set_link_ksettings
.subsections_via_symbols
