	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atl1c_write_phy_core           ## -- Begin function atl1c_write_phy_core
	.p2align	4, 0x90
_atl1c_write_phy_core:                  ## @atl1c_write_phy_core
	.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
	movl	%r8d, %ebx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_MDIO_CTRL_CLK_25_4@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	callq	_atl1c_stop_phy_polling
	movq	(%r14), %rax
	movq	_athr_l2c_b2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_athr_l1d_2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_2:
	cmpq	$0, 8(%r14)
	je	LBB0_4
## %bb.3:
	movq	_MDIO_CTRL_CLK_25_128@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_4:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	movq	_MDIO_EXTN_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_FIELDX
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, %ebx
	movq	_MDIO_EXTN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_FIELDX
	orl	%eax, %ebx
	movq	_REG_MDIO_EXTN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_AT_WRITE_REG
	movq	_MDIO_CTRL_SPRES_PRMBL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_MDIO_CTRL_CLK_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_FIELDX
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movq	_MDIO_CTRL_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_FIELDX
	movl	%eax, %edx
	orl	%ebx, %edx
	movq	_MDIO_CTRL_START@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_MDIO_CTRL_MODE_EXT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_MDIO_CTRL_SPRES_PRMBL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_MDIO_CTRL_CLK_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_FIELDX
	movl	%ebx, %esi
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movq	_MDIO_CTRL_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FIELDX
	movl	%eax, %r15d
	movq	_MDIO_CTRL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_FIELDX
	movl	%eax, %edx
	orl	%r15d, %edx
	orl	%ebx, %edx
	movq	_MDIO_CTRL_START@GOTPCREL(%rip), %rax
LBB0_7:
	orl	(%rax), %edx
	movq	_REG_MDIO_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_AT_WRITE_REG
	movq	%r14, %rdi
	callq	_atl1c_wait_mdio_idle
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_atl1c_start_phy_polling
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_8:
	movl	$-1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_CTRL_CLK_25_4,4,2         ## @MDIO_CTRL_CLK_25_4
	.comm	_athr_l2c_b2,8,3                ## @athr_l2c_b2
	.comm	_athr_l1d_2,8,3                 ## @athr_l1d_2
	.comm	_MDIO_CTRL_CLK_25_128,4,2       ## @MDIO_CTRL_CLK_25_128
	.comm	_MDIO_EXTN_DEVAD,4,2            ## @MDIO_EXTN_DEVAD
	.comm	_MDIO_EXTN_REG,4,2              ## @MDIO_EXTN_REG
	.comm	_REG_MDIO_EXTN,4,2              ## @REG_MDIO_EXTN
	.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_DATA,4,2             ## @MDIO_CTRL_DATA
	.comm	_MDIO_CTRL_START,4,2            ## @MDIO_CTRL_START
	.comm	_MDIO_CTRL_MODE_EXT,4,2         ## @MDIO_CTRL_MODE_EXT
	.comm	_MDIO_CTRL_REG,4,2              ## @MDIO_CTRL_REG
	.comm	_REG_MDIO_CTRL,4,2              ## @REG_MDIO_CTRL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atl1c_write_phy_core           ; -- Begin function atl1c_write_phy_core
	.p2align	2
_atl1c_write_phy_core:                  ; @atl1c_write_phy_core
	.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	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MDIO_CTRL_CLK_25_4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDIO_CTRL_CLK_25_4@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_atl1c_stop_phy_polling
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _athr_l2c_b2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _athr_l2c_b2@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _athr_l1d_2@GOTPAGE
Lloh7:
	ldr	x10, [x10, _athr_l1d_2@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _MDIO_CTRL_CLK_25_128@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MDIO_CTRL_CLK_25_128@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w20, w20, w9, eq
LBB0_2:
	cbz	w24, LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _MDIO_EXTN_DEVAD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MDIO_EXTN_DEVAD@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_FIELDX
	mov	x23, x0
Lloh15:
	adrp	x8, _MDIO_EXTN_REG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MDIO_EXTN_REG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_FIELDX
	orr	w2, w0, w23
Lloh18:
	adrp	x8, _REG_MDIO_EXTN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REG_MDIO_EXTN@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_AT_WRITE_REG
Lloh21:
	adrp	x8, _MDIO_CTRL_SPRES_PRMBL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MDIO_CTRL_SPRES_PRMBL@GOTPAGEOFF]
Lloh23:
	ldr	w22, [x8]
Lloh24:
	adrp	x8, _MDIO_CTRL_CLK_SEL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MDIO_CTRL_CLK_SEL@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELDX
	orr	w22, w0, w22
Lloh27:
	adrp	x8, _MDIO_CTRL_DATA@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MDIO_CTRL_DATA@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_FIELDX
	orr	w8, w22, w0
Lloh30:
	adrp	x9, _MDIO_CTRL_START@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MDIO_CTRL_START@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh33:
	adrp	x9, _MDIO_CTRL_MODE_EXT@GOTPAGE
Lloh34:
	ldr	x9, [x9, _MDIO_CTRL_MODE_EXT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh35:
	adrp	x8, _MDIO_CTRL_SPRES_PRMBL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MDIO_CTRL_SPRES_PRMBL@GOTPAGEOFF]
Lloh37:
	ldr	w23, [x8]
Lloh38:
	adrp	x8, _MDIO_CTRL_CLK_SEL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MDIO_CTRL_CLK_SEL@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELDX
	orr	w23, w0, w23
Lloh41:
	adrp	x8, _MDIO_CTRL_DATA@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MDIO_CTRL_DATA@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_FIELDX
	orr	w21, w23, w0
Lloh44:
	adrp	x8, _MDIO_CTRL_REG@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MDIO_CTRL_REG@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_FIELDX
	orr	w8, w21, w0
Lloh47:
	adrp	x9, _MDIO_CTRL_START@GOTPAGE
Lloh48:
	ldr	x9, [x9, _MDIO_CTRL_START@GOTPAGEOFF]
LBB0_5:
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh49:
	adrp	x8, _REG_MDIO_CTRL@GOTPAGE
Lloh50:
	ldr	x8, [x8, _REG_MDIO_CTRL@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_AT_WRITE_REG
	mov	x0, x19
	bl	_atl1c_wait_mdio_idle
	cbz	w0, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_atl1c_start_phy_polling
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.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 AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_CTRL_CLK_25_4,4,2         ; @MDIO_CTRL_CLK_25_4
	.comm	_athr_l2c_b2,8,3                ; @athr_l2c_b2
	.comm	_athr_l1d_2,8,3                 ; @athr_l1d_2
	.comm	_MDIO_CTRL_CLK_25_128,4,2       ; @MDIO_CTRL_CLK_25_128
	.comm	_MDIO_EXTN_DEVAD,4,2            ; @MDIO_EXTN_DEVAD
	.comm	_MDIO_EXTN_REG,4,2              ; @MDIO_EXTN_REG
	.comm	_REG_MDIO_EXTN,4,2              ; @REG_MDIO_EXTN
	.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_DATA,4,2             ; @MDIO_CTRL_DATA
	.comm	_MDIO_CTRL_START,4,2            ; @MDIO_CTRL_START
	.comm	_MDIO_CTRL_MODE_EXT,4,2         ; @MDIO_CTRL_MODE_EXT
	.comm	_MDIO_CTRL_REG,4,2              ; @MDIO_CTRL_REG
	.comm	_REG_MDIO_CTRL,4,2              ; @REG_MDIO_CTRL
.subsections_via_symbols
