	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bfin_mdiobus_write
_bfin_mdiobus_write:                    ## @bfin_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %r14d
	movl	%esi, %r15d
	xorl	%eax, %eax
	callq	_bfin_mdio_poll
	movl	%ebx, %edi
	callq	_bfin_write_EMAC_STADAT
	movslq	%r15d, %rdi
	callq	_SET_PHYAD
	movl	%eax, %ebx
	movslq	%r14d, %rdi
	callq	_SET_REGAD
	orl	%eax, %ebx
	movq	_STAOP@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_STABUSY@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_bfin_write_EMAC_STAADD
	xorl	%eax, %eax
	callq	_bfin_mdio_poll
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STAOP,4,2                      ## @STAOP
	.comm	_STABUSY,4,2                    ## @STABUSY
	.no_dead_strip	_bfin_mdiobus_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bfin_mdiobus_write
_bfin_mdiobus_write:                    ; @bfin_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	x19, x3
	mov	x20, x2
	mov	x21, x1
	bl	_bfin_mdio_poll
	mov	x0, x19
	bl	_bfin_write_EMAC_STADAT
	sxtw	x0, w21
	bl	_SET_PHYAD
	mov	x19, x0
	sxtw	x0, w20
	bl	_SET_REGAD
	orr	w8, w0, w19
Lloh0:
	adrp	x9, _STAOP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STAOP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh3:
	adrp	x9, _STABUSY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STABUSY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_bfin_write_EMAC_STAADD
	bl	_bfin_mdio_poll
	mov	w0, #0
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STAOP,4,2                      ; @STAOP
	.comm	_STABUSY,4,2                    ; @STABUSY
	.no_dead_strip	_bfin_mdiobus_write
.subsections_via_symbols
