	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_phy_start
_xgbe_phy_start:                        ## @xgbe_phy_start
	.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
	movq	%rdi, %r15
	movq	56(%rdi), %r14
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdx
	callq	_netif_dbg
	movq	%r15, %rdi
	callq	*24(%r15)
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%r15), %rax
	cmpq	8(%r15), %rax
	je	LBB0_4
## %bb.2:
	leaq	48(%r15), %rdi
	movq	_xgbe_an_isr_task@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_tasklet_init
	movl	40(%r15), %edi
	movq	8(%r15), %rsi
	movq	_xgbe_an_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	44(%r15), %r8d
	xorl	%ecx, %ecx
	movq	%r15, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
LBB0_21:
	movq	%r15, %rdi
	callq	*32(%r15)
	jmp	LBB0_22
LBB0_4:
	movq	_XGBE_MODE_KR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_xgbe_use_mode
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	callq	_xgbe_kr_mode
	jmp	LBB0_6
LBB0_7:
	movq	_XGBE_MODE_KX_2500@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_xgbe_use_mode
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_xgbe_kx_2500_mode
	jmp	LBB0_6
LBB0_9:
	movq	_XGBE_MODE_KX_1000@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_xgbe_use_mode
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_xgbe_kx_1000_mode
	jmp	LBB0_6
LBB0_11:
	movq	_XGBE_MODE_SFI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_xgbe_use_mode
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_xgbe_sfi_mode
	jmp	LBB0_6
LBB0_13:
	movq	_XGBE_MODE_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_xgbe_use_mode
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	callq	_xgbe_x_mode
	jmp	LBB0_6
LBB0_15:
	movq	_XGBE_MODE_SGMII_1000@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_xgbe_use_mode
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	callq	_xgbe_sgmii_1000_mode
	jmp	LBB0_6
LBB0_17:
	movq	_XGBE_MODE_SGMII_100@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_xgbe_use_mode
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	%r15, %rdi
	callq	_xgbe_sgmii_100_mode
LBB0_6:
	movl	$1, 16(%r15)
	movq	%r15, %rdi
	callq	_xgbe_an_init
	movq	%r15, %rdi
	callq	_xgbe_an_enable_interrupts
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xgbe_phy_config_aneg           ## TAILCALL
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	8(%r15), %rsi
	cmpq	%rsi, (%r15)
	je	LBB0_21
## %bb.20:
	movl	40(%r15), %edi
	movq	%r15, %rdx
	callq	_devm_free_irq
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_link,4,2                       ## @link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"starting PHY\n"

	.comm	_xgbe_an_isr_task,4,2           ## @xgbe_an_isr_task
	.comm	_xgbe_an_isr,4,2                ## @xgbe_an_isr
L_.str.1:                               ## @.str.1
	.asciz	"phy irq request failed\n"

	.comm	_XGBE_MODE_KR,4,2               ## @XGBE_MODE_KR
	.comm	_XGBE_MODE_KX_2500,4,2          ## @XGBE_MODE_KX_2500
	.comm	_XGBE_MODE_KX_1000,4,2          ## @XGBE_MODE_KX_1000
	.comm	_XGBE_MODE_SFI,4,2              ## @XGBE_MODE_SFI
	.comm	_XGBE_MODE_X,4,2                ## @XGBE_MODE_X
	.comm	_XGBE_MODE_SGMII_1000,4,2       ## @XGBE_MODE_SGMII_1000
	.comm	_XGBE_MODE_SGMII_100,4,2        ## @XGBE_MODE_SGMII_100
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_xgbe_phy_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_phy_start
_xgbe_phy_start:                        ; @xgbe_phy_start
	.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, #56]
Lloh0:
	adrp	x8, _link@GOTPAGE
Lloh1:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x2, x20
	bl	_netif_dbg
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x21
	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
LBB0_2:
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.3:
	add	x0, x19, #48
Lloh5:
	adrp	x8, _xgbe_an_isr_task@GOTPAGE
