	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdio_sc_cfg_reg_write
_mdio_sc_cfg_reg_write:                 ## @mdio_sc_cfg_reg_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	%r9d, %r14d
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_regmap_write
	movq	_MDIO_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_6
## %bb.1:
	decq	%r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movq	%r12, %rsi
	leaq	-48(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	sete	%al
	andq	%r15, -48(%rbp)
	setne	%cl
	xorb	%al, %cl
	subq	$1, %r13
	setb	%al
	testb	%cl, %cl
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	%al, %al
	je	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	testb	%cl, %cl
	jne	LBB0_7
LBB0_6:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_TIMEOUT,8,3               ## @MDIO_TIMEOUT
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_mdio_sc_cfg_reg_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdio_sc_cfg_reg_write
_mdio_sc_cfg_reg_write:                 ; @mdio_sc_cfg_reg_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x0
	ldr	w0, [x0]
	bl	_regmap_write
Lloh0:
	adrp	x8, _MDIO_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDIO_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.1:
	sub	x9, x8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x9
	ldr	w0, [x22]
	add	x2, sp, #8
	mov	x1, x21
	bl	_regmap_read
	cbnz	w0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w19, #0
	cset	w8, eq
	ldr	x9, [sp, #8]
	ands	x9, x9, x20
	str	x9, [sp, #8]
	cset	w9, ne
	eor	w8, w8, w9
	tbnz	w8, #0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x9, x23, #1
	cbnz	x23, LBB0_2
LBB0_5:
	tbz	w8, #0, LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_TIMEOUT,8,3               ; @MDIO_TIMEOUT
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_mdio_sc_cfg_reg_write
.subsections_via_symbols
