	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alx_write_phy_core
_alx_write_phy_core:                    ## @alx_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movl	%ecx, %eax
	movq	%rdi, %r14
	movq	(%rdi), %rcx
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rcx
	jne	LBB0_1
## %bb.2:
	movq	_ALX_MDIO_CLK_SEL_25MD128@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_ALX_MDIO_CLK_SEL_25MD4@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %r15d
	testl	%esi, %esi
	je	LBB0_5
## %bb.4:
	movq	_ALX_MDIO_EXTN_DEVAD_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_ALX_MDIO_EXTN_REG_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%edx, %eax
	movq	_ALX_MDIO_EXTN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_alx_write_mem32
	movq	_ALX_MDIO_SPRES_PRMBL@GOTPCREL(%rip), %rax
	movq	_ALX_MDIO_CLK_SEL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r15d
	orl	(%rax), %r15d
	movq	_ALX_MDIO_DATA_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%r15d, %ebx
	movq	_ALX_MDIO_START@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_ALX_MDIO_MODE_EXT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_ALX_MDIO_SPRES_PRMBL@GOTPCREL(%rip), %rdx
	movq	_ALX_MDIO_CLK_SEL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r15d
	orl	(%rdx), %r15d
	movq	_ALX_MDIO_REG_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_ALX_MDIO_DATA_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	_ALX_MDIO_START@GOTPCREL(%rip), %rax
LBB0_6:
	orl	(%rax), %ebx
	movq	_ALX_MDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_alx_write_mem32
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_alx_wait_mdio_idle             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_UNKNOWN,8,3              ## @SPEED_UNKNOWN
	.comm	_ALX_MDIO_CLK_SEL_25MD4,4,2     ## @ALX_MDIO_CLK_SEL_25MD4
	.comm	_ALX_MDIO_CLK_SEL_25MD128,4,2   ## @ALX_MDIO_CLK_SEL_25MD128
	.comm	_ALX_MDIO_EXTN_DEVAD_SHIFT,4,2  ## @ALX_MDIO_EXTN_DEVAD_SHIFT
	.comm	_ALX_MDIO_EXTN_REG_SHIFT,4,2    ## @ALX_MDIO_EXTN_REG_SHIFT
	.comm	_ALX_MDIO_EXTN,4,2              ## @ALX_MDIO_EXTN
	.comm	_ALX_MDIO_SPRES_PRMBL,4,2       ## @ALX_MDIO_SPRES_PRMBL
	.comm	_ALX_MDIO_CLK_SEL_SHIFT,4,2     ## @ALX_MDIO_CLK_SEL_SHIFT
	.comm	_ALX_MDIO_DATA_SHIFT,4,2        ## @ALX_MDIO_DATA_SHIFT
	.comm	_ALX_MDIO_START,4,2             ## @ALX_MDIO_START
	.comm	_ALX_MDIO_MODE_EXT,4,2          ## @ALX_MDIO_MODE_EXT
	.comm	_ALX_MDIO_REG_SHIFT,4,2         ## @ALX_MDIO_REG_SHIFT
	.comm	_ALX_MDIO,4,2                   ## @ALX_MDIO
	.no_dead_strip	_alx_write_phy_core
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alx_write_phy_core
_alx_write_phy_core:                    ; @alx_write_phy_core
	.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, x4
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SPEED_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh2:
	adrp	x10, _ALX_MDIO_CLK_SEL_25MD4@GOTPAGE
