	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc9420_phy_adjust_link
_smsc9420_phy_adjust_link:              ## @smsc9420_phy_adjust_link
	.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	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	(%r14), %rbx
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	je	LBB0_5
## %bb.1:
	movq	_MAC_CR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_smsc9420_reg_read
	cmpq	$0, (%rbx)
	movl	%eax, %r15d
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r12), %edx
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	callq	_netif_dbg
	movq	_MAC_CR_FDPX_@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rcx
	movq	%r12, %rdi
	callq	_netif_dbg
	movq	_MAC_CR_FDPX_@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
LBB0_4:
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_smsc9420_reg_write
	movq	%r12, %rdi
	callq	_smsc9420_phy_update_flowcontrol
	movq	(%rbx), %rax
	movq	%rax, (%r12)
LBB0_5:
	movq	%r14, %rdi
	callq	_netif_carrier_ok
	cmpl	8(%r12), %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	testl	%eax, %eax
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r12), %edx
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	%r12, %rdi
	callq	_netif_dbg
	movl	%ebx, 8(%r12)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_CR,4,2                     ## @MAC_CR
	.comm	_link,4,2                       ## @link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"full duplex mode\n"

	.comm	_MAC_CR_FDPX_,4,2               ## @MAC_CR_FDPX_
L_.str.1:                               ## @.str.1
	.asciz	"half duplex mode\n"

L_.str.2:                               ## @.str.2
	.asciz	"carrier OK\n"

L_.str.3:                               ## @.str.3
	.asciz	"no carrier\n"

	.no_dead_strip	_smsc9420_phy_adjust_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc9420_phy_adjust_link
_smsc9420_phy_adjust_link:              ; @smsc9420_phy_adjust_link
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x23, [x20]
	ldr	x8, [x23]
	ldr	x9, [x0]
Lloh0:
	adrp	x22, _link@GOTPAGE
Lloh1:
	ldr	x22, [x22, _link@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.1:
Lloh2:
	adrp	x24, _MAC_CR@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MAC_CR@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_smsc9420_reg_read
	mov	x21, x0
	ldr	x8, [x23]
	ldr	w1, [x22]
	ldr	w2, [x19, #12]
	cbz	x8, LBB0_3
; %bb.2:
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
Lloh6:
	adrp	x8, _MAC_CR_FDPX_@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAC_CR_FDPX_@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w2, w8, w21
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x3, l_.str.1@PAGE
Lloh10:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
Lloh11:
	adrp	x8, _MAC_CR_FDPX_@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAC_CR_FDPX_@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	bic	w2, w21, w8
LBB0_4:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_smsc9420_reg_write
	mov	x0, x19
	bl	_smsc9420_phy_update_flowcontrol
	ldr	x8, [x23]
	str	x8, [x19]
LBB0_5:
	mov	x0, x20
	bl	_netif_carrier_ok
	ldr	w8, [x19, #8]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x20, x0
	ldr	w1, [x22]
	ldr	w2, [x19, #12]
Lloh14:
	adrp	x8, l_.str.2@PAGE
Lloh15:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh16:
	adrp	x9, l_.str.3@PAGE
Lloh17:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w0, #0
	csel	x3, x9, x8, eq
	mov	x0, x19
	bl	_netif_dbg
	str	w20, [x19, #8]
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_CR,4,2                     ; @MAC_CR
	.comm	_link,4,2                       ; @link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"full duplex mode\n"

	.comm	_MAC_CR_FDPX_,4,2               ; @MAC_CR_FDPX_
l_.str.1:                               ; @.str.1
	.asciz	"half duplex mode\n"

l_.str.2:                               ; @.str.2
	.asciz	"carrier OK\n"

l_.str.3:                               ; @.str.3
	.asciz	"no carrier\n"

	.no_dead_strip	_smsc9420_phy_adjust_link
.subsections_via_symbols
