	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_phy_read_status
_e1000_phy_read_status:                 ## @e1000_phy_read_status
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	callq	_pm_runtime_suspended
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	movq	_BMCR_SPEED1000@GOTPCREL(%rip), %rax
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 16(%rbx)
	movq	_BMSR_100FULL@GOTPCREL(%rip), %rax
	movq	_BMSR_100HALF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_BMSR_10FULL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_BMSR_10HALF@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_BMSR_ESTATEN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_BMSR_ANEGCAPABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_BMSR_ERCAP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 20(%rbx)
	movq	_ADVERTISE_PAUSE_ASYM@GOTPCREL(%rip), %rax
	movq	_ADVERTISE_PAUSE_CAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_ADVERTISE_ALL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_ADVERTISE_CSMA@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 24(%rbx)
	movl	$0, 28(%rbx)
	movq	_EXPANSION_ENABLENPAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_ADVERTISE_1000FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movl	$0, 40(%rbx)
	movq	_ESTATUS_1000_TFULL@GOTPCREL(%rip), %rax
	movq	_ESTATUS_1000_THALF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 44(%rbx)
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_STATUS_LU@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.2:
	movq	(%rbx), %rax
	movq	_e1000_media_type_copper@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	leaq	16(%rbx), %rdx
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_e1e_rphy
	movl	%eax, %r14d
	movq	_MII_BMSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	20(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy
	movl	%eax, %r15d
	orl	%r14d, %r15d
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	24(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy
	movl	%eax, %r12d
	movq	_MII_LPA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	28(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy
	movl	%eax, %r14d
	orl	%r12d, %r14d
	orl	%r15d, %r14d
	movq	_MII_EXPANSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	32(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy
	movl	%eax, %r15d
	movq	_MII_CTRL1000@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	36(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy
	movl	%eax, %r12d
	orl	%r15d, %r12d
	movq	_MII_STAT1000@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	40(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy
	movl	%eax, %r15d
	orl	%r12d, %r15d
	orl	%r14d, %r15d
	movq	_MII_ESTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	44(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy
	orl	%r15d, %eax
	je	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_e_warn                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_E1000_STATUS_LU,4,2            ## @E1000_STATUS_LU
	.comm	_e1000_media_type_copper,8,3    ## @e1000_media_type_copper
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_MII_LPA,4,2                    ## @MII_LPA
	.comm	_MII_EXPANSION,4,2              ## @MII_EXPANSION
	.comm	_MII_CTRL1000,4,2               ## @MII_CTRL1000
	.comm	_MII_STAT1000,4,2               ## @MII_STAT1000
	.comm	_MII_ESTATUS,4,2                ## @MII_ESTATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading PHY register\n"

	.comm	_BMCR_SPEED1000,4,2             ## @BMCR_SPEED1000
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_BMCR_FULLDPLX,4,2              ## @BMCR_FULLDPLX
	.comm	_BMSR_100FULL,4,2               ## @BMSR_100FULL
	.comm	_BMSR_100HALF,4,2               ## @BMSR_100HALF
	.comm	_BMSR_10FULL,4,2                ## @BMSR_10FULL
	.comm	_BMSR_10HALF,4,2                ## @BMSR_10HALF
	.comm	_BMSR_ESTATEN,4,2               ## @BMSR_ESTATEN
	.comm	_BMSR_ANEGCAPABLE,4,2           ## @BMSR_ANEGCAPABLE
	.comm	_BMSR_ERCAP,4,2                 ## @BMSR_ERCAP
	.comm	_ADVERTISE_PAUSE_ASYM,4,2       ## @ADVERTISE_PAUSE_ASYM
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ## @ADVERTISE_PAUSE_CAP
	.comm	_ADVERTISE_ALL,4,2              ## @ADVERTISE_ALL
	.comm	_ADVERTISE_CSMA,4,2             ## @ADVERTISE_CSMA
	.comm	_EXPANSION_ENABLENPAGE,4,2      ## @EXPANSION_ENABLENPAGE
	.comm	_ADVERTISE_1000FULL,4,2         ## @ADVERTISE_1000FULL
	.comm	_ESTATUS_1000_TFULL,4,2         ## @ESTATUS_1000_TFULL
	.comm	_ESTATUS_1000_THALF,4,2         ## @ESTATUS_1000_THALF
	.no_dead_strip	_e1000_phy_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_phy_read_status
_e1000_phy_read_status:                 ; @e1000_phy_read_status
	.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	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_pm_runtime_suspended
	cbz	w0, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _BMCR_SPEED1000@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMCR_SPEED1000@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BMCR_ANENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _BMCR_FULLDPLX@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BMCR_FULLDPLX@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh8:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _BMSR_100FULL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BMSR_100FULL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _BMSR_100HALF@GOTPAGE
Lloh13:
	ldr	x10, [x10, _BMSR_100HALF@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh15:
	adrp	x10, _BMSR_10FULL@GOTPAGE
Lloh16:
	ldr	x10, [x10, _BMSR_10FULL@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh18:
	adrp	x10, _BMSR_10HALF@GOTPAGE
Lloh19:
	ldr	x10, [x10, _BMSR_10HALF@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh21:
	adrp	x10, _BMSR_ESTATEN@GOTPAGE
Lloh22:
	ldr	x10, [x10, _BMSR_ESTATEN@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh24:
	adrp	x10, _BMSR_ANEGCAPABLE@GOTPAGE
Lloh25:
	ldr	x10, [x10, _BMSR_ANEGCAPABLE@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh27:
	adrp	x10, _BMSR_ERCAP@GOTPAGE
Lloh28:
	ldr	x10, [x10, _BMSR_ERCAP@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	orr	w9, w9, w10
	stp	w8, w9, [x19, #16]
Lloh30:
	adrp	x8, _ADVERTISE_PAUSE_ASYM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ADVERTISE_PAUSE_ASYM@GOTPAGEOFF]
Lloh32:
	adrp	x9, _ADVERTISE_PAUSE_CAP@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ADVERTISE_PAUSE_CAP@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh36:
	adrp	x9, _ADVERTISE_ALL@GOTPAGE
Lloh37:
	ldr	x9, [x9, _ADVERTISE_ALL@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh39:
	adrp	x9, _ADVERTISE_CSMA@GOTPAGE
Lloh40:
	ldr	x9, [x9, _ADVERTISE_CSMA@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w8, w8, w9
	stp	w8, wzr, [x19, #24]
Lloh42:
	adrp	x8, _EXPANSION_ENABLENPAGE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EXPANSION_ENABLENPAGE@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	adrp	x9, _ADVERTISE_1000FULL@GOTPAGE
Lloh46:
	ldr	x9, [x9, _ADVERTISE_1000FULL@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #32]
Lloh48:
	adrp	x8, _ESTATUS_1000_TFULL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ESTATUS_1000_TFULL@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
Lloh51:
	adrp	x9, _ESTATUS_1000_THALF@GOTPAGE
Lloh52:
	ldr	x9, [x9, _ESTATUS_1000_THALF@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	wzr, w8, [x19, #40]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh54:
	adrp	x8, _STATUS@GOTPAGE
Lloh55:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	bl	_er32
Lloh57:
	adrp	x8, _E1000_STATUS_LU@GOTPAGE
Lloh58:
	ldr	x8, [x8, _E1000_STATUS_LU@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_1
; %bb.4:
	ldr	x8, [x19]
Lloh60:
	adrp	x9, _e1000_media_type_copper@GOTPAGE
Lloh61:
	ldr	x9, [x9, _e1000_media_type_copper@GOTPAGEOFF]
Lloh62:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.5:
	add	x2, x19, #16
Lloh63:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh64:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_e1e_rphy
	mov	x20, x0
Lloh66:
	adrp	x8, _MII_BMSR@GOTPAGE
Lloh67:
	ldr	x8, [x8, _MII_BMSR@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	add	x2, x19, #20
	mov	x0, x19
	bl	_e1e_rphy
	orr	w20, w0, w20
Lloh69:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh70:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	add	x2, x19, #24
	mov	x0, x19
	bl	_e1e_rphy
	orr	w20, w20, w0
Lloh72:
	adrp	x8, _MII_LPA@GOTPAGE
Lloh73:
	ldr	x8, [x8, _MII_LPA@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
	add	x2, x19, #28
	mov	x0, x19
	bl	_e1e_rphy
	orr	w20, w20, w0
Lloh75:
	adrp	x8, _MII_EXPANSION@GOTPAGE
Lloh76:
	ldr	x8, [x8, _MII_EXPANSION@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
	add	x2, x19, #32
	mov	x0, x19
	bl	_e1e_rphy
	orr	w20, w20, w0
Lloh78:
	adrp	x8, _MII_CTRL1000@GOTPAGE
Lloh79:
	ldr	x8, [x8, _MII_CTRL1000@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
	add	x2, x19, #36
	mov	x0, x19
	bl	_e1e_rphy
	orr	w20, w20, w0
Lloh81:
	adrp	x8, _MII_STAT1000@GOTPAGE
Lloh82:
	ldr	x8, [x8, _MII_STAT1000@GOTPAGEOFF]
Lloh83:
	ldr	w1, [x8]
	add	x2, x19, #40
	mov	x0, x19
	bl	_e1e_rphy
	orr	w20, w20, w0
Lloh84:
	adrp	x8, _MII_ESTATUS@GOTPAGE
Lloh85:
	ldr	x8, [x8, _MII_ESTATUS@GOTPAGEOFF]
Lloh86:
	ldr	w1, [x8]
	add	x2, x19, #44
	mov	x0, x19
	bl	_e1e_rphy
	orr	w8, w20, w0
	cbz	w8, LBB0_2
; %bb.6:
Lloh87:
	adrp	x0, l_.str@PAGE
Lloh88:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_e_warn
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh34
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh87, Lloh88
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_E1000_STATUS_LU,4,2            ; @E1000_STATUS_LU
	.comm	_e1000_media_type_copper,8,3    ; @e1000_media_type_copper
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_MII_LPA,4,2                    ; @MII_LPA
	.comm	_MII_EXPANSION,4,2              ; @MII_EXPANSION
	.comm	_MII_CTRL1000,4,2               ; @MII_CTRL1000
	.comm	_MII_STAT1000,4,2               ; @MII_STAT1000
	.comm	_MII_ESTATUS,4,2                ; @MII_ESTATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading PHY register\n"

	.comm	_BMCR_SPEED1000,4,2             ; @BMCR_SPEED1000
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_BMCR_FULLDPLX,4,2              ; @BMCR_FULLDPLX
	.comm	_BMSR_100FULL,4,2               ; @BMSR_100FULL
	.comm	_BMSR_100HALF,4,2               ; @BMSR_100HALF
	.comm	_BMSR_10FULL,4,2                ; @BMSR_10FULL
	.comm	_BMSR_10HALF,4,2                ; @BMSR_10HALF
	.comm	_BMSR_ESTATEN,4,2               ; @BMSR_ESTATEN
	.comm	_BMSR_ANEGCAPABLE,4,2           ; @BMSR_ANEGCAPABLE
	.comm	_BMSR_ERCAP,4,2                 ; @BMSR_ERCAP
	.comm	_ADVERTISE_PAUSE_ASYM,4,2       ; @ADVERTISE_PAUSE_ASYM
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ; @ADVERTISE_PAUSE_CAP
	.comm	_ADVERTISE_ALL,4,2              ; @ADVERTISE_ALL
	.comm	_ADVERTISE_CSMA,4,2             ; @ADVERTISE_CSMA
	.comm	_EXPANSION_ENABLENPAGE,4,2      ; @EXPANSION_ENABLENPAGE
	.comm	_ADVERTISE_1000FULL,4,2         ; @ADVERTISE_1000FULL
	.comm	_ESTATUS_1000_TFULL,4,2         ; @ESTATUS_1000_TFULL
	.comm	_ESTATUS_1000_THALF,4,2         ; @ESTATUS_1000_THALF
	.no_dead_strip	_e1000_phy_read_status
.subsections_via_symbols
