	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mii_init_common
_mii_init_common:                       ## @mii_init_common
	.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, %rbx
	callq	_mii_reset
	testl	%eax, %eax
	je	LBB0_1
LBB0_42:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	4(%rbx), %esi
	movq	_MII_BMSR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mii_read
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	_BMSR_ESTATEN@GOTPCREL(%rip), %r13
	testl	%r15d, (%r13)
	je	LBB0_4
## %bb.5:
	movl	4(%rbx), %esi
	movq	_MII_ESTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mii_read
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_6
	jmp	LBB0_42
LBB0_2:
	movl	%r15d, %eax
	jmp	LBB0_42
LBB0_4:
	xorl	%r12d, %r12d
LBB0_6:
	movl	4(%rbx), %esi
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_mii_write
	testl	%eax, %eax
	jne	LBB0_42
## %bb.7:
	movq	8(%rbx), %rax
	movq	_LOOPBACK_MAC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.8:
	movq	_BMCR_LOOPBACK@GOTPCREL(%rip), %rcx
	movq	_SPEED_1000@GOTPCREL(%rip), %rsi
	movq	16(%rbx), %rdi
	movq	24(%rbx), %rdx
	xorl	%r14d, %r14d
	cmpq	(%rsi), %rdi
	jne	LBB0_10
## %bb.9:
	movq	_BMCR_SPEED1000@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r14d
LBB0_10:
	orl	(%rcx), %r14d
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_12
## %bb.11:
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r14d
LBB0_12:
	movq	_LOOPBACK_PHY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	movq	_BCM5464R_AUX_CTL_EXT_LB@GOTPCREL(%rip), %rax
	movq	_BCM5464R_AUX_CTL_WRITE_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	4(%rbx), %esi
	movq	_BCM5464R_AUX_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mii_write
	testl	%eax, %eax
	jne	LBB0_42
LBB0_14:
	cmpq	$0, 56(%rbx)
	je	LBB0_39
## %bb.15:
	movq	_ADVERTISE_CSMA@GOTPCREL(%rip), %rax
	movq	_ADVERTISE_PAUSE_CAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_BMSR_10HALF@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_18
## %bb.16:
	movq	_ADVERTISED_10baseT_Half@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 32(%rbx)
	je	LBB0_18
## %bb.17:
	movq	_ADVERTISE_10HALF@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
LBB0_18:
	movq	_BMSR_10FULL@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_21
## %bb.19:
	movq	_ADVERTISED_10baseT_Full@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 32(%rbx)
	je	LBB0_21
## %bb.20:
	movq	_ADVERTISE_10FULL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
LBB0_21:
	movq	_BMSR_100HALF@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_24
## %bb.22:
	movq	_ADVERTISED_100baseT_Half@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 32(%rbx)
	je	LBB0_24
## %bb.23:
	movq	_ADVERTISE_100HALF@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
LBB0_24:
	movq	_BMSR_100FULL@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_27
## %bb.25:
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 32(%rbx)
	je	LBB0_27
## %bb.26:
	movq	_ADVERTISE_100FULL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
LBB0_27:
	movl	4(%rbx), %esi
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mii_write
	testl	%eax, %eax
	jne	LBB0_42
## %bb.28:
	movl	(%r13), %edi
	andl	%r15d, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_37
## %bb.29:
	movq	_ESTATUS_1000_THALF@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_30
## %bb.31:
	movq	_ADVERTISED_1000baseT_Half@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	32(%rbx), %ecx
	je	LBB0_33
## %bb.32:
	movq	_ADVERTISE_1000HALF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_33
LBB0_39:
	movq	40(%rbx), %rax
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_40
## %bb.47:
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	48(%rbx), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_48
## %bb.43:
	movq	_ESTATUS_1000_TFULL@GOTPCREL(%rip), %rax
	jmp	LBB0_45
LBB0_40:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_41
## %bb.50:
	movq	48(%rbx), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_51
## %bb.44:
	movq	_ESTATUS_1000_THALF@GOTPCREL(%rip), %rax
LBB0_45:
	testl	%r12d, (%rax)
	je	LBB0_41
## %bb.46:
	movq	_BMCR_SPEED1000@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	jmp	LBB0_38
LBB0_48:
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_58
## %bb.49:
	movq	_BMSR_100FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_53
LBB0_30:
	xorl	%ecx, %ecx
