	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_gxl_read_status
_meson_gxl_read_status:                 ## @meson_gxl_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.1:
	movq	%rbx, %rdi
	callq	_genphy_aneg_done
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	je	LBB0_12
## %bb.5:
	movq	_BANK_WOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LPI_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_meson_gxl_read_reg
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_3
## %bb.6:
	movq	_MII_LPA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	_MII_EXPANSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_2
## %bb.9:
	movq	_LPI_STATUS_RSV12@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_13
## %bb.10:
	movq	_EXPANSION_NWAY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	movq	_LPA_LPACK@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_13
LBB0_12:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_genphy_read_status             ## TAILCALL
LBB0_2:
	movl	%eax, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%r15d, %r14d
	jmp	LBB0_3
LBB0_13:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_phydev_dbg
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_genphy_restart_aneg            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_BANK_WOL,4,2                   ## @BANK_WOL
	.comm	_LPI_STATUS,4,2                 ## @LPI_STATUS
	.comm	_MII_LPA,4,2                    ## @MII_LPA
	.comm	_MII_EXPANSION,4,2              ## @MII_EXPANSION
	.comm	_LPI_STATUS_RSV12,4,2           ## @LPI_STATUS_RSV12
	.comm	_EXPANSION_NWAY,4,2             ## @EXPANSION_NWAY
	.comm	_LPA_LPACK,4,2                  ## @LPA_LPACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LPA corruption - aneg restart\n"

	.no_dead_strip	_meson_gxl_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_gxl_read_status
_meson_gxl_read_status:                 ; @meson_gxl_read_status
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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]
Lloh0:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	mov	x0, x19
	bl	_genphy_aneg_done
	mov	x20, x0
	tbnz	w0, #31, LBB0_12
; %bb.2:
	cbz	w20, LBB0_9
; %bb.3:
Lloh3:
	adrp	x8, _BANK_WOL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BANK_WOL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _LPI_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LPI_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_meson_gxl_read_reg
	mov	x20, x0
	tbnz	w0, #31, LBB0_12
; %bb.4:
Lloh9:
	adrp	x8, _MII_LPA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MII_LPA@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	mov	x21, x0
	tbnz	w0, #31, LBB0_10
; %bb.5:
Lloh12:
	adrp	x8, _MII_EXPANSION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MII_EXPANSION@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	tbnz	w0, #31, LBB0_11
; %bb.6:
Lloh15:
	adrp	x8, _LPI_STATUS_RSV12@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LPI_STATUS_RSV12@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_13
; %bb.7:
Lloh18:
	adrp	x8, _EXPANSION_NWAY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EXPANSION_NWAY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.8:
Lloh21:
	adrp	x8, _LPA_LPACK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LPA_LPACK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_13
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_genphy_read_status
LBB0_10:
	mov	x20, x21
	b	LBB0_12
LBB0_11:
	mov	x20, x0
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_phydev_dbg
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_genphy_restart_aneg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_BANK_WOL,4,2                   ; @BANK_WOL
	.comm	_LPI_STATUS,4,2                 ; @LPI_STATUS
	.comm	_MII_LPA,4,2                    ; @MII_LPA
	.comm	_MII_EXPANSION,4,2              ; @MII_EXPANSION
	.comm	_LPI_STATUS_RSV12,4,2           ; @LPI_STATUS_RSV12
	.comm	_EXPANSION_NWAY,4,2             ; @EXPANSION_NWAY
	.comm	_LPA_LPACK,4,2                  ; @LPA_LPACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LPA corruption - aneg restart\n"

	.no_dead_strip	_meson_gxl_read_status
.subsections_via_symbols
