	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MT2063_AvoidSpurs
_MT2063_AvoidSpurs:                     ## @MT2063_AvoidSpurs
	.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
	movq	%rdi, %r14
	movq	$0, (%rdi)
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_dprintk
	cmpq	$0, 8(%r14)
	je	LBB0_1
## %bb.2:
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_IsSpurInBand
	movl	%eax, 16(%r14)
	xorl	%edx, %edx
	testl	%eax, %eax
	je	LBB0_12
## %bb.3:
	movl	20(%r14), %r12d
	movl	28(%r14), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	subl	24(%r14), %r12d
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	incl	4(%r14)
	movl	%r12d, %esi
	subl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	addl	%r12d, %edx
	movq	%r14, %rdi
	callq	_MT2063_AddExclZone
	movq	%r14, %rdi
	callq	_MT2063_ChooseFirstIF
	movl	%eax, %r13d
	subl	%r12d, %eax
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	%eax, 20(%r14)
	addl	28(%r14), %eax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	subl	%r13d, %r12d
	subl	%r12d, 20(%r14)
	movl	28(%r14), %eax
	subl	%r12d, %eax
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	48(%r14), %ecx
	movl	%r13d, %edx
	subl	%ecx, %edx
	negl	%edx
	movl	%r13d, %ebx
	subl	%ecx, %ebx
	movl	%eax, 28(%r14)
	cmovlel	%edx, %ebx
	movq	%r14, %rdi
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdx
	callq	_IsSpurInBand
	movl	%eax, 16(%r14)
	addl	%ebx, %ebx
	movslq	%ebx, %rcx
	addq	32(%r14), %rcx
	cmpq	40(%r14), %rcx
	jg	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, %r12d
	testl	%eax, %eax
	jne	LBB0_4
LBB0_9:
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.10:
	movq	_MT2063_SPUR_PRESENT_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 20(%r14)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 28(%r14)
	jmp	LBB0_12
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_11:
	movl	$1, (%r14)
	xorl	%edx, %edx
LBB0_12:
	movl	4(%r14), %eax
	movq	_MT2063_SPUR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_MT2063_SPUR_CNT_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	%edx, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_MT2063_SPUR_PRESENT_ERR,4,2    ## @MT2063_SPUR_PRESENT_ERR
	.comm	_MT2063_SPUR_SHIFT,4,2          ## @MT2063_SPUR_SHIFT
	.comm	_MT2063_SPUR_CNT_MASK,4,2       ## @MT2063_SPUR_CNT_MASK
	.no_dead_strip	_MT2063_AvoidSpurs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MT2063_AvoidSpurs
_MT2063_AvoidSpurs:                     ; @MT2063_AvoidSpurs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	str	xzr, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_dprintk
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.1:
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	bl	_IsSpurInBand
	str	w0, [x19, #16]
	cbz	w0, LBB0_10
; %bb.2:
	ldp	w21, w8, [x19, #20]
	sub	w23, w21, w8
	ldr	w22, [x19, #28]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #20]
	sub	w9, w23, w20
	sub	w8, w8, w9
	str	w8, [x19, #20]
	ldr	w8, [x19, #28]
	sub	w8, w8, w9
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w8, [x19, #28]
	ldr	w8, [x19, #48]
	sub	w9, w8, w20
	subs	w8, w20, w8
	csel	w23, w8, w9, gt
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	bl	_IsSpurInBand
	str	w0, [x19, #16]
	lsl	w8, w23, #1
	ldp	x9, x10, [x19, #32]
	add	x8, x9, w8, sxtw
	cmp	x8, x10
	ccmp	w0, #0, #4, le
	mov	x23, x20
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	ldr	w8, [sp, #12]
	sub	w1, w23, w8
	ldr	w8, [sp, #8]
	add	w2, w8, w23
	mov	x0, x19
	bl	_MT2063_AddExclZone
	mov	x0, x19
	bl	_MT2063_ChooseFirstIF
	mov	x20, x0
	subs	w8, w0, w23
	b.le	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x19, #20]
	add	w9, w9, w8
	str	w9, [x19, #20]
	ldr	w9, [x19, #28]
	add	w8, w9, w8
	b	LBB0_4
LBB0_7:
	cmp	w0, #1
	b.ne	LBB0_11
; %bb.8:
Lloh2:
	adrp	x8, _MT2063_SPUR_PRESENT_ERR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT2063_SPUR_PRESENT_ERR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w21, [x19, #20]
	str	w22, [x19, #28]
	b	LBB0_12
LBB0_9:
	mov	w0, #0
	b	LBB0_13
LBB0_10:
	mov	w8, #0
	b	LBB0_12
LBB0_11:
	mov	w8, #0
	mov	w9, #1
	str	w9, [x19]
LBB0_12:
	ldr	w9, [x19, #4]
Lloh5:
	adrp	x10, _MT2063_SPUR_SHIFT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MT2063_SPUR_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh8:
	adrp	x10, _MT2063_SPUR_CNT_MASK@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MT2063_SPUR_CNT_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	and	w9, w9, w10
	orr	w0, w9, w8
LBB0_13:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_MT2063_SPUR_PRESENT_ERR,4,2    ; @MT2063_SPUR_PRESENT_ERR
	.comm	_MT2063_SPUR_SHIFT,4,2          ; @MT2063_SPUR_SHIFT
	.comm	_MT2063_SPUR_CNT_MASK,4,2       ; @MT2063_SPUR_CNT_MASK
	.no_dead_strip	_MT2063_AvoidSpurs
.subsections_via_symbols
