	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_phy_kx_1000_mode
_xgbe_phy_kx_1000_mode:                 ## @xgbe_phy_kx_1000_mode
	.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	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	_MDIO_MMD_PCS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_MDIO_CTRL2@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_XMDIO_READ
	movq	_MDIO_PCS_CTRL2_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_MDIO_PCS_CTRL2_10GBX@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_XMDIO_WRITE
	movl	(%r15), %esi
	movq	_MDIO_CTRL1@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_XMDIO_READ
	movq	_MDIO_CTRL1_SPEEDSEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_MDIO_CTRL1_SPEED1G@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_XMDIO_WRITE
	movq	%rbx, %rdi
	callq	_xgbe_phy_pcs_power_cycle
	movq	%rbx, %rdi
	callq	_xgbe_phy_start_ratechange
	movq	_SIR1_SPEED@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_DATARATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_XGBE_SPEED_1000_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_XSIR1_IOWRITE_BITS
	movl	(%r12), %esi
	movq	_WORDMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_XGBE_SPEED_1000_WORD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_XSIR1_IOWRITE_BITS
	movl	(%r12), %esi
	movq	_PLLSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_XGBE_SPEED_1000_PLL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_XSIR1_IOWRITE_BITS
	movl	(%r12), %esi
	movq	_CDR_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	40(%r14), %rax
	movq	_XGBE_SPEED_1000@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	%rbx, %rdi
	callq	_XSIR1_IOWRITE_BITS
	movl	(%r12), %esi
	movq	_TXAMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	32(%r14), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	%rbx, %rdi
	callq	_XSIR1_IOWRITE_BITS
	movq	_RXTX_REG20@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BLWC_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	24(%r14), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	%rbx, %rdi
	callq	_XRXTX_IOWRITE_BITS
	movq	_RXTX_REG114@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PQ_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	16(%r14), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	%rbx, %rdi
	callq	_XRXTX_IOWRITE_BITS
	movq	_RXTX_REG129@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RXDFE_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%r14), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	%rbx, %rdi
	callq	_XRXTX_IOWRITE_BITS
	movq	_RXTX_REG22@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edx
	movq	%rbx, %rdi
	callq	_XRXTX_IOWRITE
	movq	%rbx, %rdi
	callq	_xgbe_phy_complete_ratechange
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_dbg                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_PCS,4,2               ## @MDIO_MMD_PCS
	.comm	_MDIO_CTRL2,4,2                 ## @MDIO_CTRL2
	.comm	_MDIO_PCS_CTRL2_TYPE,4,2        ## @MDIO_PCS_CTRL2_TYPE
	.comm	_MDIO_PCS_CTRL2_10GBX,4,2       ## @MDIO_PCS_CTRL2_10GBX
	.comm	_MDIO_CTRL1,4,2                 ## @MDIO_CTRL1
	.comm	_MDIO_CTRL1_SPEEDSEL,4,2        ## @MDIO_CTRL1_SPEEDSEL
	.comm	_MDIO_CTRL1_SPEED1G,4,2         ## @MDIO_CTRL1_SPEED1G
	.comm	_SIR1_SPEED,4,2                 ## @SIR1_SPEED
	.comm	_DATARATE,4,2                   ## @DATARATE
	.comm	_XGBE_SPEED_1000_RATE,4,2       ## @XGBE_SPEED_1000_RATE
	.comm	_WORDMODE,4,2                   ## @WORDMODE
	.comm	_XGBE_SPEED_1000_WORD,4,2       ## @XGBE_SPEED_1000_WORD
	.comm	_PLLSEL,4,2                     ## @PLLSEL
	.comm	_XGBE_SPEED_1000_PLL,4,2        ## @XGBE_SPEED_1000_PLL
	.comm	_CDR_RATE,4,2                   ## @CDR_RATE
	.comm	_XGBE_SPEED_1000,8,3            ## @XGBE_SPEED_1000
	.comm	_TXAMP,4,2                      ## @TXAMP
	.comm	_RXTX_REG20,4,2                 ## @RXTX_REG20
	.comm	_BLWC_ENA,4,2                   ## @BLWC_ENA
	.comm	_RXTX_REG114,4,2                ## @RXTX_REG114
	.comm	_PQ_REG,4,2                     ## @PQ_REG
	.comm	_RXTX_REG129,4,2                ## @RXTX_REG129
	.comm	_RXDFE_CONFIG,4,2               ## @RXDFE_CONFIG
	.comm	_RXTX_REG22,4,2                 ## @RXTX_REG22
	.comm	_link,4,2                       ## @link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"1GbE KX mode set\n"

	.no_dead_strip	_xgbe_phy_kx_1000_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_phy_kx_1000_mode