Lloh6:
	ldr	x8, [x8, _xgbe_an_isr_task@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_tasklet_init
	ldr	x1, [x19, #8]
Lloh8:
	adrp	x8, _xgbe_an_isr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _xgbe_an_isr@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	ldp	w0, w4, [x19, #40]
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	cbz	w0, LBB0_6
; %bb.4:
	mov	x21, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
LBB0_5:
	ldr	x8, [x19, #32]
	mov	x0, x19
	blr	x8
	b	LBB0_1
LBB0_6:
Lloh13:
	adrp	x8, _XGBE_MODE_KR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _XGBE_MODE_KR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_xgbe_use_mode
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_xgbe_kr_mode
	b	LBB0_20
LBB0_8:
Lloh16:
	adrp	x8, _XGBE_MODE_KX_2500@GOTPAGE
Lloh17:
	ldr	x8, [x8, _XGBE_MODE_KX_2500@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_xgbe_use_mode
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_xgbe_kx_2500_mode
	b	LBB0_20
LBB0_10:
Lloh19:
	adrp	x8, _XGBE_MODE_KX_1000@GOTPAGE
Lloh20:
	ldr	x8, [x8, _XGBE_MODE_KX_1000@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_xgbe_use_mode
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_xgbe_kx_1000_mode
	b	LBB0_20
LBB0_12:
Lloh22:
	adrp	x8, _XGBE_MODE_SFI@GOTPAGE
Lloh23:
	ldr	x8, [x8, _XGBE_MODE_SFI@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_xgbe_use_mode
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_xgbe_sfi_mode
	b	LBB0_20
LBB0_14:
Lloh25:
	adrp	x8, _XGBE_MODE_X@GOTPAGE
Lloh26:
	ldr	x8, [x8, _XGBE_MODE_X@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_xgbe_use_mode
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_xgbe_x_mode
	b	LBB0_20
LBB0_16:
Lloh28:
	adrp	x8, _XGBE_MODE_SGMII_1000@GOTPAGE
Lloh29:
	ldr	x8, [x8, _XGBE_MODE_SGMII_1000@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_xgbe_use_mode
	cbz	x0, LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_xgbe_sgmii_1000_mode
	b	LBB0_20
LBB0_18:
Lloh31:
	adrp	x8, _XGBE_MODE_SGMII_100@GOTPAGE
Lloh32:
	ldr	x8, [x8, _XGBE_MODE_SGMII_100@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_xgbe_use_mode
	cbz	x0, LBB0_21
; %bb.19:
	mov	x0, x19
	bl	_xgbe_sgmii_100_mode
LBB0_20:
	mov	w8, #1
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_xgbe_an_init
	mov	x0, x19
	bl	_xgbe_an_enable_interrupts
	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	_xgbe_phy_config_aneg
LBB0_21:
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w21, w8
	ldp	x8, x1, [x19]
	cmp	x8, x1
	b.eq	LBB0_5
; %bb.22:
	ldr	w0, [x19, #40]
	mov	x2, x19
	bl	_devm_free_irq
	b	LBB0_5
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_link,4,2                       ; @link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"starting PHY\n"

	.comm	_xgbe_an_isr_task,4,2           ; @xgbe_an_isr_task
	.comm	_xgbe_an_isr,4,2                ; @xgbe_an_isr
l_.str.1:                               ; @.str.1
	.asciz	"phy irq request failed\n"

	.comm	_XGBE_MODE_KR,4,2               ; @XGBE_MODE_KR
	.comm	_XGBE_MODE_KX_2500,4,2          ; @XGBE_MODE_KX_2500
	.comm	_XGBE_MODE_KX_1000,4,2          ; @XGBE_MODE_KX_1000
	.comm	_XGBE_MODE_SFI,4,2              ; @XGBE_MODE_SFI
	.comm	_XGBE_MODE_X,4,2                ; @XGBE_MODE_X
	.comm	_XGBE_MODE_SGMII_1000,4,2       ; @XGBE_MODE_SGMII_1000
	.comm	_XGBE_MODE_SGMII_100,4,2        ; @XGBE_MODE_SGMII_100
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_xgbe_phy_start
.subsections_via_symbols
