	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xway_gphy_config_init
_xway_gphy_config_init:                 ## @xway_gphy_config_init
	.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
	movq	%rdi, %rbx
	movq	_XWAY_MDIO_IMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_phy_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_XWAY_MDIO_ISTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	movq	_MDIO_MMD_VEND2@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_XWAY_MMD_LEDCH@GOTPCREL(%rip), %rax
	movq	_XWAY_MMD_LEDCH_NACS_NONE@GOTPCREL(%rip), %rdx
	movq	_XWAY_MMD_LEDCH_SBF_F02HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movl	(%rax), %edx
	movq	_XWAY_MMD_LEDCH_FBF_F16HZ@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_phy_write_mmd
	movl	(%r13), %esi
	movq	_XWAY_MMD_LEDCL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_XWAY_MMD_LEDCH_CBLINK_NONE@GOTPCREL(%rip), %rax
	movq	_XWAY_MMD_LEDCH_SCAN_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_phy_write_mmd
	movq	_XWAY_MMD_LEDxH_BLINKF_NONE@GOTPCREL(%rip), %rax
	movq	_XWAY_MMD_LEDxH_CON_LINK10XX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	_XWAY_MMD_LEDxL_PULSE_TXACT@GOTPCREL(%rip), %rax
	movq	_XWAY_MMD_LEDxL_PULSE_RXACT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movq	_XWAY_MMD_LEDxL_BLINKS_NONE@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	(%r13), %esi
	movq	_XWAY_MMD_LED0H@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r12d, %ecx
	callq	_phy_write_mmd
	movl	(%r13), %esi
	movq	_XWAY_MMD_LED0L@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	callq	_phy_write_mmd
	movl	(%r13), %esi
	movq	_XWAY_MMD_LED1H@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r12d, %ecx
	callq	_phy_write_mmd
	movl	(%r13), %esi
	movq	_XWAY_MMD_LED1L@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	callq	_phy_write_mmd
	movl	(%r13), %esi
	movq	_XWAY_MMD_LED2H@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r12d, %ecx
	callq	_phy_write_mmd
	movl	(%r13), %esi
	movq	_XWAY_MMD_LED2L@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	callq	_phy_write_mmd
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XWAY_MDIO_IMASK,4,2            ## @XWAY_MDIO_IMASK
	.comm	_XWAY_MDIO_ISTAT,4,2            ## @XWAY_MDIO_ISTAT
	.comm	_MDIO_MMD_VEND2,4,2             ## @MDIO_MMD_VEND2
	.comm	_XWAY_MMD_LEDCH,4,2             ## @XWAY_MMD_LEDCH
	.comm	_XWAY_MMD_LEDCH_NACS_NONE,4,2   ## @XWAY_MMD_LEDCH_NACS_NONE
	.comm	_XWAY_MMD_LEDCH_SBF_F02HZ,4,2   ## @XWAY_MMD_LEDCH_SBF_F02HZ
	.comm	_XWAY_MMD_LEDCH_FBF_F16HZ,4,2   ## @XWAY_MMD_LEDCH_FBF_F16HZ
	.comm	_XWAY_MMD_LEDCL,4,2             ## @XWAY_MMD_LEDCL
	.comm	_XWAY_MMD_LEDCH_CBLINK_NONE,4,2 ## @XWAY_MMD_LEDCH_CBLINK_NONE
	.comm	_XWAY_MMD_LEDCH_SCAN_NONE,4,2   ## @XWAY_MMD_LEDCH_SCAN_NONE
	.comm	_XWAY_MMD_LEDxH_BLINKF_NONE,4,2 ## @XWAY_MMD_LEDxH_BLINKF_NONE
	.comm	_XWAY_MMD_LEDxH_CON_LINK10XX,4,2 ## @XWAY_MMD_LEDxH_CON_LINK10XX
	.comm	_XWAY_MMD_LEDxL_PULSE_TXACT,4,2 ## @XWAY_MMD_LEDxL_PULSE_TXACT
	.comm	_XWAY_MMD_LEDxL_PULSE_RXACT,4,2 ## @XWAY_MMD_LEDxL_PULSE_RXACT
	.comm	_XWAY_MMD_LEDxL_BLINKS_NONE,4,2 ## @XWAY_MMD_LEDxL_BLINKS_NONE
	.comm	_XWAY_MMD_LED0H,4,2             ## @XWAY_MMD_LED0H
	.comm	_XWAY_MMD_LED0L,4,2             ## @XWAY_MMD_LED0L
	.comm	_XWAY_MMD_LED1H,4,2             ## @XWAY_MMD_LED1H
	.comm	_XWAY_MMD_LED1L,4,2             ## @XWAY_MMD_LED1L
	.comm	_XWAY_MMD_LED2H,4,2             ## @XWAY_MMD_LED2H
	.comm	_XWAY_MMD_LED2L,4,2             ## @XWAY_MMD_LED2L
	.no_dead_strip	_xway_gphy_config_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xway_gphy_config_init
