	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsa_loop_phy_write
_dsa_loop_phy_write:                    ## @dsa_loop_phy_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	movq	16(%rbx), %rdi
	movslq	%esi, %r14
	movq	8(%rbx), %rsi
	addq	%r14, %rsi
	callq	_mdiobus_write_nested
	movq	(%rbx), %rcx
	movq	(%rcx,%r14,8), %rcx
	testl	%eax, %eax
	jns	LBB0_1
## %bb.2:
	movq	_DSA_LOOP_PHY_WRITE_ERR@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_1:
	movq	_DSA_LOOP_PHY_WRITE_OK@GOTPCREL(%rip), %rdx
LBB0_3:
	movq	(%rdx), %rdx
	incl	(%rcx,%rdx,4)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSA_LOOP_PHY_WRITE_ERR,8,3     ## @DSA_LOOP_PHY_WRITE_ERR
	.comm	_DSA_LOOP_PHY_WRITE_OK,8,3      ## @DSA_LOOP_PHY_WRITE_OK
	.no_dead_strip	_dsa_loop_phy_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsa_loop_phy_write
_dsa_loop_phy_write:                    ; @dsa_loop_phy_write
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x20, [x0]
	ldp	x8, x0, [x20, #8]
	add	x1, x8, w1, sxtw
	bl	_mdiobus_write_nested
	ldr	x8, [x20]
	ldr	x8, [x8, w19, sxtw #3]
Lloh0:
	adrp	x9, _DSA_LOOP_PHY_WRITE_ERR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DSA_LOOP_PHY_WRITE_ERR@GOTPAGEOFF]
Lloh2:
	adrp	x10, _DSA_LOOP_PHY_WRITE_OK@GOTPAGE
Lloh3:
	ldr	x10, [x10, _DSA_LOOP_PHY_WRITE_OK@GOTPAGEOFF]
	cmp	w0, #0
	csel	x9, x9, x10, lt
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DSA_LOOP_PHY_WRITE_ERR,8,3     ; @DSA_LOOP_PHY_WRITE_ERR
	.comm	_DSA_LOOP_PHY_WRITE_OK,8,3      ; @DSA_LOOP_PHY_WRITE_OK
	.no_dead_strip	_dsa_loop_phy_write
.subsections_via_symbols
