	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan78xx_link_reset
_lan78xx_link_reset:                    ## @lan78xx_link_reset
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	(%rax), %r15
	movq	_INT_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INT_STS_PHY_INT_@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_lan78xx_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, %rdi
	callq	_phy_read_status
	cmpq	$0, (%r15)
	movl	(%r14), %eax
	je	LBB0_3
## %bb.7:
	testl	%eax, %eax
	jne	LBB0_19
## %bb.8:
	movl	$1, (%r14)
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_phy_ethtool_ksettings_get
	movq	24(%r14), %rax
	movq	(%rax), %rax
	movq	_USB_SPEED_SUPER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.9:
	movl	-48(%rbp), %ebx
	movq	_USB_CFG1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_lan78xx_read_reg
	movq	_USB_CFG1_DEV_U2_INIT_EN_@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	$1000, %ebx                     ## imm = 0x3E8
	jne	LBB0_11
## %bb.10:
	notl	%edx
	andl	-36(%rbp), %edx
	movl	%edx, -36(%rbp)
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_lan78xx_write_reg
	movl	(%r12), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_lan78xx_read_reg
	movq	_USB_CFG1_DEV_U1_INIT_EN_@GOTPCREL(%rip), %rax
	movl	-36(%rbp), %edx
	jmp	LBB0_12
LBB0_3:
	testl	%eax, %eax
	je	LBB0_19
## %bb.4:
	movl	$0, (%r14)
	movq	_MAC_CR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_lan78xx_read_reg
	shrl	$31, %eax
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.5:
	movq	_MAC_CR_RST_@GOTPCREL(%rip), %rax
	movl	-36(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -36(%rbp)
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_lan78xx_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.6:
	addq	$12, %r14
	movq	%r14, %rdi
	callq	_del_timer
	jmp	LBB0_19
LBB0_11:
	orl	-36(%rbp), %edx
	movq	_USB_CFG1_DEV_U1_INIT_EN_@GOTPCREL(%rip), %rax
LBB0_12:
	orl	(%rax), %edx
	movl	%edx, -36(%rbp)
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_lan78xx_write_reg
LBB0_13:
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_phy_read
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_19
## %bb.14:
	movq	_MII_LPA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_phy_read
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r14), %rdx
	movl	-48(%rbp), %r8d
	movl	-44(%rbp), %r9d
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	pushq	%r15
	pushq	%rbx
	callq	_netif_dbg
	addq	$16, %rsp
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_lan78xx_update_flowcontrol
	movl	%eax, %ebx
	leaq	12(%r14), %r15
	movq	%r15, %rdi
	callq	_timer_pending
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movl	$1, 4(%r14)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_STAT_UPDATE_TIMER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_mod_timer
LBB0_18:
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_tasklet_schedule
	jmp	LBB0_19
LBB0_15:
	movl	%r15d, %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_STS,4,2                    ## @INT_STS
	.comm	_INT_STS_PHY_INT_,4,2           ## @INT_STS_PHY_INT_
	.comm	_EIO,4,2                        ## @EIO
	.comm	_MAC_CR,4,2                     ## @MAC_CR
	.comm	_MAC_CR_RST_,4,2                ## @MAC_CR_RST_
	.comm	_USB_SPEED_SUPER,8,3            ## @USB_SPEED_SUPER
	.comm	_USB_CFG1,4,2                   ## @USB_CFG1
	.comm	_USB_CFG1_DEV_U2_INIT_EN_,4,2   ## @USB_CFG1_DEV_U2_INIT_EN_
	.comm	_USB_CFG1_DEV_U1_INIT_EN_,4,2   ## @USB_CFG1_DEV_U1_INIT_EN_
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_MII_LPA,4,2                    ## @MII_LPA
	.comm	_link,4,2                       ## @link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"speed: %u duplex: %d anadv: 0x%04x anlpa: 0x%04x"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_STAT_UPDATE_TIMER,8,3          ## @STAT_UPDATE_TIMER
	.no_dead_strip	_lan78xx_link_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan78xx_link_reset
_lan78xx_link_reset:                    ; @lan78xx_link_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x21, [x8]
Lloh0:
	adrp	x8, _INT_STS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_STS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _INT_STS_PHY_INT_@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_STS_PHY_INT_@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_lan78xx_write_reg
	mov	x20, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_3
LBB0_1:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_2:
	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
	add	sp, sp, #64
	ret
LBB0_3:
	mov	x0, x21
	bl	_phy_read_status
	ldr	x9, [x21]
	ldr	w8, [x19]
	cbz	x9, LBB0_8
; %bb.4:
	cbnz	w8, LBB0_2
