	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcm_phy_read_misc              ## -- Begin function bcm_phy_read_misc
	.p2align	4, 0x90
_bcm_phy_read_misc:                     ## @bcm_phy_read_misc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_MII_BCM54XX_AUX_CTL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_MII_BCM54XX_AUXCTL_SHDWSEL_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	movq	_MII_BCM54XX_AUXCTL_ACTL_SMDSP_ENA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	_MII_BCM_CHANNEL_WIDTH@GOTPCREL(%rip), %rax
	imull	(%rax), %r14d
	orl	%r15d, %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bcm_phy_read_exp               ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BCM54XX_AUX_CTL,4,2        ## @MII_BCM54XX_AUX_CTL
	.comm	_MII_BCM54XX_AUXCTL_SHDWSEL_MISC,4,2 ## @MII_BCM54XX_AUXCTL_SHDWSEL_MISC
	.comm	_MII_BCM54XX_AUXCTL_ACTL_SMDSP_ENA,4,2 ## @MII_BCM54XX_AUXCTL_ACTL_SMDSP_ENA
	.comm	_MII_BCM_CHANNEL_WIDTH,4,2      ## @MII_BCM_CHANNEL_WIDTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcm_phy_read_misc              ; -- Begin function bcm_phy_read_misc
	.p2align	2
_bcm_phy_read_misc:                     ; @bcm_phy_read_misc
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _MII_BCM54XX_AUX_CTL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MII_BCM54XX_AUX_CTL@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _MII_BCM54XX_AUXCTL_SHDWSEL_MISC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MII_BCM54XX_AUXCTL_SHDWSEL_MISC@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_phy_write
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_phy_read
Lloh5:
	adrp	x8, _MII_BCM54XX_AUXCTL_ACTL_SMDSP_ENA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MII_BCM54XX_AUXCTL_ACTL_SMDSP_ENA@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x22]
	mov	x0, x19
	bl	_phy_write
	tbnz	w0, #31, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _MII_BCM_CHANNEL_WIDTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MII_BCM_CHANNEL_WIDTH@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mul	w8, w8, w21
	orr	w1, w8, w20
	mov	x0, x19
	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
	b	_bcm_phy_read_exp
LBB0_3:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BCM54XX_AUX_CTL,4,2        ; @MII_BCM54XX_AUX_CTL
	.comm	_MII_BCM54XX_AUXCTL_SHDWSEL_MISC,4,2 ; @MII_BCM54XX_AUXCTL_SHDWSEL_MISC
	.comm	_MII_BCM54XX_AUXCTL_ACTL_SMDSP_ENA,4,2 ; @MII_BCM54XX_AUXCTL_ACTL_SMDSP_ENA
	.comm	_MII_BCM_CHANNEL_WIDTH,4,2      ; @MII_BCM_CHANNEL_WIDTH
.subsections_via_symbols
