	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b53_phy_fixup
_b53_phy_fixup:                         ## @b53_phy_fixup
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	_B53_PSEUDO_PHY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_mdiobus_read
	movl	%eax, %ebx
	shll	$16, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$3, %edx
	callq	_mdiobus_read
	orl	%ebx, %eax
	movl	%eax, %ecx
	andl	$-1024, %ecx                    ## imm = 0xFC00
	movq	_B53_BRCM_OUI_1@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_4
## %bb.2:
	movq	_B53_BRCM_OUI_2@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_4
## %bb.3:
	movq	_B53_BRCM_OUI_3@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_5
LBB0_4:
	movl	%eax, (%r15)
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B53_PSEUDO_PHY,8,3             ## @B53_PSEUDO_PHY
	.comm	_B53_BRCM_OUI_1,4,2             ## @B53_BRCM_OUI_1
	.comm	_B53_BRCM_OUI_2,4,2             ## @B53_BRCM_OUI_2
	.comm	_B53_BRCM_OUI_3,4,2             ## @B53_BRCM_OUI_3
	.no_dead_strip	_b53_phy_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b53_phy_fixup
_b53_phy_fixup:                         ; @b53_phy_fixup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _B53_PSEUDO_PHY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _B53_PSEUDO_PHY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #16]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #2
	bl	_mdiobus_read
	mov	x21, x0
	mov	x0, x20
	mov	w1, #0
	mov	w2, #3
	bl	_mdiobus_read
	orr	w8, w0, w21, lsl #16
	and	w9, w8, #0xfffffc00
Lloh3:
	adrp	x10, _B53_BRCM_OUI_1@GOTPAGE
Lloh4:
	ldr	x10, [x10, _B53_BRCM_OUI_1@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _B53_BRCM_OUI_2@GOTPAGE
Lloh7:
	ldr	x11, [x11, _B53_BRCM_OUI_2@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
Lloh9:
	adrp	x12, _B53_BRCM_OUI_3@GOTPAGE
Lloh10:
	ldr	x12, [x12, _B53_BRCM_OUI_3@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	cmp	w9, w10
	ccmp	w9, w11, #4, ne
	ccmp	w9, w12, #4, ne
	b.ne	LBB0_3
; %bb.2:
	str	w8, [x19]
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_B53_PSEUDO_PHY,8,3             ; @B53_PSEUDO_PHY
	.comm	_B53_BRCM_OUI_1,4,2             ; @B53_BRCM_OUI_1
	.comm	_B53_BRCM_OUI_2,4,2             ; @B53_BRCM_OUI_2
	.comm	_B53_BRCM_OUI_3,4,2             ; @B53_BRCM_OUI_3
	.no_dead_strip	_b53_phy_fixup
.subsections_via_symbols