; %bb.5:
	mov	w8, #1
	str	w8, [x19]
	add	x1, sp, #8
	mov	x0, x21
	bl	_phy_ethtool_ksettings_get
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _USB_SPEED_SUPER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _USB_SPEED_SUPER@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.6:
	ldr	w22, [sp, #8]
Lloh12:
	adrp	x20, _USB_CFG1@GOTPAGE
Lloh13:
	ldr	x20, [x20, _USB_CFG1@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #4
	mov	x0, x19
	bl	_lan78xx_read_reg
Lloh14:
	adrp	x8, _USB_CFG1_DEV_U2_INIT_EN_@GOTPAGE
Lloh15:
	ldr	x8, [x8, _USB_CFG1_DEV_U2_INIT_EN_@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w22, #1000
	b.ne	LBB0_12
; %bb.7:
	ldr	w9, [sp, #4]
	bic	w2, w9, w8
	str	w2, [sp, #4]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_lan78xx_write_reg
	ldr	w1, [x20]
	add	x2, sp, #4
	mov	x0, x19
	bl	_lan78xx_read_reg
Lloh17:
	adrp	x8, _USB_CFG1_DEV_U1_INIT_EN_@GOTPAGE
Lloh18:
	ldr	x8, [x8, _USB_CFG1_DEV_U1_INIT_EN_@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [sp, #4]
	b	LBB0_13
LBB0_8:
	cbz	w8, LBB0_2
; %bb.9:
	str	wzr, [x19]
Lloh20:
	adrp	x20, _MAC_CR@GOTPAGE
Lloh21:
	ldr	x20, [x20, _MAC_CR@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #4
	mov	x0, x19
	bl	_lan78xx_read_reg
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_1
; %bb.10:
Lloh22:
	adrp	x8, _MAC_CR_RST_@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MAC_CR_RST_@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [sp, #4]
	orr	w2, w9, w8
	str	w2, [sp, #4]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_lan78xx_write_reg
	mov	x20, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_1
; %bb.11:
	add	x0, x19, #12
	bl	_del_timer
	b	LBB0_2
LBB0_12:
	ldr	w9, [sp, #4]
	orr	w8, w9, w8
Lloh25:
	adrp	x9, _USB_CFG1_DEV_U1_INIT_EN_@GOTPAGE
Lloh26:
	ldr	x9, [x9, _USB_CFG1_DEV_U1_INIT_EN_@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
LBB0_13:
	orr	w2, w9, w8
	str	w2, [sp, #4]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_lan78xx_write_reg
LBB0_14:
Lloh28:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_phy_read
	mov	x20, x0
	tbnz	w0, #31, LBB0_2
; %bb.15:
Lloh31:
	adrp	x8, _MII_LPA@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MII_LPA@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_phy_read
	mov	x21, x0
	tbnz	w0, #31, LBB0_19
; %bb.16:
Lloh34:
	adrp	x8, _link@GOTPAGE
Lloh35:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	ldr	x2, [x19, #16]
	ldp	w4, w5, [sp, #8]
Lloh37:
	adrp	x3, l_.str@PAGE
Lloh38:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x6, x20
	mov	x7, x21
	bl	_netif_dbg
	ldr	w1, [sp, #12]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_lan78xx_update_flowcontrol
	mov	x20, x0
	add	x21, x19, #12
	mov	x0, x21
	bl	_timer_pending
	cbnz	w0, LBB0_18
; %bb.17:
	mov	w8, #1
Lloh39:
	adrp	x9, _jiffies@GOTPAGE
Lloh40:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
	str	w8, [x19, #4]
Lloh41:
	ldr	x8, [x9]
Lloh42:
	adrp	x9, _STAT_UPDATE_TIMER@GOTPAGE
Lloh43:
	ldr	x9, [x9, _STAT_UPDATE_TIMER@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_mod_timer
LBB0_18:
	add	x0, x19, #8
	bl	_tasklet_schedule
	b	LBB0_2
LBB0_19:
	mov	x20, x21
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_STS,4,2                    ; @INT_STS
	.comm	_INT_STS_PHY_INT_,4,2           ; @INT_STS_PHY_INT_
	.comm	_EIO,4,2                        ; @EIO
	.comm	_MAC_CR,4,2                     ; @MAC_CR
	.comm	_MAC_CR_RST_,4,2                ; @MAC_CR_RST_
	.comm	_USB_SPEED_SUPER,8,3            ; @USB_SPEED_SUPER
	.comm	_USB_CFG1,4,2                   ; @USB_CFG1
	.comm	_USB_CFG1_DEV_U2_INIT_EN_,4,2   ; @USB_CFG1_DEV_U2_INIT_EN_
	.comm	_USB_CFG1_DEV_U1_INIT_EN_,4,2   ; @USB_CFG1_DEV_U1_INIT_EN_
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_MII_LPA,4,2                    ; @MII_LPA
	.comm	_link,4,2                       ; @link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"speed: %u duplex: %d anadv: 0x%04x anlpa: 0x%04x"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_STAT_UPDATE_TIMER,8,3          ; @STAT_UPDATE_TIMER
	.no_dead_strip	_lan78xx_link_reset
.subsections_via_symbols
