	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan78xx_set_link_ksettings
_lan78xx_set_link_ksettings:            ## @lan78xx_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	%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, %r12
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%rbx), %r15
	movl	(%rax), %edi
	callq	_usb_autopm_get_interface
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_phy_ethtool_ksettings_set
	movl	%eax, %ebx
	cmpl	$0, (%r12)
	jne	LBB0_4
## %bb.3:
	movq	_MII_BMCR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_phy_read
	movl	%eax, %r12d
	movl	(%r13), %esi
	movq	_BMCR_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%r12d, %edx
	movq	%r15, %rdi
	callq	_phy_write
	movl	$1, %edi
	callq	_mdelay
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_phy_write
LBB0_4:
	movl	(%r14), %edi
	callq	_usb_autopm_put_interface
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_LOOPBACK,4,2              ## @BMCR_LOOPBACK
	.no_dead_strip	_lan78xx_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 lan78xx_set_link_ksettings
_lan78xx_set_link_ksettings:            ; @lan78xx_set_link_ksettings
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x21, [x20]
	ldr	w0, [x0]
	bl	_usb_autopm_get_interface
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x0, x21
	mov	x1, x22
	bl	_phy_ethtool_ksettings_set
	mov	x20, x0
	ldr	w8, [x22]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x23, _MII_BMCR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MII_BMCR@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_phy_read
	mov	x22, x0
	ldr	w1, [x23]
Lloh2:
	adrp	x8, _BMCR_LOOPBACK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BMCR_LOOPBACK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x21
	bl	_phy_write
	mov	w0, #1
	bl	_mdelay
	ldr	w1, [x23]
	mov	x0, x21
	mov	x2, x22
	bl	_phy_write
LBB0_3:
	ldr	w0, [x19]
	bl	_usb_autopm_put_interface
	b	LBB0_5
LBB0_4:
	mov	x20, x0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_LOOPBACK,4,2              ; @BMCR_LOOPBACK
	.no_dead_strip	_lan78xx_set_link_ksettings
.subsections_via_symbols