LBB0_33:
	movq	_ESTATUS_1000_TFULL@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_36
## %bb.34:
	movq	_ADVERTISED_1000baseT_Full@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 32(%rbx)
	je	LBB0_36
## %bb.35:
	movq	_ADVERTISE_1000FULL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
LBB0_36:
	movl	4(%rbx), %esi
	movq	_MII_CTRL1000@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mii_write
	testl	%eax, %eax
	jne	LBB0_42
LBB0_37:
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rax
	movq	_BMCR_ANRESTART@GOTPCREL(%rip), %rcx
	orl	(%rax), %r14d
	orl	(%rcx), %r14d
	jmp	LBB0_38
LBB0_51:
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_55
## %bb.52:
	movq	_BMSR_100HALF@GOTPCREL(%rip), %rax
LBB0_53:
	testl	%r15d, (%rax)
	je	LBB0_41
## %bb.54:
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	jmp	LBB0_38
LBB0_58:
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_41
## %bb.59:
	movq	_BMSR_10FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_57
LBB0_55:
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_41
## %bb.56:
	movq	_BMSR_10HALF@GOTPCREL(%rip), %rax
LBB0_57:
	testl	%r15d, (%rax)
	je	LBB0_41
LBB0_38:
	movl	4(%rbx), %esi
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mii_write                      ## TAILCALL
LBB0_41:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_42
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.comm	_BMSR_ESTATEN,4,2               ## @BMSR_ESTATEN
	.comm	_MII_ESTATUS,4,2                ## @MII_ESTATUS
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_LOOPBACK_MAC,8,3               ## @LOOPBACK_MAC
	.comm	_BMCR_LOOPBACK,4,2              ## @BMCR_LOOPBACK
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_BMCR_SPEED1000,4,2             ## @BMCR_SPEED1000
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_BMCR_FULLDPLX,4,2              ## @BMCR_FULLDPLX
	.comm	_LOOPBACK_PHY,8,3               ## @LOOPBACK_PHY
	.comm	_BCM5464R_AUX_CTL_EXT_LB,4,2    ## @BCM5464R_AUX_CTL_EXT_LB
	.comm	_BCM5464R_AUX_CTL_WRITE_1,4,2   ## @BCM5464R_AUX_CTL_WRITE_1
	.comm	_BCM5464R_AUX_CTL,4,2           ## @BCM5464R_AUX_CTL
	.comm	_ADVERTISE_CSMA,4,2             ## @ADVERTISE_CSMA
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ## @ADVERTISE_PAUSE_CAP
	.comm	_BMSR_10HALF,4,2                ## @BMSR_10HALF
	.comm	_ADVERTISED_10baseT_Half,4,2    ## @ADVERTISED_10baseT_Half
	.comm	_ADVERTISE_10HALF,4,2           ## @ADVERTISE_10HALF
	.comm	_BMSR_10FULL,4,2                ## @BMSR_10FULL
	.comm	_ADVERTISED_10baseT_Full,4,2    ## @ADVERTISED_10baseT_Full
	.comm	_ADVERTISE_10FULL,4,2           ## @ADVERTISE_10FULL
	.comm	_BMSR_100HALF,4,2               ## @BMSR_100HALF
	.comm	_ADVERTISED_100baseT_Half,4,2   ## @ADVERTISED_100baseT_Half
	.comm	_ADVERTISE_100HALF,4,2          ## @ADVERTISE_100HALF
	.comm	_BMSR_100FULL,4,2               ## @BMSR_100FULL
	.comm	_ADVERTISED_100baseT_Full,4,2   ## @ADVERTISED_100baseT_Full
	.comm	_ADVERTISE_100FULL,4,2          ## @ADVERTISE_100FULL
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_ESTATUS_1000_THALF,4,2         ## @ESTATUS_1000_THALF
	.comm	_ADVERTISED_1000baseT_Half,4,2  ## @ADVERTISED_1000baseT_Half
	.comm	_ADVERTISE_1000HALF,4,2         ## @ADVERTISE_1000HALF
	.comm	_ESTATUS_1000_TFULL,4,2         ## @ESTATUS_1000_TFULL
	.comm	_ADVERTISED_1000baseT_Full,4,2  ## @ADVERTISED_1000baseT_Full
	.comm	_ADVERTISE_1000FULL,4,2         ## @ADVERTISE_1000FULL
	.comm	_MII_CTRL1000,4,2               ## @MII_CTRL1000
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_BMCR_ANRESTART,4,2             ## @BMCR_ANRESTART
	.comm	_DUPLEX_HALF,8,3                ## @DUPLEX_HALF
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_BMCR_SPEED100,4,2              ## @BMCR_SPEED100
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.no_dead_strip	_mii_init_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mii_init_common
_mii_init_common:                       ; @mii_init_common
	.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	x19, x0
	bl	_mii_reset
	cbz	w0, LBB0_2
