	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmenet_sw_mdio_write
_bcmenet_sw_mdio_write:                 ## @bcmenet_sw_mdio_write
	.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	%r8d, %ebx
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r14
	callq	_spin_lock_bh
	movq	_ENETSW_MDIOC_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_enetsw_writel
	movq	_ENETSW_MDIOC_PHYID_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r12d
	movq	_ENETSW_MDIOC_WR_MASK@GOTPCREL(%rip), %rax
	movq	_ENETSW_MDIOC_REG_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r15d
	testl	%r13d, %r13d
	je	LBB0_2
## %bb.1:
	movq	_ENETSW_MDIOC_EXT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
LBB0_2:
	orl	(%rax), %ebx
	orl	%r13d, %r15d
	orl	%r12d, %ebx
	orl	%r15d, %ebx
	movq	_ENETSW_MDIOC_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_enetsw_writel
	movl	$50, %edi
	callq	_udelay
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENETSW_MDIOC_REG,4,2           ## @ENETSW_MDIOC_REG
	.comm	_ENETSW_MDIOC_WR_MASK,4,2       ## @ENETSW_MDIOC_WR_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
	.no_dead_strip	_bcmenet_sw_mdio_write
.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_write
_bcmenet_sw_mdio_write:                 ; @bcmenet_sw_mdio_write
	.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, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_spin_lock_bh
Lloh0:
	adrp	x24, _ENETSW_MDIOC_REG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ENETSW_MDIOC_REG@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x23
	mov	w1, #0
	bl	_enetsw_writel
Lloh2:
	adrp	x8, _ENETSW_MDIOC_WR_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENETSW_MDIOC_WR_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, w21, w9
Lloh8:
	adrp	x10, _ENETSW_MDIOC_REG_SHIFT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ENETSW_MDIOC_REG_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	lsl	w10, w20, w10
Lloh11:
	adrp	x11, _ENETSW_MDIOC_EXT_MASK@GOTPAGE
Lloh12:
	ldr	x11, [x11, _ENETSW_MDIOC_EXT_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	cmp	w22, #0
	csel	w11, wzr, w11, eq
	orr	w8, w8, w19
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w1, w8, w11
	ldr	w2, [x24]
	mov	x0, x23
	bl	_enetsw_writel
	mov	w0, #50
	bl	_udelay
	mov	x0, x23
	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
	b	_spin_unlock_bh
	.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_WR_MASK,4,2       ; @ENETSW_MDIOC_WR_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
	.no_dead_strip	_bcmenet_sw_mdio_write
.subsections_via_symbols
