	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6060_get_name
_mv88e6060_get_name:                    ## @mv88e6060_get_name
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movslq	%esi, %rbx
	xorl	%edi, %edi
	callq	_REG_PORT
	addq	%rax, %rbx
	movq	_PORT_SWITCH_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mdiobus_read
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	_PORT_SWITCH_ID_6060@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_8
LBB0_3:
	movq	_PORT_SWITCH_ID_6060_R1@GOTPCREL(%rip), %rsi
	leaq	L_.str.1(%rip), %rcx
	cmpl	(%rsi), %eax
	je	LBB0_8
## %bb.4:
	movq	_PORT_SWITCH_ID_6060_R2@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	je	LBB0_8
## %bb.5:
	movq	_PORT_SWITCH_ID_6060_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	cmpl	%edx, %ecx
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_8
LBB0_7:
	xorl	%ecx, %ecx
LBB0_8:
	movq	%rcx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_SWITCH_ID,4,2             ## @PORT_SWITCH_ID
	.comm	_PORT_SWITCH_ID_6060,4,2        ## @PORT_SWITCH_ID_6060
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Marvell 88E6060 (A0)"

	.comm	_PORT_SWITCH_ID_6060_R1,4,2     ## @PORT_SWITCH_ID_6060_R1
	.comm	_PORT_SWITCH_ID_6060_R2,4,2     ## @PORT_SWITCH_ID_6060_R2
L_.str.1:                               ## @.str.1
	.asciz	"Marvell 88E6060 (B0)"

	.comm	_PORT_SWITCH_ID_6060_MASK,4,2   ## @PORT_SWITCH_ID_6060_MASK
L_.str.2:                               ## @.str.2
	.asciz	"Marvell 88E6060"

	.no_dead_strip	_mv88e6060_get_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6060_get_name
_mv88e6060_get_name:                    ; @mv88e6060_get_name
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	mov	w0, #0
	bl	_REG_PORT
	add	x1, x0, w19, sxtw
Lloh0:
	adrp	x8, _PORT_SWITCH_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_SWITCH_ID@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mdiobus_read
	tbnz	w0, #31, LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _PORT_SWITCH_ID_6060@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PORT_SWITCH_ID_6060@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_3:
Lloh8:
	adrp	x9, _PORT_SWITCH_ID_6060_R1@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PORT_SWITCH_ID_6060_R1@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _PORT_SWITCH_ID_6060_R2@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PORT_SWITCH_ID_6060_R2@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	w0, w9
	ccmp	w0, w10, #4, ne
	b.ne	LBB0_5
; %bb.4:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_5:
Lloh16:
	adrp	x9, _PORT_SWITCH_ID_6060_MASK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PORT_SWITCH_ID_6060_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	and	w9, w9, w0
	cmp	w9, w8
	b.ne	LBB0_7
; %bb.6:
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:
	mov	x0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_SWITCH_ID,4,2             ; @PORT_SWITCH_ID
	.comm	_PORT_SWITCH_ID_6060,4,2        ; @PORT_SWITCH_ID_6060
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Marvell 88E6060 (A0)"

	.comm	_PORT_SWITCH_ID_6060_R1,4,2     ; @PORT_SWITCH_ID_6060_R1
	.comm	_PORT_SWITCH_ID_6060_R2,4,2     ; @PORT_SWITCH_ID_6060_R2
l_.str.1:                               ; @.str.1
	.asciz	"Marvell 88E6060 (B0)"

	.comm	_PORT_SWITCH_ID_6060_MASK,4,2   ; @PORT_SWITCH_ID_6060_MASK
l_.str.2:                               ; @.str.2
	.asciz	"Marvell 88E6060"

	.no_dead_strip	_mv88e6060_get_name
.subsections_via_symbols
