	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atl1c_start_phy_polling        ## -- Begin function atl1c_start_phy_polling
	.p2align	4, 0x90
_atl1c_start_phy_polling:               ## @atl1c_start_phy_polling
	.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	_ATL1C_FPGA_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	_MDIO_CTRL_SPRES_PRMBL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_MDIO_CTRL_CLK_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FIELDX
	orl	%eax, %ebx
	movq	_MDIO_CTRL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_FIELDX
	orl	%eax, %ebx
	movq	_MDIO_CTRL_START@GOTPCREL(%rip), %r15
	orl	(%r15), %ebx
	movq	_MDIO_CTRL_OP_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_REG_MDIO_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_AT_WRITE_REG
	movq	%r14, %rdi
	callq	_atl1c_wait_mdio_idle
	movq	_MDIO_CTRL_AP_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r15), %edx
	notl	%edx
	andl	%ebx, %edx
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_AT_WRITE_REG
	movl	$30, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATL1C_FPGA_VERSION,4,2         ## @ATL1C_FPGA_VERSION
	.comm	_MDIO_CTRL_SPRES_PRMBL,4,2      ## @MDIO_CTRL_SPRES_PRMBL
	.comm	_MDIO_CTRL_CLK_SEL,4,2          ## @MDIO_CTRL_CLK_SEL
	.comm	_MDIO_CTRL_REG,4,2              ## @MDIO_CTRL_REG
	.comm	_MDIO_CTRL_START,4,2            ## @MDIO_CTRL_START
	.comm	_MDIO_CTRL_OP_READ,4,2          ## @MDIO_CTRL_OP_READ
	.comm	_REG_MDIO_CTRL,4,2              ## @REG_MDIO_CTRL
	.comm	_MDIO_CTRL_AP_EN,4,2            ## @MDIO_CTRL_AP_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atl1c_start_phy_polling        ; -- Begin function atl1c_start_phy_polling
	.p2align	2
_atl1c_start_phy_polling:               ; @atl1c_start_phy_polling
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _ATL1C_FPGA_VERSION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATL1C_FPGA_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _MDIO_CTRL_SPRES_PRMBL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDIO_CTRL_SPRES_PRMBL@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
Lloh6:
	adrp	x8, _MDIO_CTRL_CLK_SEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MDIO_CTRL_CLK_SEL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_FIELDX
	orr	w20, w0, w20
Lloh9:
	adrp	x8, _MDIO_CTRL_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MDIO_CTRL_REG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_FIELDX
	orr	w8, w20, w0
Lloh12:
	adrp	x21, _MDIO_CTRL_START@GOTPAGE
Lloh13:
	ldr	x21, [x21, _MDIO_CTRL_START@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh14:
	adrp	x10, _MDIO_CTRL_OP_READ@GOTPAGE
Lloh15:
	ldr	x10, [x10, _MDIO_CTRL_OP_READ@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh16:
	ldr	w9, [x10]
	orr	w20, w8, w9
Lloh17:
	adrp	x22, _REG_MDIO_CTRL@GOTPAGE
Lloh18:
	ldr	x22, [x22, _REG_MDIO_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_AT_WRITE_REG
	mov	x0, x19
	bl	_atl1c_wait_mdio_idle
Lloh19:
	adrp	x8, _MDIO_CTRL_AP_EN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MDIO_CTRL_AP_EN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	orr	w8, w8, w20
	ldr	w9, [x21]
	bic	w2, w8, w9
	ldr	w1, [x22]
	mov	x0, x19
	bl	_AT_WRITE_REG
	mov	w0, #30
	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	_udelay
LBB0_2:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ATL1C_FPGA_VERSION,4,2         ; @ATL1C_FPGA_VERSION
	.comm	_MDIO_CTRL_SPRES_PRMBL,4,2      ; @MDIO_CTRL_SPRES_PRMBL
	.comm	_MDIO_CTRL_CLK_SEL,4,2          ; @MDIO_CTRL_CLK_SEL
	.comm	_MDIO_CTRL_REG,4,2              ; @MDIO_CTRL_REG
	.comm	_MDIO_CTRL_START,4,2            ; @MDIO_CTRL_START
	.comm	_MDIO_CTRL_OP_READ,4,2          ; @MDIO_CTRL_OP_READ
	.comm	_REG_MDIO_CTRL,4,2              ; @REG_MDIO_CTRL
	.comm	_MDIO_CTRL_AP_EN,4,2            ; @MDIO_CTRL_AP_EN
.subsections_via_symbols
