	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e1xxx_phy_create
_mv88e1xxx_phy_create:                  ## @mv88e1xxx_phy_create
	.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	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_mv88e1xxx_ops@GOTPCREL(%rip), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movq	%r15, %r8
	callq	_cphy_init
	movq	%r14, %rdi
	callq	_board_info
	movq	_SUPPORTED_TP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	_board_info
	movq	8(%rax), %rax
	movq	_CHBT_PHY_88E1111@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_MV88E1XXX_EXTENDED_ADDR_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$11, %edx
	callq	_simple_mdio_write
	movq	_MV88E1XXX_EXTENDED_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$32772, %edx                    ## imm = 0x8004
	callq	_simple_mdio_write
LBB0_4:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_mv88e1xxx_downshift_set
	movq	%r14, %rdi
	callq	_is_T2
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_MV88E1XXX_LED_CONTROL_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_simple_mdio_write
LBB0_6:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_mv88e1xxx_ops,4,2              ## @mv88e1xxx_ops
	.comm	_SUPPORTED_TP,4,2               ## @SUPPORTED_TP
	.comm	_CHBT_PHY_88E1111,8,3           ## @CHBT_PHY_88E1111
	.comm	_MV88E1XXX_EXTENDED_ADDR_REGISTER,4,2 ## @MV88E1XXX_EXTENDED_ADDR_REGISTER
	.comm	_MV88E1XXX_EXTENDED_REGISTER,4,2 ## @MV88E1XXX_EXTENDED_REGISTER
	.comm	_MV88E1XXX_LED_CONTROL_REGISTER,4,2 ## @MV88E1XXX_LED_CONTROL_REGISTER
	.no_dead_strip	_mv88e1xxx_phy_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e1xxx_phy_create
_mv88e1xxx_phy_create:                  ; @mv88e1xxx_phy_create
	.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, x2
	mov	x22, x1
	mov	x23, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x3, _mv88e1xxx_ops@GOTPAGE
Lloh4:
	ldr	x3, [x3, _mv88e1xxx_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x4, x21
	bl	_cphy_init
	mov	x0, x20
	bl	_board_info
	ldr	w8, [x0]
Lloh5:
	adrp	x9, _SUPPORTED_TP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SUPPORTED_TP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_board_info
	ldr	x8, [x0, #8]
Lloh8:
	adrp	x9, _CHBT_PHY_88E1111@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CHBT_PHY_88E1111@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _MV88E1XXX_EXTENDED_ADDR_REGISTER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MV88E1XXX_EXTENDED_ADDR_REGISTER@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #11
	bl	_simple_mdio_write
Lloh14:
	adrp	x8, _MV88E1XXX_EXTENDED_REGISTER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MV88E1XXX_EXTENDED_REGISTER@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #32772
	bl	_simple_mdio_write
LBB0_4:
	mov	x0, x19
	mov	w1, #1
	bl	_mv88e1xxx_downshift_set
	mov	x0, x20
	bl	_is_T2
	cbz	x0, LBB0_6
; %bb.5:
Lloh17:
	adrp	x8, _MV88E1XXX_LED_CONTROL_REGISTER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MV88E1XXX_LED_CONTROL_REGISTER@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_simple_mdio_write
LBB0_6:
	mov	x0, x19
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_mv88e1xxx_ops,4,2              ; @mv88e1xxx_ops
	.comm	_SUPPORTED_TP,4,2               ; @SUPPORTED_TP
	.comm	_CHBT_PHY_88E1111,8,3           ; @CHBT_PHY_88E1111
	.comm	_MV88E1XXX_EXTENDED_ADDR_REGISTER,4,2 ; @MV88E1XXX_EXTENDED_ADDR_REGISTER
	.comm	_MV88E1XXX_EXTENDED_REGISTER,4,2 ; @MV88E1XXX_EXTENDED_REGISTER
	.comm	_MV88E1XXX_LED_CONTROL_REGISTER,4,2 ; @MV88E1XXX_LED_CONTROL_REGISTER
	.no_dead_strip	_mv88e1xxx_phy_create
.subsections_via_symbols
