	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8723e_phy_simularity_compare
__rtl8723e_phy_simularity_compare:      ## @_rtl8723e_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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	%edx, %r12
	movslq	%ecx, %r15
	shlq	$6, %r12
	shlq	$6, %r15
	movq	16(%rsi,%r12), %r13
	movq	16(%rsi,%r15), %r14
	movq	%r13, %rbx
	subq	%r14, %rbx
	negq	%rbx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	subq	%r14, %r13
	movq	(%rsi,%r12), %r8
	movq	8(%rsi,%r12), %r9
	cmovleq	%rbx, %r13
	movq	8(%rsi,%r15), %rbx
	movq	%r9, %rax
	subq	%rbx, %rax
	negq	%rax
	movq	%r9, %rdi
	subq	%rbx, %rdi
	movq	(%rsi,%r15), %rbx
	cmovleq	%rax, %rdi
	movq	%r8, %rax
	subq	%rbx, %rax
	negq	%rax
	movq	%r8, %r10
	subq	%rbx, %r10
	cmovleq	%rax, %r10
	movq	_MAX_TOLERANCE@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	xorl	%eax, %eax
	cmpq	%r11, %r10
	seta	%al
	cmpq	%r11, %rdi
	leaq	2(%rax), %rbx
	cmovbeq	%rax, %rbx
	cmpq	%r11, %r13
	jbe	LBB0_6
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.5:
	orq	$4, %rbx
LBB0_6:
	movl	$255, %ecx
LBB0_7:
	movq	24(%rsi,%r12), %r10
	movq	24(%rsi,%r15), %rax
	movq	%r10, %rdi
	subq	%rax, %rdi
	negq	%rdi
	movq	%r10, %rdx
	subq	%rax, %rdx
	cmovleq	%rdi, %rdx
	cmpq	%r11, %rdx
	jbe	LBB0_11
## %bb.8:
	orq	$8, %rbx
	jmp	LBB0_9
LBB0_11:
	testq	%rbx, %rbx
	je	LBB0_12
LBB0_9:
	xorl	%eax, %eax
	testq	%rbx, %rbx
	jne	LBB0_15
## %bb.10:
	movq	%r8, 192(%rsi)
	movq	%r9, 200(%rsi)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 208(%rsi)
	movl	$3, %eax
	jmp	LBB0_14
LBB0_2:
	movq	24(%rsi,%r12), %rax
	addq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	jne	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_12:
	movl	$1, %eax
	cmpl	$255, %ecx
	je	LBB0_15
## %bb.13:
	movslq	%ecx, %rax
	shlq	$6, %rax
	movq	(%rsi,%rax), %rcx
	movq	%rcx, 192(%rsi)
	movq	8(%rsi,%rax), %r10
	movl	$1, %eax
LBB0_14:
	movq	%r10, 192(%rsi,%rax,8)
	xorl	%eax, %eax
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	subq	24(%rsi,%r15), %rax
	xorl	%ebx, %ebx
	cmpq	%rax, %r14
	setne	%bl
	movl	$255, %ecx
	cmovel	%edx, %ecx
	shlq	$2, %rbx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TOLERANCE,8,3              ## @MAX_TOLERANCE
	.no_dead_strip	__rtl8723e_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 _rtl8723e_phy_simularity_compare
__rtl8723e_phy_simularity_compare:      ; @_rtl8723e_phy_simularity_compare
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w3 killed $w3 def $x3
                                        ; kill: def $w2 killed $w2 def $x2
	sxtw	x16, w2
	sxtw	x15, w3
Lloh0:
	adrp	x8, _MAX_TOLERANCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_TOLERANCE@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x8]
	add	x12, x1, x16, lsl #6
	add	x13, x1, x15, lsl #6
	ldp	x8, x9, [x12]
	ldp	x10, x14, [x13]
	sub	x17, x10, x8
	subs	x10, x8, x10
	csel	x10, x10, x17, gt
	cmp	x10, x11
	cset	w10, hi
	sub	x17, x14, x9
	subs	x14, x9, x14
	csel	x14, x14, x17, gt
	orr	x17, x10, #0x2
	cmp	x14, x11
	csel	x14, x17, x10, hi
	ldr	x10, [x12, #16]
	ldr	x17, [x13, #16]
	sub	x0, x17, x10
	subs	x4, x10, x17
	csel	x0, x4, x0, gt
	cmp	x0, x11
	b.ls	LBB0_3
; %bb.1:
	cbz	x14, LBB0_10
; %bb.2:
	orr	x14, x14, #0x4
LBB0_3:
	mov	w3, #255
LBB0_4:
	ldr	x12, [x12, #24]
	ldr	x13, [x13, #24]
	sub	x15, x13, x12
	subs	x13, x12, x13
	csel	x13, x13, x15, gt
	cmp	x13, x11
	b.ls	LBB0_6
; %bb.5:
	orr	x14, x14, #0x8
	b	LBB0_7
LBB0_6:
	cbz	x14, LBB0_12
LBB0_7:
	cbz	x14, LBB0_9
; %bb.8:
	mov	w0, #0
	ret
LBB0_9:
	stp	x8, x9, [x1, #192]
	mov	w8, #3
	str	x10, [x1, #208]
	b	LBB0_16
LBB0_10:
	add	x14, x1, x16, lsl #6
	ldr	x14, [x14, #24]
	cmn	x10, x14
	b.ne	LBB0_14
; %bb.11:
	mov	x14, #0
	b	LBB0_4
LBB0_12:
	cmp	w3, #255
	b.ne	LBB0_15
; %bb.13:
	mov	w0, #1
	ret
LBB0_14:
	add	x14, x1, x15, lsl #6
	ldr	x14, [x14, #24]
	cmn	x17, x14
	cset	w14, ne
	mov	w15, #255
	csel	w3, w2, w15, eq
	lsl	x14, x14, #2
	b	LBB0_4
LBB0_15:
                                        ; kill: def $w3 killed $w3 killed $x3 def $x3
	sxtw	x8, w3
	add	x8, x1, x8, lsl #6
	ldp	x9, x12, [x8]
	str	x9, [x1, #192]
	mov	w8, #1
LBB0_16:
	mov	w0, #0
	add	x8, x1, x8, lsl #3
	str	x12, [x8, #192]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TOLERANCE,8,3              ; @MAX_TOLERANCE
	.no_dead_strip	__rtl8723e_phy_simularity_compare
.subsections_via_symbols