_xway_gphy_config_init:                 ; @xway_gphy_config_init
	.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	x19, x0
Lloh0:
	adrp	x8, _XWAY_MDIO_IMASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XWAY_MDIO_IMASK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_phy_write
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _XWAY_MDIO_ISTAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XWAY_MDIO_ISTAT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
Lloh6:
	adrp	x23, _MDIO_MMD_VEND2@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MDIO_MMD_VEND2@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh8:
	adrp	x8, _XWAY_MMD_LEDCH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XWAY_MMD_LEDCH@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _XWAY_MMD_LEDCH_NACS_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _XWAY_MMD_LEDCH_NACS_NONE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _XWAY_MMD_LEDCH_SBF_F02HZ@GOTPAGE
Lloh15:
	ldr	x9, [x9, _XWAY_MMD_LEDCH_SBF_F02HZ@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _XWAY_MMD_LEDCH_FBF_F16HZ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _XWAY_MMD_LEDCH_FBF_F16HZ@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w3, w8, w9
	mov	x0, x19
	bl	_phy_write_mmd
	ldr	w1, [x23]
Lloh20:
	adrp	x8, _XWAY_MMD_LEDCL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _XWAY_MMD_LEDCL@GOTPAGEOFF]
Lloh22:
	adrp	x9, _XWAY_MMD_LEDCH_CBLINK_NONE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _XWAY_MMD_LEDCH_CBLINK_NONE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	ldr	w8, [x9]
Lloh26:
	adrp	x9, _XWAY_MMD_LEDCH_SCAN_NONE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _XWAY_MMD_LEDCH_SCAN_NONE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x19
	bl	_phy_write_mmd
Lloh29:
	adrp	x8, _XWAY_MMD_LEDxH_BLINKF_NONE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _XWAY_MMD_LEDxH_BLINKF_NONE@GOTPAGEOFF]
Lloh31:
	adrp	x9, _XWAY_MMD_LEDxH_CON_LINK10XX@GOTPAGE
