	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8723be_mdio_write
__rtl8723be_mdio_write:                 ## @_rtl8723be_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	%esi, %r14d
	movq	%rdi, %r12
	movq	_REG_MDIO_WDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rtl_write_word
	movq	_REG_MDIO_CTL@GOTPCREL(%rip), %r13
	movl	(%r13), %r15d
	movl	$5, %edi
	callq	_BIT
	orl	%eax, %r14d
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_rtl_write_byte
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_rtl_read_byte
	movl	%eax, %r14d
	movl	$5, %edi
	callq	_BIT
	testl	%r14d, %eax
	je	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_udelay
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_rtl_read_byte
	movl	%eax, %r14d
	movl	$5, %edi
	callq	_BIT
	testl	%r14d, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rbx), %eax
	cmpl	$19, %ebx
	movl	%eax, %ebx
	jb	LBB0_2
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_MDIO_WDATA,4,2             ## @REG_MDIO_WDATA
	.comm	_REG_MDIO_CTL,4,2               ## @REG_MDIO_CTL
	.no_dead_strip	__rtl8723be_mdio_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8723be_mdio_write
__rtl8723be_mdio_write:                 ; @_rtl8723be_mdio_write
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _REG_MDIO_WDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_MDIO_WDATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rtl_write_word
Lloh3:
	adrp	x22, _REG_MDIO_CTL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _REG_MDIO_CTL@GOTPAGEOFF]
	ldr	w21, [x22]
	mov	w0, #5
	bl	_BIT
	orr	w2, w0, w20
	mov	x0, x19
	mov	x1, x21
	bl	_rtl_write_byte
	ldr	w1, [x22]
	mov	x0, x19
	bl	_rtl_read_byte
	mov	x20, x0
	mov	w0, #5
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_3
; %bb.1:
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x22]
	mov	x0, x19
	bl	_rtl_read_byte
	mov	x20, x0
	mov	w0, #5
	bl	_BIT
	and	w8, w0, w20
	cmp	w8, #0
	ccmp	w21, #19, #2, ne
	add	w21, w21, #1
	b.lo	LBB0_2
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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_MDIO_WDATA,4,2             ; @REG_MDIO_WDATA
	.comm	_REG_MDIO_CTL,4,2               ; @REG_MDIO_CTL
	.no_dead_strip	__rtl8723be_mdio_write
.subsections_via_symbols
