	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_mdio_write
_rtw_mdio_write:                        ## @rtw_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	%ecx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	_REG_MDIO_V1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rtw_write16
	xorl	%eax, %eax
	cmpl	$32, %r14d
	setge	%al
	xorl	%ecx, %ecx
	testl	%r15d, %r15d
	sete	%cl
	leal	(%rax,%rcx,2), %r15d
	movq	_REG_PCIE_MIX_CFG@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	andl	$31, %r14d
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_rtw_write8
	movq	(%r12), %rsi
	addq	$3, %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_rtw_write8
	movq	(%r12), %rsi
	movq	_BIT_MDIO_WFLAG_V1@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r13, %rdi
	movl	$1, %ecx
	callq	_rtw_write32_mask
	movq	(%r12), %rsi
	movl	(%r14), %edx
	movq	%r13, %rdi
	callq	_rtw_read32_mask
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	$-19, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_udelay
	movq	(%r12), %rsi
	movl	(%r14), %edx
	movq	%r13, %rdi
	callq	_rtw_read32_mask
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rbx), %ecx
	testl	%ebx, %ebx
	movl	%ecx, %ebx
	jne	LBB0_3
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_MDIO_V1,4,2                ## @REG_MDIO_V1
	.comm	_REG_PCIE_MIX_CFG,8,3           ## @REG_PCIE_MIX_CFG
	.comm	_BIT_MDIO_WFLAG_V1,4,2          ## @BIT_MDIO_WFLAG_V1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MDIO write fail\n"

	.no_dead_strip	_rtw_mdio_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_mdio_write
_rtw_mdio_write:                        ; @rtw_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
	cmp	w3, #0
	cset	w22, eq
Lloh0:
	adrp	x8, _REG_MDIO_V1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_MDIO_V1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rtw_write16
	cmp	w20, #31
	cset	w21, gt
	bfi	w21, w22, #1, #1
Lloh3:
	adrp	x22, _REG_PCIE_MIX_CFG@GOTPAGE
Lloh4:
	ldr	x22, [x22, _REG_PCIE_MIX_CFG@GOTPAGEOFF]
	ldr	x1, [x22]
	and	w2, w20, #0x1f
	mov	x0, x19
	bl	_rtw_write8
	ldr	x8, [x22]
	add	x1, x8, #3
	mov	x0, x19
	mov	x2, x21
	bl	_rtw_write8
	ldr	x1, [x22]
Lloh5:
	adrp	x20, _BIT_MDIO_WFLAG_V1@GOTPAGE
Lloh6:
	ldr	x20, [x20, _BIT_MDIO_WFLAG_V1@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #1
	bl	_rtw_write32_mask
	ldr	x1, [x22]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_rtw_read32_mask
	cbz	w0, LBB0_3
; %bb.1:
	mov	w21, #-19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_udelay
	ldr	x1, [x22]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_rtw_read32_mask
	cmp	w0, #0
	ccmp	w21, #0, #4, ne
	add	w21, w21, #1
	b.ne	LBB0_2
LBB0_3:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	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	_WARN
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_MDIO_V1,4,2                ; @REG_MDIO_V1
	.comm	_REG_PCIE_MIX_CFG,8,3           ; @REG_PCIE_MIX_CFG
	.comm	_BIT_MDIO_WFLAG_V1,4,2          ; @BIT_MDIO_WFLAG_V1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MDIO write fail\n"

	.no_dead_strip	_rtw_mdio_write
.subsections_via_symbols
