	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl88e_phy_simularity_compare
__rtl88e_phy_simularity_compare:        ## @_rtl88e_phy_simularity_compare
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	callq	_rtl_priv
	movl	%eax, %edi
	callq	_rtl_hal
	movabsq	$1095216660735, %rcx            ## imm = 0xFF000000FF
	movq	%rcx, -48(%rbp)
	movl	(%rax), %edi
	callq	_IS_92C_SERIAL
	xorl	%ecx, %ecx
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	setne	%cl
	leaq	4(,%rcx,4), %r10
	movl	%r14d, %eax
	movslq	%r14d, %r8
	movslq	%r12d, %rcx
	movq	_MAX_TOLERANCE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r11
	shlq	$6, %rcx
	leaq	(%rbx,%rcx), %r13
	addq	$8, %r13
	shlq	$6, %r8
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	addq	%r8, %rbx
	addq	$8, %rbx
	xorl	%ecx, %ecx
	movabsq	$9223372036854775803, %r9       ## imm = 0x7FFFFFFFFFFFFFFB
	xorl	%esi, %esi
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edx
	shll	%cl, %edx
	orq	%rdx, %rsi
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	incq	%rcx
	cmpq	%rcx, %r10
	je	LBB0_11
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rbx,%rcx,8), %r15
	movq	-8(%r13,%rcx,8), %rdi
	movq	%r15, %rdx
	subq	%rdi, %rdx
	negq	%rdx
	movq	%r15, %r14
	subq	%rdi, %r14
	cmovleq	%rdx, %r14
	cmpq	%r11, %r14
	jbe	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rcx, %rdx
	andq	%r9, %rdx
	cmpq	$2, %rdx
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	testq	%rsi, %rsi
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	(%rbx,%rcx,8), %r15
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rcx, %rdx
	andq	$-4, %rdx
	movl	%r12d, -48(%rbp,%rdx)
	xorl	%esi, %esi
	jmp	LBB0_10
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	(%r13,%rcx,8), %rdi
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rcx, %rdx
	andq	$-4, %rdx
	movl	%eax, -48(%rbp,%rdx)
	xorl	%esi, %esi
	jmp	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %esi
	shll	%cl, %esi
	jmp	LBB0_10
LBB0_11:
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.20:
	xorl	%r9d, %r9d
	testb	$15, %sil
	je	LBB0_21
## %bb.22:
	testb	$-16, %sil
	jne	LBB0_26
## %bb.23:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_26
## %bb.24:
	movl	$7, %eax
	movl	$6, %edx
	movl	$5, %esi
	movl	$4, %edi
	jmp	LBB0_25
LBB0_12:
	shrq	$2, %r10
	cmpq	$2, %r10
	movl	$1, %edx
	cmovaeq	%r10, %rdx
	movslq	-48(%rbp), %rsi
	movl	$1, %r9d
	cmpq	$255, %rsi
	je	LBB0_14
## %bb.13:
	shlq	$6, %rsi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movups	(%rcx,%rsi), %xmm0
	movups	%xmm0, 192(%rcx)
	xorl	%r9d, %r9d
LBB0_14:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_26
## %bb.15:
	movslq	-44(%rbp), %rax
	cmpq	$255, %rax
	je	LBB0_17
## %bb.16:
	shlq	$6, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movups	32(%rcx,%rax), %xmm0
	movups	%xmm0, 224(%rcx)
	xorl	%r9d, %r9d
LBB0_17:
	cmpl	$2, %edx
	je	LBB0_26
## %bb.18:
	movslq	-40(%rbp), %rax
	cmpq	$255, %rax
	je	LBB0_26
## %bb.19:
	shlq	$6, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movups	64(%rcx,%rax), %xmm0
	movups	%xmm0, 256(%rcx)
	xorl	%r9d, %r9d
	jmp	LBB0_26
LBB0_21:
	movl	$3, %eax
	movl	$2, %edx
	movl	$1, %esi
	xorl	%edi, %edi
LBB0_25:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %r8
	movq	(%r8,%rdi,8), %rbx
	movq	%rbx, 192(%rcx,%rdi,8)
	movq	(%r8,%rsi,8), %rdi
	movq	%rdi, 192(%rcx,%rsi,8)
	movq	(%r8,%rdx,8), %rsi
	movq	%rsi, 192(%rcx,%rdx,8)
	movq	(%r8,%rax,8), %rdx
	movq	%rdx, 192(%rcx,%rax,8)
