	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cortina_probe
_cortina_probe:                         ## @cortina_probe
	.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
	movq	_VILLA_GLOBAL_CHIP_ID_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cortina_read_reg
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movq	_VILLA_GLOBAL_CHIP_ID_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_cortina_read_reg
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movl	%eax, %ecx
	shll	$16, %ebx
	orl	%ebx, %ecx
	movq	(%r14), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	je	LBB0_6
## %bb.4:
	movl	4(%rdx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_phydev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VILLA_GLOBAL_CHIP_ID_LSB,4,2   ## @VILLA_GLOBAL_CHIP_ID_LSB
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_VILLA_GLOBAL_CHIP_ID_MSB,4,2   ## @VILLA_GLOBAL_CHIP_ID_MSB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error matching phy with %s driver\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_cortina_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cortina_probe
_cortina_probe:                         ; @cortina_probe
	.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, x0
Lloh0:
	adrp	x8, _VILLA_GLOBAL_CHIP_ID_LSB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VILLA_GLOBAL_CHIP_ID_LSB@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_cortina_read_reg
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _VILLA_GLOBAL_CHIP_ID_MSB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VILLA_GLOBAL_CHIP_ID_MSB@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cortina_read_reg
	tbnz	w0, #31, LBB0_4
; %bb.2:
	orr	w9, w0, w20, lsl #16
	ldr	x8, [x19]
	ldr	w10, [x8]
	cmp	w9, w10
	b.ne	LBB0_5
; %bb.3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh6:
	adrp	x8, _ENXIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	ldr	w2, [x8, #4]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_phydev_err
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_VILLA_GLOBAL_CHIP_ID_LSB,4,2   ; @VILLA_GLOBAL_CHIP_ID_LSB
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_VILLA_GLOBAL_CHIP_ID_MSB,4,2   ; @VILLA_GLOBAL_CHIP_ID_MSB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error matching phy with %s driver\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_cortina_probe
.subsections_via_symbols