LBB0_1:
	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
LBB0_2:
	ldr	w1, [x19, #4]
Lloh0:
	adrp	x8, _MII_BMSR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_BMSR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mii_read
	mov	x21, x0
	tbnz	w0, #31, LBB0_5
; %bb.3:
Lloh3:
	adrp	x24, _BMSR_ESTATEN@GOTPAGE
Lloh4:
	ldr	x24, [x24, _BMSR_ESTATEN@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.4:
	ldr	w1, [x19, #4]
Lloh5:
	adrp	x8, _MII_ESTATUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MII_ESTATUS@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mii_read
	mov	x22, x0
	tbz	w0, #31, LBB0_7
	b	LBB0_1
LBB0_5:
	mov	x0, x21
	b	LBB0_1
LBB0_6:
	mov	w22, #0
LBB0_7:
	ldr	w1, [x19, #4]
Lloh8:
	adrp	x23, _MII_BMCR@GOTPAGE
Lloh9:
	ldr	x23, [x23, _MII_BMCR@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w3, #0
	bl	_mii_write
	cbnz	w0, LBB0_1
; %bb.8:
	ldr	x8, [x19, #8]
Lloh10:
	adrp	x9, _LOOPBACK_MAC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _LOOPBACK_MAC@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
Lloh13:
	adrp	x9, _BMCR_LOOPBACK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BMCR_LOOPBACK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _SPEED_1000@GOTPAGE
Lloh17:
	ldr	x10, [x10, _SPEED_1000@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
Lloh19:
	adrp	x11, _BMCR_SPEED1000@GOTPAGE
Lloh20:
	ldr	x11, [x11, _BMCR_SPEED1000@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	ldp	x12, x13, [x19, #16]
	cmp	x12, x10
	csel	w10, w11, wzr, eq
	orr	w20, w10, w9
Lloh22:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh23:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x13, x9
	b.ne	LBB0_12
; %bb.10:
Lloh25:
	adrp	x9, _BMCR_FULLDPLX@GOTPAGE
Lloh26:
	ldr	x9, [x9, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w20, w9, w20
	b	LBB0_12
LBB0_11:
	mov	w20, #0
LBB0_12:
Lloh28:
	adrp	x9, _LOOPBACK_PHY@GOTPAGE
Lloh29:
	ldr	x9, [x9, _LOOPBACK_PHY@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
Lloh31:
	adrp	x8, _BCM5464R_AUX_CTL_EXT_LB@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BCM5464R_AUX_CTL_EXT_LB@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _BCM5464R_AUX_CTL_WRITE_1@GOTPAGE
Lloh35:
	ldr	x9, [x9, _BCM5464R_AUX_CTL_WRITE_1@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w3, w9, w8
	ldr	w1, [x19, #4]
Lloh37:
	adrp	x8, _BCM5464R_AUX_CTL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _BCM5464R_AUX_CTL@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mii_write
	cbnz	w0, LBB0_1
LBB0_14:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_31
; %bb.15:
Lloh40:
	adrp	x8, _ADVERTISE_CSMA@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ADVERTISE_CSMA@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _ADVERTISE_PAUSE_CAP@GOTPAGE
Lloh44:
	ldr	x9, [x9, _ADVERTISE_PAUSE_CAP@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh46:
	adrp	x8, _BMSR_10HALF@GOTPAGE
Lloh47:
	ldr	x8, [x8, _BMSR_10HALF@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_18
; %bb.16:
	ldr	w8, [x19, #32]
Lloh49:
	adrp	x9, _ADVERTISED_10baseT_Half@GOTPAGE
Lloh50:
	ldr	x9, [x9, _ADVERTISED_10baseT_Half@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
Lloh52:
	adrp	x8, _ADVERTISE_10HALF@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ADVERTISE_10HALF@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	orr	w3, w8, w3
LBB0_18:
Lloh55:
	adrp	x8, _BMSR_10FULL@GOTPAGE
Lloh56:
	ldr	x8, [x8, _BMSR_10FULL@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_21
; %bb.19:
	ldr	w8, [x19, #32]
Lloh58:
	adrp	x9, _ADVERTISED_10baseT_Full@GOTPAGE
Lloh59:
	ldr	x9, [x9, _ADVERTISED_10baseT_Full@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.20:
Lloh61:
	adrp	x8, _ADVERTISE_10FULL@GOTPAGE
Lloh62:
	ldr	x8, [x8, _ADVERTISE_10FULL@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	orr	w3, w8, w3
LBB0_21:
Lloh64:
	adrp	x8, _BMSR_100HALF@GOTPAGE
Lloh65:
	ldr	x8, [x8, _BMSR_100HALF@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_24
; %bb.22:
	ldr	w8, [x19, #32]
Lloh67:
	adrp	x9, _ADVERTISED_100baseT_Half@GOTPAGE
Lloh68:
	ldr	x9, [x9, _ADVERTISED_100baseT_Half@GOTPAGEOFF]
Lloh69:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.23:
Lloh70:
	adrp	x8, _ADVERTISE_100HALF@GOTPAGE
Lloh71:
	ldr	x8, [x8, _ADVERTISE_100HALF@GOTPAGEOFF]
Lloh72:
	ldr	w8, [x8]
	orr	w3, w8, w3
LBB0_24:
Lloh73:
	adrp	x8, _BMSR_100FULL@GOTPAGE
Lloh74:
	ldr	x8, [x8, _BMSR_100FULL@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_27
; %bb.25:
	ldr	w8, [x19, #32]
Lloh76:
	adrp	x9, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh77:
	ldr	x9, [x9, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
Lloh78:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.26:
Lloh79:
	adrp	x8, _ADVERTISE_100FULL@GOTPAGE
Lloh80:
	ldr	x8, [x8, _ADVERTISE_100FULL@GOTPAGEOFF]
Lloh81:
	ldr	w8, [x8]
	orr	w3, w8, w3
LBB0_27:
	ldr	w1, [x19, #4]
Lloh82:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh83:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh84:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mii_write
	cbnz	w0, LBB0_1
; %bb.28:
	ldr	w8, [x24]
	and	w0, w8, w21
	bl	_likely
	cbz	x0, LBB0_46
; %bb.29:
Lloh85:
	adrp	x8, _ESTATUS_1000_THALF@GOTPAGE
Lloh86:
	ldr	x8, [x8, _ESTATUS_1000_THALF@GOTPAGEOFF]
Lloh87:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_41
; %bb.30:
	ldr	w8, [x19, #32]
Lloh88:
	adrp	x9, _ADVERTISED_1000baseT_Half@GOTPAGE
Lloh89:
	ldr	x9, [x9, _ADVERTISED_1000baseT_Half@GOTPAGEOFF]
Lloh90:
	ldr	w9, [x9]
Lloh91:
	adrp	x10, _ADVERTISE_1000HALF@GOTPAGE
Lloh92:
	ldr	x10, [x10, _ADVERTISE_1000HALF@GOTPAGEOFF]
Lloh93:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w3, wzr, w10, eq
	b	LBB0_42
LBB0_31:
	ldr	x8, [x19, #40]
Lloh94:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh95:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh96:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_34
; %bb.32:
Lloh97:
	adrp	x8, _BMCR_FULLDPLX@GOTPAGE
Lloh98:
	ldr	x8, [x8, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh99:
	ldr	w8, [x8]
	orr	w20, w8, w20
	ldr	x8, [x19, #48]
Lloh100:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh101:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
Lloh102:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_39
; %bb.33:
Lloh103:
	adrp	x8, _ESTATUS_1000_TFULL@GOTPAGE
Lloh104:
	ldr	x8, [x8, _ESTATUS_1000_TFULL@GOTPAGEOFF]
	b	LBB0_37
LBB0_34:
Lloh105:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh106:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh107:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_58
; %bb.35:
	ldr	x8, [x19, #48]
Lloh108:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh109:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
Lloh110:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_47
; %bb.36:
Lloh111:
	adrp	x8, _ESTATUS_1000_THALF@GOTPAGE
Lloh112:
	ldr	x8, [x8, _ESTATUS_1000_THALF@GOTPAGEOFF]
LBB0_37:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_58
; %bb.38:
Lloh113:
	adrp	x8, _BMCR_SPEED1000@GOTPAGE
Lloh114:
	ldr	x8, [x8, _BMCR_SPEED1000@GOTPAGEOFF]
	b	LBB0_51
LBB0_39:
Lloh115:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh116:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
Lloh117:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_53
; %bb.40:
Lloh118:
	adrp	x8, _BMSR_100FULL@GOTPAGE
Lloh119:
	ldr	x8, [x8, _BMSR_100FULL@GOTPAGEOFF]
	b	LBB0_49
LBB0_41:
	mov	w3, #0
LBB0_42:
Lloh120:
	adrp	x8, _ESTATUS_1000_TFULL@GOTPAGE
Lloh121:
	ldr	x8, [x8, _ESTATUS_1000_TFULL@GOTPAGEOFF]
Lloh122:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_45
; %bb.43:
	ldr	w8, [x19, #32]
Lloh123:
	adrp	x9, _ADVERTISED_1000baseT_Full@GOTPAGE
Lloh124:
	ldr	x9, [x9, _ADVERTISED_1000baseT_Full@GOTPAGEOFF]
Lloh125:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_45
; %bb.44:
Lloh126:
	adrp	x8, _ADVERTISE_1000FULL@GOTPAGE
Lloh127:
	ldr	x8, [x8, _ADVERTISE_1000FULL@GOTPAGEOFF]
Lloh128:
	ldr	w8, [x8]
	orr	w3, w8, w3
LBB0_45:
	ldr	w1, [x19, #4]
Lloh129:
	adrp	x8, _MII_CTRL1000@GOTPAGE
Lloh130:
	ldr	x8, [x8, _MII_CTRL1000@GOTPAGEOFF]
Lloh131:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mii_write
	cbnz	w0, LBB0_1
LBB0_46:
Lloh132:
	adrp	x8, _BMCR_ANENABLE@GOTPAGE
Lloh133:
	ldr	x8, [x8, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh134:
	ldr	w8, [x8]
Lloh135:
	adrp	x9, _BMCR_ANRESTART@GOTPAGE
Lloh136:
	ldr	x9, [x9, _BMCR_ANRESTART@GOTPAGEOFF]
Lloh137:
	ldr	w9, [x9]
	orr	w8, w8, w20
	orr	w20, w8, w9
	b	LBB0_52
LBB0_47:
Lloh138:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh139:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
Lloh140:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_55
; %bb.48:
Lloh141:
	adrp	x8, _BMSR_100HALF@GOTPAGE
Lloh142:
	ldr	x8, [x8, _BMSR_100HALF@GOTPAGEOFF]
LBB0_49:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_58
; %bb.50:
Lloh143:
	adrp	x8, _BMCR_SPEED100@GOTPAGE
Lloh144:
	ldr	x8, [x8, _BMCR_SPEED100@GOTPAGEOFF]
LBB0_51:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_52:
	ldr	w1, [x19, #4]
	ldr	w2, [x23]
	mov	x0, x19
	mov	x3, 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
	b	_mii_write
LBB0_53:
Lloh145:
	adrp	x9, _SPEED_10@GOTPAGE
Lloh146:
	ldr	x9, [x9, _SPEED_10@GOTPAGEOFF]
Lloh147:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_58
; %bb.54:
Lloh148:
	adrp	x8, _BMSR_10FULL@GOTPAGE
Lloh149:
	ldr	x8, [x8, _BMSR_10FULL@GOTPAGEOFF]
	b	LBB0_57
LBB0_55:
Lloh150:
	adrp	x9, _SPEED_10@GOTPAGE
Lloh151:
	ldr	x9, [x9, _SPEED_10@GOTPAGEOFF]
Lloh152:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_58
; %bb.56:
Lloh153:
	adrp	x8, _BMSR_10HALF@GOTPAGE
Lloh154:
	ldr	x8, [x8, _BMSR_10HALF@GOTPAGEOFF]
LBB0_57:
	ldr	w8, [x8]
	tst	w8, w21
	b.ne	LBB0_52
LBB0_58:
Lloh155:
	adrp	x8, _EINVAL@GOTPAGE
Lloh156:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh157:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGot	Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGot	Lloh111, Lloh112
	.loh AdrpLdrGot	Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpLdrGot	Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpLdrGotLdr	Lloh126, Lloh127, Lloh128
	.loh AdrpLdrGotLdr	Lloh129, Lloh130, Lloh131
	.loh AdrpLdrGotLdr	Lloh135, Lloh136, Lloh137
	.loh AdrpLdrGotLdr	Lloh132, Lloh133, Lloh134
	.loh AdrpLdrGotLdr	Lloh138, Lloh139, Lloh140
	.loh AdrpLdrGot	Lloh141, Lloh142
	.loh AdrpLdrGot	Lloh143, Lloh144
	.loh AdrpLdrGotLdr	Lloh145, Lloh146, Lloh147
	.loh AdrpLdrGot	Lloh148, Lloh149
	.loh AdrpLdrGotLdr	Lloh150, Lloh151, Lloh152
	.loh AdrpLdrGot	Lloh153, Lloh154
	.loh AdrpLdrGotLdr	Lloh155, Lloh156, Lloh157
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.comm	_BMSR_ESTATEN,4,2               ; @BMSR_ESTATEN
	.comm	_MII_ESTATUS,4,2                ; @MII_ESTATUS
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_LOOPBACK_MAC,8,3               ; @LOOPBACK_MAC
	.comm	_BMCR_LOOPBACK,4,2              ; @BMCR_LOOPBACK
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_BMCR_SPEED1000,4,2             ; @BMCR_SPEED1000
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_BMCR_FULLDPLX,4,2              ; @BMCR_FULLDPLX
	.comm	_LOOPBACK_PHY,8,3               ; @LOOPBACK_PHY
	.comm	_BCM5464R_AUX_CTL_EXT_LB,4,2    ; @BCM5464R_AUX_CTL_EXT_LB
	.comm	_BCM5464R_AUX_CTL_WRITE_1,4,2   ; @BCM5464R_AUX_CTL_WRITE_1
	.comm	_BCM5464R_AUX_CTL,4,2           ; @BCM5464R_AUX_CTL
	.comm	_ADVERTISE_CSMA,4,2             ; @ADVERTISE_CSMA
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ; @ADVERTISE_PAUSE_CAP
	.comm	_BMSR_10HALF,4,2                ; @BMSR_10HALF
	.comm	_ADVERTISED_10baseT_Half,4,2    ; @ADVERTISED_10baseT_Half
	.comm	_ADVERTISE_10HALF,4,2           ; @ADVERTISE_10HALF
	.comm	_BMSR_10FULL,4,2                ; @BMSR_10FULL
	.comm	_ADVERTISED_10baseT_Full,4,2    ; @ADVERTISED_10baseT_Full
	.comm	_ADVERTISE_10FULL,4,2           ; @ADVERTISE_10FULL
	.comm	_BMSR_100HALF,4,2               ; @BMSR_100HALF
	.comm	_ADVERTISED_100baseT_Half,4,2   ; @ADVERTISED_100baseT_Half
	.comm	_ADVERTISE_100HALF,4,2          ; @ADVERTISE_100HALF
	.comm	_BMSR_100FULL,4,2               ; @BMSR_100FULL
	.comm	_ADVERTISED_100baseT_Full,4,2   ; @ADVERTISED_100baseT_Full
	.comm	_ADVERTISE_100FULL,4,2          ; @ADVERTISE_100FULL
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_ESTATUS_1000_THALF,4,2         ; @ESTATUS_1000_THALF
	.comm	_ADVERTISED_1000baseT_Half,4,2  ; @ADVERTISED_1000baseT_Half
	.comm	_ADVERTISE_1000HALF,4,2         ; @ADVERTISE_1000HALF
	.comm	_ESTATUS_1000_TFULL,4,2         ; @ESTATUS_1000_TFULL
	.comm	_ADVERTISED_1000baseT_Full,4,2  ; @ADVERTISED_1000baseT_Full
	.comm	_ADVERTISE_1000FULL,4,2         ; @ADVERTISE_1000FULL
	.comm	_MII_CTRL1000,4,2               ; @MII_CTRL1000
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_BMCR_ANRESTART,4,2             ; @BMCR_ANRESTART
	.comm	_DUPLEX_HALF,8,3                ; @DUPLEX_HALF
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_BMCR_SPEED100,4,2              ; @BMCR_SPEED100
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.no_dead_strip	_mii_init_common
.subsections_via_symbols