Lloh3:
	ldr	x10, [x10, _ALX_MDIO_CLK_SEL_25MD4@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x11, _ALX_MDIO_CLK_SEL_25MD128@GOTPAGE
Lloh6:
	ldr	x11, [x11, _ALX_MDIO_CLK_SEL_25MD128@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	w21, [x8]
	cbz	w1, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _ALX_MDIO_EXTN_DEVAD_SHIFT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ALX_MDIO_EXTN_DEVAD_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	lsl	w8, w2, w8
Lloh10:
	adrp	x9, _ALX_MDIO_EXTN_REG_SHIFT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ALX_MDIO_EXTN_REG_SHIFT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	lsl	w9, w3, w9
	orr	w2, w9, w8
Lloh13:
	adrp	x8, _ALX_MDIO_EXTN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ALX_MDIO_EXTN@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_alx_write_mem32
Lloh16:
	adrp	x8, _ALX_MDIO_SPRES_PRMBL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ALX_MDIO_SPRES_PRMBL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _ALX_MDIO_CLK_SEL_SHIFT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ALX_MDIO_CLK_SEL_SHIFT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	lsl	w9, w21, w9
	orr	w8, w9, w8
Lloh22:
	adrp	x9, _ALX_MDIO_DATA_SHIFT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ALX_MDIO_DATA_SHIFT@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	lsl	w9, w20, w9
	orr	w8, w8, w9
Lloh25:
	adrp	x9, _ALX_MDIO_START@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ALX_MDIO_START@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh28:
	adrp	x9, _ALX_MDIO_MODE_EXT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _ALX_MDIO_MODE_EXT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh30:
	adrp	x8, _ALX_MDIO_SPRES_PRMBL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ALX_MDIO_SPRES_PRMBL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _ALX_MDIO_CLK_SEL_SHIFT@GOTPAGE
Lloh34:
	ldr	x9, [x9, _ALX_MDIO_CLK_SEL_SHIFT@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	lsl	w9, w21, w9
	orr	w8, w9, w8
Lloh36:
	adrp	x9, _ALX_MDIO_REG_SHIFT@GOTPAGE
Lloh37:
	ldr	x9, [x9, _ALX_MDIO_REG_SHIFT@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	lsl	w9, w3, w9
Lloh39:
	adrp	x10, _ALX_MDIO_DATA_SHIFT@GOTPAGE
Lloh40:
	ldr	x10, [x10, _ALX_MDIO_DATA_SHIFT@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh41:
	ldr	w9, [x10]
	lsl	w9, w20, w9
	orr	w8, w8, w9
Lloh42:
	adrp	x9, _ALX_MDIO_START@GOTPAGE
Lloh43:
	ldr	x9, [x9, _ALX_MDIO_START@GOTPAGEOFF]
LBB0_3:
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh44:
	adrp	x8, _ALX_MDIO@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ALX_MDIO@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_alx_write_mem32
	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	_alx_wait_mdio_idle
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_UNKNOWN,8,3              ; @SPEED_UNKNOWN
	.comm	_ALX_MDIO_CLK_SEL_25MD4,4,2     ; @ALX_MDIO_CLK_SEL_25MD4
	.comm	_ALX_MDIO_CLK_SEL_25MD128,4,2   ; @ALX_MDIO_CLK_SEL_25MD128
	.comm	_ALX_MDIO_EXTN_DEVAD_SHIFT,4,2  ; @ALX_MDIO_EXTN_DEVAD_SHIFT
	.comm	_ALX_MDIO_EXTN_REG_SHIFT,4,2    ; @ALX_MDIO_EXTN_REG_SHIFT
	.comm	_ALX_MDIO_EXTN,4,2              ; @ALX_MDIO_EXTN
	.comm	_ALX_MDIO_SPRES_PRMBL,4,2       ; @ALX_MDIO_SPRES_PRMBL
	.comm	_ALX_MDIO_CLK_SEL_SHIFT,4,2     ; @ALX_MDIO_CLK_SEL_SHIFT
	.comm	_ALX_MDIO_DATA_SHIFT,4,2        ; @ALX_MDIO_DATA_SHIFT
	.comm	_ALX_MDIO_START,4,2             ; @ALX_MDIO_START
	.comm	_ALX_MDIO_MODE_EXT,4,2          ; @ALX_MDIO_MODE_EXT
	.comm	_ALX_MDIO_REG_SHIFT,4,2         ; @ALX_MDIO_REG_SHIFT
	.comm	_ALX_MDIO,4,2                   ; @ALX_MDIO
	.no_dead_strip	_alx_write_phy_core
.subsections_via_symbols
