	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar8xxx_is_possible
_ar8xxx_is_possible:                    ## @ar8xxx_is_possible
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_MII_PHYSID1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_mdiobus_read
	movl	%eax, %ebx
	shll	$16, %ebx
	movq	_MII_PHYSID2@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_mdiobus_read
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movl	%r15d, %edi
	callq	_ar8xxx_phy_match
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movl	$0, %r12d
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%eax, %esi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	callq	_pr_debug
LBB0_3:
	movq	_MII_PHYSID1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_mdiobus_read
	movl	%eax, %ebx
	shll	$16, %ebx
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_mdiobus_read
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movl	%r15d, %edi
	callq	_ar8xxx_phy_match
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	incl	%r12d
	jmp	LBB0_7
LBB0_5:
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	$1, %edx
	movl	%r15d, %ecx
	callq	_pr_debug
LBB0_7:
	movq	_MII_PHYSID1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_mdiobus_read
	movl	%eax, %ebx
	shll	$16, %ebx
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_mdiobus_read
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movl	%r15d, %edi
	callq	_ar8xxx_phy_match
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	incl	%r12d
	jmp	LBB0_11
LBB0_9:
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	$2, %edx
	movl	%r15d, %ecx
	callq	_pr_debug
LBB0_11:
	movq	_MII_PHYSID1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_mdiobus_read
	movl	%eax, %ebx
	shll	$16, %ebx
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_mdiobus_read
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movl	%r15d, %edi
	callq	_ar8xxx_phy_match
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	incl	%r12d
	jmp	LBB0_15
LBB0_13:
	testl	%r15d, %r15d
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	$3, %edx
	movl	%r15d, %ecx
	callq	_pr_debug
LBB0_15:
	movq	_MII_PHYSID1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_mdiobus_read
	movl	%eax, %ebx
	shll	$16, %ebx
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_mdiobus_read
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movl	%r15d, %edi
	callq	_ar8xxx_phy_match
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	incl	%r12d
	jmp	LBB0_19
LBB0_17:
	testl	%r15d, %r15d
	je	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	$4, %edx
	movl	%r15d, %ecx
	callq	_pr_debug
LBB0_19:
	xorl	%eax, %eax
	testl	%r12d, %r12d
	setne	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_PHYSID1,4,2                ## @MII_PHYSID1
	.comm	_MII_PHYSID2,4,2                ## @MII_PHYSID2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ar8xxx: unknown PHY at %s:%02x id:%08x\n"

	.no_dead_strip	_ar8xxx_is_possible
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar8xxx_is_possible
_ar8xxx_is_possible:                    ; @ar8xxx_is_possible
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x22, _MII_PHYSID1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MII_PHYSID1@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #0
	bl	_mdiobus_read
	mov	x20, x0
Lloh2:
	adrp	x23, _MII_PHYSID2@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MII_PHYSID2@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #0
	bl	_mdiobus_read
	orr	w20, w0, w20, lsl #16
	mov	x0, x20
	bl	_ar8xxx_phy_match
	cbz	x0, LBB0_2
; %bb.1:
	mov	w21, #1
	b	LBB0_5
LBB0_2:
	cbz	w20, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_dev_name
	mov	x1, x0
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #0
	mov	x3, x20
	bl	_pr_debug
LBB0_4:
	mov	w21, #0
LBB0_5:
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #1
	bl	_mdiobus_read
	mov	x20, x0
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #1
	bl	_mdiobus_read
	orr	w20, w0, w20, lsl #16
	mov	x0, x20
	bl	_ar8xxx_phy_match
	cbz	x0, LBB0_7
; %bb.6:
	add	w21, w21, #1
	b	LBB0_9
LBB0_7:
	cbz	w20, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_dev_name
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #1
	mov	x3, x20
	bl	_pr_debug
LBB0_9:
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #2
	bl	_mdiobus_read
	mov	x20, x0
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #2
	bl	_mdiobus_read
	orr	w20, w0, w20, lsl #16
	mov	x0, x20
	bl	_ar8xxx_phy_match
	cbz	x0, LBB0_11
; %bb.10:
	add	w21, w21, #1
	b	LBB0_13
LBB0_11:
	cbz	w20, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_dev_name
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #2
	mov	x3, x20
	bl	_pr_debug
LBB0_13:
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #3
	bl	_mdiobus_read
	mov	x20, x0
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #3
	bl	_mdiobus_read
	orr	w20, w0, w20, lsl #16
	mov	x0, x20
	bl	_ar8xxx_phy_match
	cbz	x0, LBB0_15
; %bb.14:
	add	w21, w21, #1
	b	LBB0_17
LBB0_15:
	cbz	w20, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_dev_name
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #3
	mov	x3, x20
	bl	_pr_debug
LBB0_17:
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #4
	bl	_mdiobus_read
	mov	x20, x0
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #4
	bl	_mdiobus_read
	orr	w20, w0, w20, lsl #16
	mov	x0, x20
	bl	_ar8xxx_phy_match
	cbz	x0, LBB0_19
; %bb.18:
	add	w21, w21, #1
	b	LBB0_21
LBB0_19:
	cbz	w20, LBB0_21
; %bb.20:
	mov	x0, x19
	bl	_dev_name
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #4
	mov	x3, x20
	bl	_pr_debug
LBB0_21:
	cmp	w21, #0
	cset	w0, ne
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_PHYSID1,4,2                ; @MII_PHYSID1
	.comm	_MII_PHYSID2,4,2                ; @MII_PHYSID2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ar8xxx: unknown PHY at %s:%02x id:%08x\n"

	.no_dead_strip	_ar8xxx_is_possible
.subsections_via_symbols
