	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksz8051_ksz8795_match_phy_device
_ksz8051_ksz8795_match_phy_device:      ## @ksz8051_ksz8795_match_phy_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_MICREL_PHY_ID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	(%rdi), %ecx
	xorl	%eax, %eax
	cmpl	%esi, %ecx
	jne	LBB0_4
## %bb.1:
	movl	%esi, %ebx
	movq	_MII_BMSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movq	_BMSR_ERCAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ecx, %eax
	movq	_PHY_ID_KSZ8051@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	je	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MICREL_PHY_ID_MASK,4,2         ## @MICREL_PHY_ID_MASK
	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.comm	_BMSR_ERCAP,4,2                 ## @BMSR_ERCAP
	.comm	_PHY_ID_KSZ8051,4,2             ## @PHY_ID_KSZ8051
	.no_dead_strip	_ksz8051_ksz8795_match_phy_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ksz8051_ksz8795_match_phy_device
_ksz8051_ksz8795_match_phy_device:      ; @ksz8051_ksz8795_match_phy_device
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MICREL_PHY_ID_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MICREL_PHY_ID_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x1
Lloh3:
	adrp	x8, _MII_BMSR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MII_BMSR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_phy_read
	tbnz	w0, #31, LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _BMSR_ERCAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BMSR_ERCAP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w0, w8, w0
Lloh9:
	adrp	x8, _PHY_ID_KSZ8051@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PHY_ID_KSZ8051@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w19
	b.eq	LBB0_5
; %bb.3:
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MICREL_PHY_ID_MASK,4,2         ; @MICREL_PHY_ID_MASK
	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.comm	_BMSR_ERCAP,4,2                 ; @BMSR_ERCAP
	.comm	_PHY_ID_KSZ8051,4,2             ; @PHY_ID_KSZ8051
	.no_dead_strip	_ksz8051_ksz8795_match_phy_device
.subsections_via_symbols