Lloh32:
	ldr	x9, [x9, _XWAY_MMD_LEDxH_CON_LINK10XX@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	ldr	w9, [x9]
	orr	w21, w9, w8
Lloh35:
	adrp	x8, _XWAY_MMD_LEDxL_PULSE_TXACT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _XWAY_MMD_LEDxL_PULSE_TXACT@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _XWAY_MMD_LEDxL_PULSE_RXACT@GOTPAGE
Lloh39:
	ldr	x9, [x9, _XWAY_MMD_LEDxL_PULSE_RXACT@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh41:
	adrp	x9, _XWAY_MMD_LEDxL_BLINKS_NONE@GOTPAGE
Lloh42:
	ldr	x9, [x9, _XWAY_MMD_LEDxL_BLINKS_NONE@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w22, w8, w9
	ldr	w1, [x23]
Lloh44:
	adrp	x8, _XWAY_MMD_LED0H@GOTPAGE
Lloh45:
	ldr	x8, [x8, _XWAY_MMD_LED0H@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x21
	bl	_phy_write_mmd
	ldr	w1, [x23]
Lloh47:
	adrp	x8, _XWAY_MMD_LED0L@GOTPAGE
Lloh48:
	ldr	x8, [x8, _XWAY_MMD_LED0L@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x22
	bl	_phy_write_mmd
	ldr	w1, [x23]
Lloh50:
	adrp	x8, _XWAY_MMD_LED1H@GOTPAGE
Lloh51:
	ldr	x8, [x8, _XWAY_MMD_LED1H@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x21
	bl	_phy_write_mmd
	ldr	w1, [x23]
Lloh53:
	adrp	x8, _XWAY_MMD_LED1L@GOTPAGE
Lloh54:
	ldr	x8, [x8, _XWAY_MMD_LED1L@GOTPAGEOFF]
Lloh55:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x22
	bl	_phy_write_mmd
	ldr	w1, [x23]
Lloh56:
	adrp	x8, _XWAY_MMD_LED2H@GOTPAGE
Lloh57:
	ldr	x8, [x8, _XWAY_MMD_LED2H@GOTPAGEOFF]
Lloh58:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x21
	bl	_phy_write_mmd
	ldr	w1, [x23]
Lloh59:
	adrp	x8, _XWAY_MMD_LED2L@GOTPAGE
Lloh60:
	ldr	x8, [x8, _XWAY_MMD_LED2L@GOTPAGEOFF]
Lloh61:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x22
	bl	_phy_write_mmd
LBB0_2:
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh33
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_XWAY_MDIO_IMASK,4,2            ; @XWAY_MDIO_IMASK
	.comm	_XWAY_MDIO_ISTAT,4,2            ; @XWAY_MDIO_ISTAT
	.comm	_MDIO_MMD_VEND2,4,2             ; @MDIO_MMD_VEND2
	.comm	_XWAY_MMD_LEDCH,4,2             ; @XWAY_MMD_LEDCH
	.comm	_XWAY_MMD_LEDCH_NACS_NONE,4,2   ; @XWAY_MMD_LEDCH_NACS_NONE
	.comm	_XWAY_MMD_LEDCH_SBF_F02HZ,4,2   ; @XWAY_MMD_LEDCH_SBF_F02HZ
	.comm	_XWAY_MMD_LEDCH_FBF_F16HZ,4,2   ; @XWAY_MMD_LEDCH_FBF_F16HZ
	.comm	_XWAY_MMD_LEDCL,4,2             ; @XWAY_MMD_LEDCL
	.comm	_XWAY_MMD_LEDCH_CBLINK_NONE,4,2 ; @XWAY_MMD_LEDCH_CBLINK_NONE
	.comm	_XWAY_MMD_LEDCH_SCAN_NONE,4,2   ; @XWAY_MMD_LEDCH_SCAN_NONE
	.comm	_XWAY_MMD_LEDxH_BLINKF_NONE,4,2 ; @XWAY_MMD_LEDxH_BLINKF_NONE
	.comm	_XWAY_MMD_LEDxH_CON_LINK10XX,4,2 ; @XWAY_MMD_LEDxH_CON_LINK10XX
	.comm	_XWAY_MMD_LEDxL_PULSE_TXACT,4,2 ; @XWAY_MMD_LEDxL_PULSE_TXACT
	.comm	_XWAY_MMD_LEDxL_PULSE_RXACT,4,2 ; @XWAY_MMD_LEDxL_PULSE_RXACT
	.comm	_XWAY_MMD_LEDxL_BLINKS_NONE,4,2 ; @XWAY_MMD_LEDxL_BLINKS_NONE
	.comm	_XWAY_MMD_LED0H,4,2             ; @XWAY_MMD_LED0H
	.comm	_XWAY_MMD_LED0L,4,2             ; @XWAY_MMD_LED0L
	.comm	_XWAY_MMD_LED1H,4,2             ; @XWAY_MMD_LED1H
	.comm	_XWAY_MMD_LED1L,4,2             ; @XWAY_MMD_LED1L
	.comm	_XWAY_MMD_LED2H,4,2             ; @XWAY_MMD_LED2H
	.comm	_XWAY_MMD_LED2L,4,2             ; @XWAY_MMD_LED2L
	.no_dead_strip	_xway_gphy_config_init
.subsections_via_symbols
