	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ethoc_mdio_write
_ethoc_mdio_write:                      ## @ethoc_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	(%rdi), %r14
	movq	_MIIADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%esi, %edi
	movl	%edx, %esi
	callq	_MIIADDRESS_ADDR
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_ethoc_write
	movq	_MIITX_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_ethoc_write
	movq	_MIICOMMAND@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_MIICOMMAND_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ethoc_write
	movq	_MIISTATUS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_ethoc_read
	movq	_MIISTATUS_BUSY@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.2:
	movl	$100, %edi
	movl	$200, %esi
	callq	_usleep_range
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_ethoc_read
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.3:
	movl	$100, %edi
	movl	$200, %esi
	callq	_usleep_range
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_ethoc_read
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.4:
	movl	$100, %edi
	movl	$200, %esi
	callq	_usleep_range
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_ethoc_read
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.5:
	movl	$100, %edi
	movl	$200, %esi
	callq	_usleep_range
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_ethoc_read
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.6:
	movl	$100, %edi
	movl	$200, %esi
	callq	_usleep_range
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_1:
	movl	(%r15), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ethoc_write
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIIADDRESS,4,2                 ## @MIIADDRESS
	.comm	_MIITX_DATA,4,2                 ## @MIITX_DATA
	.comm	_MIICOMMAND,4,2                 ## @MIICOMMAND
	.comm	_MIICOMMAND_WRITE,4,2           ## @MIICOMMAND_WRITE
	.comm	_MIISTATUS,4,2                  ## @MIISTATUS
	.comm	_MIISTATUS_BUSY,4,2             ## @MIISTATUS_BUSY
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_ethoc_mdio_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ethoc_mdio_write
_ethoc_mdio_write:                      ; @ethoc_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, x3
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _MIIADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIIADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x1
	mov	x1, x2
	bl	_MIIADDRESS_ADDR
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_ethoc_write
Lloh3:
	adrp	x8, _MIITX_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIITX_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_ethoc_write
Lloh6:
	adrp	x20, _MIICOMMAND@GOTPAGE
Lloh7:
	ldr	x20, [x20, _MIICOMMAND@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh8:
	adrp	x8, _MIICOMMAND_WRITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MIICOMMAND_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ethoc_write
Lloh11:
	adrp	x21, _MIISTATUS@GOTPAGE
Lloh12:
	ldr	x21, [x21, _MIISTATUS@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ethoc_read
Lloh13:
	adrp	x22, _MIISTATUS_BUSY@GOTPAGE
Lloh14:
	ldr	x22, [x22, _MIISTATUS_BUSY@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.1:
	mov	w0, #100
	mov	w1, #200
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ethoc_read
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.2:
	mov	w0, #100
	mov	w1, #200
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ethoc_read
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.3:
	mov	w0, #100
	mov	w1, #200
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ethoc_read
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.4:
	mov	w0, #100
	mov	w1, #200
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ethoc_read
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
	mov	w0, #100
	mov	w1, #200
	bl	_usleep_range
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_ethoc_write
	mov	w0, #0
LBB0_7:
	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	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MIIADDRESS,4,2                 ; @MIIADDRESS
	.comm	_MIITX_DATA,4,2                 ; @MIITX_DATA
	.comm	_MIICOMMAND,4,2                 ; @MIICOMMAND
	.comm	_MIICOMMAND_WRITE,4,2           ; @MIICOMMAND_WRITE
	.comm	_MIISTATUS,4,2                  ; @MIISTATUS
	.comm	_MIISTATUS_BUSY,4,2             ; @MIISTATUS_BUSY
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_ethoc_mdio_write
.subsections_via_symbols
