	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pch_gbe_phy_get_id             ## -- Begin function pch_gbe_phy_get_id
	.p2align	4, 0x90
_pch_gbe_phy_get_id:                    ## @pch_gbe_phy_get_id
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_pch_gbe_hw_to_adapter
	movq	%rax, %r14
	movq	_PHY_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pch_gbe_phy_read_reg_miic
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	_PHY_ID2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pch_gbe_phy_read_reg_miic
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	-24(%rbp), %eax
	shll	$6, %eax
	movl	-20(%rbp), %ecx
	movl	%ecx, %edx
	shrl	$10, %edx
	andl	$63, %edx
	orl	%eax, %edx
	movl	%edx, (%rbx)
	andl	$15, %ecx
	movq	%rcx, 8(%rbx)
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_dbg
	xorl	%eax, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_ID1,4,2                    ## @PHY_ID1
	.comm	_PHY_ID2,4,2                    ## @PHY_ID2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"phy->id : 0x%08x  phy->revision : 0x%08x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pch_gbe_phy_get_id             ; -- Begin function pch_gbe_phy_get_id
	.p2align	2
_pch_gbe_phy_get_id:                    ; @pch_gbe_phy_get_id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_pch_gbe_hw_to_adapter
	mov	x20, x0
Lloh0:
	adrp	x8, _PHY_ID1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_ID1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_pch_gbe_phy_read_reg_miic
	cbnz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _PHY_ID2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHY_ID2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_pch_gbe_phy_read_reg_miic
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w8, [sp, #12]
	lsl	w2, w8, #6
	ldr	w8, [sp, #8]
	bfxil	w2, w8, #10, #6
	str	w2, [x19]
	and	x3, x8, #0xf
	str	x3, [x19, #8]
	ldr	w0, [x20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_dbg
	mov	x0, #0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_ID1,4,2                    ; @PHY_ID1
	.comm	_PHY_ID2,4,2                    ; @PHY_ID2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phy->id : 0x%08x  phy->revision : 0x%08x\n"

.subsections_via_symbols
