	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __phy_write_mcb_s6g
___phy_write_mcb_s6g:                   ## @__phy_write_mcb_s6g
	.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	%ecx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_PHY_MCB_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	btsl	%edx, %ecx
	movl	%r15d, %edx
	callq	_vsc85xx_csr_ctrl_phy_write
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_2:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_PROC_CMD_NCOMPLETED_TIMEOUT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r13
	addq	%rbx, %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	movq	_PHY_MCB_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_vsc85xx_csr_ctrl_phy_read
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ebx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r13, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %eax
	andl	%r14d, %eax
	jne	LBB0_3
LBB0_7:
	testl	%r14d, %ebx
	je	LBB0_8
## %bb.9:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_MCB_TARGET,4,2             ## @PHY_MCB_TARGET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_PROC_CMD_NCOMPLETED_TIMEOUT_MS,4,2 ## @PROC_CMD_NCOMPLETED_TIMEOUT_MS
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	___phy_write_mcb_s6g
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __phy_write_mcb_s6g
___phy_write_mcb_s6g:                   ; @__phy_write_mcb_s6g
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _PHY_MCB_TARGET@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PHY_MCB_TARGET@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w8, #1
	lsl	w8, w8, w2
	orr	w3, w8, w3
	mov	x2, x20
	bl	_vsc85xx_csr_ctrl_phy_write
	cbz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
Lloh4:
	adrp	x25, _jiffies@GOTPAGE
Lloh5:
	ldr	x25, [x25, _jiffies@GOTPAGEOFF]
	ldr	x22, [x25]
Lloh6:
	adrp	x8, _PROC_CMD_NCOMPLETED_TIMEOUT_MS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PROC_CMD_NCOMPLETED_TIMEOUT_MS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x22, x0, x22
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #500
	mov	w1, #1000
	bl	_usleep_range
	ldr	w1, [x24]
	mov	x0, x21
	mov	x2, x20
	bl	_vsc85xx_csr_ctrl_phy_read
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	ldr	x0, [x25]
	mov	x1, x22
	bl	_time_before
	and	w8, w23, w19
	cmp	x0, #0
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_3
; %bb.5:
	cbz	w8, LBB0_10
; %bb.6:
Lloh9:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_MCB_TARGET,4,2             ; @PHY_MCB_TARGET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_PROC_CMD_NCOMPLETED_TIMEOUT_MS,4,2 ; @PROC_CMD_NCOMPLETED_TIMEOUT_MS
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	___phy_write_mcb_s6g
.subsections_via_symbols
