	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt2712_delay_ps2stage
_mt2712_delay_ps2stage:                 ## @mt2712_delay_ps2stage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	leal	-129(%rax), %ecx
	cmpl	$4, %ecx
	jae	LBB0_1
## %bb.5:
	movslq	8(%rdi), %rax
	imulq	$1616928865, %rax, %rax         ## imm = 0x60606061
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movl	%eax, 8(%rdi)
	movslq	12(%rdi), %rax
	imulq	$1616928865, %rax, %rax         ## imm = 0x60606061
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	jmp	LBB0_4
LBB0_1:
	cmpl	$133, %eax
	je	LBB0_3
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_6
LBB0_3:
	movslq	8(%rdi), %rax
	imulq	$1999112051, %rax, %rax         ## imm = 0x77280773
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$40, %rax
	addl	%ecx, %eax
	movl	%eax, 8(%rdi)
	movslq	12(%rdi), %rax
	imulq	$1999112051, %rax, %rax         ## imm = 0x77280773
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$40, %rax
LBB0_4:
	addl	%ecx, %eax
	movl	%eax, 12(%rdi)
	popq	%rbp
	retq
LBB0_6:
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"phy interface not supported\n"

	.no_dead_strip	_mt2712_delay_ps2stage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt2712_delay_ps2stage
_mt2712_delay_ps2stage:                 ; @mt2712_delay_ps2stage
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	sub	w9, w8, #129
	cmp	w9, #4
	b.hs	LBB0_2
; %bb.1:
	mov	w8, #24673
	movk	w8, #24672, lsl #16
	ldpsw	x9, x10, [x0, #8]
	mul	x9, x9, x8
	lsr	x11, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w11
	mul	x8, x10, x8
	lsr	x10, x8, #63
	asr	x8, x8, #38
	b	LBB0_5
LBB0_2:
	cmp	w8, #133
	b.eq	LBB0_4
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_6
LBB0_4:
	mov	w8, #1907
	movk	w8, #30504, lsl #16
	ldpsw	x9, x10, [x0, #8]
	mul	x9, x9, x8
	lsr	x11, x9, #63
	asr	x9, x9, #40
	add	w9, w9, w11
	mul	x8, x10, x8
	lsr	x10, x8, #63
	asr	x8, x8, #40
LBB0_5:
	add	w8, w8, w10
	stp	w9, w8, [x0, #8]
	ret
LBB0_6:
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	_dev_err
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phy interface not supported\n"

	.no_dead_strip	_mt2712_delay_ps2stage
.subsections_via_symbols
