	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phy_init
_phy_init:                              ## @phy_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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	callq	_phy_reset
	movl	(%rbx), %r13d
	leaq	20(%r12), %rdi
	callq	_dev_name
	movq	_PHY_INTERFACE_MODE_GMII@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%ebx, %ebx
	movl	%r13d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_phy_attach
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.2:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r15d, (%r12)
	jmp	LBB0_3
LBB0_1:
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$0, (%r12)
	movq	_ADVERTISED_Autoneg@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	12(%r12), %ebx
	xorl	%r14d, %r14d
LBB0_3:
	movl	%eax, 16(%r12)
	movl	%r14d, 4(%r12)
	movl	%ebx, 8(%r12)
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_start_aneg                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_INTERFACE_MODE_GMII,4,2    ## @PHY_INTERFACE_MODE_GMII
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.comm	_ADVERTISED_Autoneg,4,2         ## @ADVERTISED_Autoneg
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.no_dead_strip	_phy_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phy_init
_phy_init:                              ; @phy_init
	.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, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x20, [x0, #8]
	bl	_phy_reset
	ldr	w22, [x22]
	add	x0, x20, #20
	bl	_dev_name
	mov	x1, x0
Lloh0:
	adrp	x8, _PHY_INTERFACE_MODE_GMII@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_GMII@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x22
	mov	w2, #0
	bl	_phy_attach
	cbz	w21, LBB0_2
; %bb.1:
	mov	w9, #0
Lloh3:
	adrp	x8, _AUTONEG_DISABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w21, [x20]
	b	LBB0_3
LBB0_2:
	mov	w19, #0
Lloh6:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	wzr, [x20]
	ldr	w9, [x20, #12]
Lloh9:
	adrp	x10, _ADVERTISED_Autoneg@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ADVERTISED_Autoneg@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
LBB0_3:
	str	w8, [x20, #16]
	stp	w19, w9, [x20, #4]
	mov	x0, x20
	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	_phy_start_aneg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_INTERFACE_MODE_GMII,4,2    ; @PHY_INTERFACE_MODE_GMII
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.comm	_ADVERTISED_Autoneg,4,2         ; @ADVERTISED_Autoneg
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.no_dead_strip	_phy_init
.subsections_via_symbols
