	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcnet32_check_otherphy
_pcnet32_check_otherphy:                ## @pcnet32_check_otherphy
	.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
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_PCNET32_MAX_PHYS@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	%eax, %ebx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	4(%r15), %ebx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %ecx
	btl	%ebx, %ecx
	jae	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, -48(%rbp)
	movq	%r12, %rdi
	callq	_mii_link_ok
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %eax
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	%ebx, %r8d
	callq	_netif_info
	movl	4(%r15), %esi
	movq	_MII_BMCR@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_mdio_read
	movl	4(%r15), %esi
	movl	(%r12), %edx
	movq	_BMCR_ISOLATE@GOTPCREL(%rip), %r13
	orl	(%r13), %eax
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_mdio_write
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mdio_read
	movl	(%r12), %edx
	movl	(%r13), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mdio_write
	movl	%ebx, 4(%r15)
	movl	$1, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_PCNET32_MAX_PHYS,4,2           ## @PCNET32_MAX_PHYS
	.comm	_link,4,2                       ## @link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using PHY number %d\n"

	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_ISOLATE,4,2               ## @BMCR_ISOLATE
	.no_dead_strip	_pcnet32_check_otherphy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcnet32_check_otherphy
_pcnet32_check_otherphy:                ; @pcnet32_check_otherphy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	bl	_netdev_priv
Lloh0:
	adrp	x22, _PCNET32_MAX_PHYS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PCNET32_MAX_PHYS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x0
	mov	w21, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	cmp	w21, w8
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19, #4]
	cmp	w21, w9
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x19]
	lsr	w9, w9, w21
	tbz	w9, #0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w21, [sp, #8]
	add	x0, sp, #8
	bl	_mii_link_ok
	cbnz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22]
	b	LBB0_2
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
Lloh2:
	adrp	x8, _link@GOTPAGE
Lloh3:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x4, x21
	bl	_netif_info
	ldr	w1, [x19, #4]
Lloh7:
	adrp	x22, _MII_BMCR@GOTPAGE
Lloh8:
	ldr	x22, [x22, _MII_BMCR@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	bl	_mdio_read
	ldr	w1, [x19, #4]
	ldr	w2, [x22]
Lloh9:
	adrp	x23, _BMCR_ISOLATE@GOTPAGE
Lloh10:
	ldr	x23, [x23, _BMCR_ISOLATE@GOTPAGEOFF]
	ldr	w8, [x23]
	orr	w3, w8, w0
	mov	x0, x20
	bl	_mdio_write
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_mdio_read
	ldr	w2, [x22]
	ldr	w8, [x23]
	bic	w3, w0, w8
	mov	x0, x20
	mov	x1, x21
	bl	_mdio_write
	str	w21, [x19, #4]
	mov	w0, #1
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PCNET32_MAX_PHYS,4,2           ; @PCNET32_MAX_PHYS
	.comm	_link,4,2                       ; @link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using PHY number %d\n"

	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_ISOLATE,4,2               ; @BMCR_ISOLATE
	.no_dead_strip	_pcnet32_check_otherphy
.subsections_via_symbols
