	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function et1011c_read_status
_et1011c_read_status:                   ## @et1011c_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
	callq	_genphy_read_status
	movl	%eax, %r14d
	movl	(%rbx), %eax
	cmpl	%eax, _et1011c_read_status.speed(%rip)
	je	LBB0_3
## %bb.1:
	movl	%eax, _et1011c_read_status.speed(%rip)
	movq	_ET1011C_STATUS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	movq	_ET1011C_SPEED_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_ET1011C_GIGABIT_SPEED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	movq	_ET1011C_CONFIG_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	movq	_ET1011C_TX_FIFO_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_ET1011C_GMII_INTERFACE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_ET1011C_SYS_CLK_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r15), %esi
	movq	_ET1011C_TX_FIFO_DEPTH_16@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_phy_write
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_et1011c_read_status.speed,4,2 ## @et1011c_read_status.speed
	.comm	_ET1011C_STATUS_REG,4,2         ## @ET1011C_STATUS_REG
	.comm	_ET1011C_SPEED_MASK,4,2         ## @ET1011C_SPEED_MASK
	.comm	_ET1011C_GIGABIT_SPEED,4,2      ## @ET1011C_GIGABIT_SPEED
	.comm	_ET1011C_CONFIG_REG,4,2         ## @ET1011C_CONFIG_REG
	.comm	_ET1011C_TX_FIFO_MASK,4,2       ## @ET1011C_TX_FIFO_MASK
	.comm	_ET1011C_GMII_INTERFACE,4,2     ## @ET1011C_GMII_INTERFACE
	.comm	_ET1011C_SYS_CLK_EN,4,2         ## @ET1011C_SYS_CLK_EN
	.comm	_ET1011C_TX_FIFO_DEPTH_16,4,2   ## @ET1011C_TX_FIFO_DEPTH_16
	.no_dead_strip	_et1011c_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function et1011c_read_status
_et1011c_read_status:                   ; @et1011c_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	x20, x0
	bl	_genphy_read_status
	mov	x19, x0
	adrp	x8, _et1011c_read_status.speed@PAGE
	ldr	w10, [x8, _et1011c_read_status.speed@PAGEOFF]
	ldr	w9, [x20]
	cmp	w10, w9
	b.eq	LBB0_3
; %bb.1:
	str	w9, [x8, _et1011c_read_status.speed@PAGEOFF]
Lloh0:
	adrp	x8, _ET1011C_STATUS_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ET1011C_STATUS_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_phy_read
Lloh3:
	adrp	x8, _ET1011C_SPEED_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ET1011C_SPEED_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _ET1011C_GIGABIT_SPEED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ET1011C_GIGABIT_SPEED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
Lloh9:
	adrp	x21, _ET1011C_CONFIG_REG@GOTPAGE
Lloh10:
	ldr	x21, [x21, _ET1011C_CONFIG_REG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_phy_read
Lloh11:
	adrp	x8, _ET1011C_TX_FIFO_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ET1011C_TX_FIFO_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	w1, [x21]
Lloh14:
	adrp	x9, _ET1011C_GMII_INTERFACE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ET1011C_GMII_INTERFACE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _ET1011C_SYS_CLK_EN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ET1011C_SYS_CLK_EN@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _ET1011C_TX_FIFO_DEPTH_16@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ET1011C_TX_FIFO_DEPTH_16@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_phy_write
LBB0_3:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_et1011c_read_status.speed,4,2 ; @et1011c_read_status.speed
	.comm	_ET1011C_STATUS_REG,4,2         ; @ET1011C_STATUS_REG
	.comm	_ET1011C_SPEED_MASK,4,2         ; @ET1011C_SPEED_MASK
	.comm	_ET1011C_GIGABIT_SPEED,4,2      ; @ET1011C_GIGABIT_SPEED
	.comm	_ET1011C_CONFIG_REG,4,2         ; @ET1011C_CONFIG_REG
	.comm	_ET1011C_TX_FIFO_MASK,4,2       ; @ET1011C_TX_FIFO_MASK
	.comm	_ET1011C_GMII_INTERFACE,4,2     ; @ET1011C_GMII_INTERFACE
	.comm	_ET1011C_SYS_CLK_EN,4,2         ; @ET1011C_SYS_CLK_EN
	.comm	_ET1011C_TX_FIFO_DEPTH_16,4,2   ; @ET1011C_TX_FIFO_DEPTH_16
	.no_dead_strip	_et1011c_read_status
.subsections_via_symbols