LBB0_26:
	movl	%r9d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TOLERANCE,8,3              ## @MAX_TOLERANCE
	.no_dead_strip	__rtl88e_phy_simularity_compare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl88e_phy_simularity_compare
__rtl88e_phy_simularity_compare:        ; @_rtl88e_phy_simularity_compare
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x3
	mov	x21, x2
	mov	x19, x1
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x8, #1095216660735
	str	x8, [sp, #8]
	ldr	w0, [x0]
	bl	_IS_92C_SERIAL
	mov	x8, #0
	mov	x11, #0
	cmp	w0, #0
	mov	w9, #4
	mov	w10, #8
	csel	x10, x10, x9, ne
	sxtw	x9, w21
	sxtw	x13, w20
Lloh0:
	adrp	x12, _MAX_TOLERANCE@GOTPAGE
Lloh1:
	ldr	x12, [x12, _MAX_TOLERANCE@GOTPAGEOFF]
Lloh2:
	ldr	x12, [x12]
	add	x13, x19, x13, lsl #6
	add	x13, x13, #8
	add	x14, x19, x9, lsl #6
	add	x14, x14, #8
	mov	x15, #-5
	movk	x15, #32767, lsl #48
	mov	w16, #1
	add	x17, sp, #8
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	lsl	w1, w16, w8
	orr	x11, x11, x1
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	add	x13, x13, #8
	add	x14, x14, #8
	cmp	x10, x8
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x2, [x14, #-8]
	ldur	x1, [x13, #-8]
	sub	x3, x1, x2
	subs	x4, x2, x1
	csel	x3, x4, x3, gt
	cmp	x3, x12
	b.ls	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	and	x3, x8, x15
	cmp	x3, #2
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	x11, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x14]
	cmn	x2, x11
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, #0
	and	x1, x8, #0xfffffffffffffffc
	str	w20, [x17, x1]
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x13]
	cmn	x1, x11
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, #0
	and	x1, x8, #0xfffffffffffffffc
	str	w21, [x17, x1]
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	w11, w16, w8
	b	LBB0_2
LBB0_11:
	cbz	x11, LBB0_16
; %bb.12:
	tst	x11, #0xf
	b.eq	LBB0_18
; %bb.13:
	mov	w8, #0
	tst	x11, #0xf0
	b.ne	LBB0_26
; %bb.14:
	cbz	w0, LBB0_26
; %bb.15:
	mov	w10, #7
	mov	w11, #6
	mov	w13, #5
	mov	w12, #4
	b	LBB0_19
LBB0_16:
	lsr	x8, x10, #2
	cmp	x8, #1
	csinc	x9, x8, xzr, hi
	ldrsw	x10, [sp, #8]
	cmp	w10, #255
	b.ne	LBB0_20
; %bb.17:
	mov	w8, #1
	cbnz	w0, LBB0_21
	b	LBB0_26
LBB0_18:
	mov	x12, #0
	mov	w10, #3
	mov	w11, #2
	mov	w13, #1
LBB0_19:
	mov	w8, #0
	add	x9, x19, x9, lsl #6
	lsl	x12, x12, #3
	ldr	x14, [x9, x12]
	add	x15, x19, #192
	str	x14, [x15, x12]
	lsl	x12, x13, #3
	ldr	x13, [x9, x12]
	str	x13, [x15, x12]
	lsl	x11, x11, #3
	ldr	x12, [x9, x11]
	str	x12, [x15, x11]
	lsl	x10, x10, #3
	ldr	x9, [x9, x10]
	str	x9, [x15, x10]
	b	LBB0_26
LBB0_20:
	mov	w8, #0
	lsl	x10, x10, #6
	ldr	q0, [x19, x10]
	str	q0, [x19, #192]
	cbz	w0, LBB0_26
LBB0_21:
	ldrsw	x10, [sp, #12]
	cmp	w10, #255
	b.eq	LBB0_23
; %bb.22:
	mov	w8, #0
	add	x10, x19, x10, lsl #6
	ldr	q0, [x10, #32]
	str	q0, [x19, #224]
LBB0_23:
	cmp	x9, #2
	b.eq	LBB0_26
; %bb.24:
	ldrsw	x9, [sp, #16]
	cmp	w9, #255
	b.eq	LBB0_26
; %bb.25:
	mov	w8, #0
	add	x9, x19, x9, lsl #6
	ldr	q0, [x9, #64]
	str	q0, [x19, #256]
LBB0_26:
	mov	x0, x8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TOLERANCE,8,3              ; @MAX_TOLERANCE
	.no_dead_strip	__rtl88e_phy_simularity_compare
.subsections_via_symbols