_xgbe_phy_kx_1000_mode:                 ; @xgbe_phy_kx_1000_mode
	.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	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x21, _MDIO_MMD_PCS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MDIO_MMD_PCS@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x22, _MDIO_CTRL2@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MDIO_CTRL2@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_XMDIO_READ
Lloh4:
	adrp	x8, _MDIO_PCS_CTRL2_TYPE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MDIO_PCS_CTRL2_TYPE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh7:
	adrp	x9, _MDIO_PCS_CTRL2_10GBX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MDIO_PCS_CTRL2_10GBX@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_XMDIO_WRITE
	ldr	w1, [x21]
Lloh10:
	adrp	x22, _MDIO_CTRL1@GOTPAGE
Lloh11:
	ldr	x22, [x22, _MDIO_CTRL1@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_XMDIO_READ
Lloh12:
	adrp	x8, _MDIO_CTRL1_SPEEDSEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MDIO_CTRL1_SPEEDSEL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh15:
	adrp	x9, _MDIO_CTRL1_SPEED1G@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MDIO_CTRL1_SPEED1G@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_XMDIO_WRITE
	mov	x0, x19
	bl	_xgbe_phy_pcs_power_cycle
	mov	x0, x19
	bl	_xgbe_phy_start_ratechange
Lloh18:
	adrp	x22, _SIR1_SPEED@GOTPAGE
Lloh19:
	ldr	x22, [x22, _SIR1_SPEED@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh20:
	adrp	x8, _DATARATE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DATARATE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _XGBE_SPEED_1000_RATE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _XGBE_SPEED_1000_RATE@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_XSIR1_IOWRITE_BITS
	ldr	w1, [x22]
Lloh26:
	adrp	x8, _WORDMODE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _WORDMODE@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	adrp	x8, _XGBE_SPEED_1000_WORD@GOTPAGE
Lloh30:
	ldr	x8, [x8, _XGBE_SPEED_1000_WORD@GOTPAGEOFF]
Lloh31:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_XSIR1_IOWRITE_BITS
	ldr	w1, [x22]
Lloh32:
	adrp	x8, _PLLSEL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PLLSEL@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
Lloh35:
	adrp	x8, _XGBE_SPEED_1000_PLL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _XGBE_SPEED_1000_PLL@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_XSIR1_IOWRITE_BITS
	ldr	w1, [x22]
Lloh38:
	adrp	x8, _CDR_RATE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _CDR_RATE@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	ldr	x8, [x20, #40]
Lloh41:
	adrp	x21, _XGBE_SPEED_1000@GOTPAGE
Lloh42:
	ldr	x21, [x21, _XGBE_SPEED_1000@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	w3, [x8, x9, lsl #2]
	mov	x0, x19
	bl	_XSIR1_IOWRITE_BITS
Lloh43:
	adrp	x8, _TXAMP@GOTPAGE
Lloh44:
	ldr	x8, [x8, _TXAMP@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh45:
	ldr	w2, [x8]
	ldr	x8, [x20, #32]
	ldr	x9, [x21]
	ldr	w3, [x8, x9, lsl #2]
	mov	x0, x19
	bl	_XSIR1_IOWRITE_BITS
Lloh46:
	adrp	x8, _RXTX_REG20@GOTPAGE
Lloh47:
	ldr	x8, [x8, _RXTX_REG20@GOTPAGEOFF]
Lloh48:
	adrp	x9, _BLWC_ENA@GOTPAGE
Lloh49:
	ldr	x9, [x9, _BLWC_ENA@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
Lloh51:
	ldr	w2, [x9]
	ldr	x8, [x20, #24]
	ldr	x9, [x21]
	ldr	w3, [x8, x9, lsl #2]
	mov	x0, x19
	bl	_XRXTX_IOWRITE_BITS
Lloh52:
	adrp	x8, _RXTX_REG114@GOTPAGE
Lloh53:
	ldr	x8, [x8, _RXTX_REG114@GOTPAGEOFF]
Lloh54:
	adrp	x9, _PQ_REG@GOTPAGE
Lloh55:
	ldr	x9, [x9, _PQ_REG@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
Lloh57:
	ldr	w2, [x9]
	ldr	x8, [x20, #16]
	ldr	x9, [x21]
	ldr	w3, [x8, x9, lsl #2]
	mov	x0, x19
	bl	_XRXTX_IOWRITE_BITS
Lloh58:
	adrp	x8, _RXTX_REG129@GOTPAGE
Lloh59:
	ldr	x8, [x8, _RXTX_REG129@GOTPAGEOFF]
Lloh60:
	adrp	x9, _RXDFE_CONFIG@GOTPAGE
Lloh61:
	ldr	x9, [x9, _RXDFE_CONFIG@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
Lloh63:
	ldr	w2, [x9]
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	ldr	w3, [x8, x9, lsl #2]
	mov	x0, x19
	bl	_XRXTX_IOWRITE_BITS
Lloh64:
	adrp	x8, _RXTX_REG22@GOTPAGE
Lloh65:
	ldr	x8, [x8, _RXTX_REG22@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	w2, [x8, x9, lsl #2]
	mov	x0, x19
	bl	_XRXTX_IOWRITE
	mov	x0, x19
	bl	_xgbe_phy_complete_ratechange
Lloh67:
	adrp	x8, _link@GOTPAGE
Lloh68:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh70:
	adrp	x3, l_.str@PAGE
Lloh71:
	add	x3, x3, l_.str@PAGEOFF
	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	_netif_dbg
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh62
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh56
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh50
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_PCS,4,2               ; @MDIO_MMD_PCS
	.comm	_MDIO_CTRL2,4,2                 ; @MDIO_CTRL2
	.comm	_MDIO_PCS_CTRL2_TYPE,4,2        ; @MDIO_PCS_CTRL2_TYPE
	.comm	_MDIO_PCS_CTRL2_10GBX,4,2       ; @MDIO_PCS_CTRL2_10GBX
	.comm	_MDIO_CTRL1,4,2                 ; @MDIO_CTRL1
	.comm	_MDIO_CTRL1_SPEEDSEL,4,2        ; @MDIO_CTRL1_SPEEDSEL
	.comm	_MDIO_CTRL1_SPEED1G,4,2         ; @MDIO_CTRL1_SPEED1G
	.comm	_SIR1_SPEED,4,2                 ; @SIR1_SPEED
	.comm	_DATARATE,4,2                   ; @DATARATE
	.comm	_XGBE_SPEED_1000_RATE,4,2       ; @XGBE_SPEED_1000_RATE
	.comm	_WORDMODE,4,2                   ; @WORDMODE
	.comm	_XGBE_SPEED_1000_WORD,4,2       ; @XGBE_SPEED_1000_WORD
	.comm	_PLLSEL,4,2                     ; @PLLSEL
	.comm	_XGBE_SPEED_1000_PLL,4,2        ; @XGBE_SPEED_1000_PLL
	.comm	_CDR_RATE,4,2                   ; @CDR_RATE
	.comm	_XGBE_SPEED_1000,8,3            ; @XGBE_SPEED_1000
	.comm	_TXAMP,4,2                      ; @TXAMP
	.comm	_RXTX_REG20,4,2                 ; @RXTX_REG20
	.comm	_BLWC_ENA,4,2                   ; @BLWC_ENA
	.comm	_RXTX_REG114,4,2                ; @RXTX_REG114
	.comm	_PQ_REG,4,2                     ; @PQ_REG
	.comm	_RXTX_REG129,4,2                ; @RXTX_REG129
	.comm	_RXDFE_CONFIG,4,2               ; @RXDFE_CONFIG
	.comm	_RXTX_REG22,4,2                 ; @RXTX_REG22
	.comm	_link,4,2                       ; @link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"1GbE KX mode set\n"

	.no_dead_strip	_xgbe_phy_kx_1000_mode
.subsections_via_symbols
