	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_phy_dig_check_damping
_rtw_phy_dig_check_damping:             ## @rtw_phy_dig_check_damping
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	cmpl	$0, 8(%rdi)
	je	LBB0_4
## %bb.1:
	movq	16(%rdi), %rax
	movq	%rcx, %rdx
	subq	%rax, %rdx
	negq	%rdx
	subq	%rax, %rcx
	cmovleq	%rdx, %rcx
	cmpq	$3, %rcx
	jg	LBB0_3
## %bb.2:
	movq	32(%rdi), %rcx
	leaq	1(%rcx), %rax
	movq	%rax, 32(%rdi)
	movl	$1, %eax
	cmpq	$21, %rcx
	jl	LBB0_23
LBB0_3:
	movl	$0, 8(%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movq	_DIG_PERF_FA_TH_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_DIG_PERF_FA_TH_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	48(%rdi), %rdx
	movq	40(%rdi), %r10
	movl	24(%rdi), %esi
	andl	$15, %esi
	xorl	%eax, %eax
	cmpq	$9, %rsi
	je	LBB0_14
## %bb.5:
	cmpl	$5, %esi
	jne	LBB0_23
## %bb.6:
	movq	(%rdx), %rsi
	subq	8(%rdx), %rsi
	jle	LBB0_23
## %bb.7:
	movq	16(%rdx), %r11
	subq	24(%rdx), %r11
	jle	LBB0_23
## %bb.8:
	cmpq	$2, %rsi
	jl	LBB0_23
## %bb.9:
	cmpq	$2, %r11
	jl	LBB0_23
## %bb.10:
	cmpl	%r9d, (%r10)
	jle	LBB0_23
## %bb.11:
	cmpl	%r8d, 4(%r10)
	jge	LBB0_23
## %bb.12:
	cmpl	%r9d, 8(%r10)
	jle	LBB0_23
## %bb.13:
	cmpl	%r8d, 12(%r10)
	jl	LBB0_22
	jmp	LBB0_23
LBB0_14:
	movq	(%rdx), %rsi
	subq	8(%rdx), %rsi
	jle	LBB0_23
## %bb.15:
	movq	24(%rdx), %r11
	subq	16(%rdx), %r11
	jle	LBB0_23
## %bb.16:
	cmpq	$4, %rsi
	jl	LBB0_23
## %bb.17:
	cmpq	$2, %r11
	jl	LBB0_23
## %bb.18:
	cmpl	%r9d, (%r10)
	jle	LBB0_23
## %bb.19:
	cmpl	%r8d, 4(%r10)
	jge	LBB0_23
## %bb.20:
	cmpl	%r8d, 8(%r10)
	jge	LBB0_23
## %bb.21:
	cmpl	%r9d, 12(%r10)
	jle	LBB0_23
LBB0_22:
	movl	$1, 8(%rdi)
	movq	$0, 32(%rdi)
	movq	%rcx, 16(%rdi)
	movl	$1, %eax
LBB0_23:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIG_PERF_FA_TH_LOW,4,2         ## @DIG_PERF_FA_TH_LOW
	.comm	_DIG_PERF_FA_TH_HIGH,4,2        ## @DIG_PERF_FA_TH_HIGH
	.no_dead_strip	_rtw_phy_dig_check_damping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_phy_dig_check_damping
_rtw_phy_dig_check_damping:             ; @rtw_phy_dig_check_damping
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	x8, [x0, #16]
	sub	x10, x8, x9
	subs	x8, x9, x8
	csel	x8, x8, x10, gt
	cmp	x8, #3
	b.gt	LBB0_3
; %bb.2:
	ldr	x8, [x0, #32]
	add	x9, x8, #1
	str	x9, [x0, #32]
	cmp	x8, #21
	b.lt	LBB0_12
LBB0_3:
	str	wzr, [x0, #8]
	mov	w0, #0
	ret
LBB0_4:
Lloh0:
	adrp	x8, _DIG_PERF_FA_TH_LOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIG_PERF_FA_TH_LOW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _DIG_PERF_FA_TH_HIGH@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DIG_PERF_FA_TH_HIGH@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	ldp	x11, x12, [x0, #40]
	ldr	w13, [x0, #24]
	and	x13, x13, #0xf
	cmp	x13, #9
	b.eq	LBB0_13
; %bb.5:
	cmp	x13, #5
	b.ne	LBB0_20
; %bb.6:
	ldp	x13, x14, [x12]
	subs	x13, x13, x14
	b.le	LBB0_20
; %bb.7:
	ldp	x14, x12, [x12, #16]
	subs	x12, x14, x12
	ccmp	x13, #2, #8, gt
	ccmp	x12, #2, #8, ge
	b.lt	LBB0_20
; %bb.8:
	ldr	w12, [x11]
	cmp	w12, w10
	b.le	LBB0_20
; %bb.9:
	ldr	w12, [x11, #4]
	cmp	w12, w8
	b.ge	LBB0_20
; %bb.10:
	ldr	w12, [x11, #8]
	cmp	w12, w10
	b.le	LBB0_20
; %bb.11:
	ldr	w10, [x11, #12]
	cmp	w10, w8
	b.ge	LBB0_20
	b	LBB0_19
LBB0_12:
	mov	w0, #1
	ret
LBB0_13:
	ldp	x13, x14, [x12]
	subs	x13, x13, x14
	b.le	LBB0_20
; %bb.14:
	ldp	x12, x14, [x12, #16]
	subs	x12, x14, x12
	ccmp	x13, #4, #8, gt
	ccmp	x12, #2, #8, ge
	b.lt	LBB0_20
; %bb.15:
	ldr	w12, [x11]
	cmp	w12, w10
	b.le	LBB0_20
; %bb.16:
	ldr	w12, [x11, #4]
	cmp	w12, w8
	b.ge	LBB0_20
; %bb.17:
	ldr	w12, [x11, #8]
	cmp	w12, w8
	b.ge	LBB0_20
; %bb.18:
	ldr	w8, [x11, #12]
	cmp	w8, w10
	b.le	LBB0_20
LBB0_19:
	mov	w8, #1
	str	w8, [x0, #8]
	str	xzr, [x0, #32]
	str	x9, [x0, #16]
	mov	x0, x8
	ret
LBB0_20:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DIG_PERF_FA_TH_LOW,4,2         ; @DIG_PERF_FA_TH_LOW
	.comm	_DIG_PERF_FA_TH_HIGH,4,2        ; @DIG_PERF_FA_TH_HIGH
	.no_dead_strip	_rtw_phy_dig_check_damping
.subsections_via_symbols
