	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmenet_sw_mdio_read
_bcmenet_sw_mdio_read:                  ## @bcmenet_sw_mdio_read
	.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
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_spin_lock_bh
	movq	_ENETSW_MDIOC_REG@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_enetsw_writel
	movq	_ENETSW_MDIOC_RD_MASK@GOTPCREL(%rip), %rax
	movq	_ENETSW_MDIOC_PHYID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	(%rax), %ebx
	movq	_ENETSW_MDIOC_REG_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	movq	_ENETSW_MDIOC_EXT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_2:
	orl	%r12d, %r15d
	orl	%r15d, %ebx
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_enetsw_writel
	movl	$50, %edi
	callq	_udelay
	movq	_ENETSW_MDIOD_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_enetsw_readw
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENETSW_MDIOC_REG,4,2           ## @ENETSW_MDIOC_REG
	.comm	_ENETSW_MDIOC_RD_MASK,4,2       ## @ENETSW_MDIOC_RD_MASK
	.comm	_ENETSW_MDIOC_PHYID_SHIFT,4,2   ## @ENETSW_MDIOC_PHYID_SHIFT
	.comm	_ENETSW_MDIOC_REG_SHIFT,4,2     ## @ENETSW_MDIOC_REG_SHIFT
	.comm	_ENETSW_MDIOC_EXT_MASK,4,2      ## @ENETSW_MDIOC_EXT_MASK
	.comm	_ENETSW_MDIOD_REG,4,2           ## @ENETSW_MDIOD_REG
	.no_dead_strip	_bcmenet_sw_mdio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcmenet_sw_mdio_read
_bcmenet_sw_mdio_read:                  ; @bcmenet_sw_mdio_read
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_spin_lock_bh
Lloh0:
	adrp	x23, _ENETSW_MDIOC_REG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ENETSW_MDIOC_REG@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x22
	mov	w1, #0
	bl	_enetsw_writel
Lloh2:
	adrp	x8, _ENETSW_MDIOC_RD_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENETSW_MDIOC_RD_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ENETSW_MDIOC_PHYID_SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ENETSW_MDIOC_PHYID_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	lsl	w9, w20, w9
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _ENETSW_MDIOC_REG_SHIFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ENETSW_MDIOC_REG_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	lsl	w9, w19, w9
Lloh11:
	adrp	x10, _ENETSW_MDIOC_EXT_MASK@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ENETSW_MDIOC_EXT_MASK@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh13:
	ldr	w9, [x10]
	cmp	w21, #0
	csel	w9, wzr, w9, eq
	orr	w1, w8, w9
	ldr	w2, [x23]
	mov	x0, x22
	bl	_enetsw_writel
	mov	w0, #50
	bl	_udelay
Lloh14:
	adrp	x8, _ENETSW_MDIOD_REG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENETSW_MDIOD_REG@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_enetsw_readw
	mov	x19, x0
	mov	x0, x22
	bl	_spin_unlock_bh
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ENETSW_MDIOC_REG,4,2           ; @ENETSW_MDIOC_REG
	.comm	_ENETSW_MDIOC_RD_MASK,4,2       ; @ENETSW_MDIOC_RD_MASK
	.comm	_ENETSW_MDIOC_PHYID_SHIFT,4,2   ; @ENETSW_MDIOC_PHYID_SHIFT
	.comm	_ENETSW_MDIOC_REG_SHIFT,4,2     ; @ENETSW_MDIOC_REG_SHIFT
	.comm	_ENETSW_MDIOC_EXT_MASK,4,2      ; @ENETSW_MDIOC_EXT_MASK
	.comm	_ENETSW_MDIOD_REG,4,2           ; @ENETSW_MDIOD_REG
	.no_dead_strip	_bcmenet_sw_mdio_read
.subsections_via_symbols
