	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan743x_mdiobus_write
_lan743x_mdiobus_write:                 ## @lan743x_mdiobus_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
	movq	%rcx, %r12
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_lan743x_mac_mii_wait_till_not_busy
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_MAC_MII_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_lan743x_csr_write
	movq	_MAC_MII_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_lan743x_mac_mii_access
	movq	_MAC_MII_ACC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_lan743x_csr_write
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lan743x_mac_mii_wait_till_not_busy ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_MII_DATA,4,2               ## @MAC_MII_DATA
	.comm	_MAC_MII_WRITE,4,2              ## @MAC_MII_WRITE
	.comm	_MAC_MII_ACC,4,2                ## @MAC_MII_ACC
	.no_dead_strip	_lan743x_mdiobus_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan743x_mdiobus_write
_lan743x_mdiobus_write:                 ; @lan743x_mdiobus_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	x22, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x19, [x0]
	mov	x0, x19
	bl	_lan743x_mac_mii_wait_till_not_busy
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MAC_MII_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC_MII_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_lan743x_csr_write
Lloh3:
	adrp	x8, _MAC_MII_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAC_MII_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_lan743x_mac_mii_access
	mov	x2, x0
Lloh6:
	adrp	x8, _MAC_MII_ACC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAC_MII_ACC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lan743x_csr_write
	mov	x0, x19
	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	_lan743x_mac_mii_wait_till_not_busy
LBB0_2:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_MII_DATA,4,2               ; @MAC_MII_DATA
	.comm	_MAC_MII_WRITE,4,2              ; @MAC_MII_WRITE
	.comm	_MAC_MII_ACC,4,2                ; @MAC_MII_ACC
	.no_dead_strip	_lan743x_mdiobus_write
.subsections_via_symbols
