	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phy_bus_match
_phy_bus_match:                         ## @phy_bus_match
	.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	%rsi, %rbx
	callq	_to_phy_device
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_phy_driver
	movq	%rax, %rbx
	movq	8(%r14), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %ecx
	movq	_MDIO_DEVICE_IS_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, 16(%rbx)
	je	LBB0_10
## %bb.1:
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.11:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rdx                           ## TAILCALL
LBB0_2:
	cmpq	$0, 24(%r14)
	je	LBB0_9
## %bb.3:
	cmpl	$2, %ecx
	jl	LBB0_10
## %bb.4:
	movl	16(%r14), %edx
	movl	%ecx, %ecx
	movl	$1, %esi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	btl	%esi, %edx
	jae	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r14), %rdi
	movl	(%rdi,%rsi,4), %edi
	xorl	8(%rbx), %edi
	testl	%edi, 12(%rbx)
	jne	LBB0_8
## %bb.7:
	movl	$1, %eax
	jmp	LBB0_10
LBB0_9:
	movl	(%r14), %ecx
	xorl	8(%rbx), %ecx
	xorl	%eax, %eax
	testl	%ecx, 12(%rbx)
	sete	%al
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_DEVICE_IS_PHY,4,2         ## @MDIO_DEVICE_IS_PHY
	.no_dead_strip	_phy_bus_match
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phy_bus_match
_phy_bus_match:                         ; @phy_bus_match
	.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	x20, x1
	bl	_to_phy_device
	mov	x19, x0
	mov	x0, x20
	bl	_to_phy_driver
	mov	x20, x0
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	ldr	w8, [x20, #16]
Lloh0:
	adrp	x9, _MDIO_DEVICE_IS_PHY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MDIO_DEVICE_IS_PHY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.1:
	ldr	x1, [x20]
	cbz	x1, LBB0_3
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x1
LBB0_3:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_12
; %bb.4:
	cmp	w0, #2
	b.lt	LBB0_10
; %bb.5:
	ldr	w8, [x19, #16]
	mov	w9, w0
	mov	w10, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w11, w8, w10
	tbz	w11, #0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldp	w11, w12, [x20, #8]
	ldr	x13, [x19, #8]
	ldr	w13, [x13, x10, lsl #2]
	eor	w11, w13, w11
	tst	w11, w12
	b.ne	LBB0_6
; %bb.9:
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldp	w8, w9, [x20, #8]
	ldr	w10, [x19]
	eor	w8, w10, w8
	tst	w8, w9
	cset	w0, eq
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_DEVICE_IS_PHY,4,2         ; @MDIO_DEVICE_IS_PHY
	.no_dead_strip	_phy_bus_match
.subsections_via_symbols
