	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_spur_ofdm_9565
_ar9003_hw_spur_ofdm_9565:              ## @ar9003_hw_spur_ofdm_9565
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	shll	$4, %esi
	movslq	%esi, %rax
	imulq	$1717986919, %rax, %rbx         ## imm = 0x66666667
	movq	%rbx, %rcx
	shrq	$63, %rcx
	shrq	$33, %rbx
	addl	%ecx, %ebx
	xorl	%ecx, %ecx
	cmpl	$-4, %eax
	setl	%cl
	subl	%ecx, %ebx
	andl	$127, %ebx
	movq	_AR_PHY_PILOT_SPUR_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_AR_PHY_PILOT_SPUR_MASK_CF_PILOT_MASK_IDX_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_SPUR_MASK_B@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_AR_PHY_SPUR_MASK_A_CF_PUNC_MASK_IDX_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_CHAN_SPUR_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_AR_PHY_CHAN_SPUR_MASK_CF_CHAN_MASK_IDX_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_REG_RMW_FIELD
	movl	(%r12), %esi
	movq	_AR_PHY_PILOT_SPUR_MASK_CF_PILOT_MASK_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$14, %ecx
	callq	_REG_RMW_FIELD
	movl	(%r13), %esi
	movq	_AR_PHY_CHAN_SPUR_MASK_CF_CHAN_MASK_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$14, %ecx
	callq	_REG_RMW_FIELD
	movl	(%r15), %esi
	movq	_AR_PHY_SPUR_MASK_A_CF_PUNC_MASK_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$160, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_RMW_FIELD                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_PHY_PILOT_SPUR_MASK,4,2     ## @AR_PHY_PILOT_SPUR_MASK
	.comm	_AR_PHY_PILOT_SPUR_MASK_CF_PILOT_MASK_IDX_B,4,2 ## @AR_PHY_PILOT_SPUR_MASK_CF_PILOT_MASK_IDX_B
	.comm	_AR_PHY_SPUR_MASK_B,4,2         ## @AR_PHY_SPUR_MASK_B
	.comm	_AR_PHY_SPUR_MASK_A_CF_PUNC_MASK_IDX_A,4,2 ## @AR_PHY_SPUR_MASK_A_CF_PUNC_MASK_IDX_A
	.comm	_AR_PHY_CHAN_SPUR_MASK,4,2      ## @AR_PHY_CHAN_SPUR_MASK
	.comm	_AR_PHY_CHAN_SPUR_MASK_CF_CHAN_MASK_IDX_B,4,2 ## @AR_PHY_CHAN_SPUR_MASK_CF_CHAN_MASK_IDX_B
	.comm	_AR_PHY_PILOT_SPUR_MASK_CF_PILOT_MASK_B,4,2 ## @AR_PHY_PILOT_SPUR_MASK_CF_PILOT_MASK_B
	.comm	_AR_PHY_CHAN_SPUR_MASK_CF_CHAN_MASK_B,4,2 ## @AR_PHY_CHAN_SPUR_MASK_CF_CHAN_MASK_B
	.comm	_AR_PHY_SPUR_MASK_A_CF_PUNC_MASK_A,4,2 ## @AR_PHY_SPUR_MASK_A_CF_PUNC_MASK_A
	.no_dead_strip	_ar9003_hw_spur_ofdm_9565
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_spur_ofdm_9565
_ar9003_hw_spur_ofdm_9565:              ; @ar9003_hw_spur_ofdm_9565
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	lsl	w8, w1, #4
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	lsr	x9, x9, #33
	cmn	w8, #4
	cset	w8, lt
	add	w9, w9, w10
	sub	w8, w9, w8
	and	w20, w8, #0x7f
Lloh0:
	adrp	x21, _AR_PHY_PILOT_SPUR_MASK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AR_PHY_PILOT_SPUR_MASK@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _AR_PHY_PILOT_SPUR_MASK_CF_PILOT_MASK_IDX_B@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR_PHY_PILOT_SPUR_MASK_CF_PILOT_MASK_IDX_B@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x3, x20
	bl	_REG_RMW_FIELD
Lloh5:
	adrp	x22, _AR_PHY_SPUR_MASK_B@GOTPAGE
Lloh6:
	ldr	x22, [x22, _AR_PHY_SPUR_MASK_B@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh7:
	adrp	x8, _AR_PHY_SPUR_MASK_A_CF_PUNC_MASK_IDX_A@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AR_PHY_SPUR_MASK_A_CF_PUNC_MASK_IDX_A@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_REG_RMW_FIELD
Lloh10:
	adrp	x23, _AR_PHY_CHAN_SPUR_MASK@GOTPAGE
Lloh11:
	ldr	x23, [x23, _AR_PHY_CHAN_SPUR_MASK@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh12:
	adrp	x8, _AR_PHY_CHAN_SPUR_MASK_CF_CHAN_MASK_IDX_B@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AR_PHY_CHAN_SPUR_MASK_CF_CHAN_MASK_IDX_B@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_REG_RMW_FIELD
	ldr	w1, [x21]
Lloh15:
	adrp	x8, _AR_PHY_PILOT_SPUR_MASK_CF_PILOT_MASK_B@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AR_PHY_PILOT_SPUR_MASK_CF_PILOT_MASK_B@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #14
	bl	_REG_RMW_FIELD
	ldr	w1, [x23]
Lloh18:
	adrp	x8, _AR_PHY_CHAN_SPUR_MASK_CF_CHAN_MASK_B@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AR_PHY_CHAN_SPUR_MASK_CF_CHAN_MASK_B@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #14
	bl	_REG_RMW_FIELD
Lloh21:
	adrp	x8, _AR_PHY_SPUR_MASK_A_CF_PUNC_MASK_A@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AR_PHY_SPUR_MASK_A_CF_PUNC_MASK_A@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #160
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_REG_RMW_FIELD
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_PHY_PILOT_SPUR_MASK,4,2     ; @AR_PHY_PILOT_SPUR_MASK
	.comm	_AR_PHY_PILOT_SPUR_MASK_CF_PILOT_MASK_IDX_B,4,2 ; @AR_PHY_PILOT_SPUR_MASK_CF_PILOT_MASK_IDX_B
	.comm	_AR_PHY_SPUR_MASK_B,4,2         ; @AR_PHY_SPUR_MASK_B
	.comm	_AR_PHY_SPUR_MASK_A_CF_PUNC_MASK_IDX_A,4,2 ; @AR_PHY_SPUR_MASK_A_CF_PUNC_MASK_IDX_A
	.comm	_AR_PHY_CHAN_SPUR_MASK,4,2      ; @AR_PHY_CHAN_SPUR_MASK
	.comm	_AR_PHY_CHAN_SPUR_MASK_CF_CHAN_MASK_IDX_B,4,2 ; @AR_PHY_CHAN_SPUR_MASK_CF_CHAN_MASK_IDX_B
	.comm	_AR_PHY_PILOT_SPUR_MASK_CF_PILOT_MASK_B,4,2 ; @AR_PHY_PILOT_SPUR_MASK_CF_PILOT_MASK_B
	.comm	_AR_PHY_CHAN_SPUR_MASK_CF_CHAN_MASK_B,4,2 ; @AR_PHY_CHAN_SPUR_MASK_CF_CHAN_MASK_B
	.comm	_AR_PHY_SPUR_MASK_A_CF_PUNC_MASK_A,4,2 ; @AR_PHY_SPUR_MASK_A_CF_PUNC_MASK_A
	.no_dead_strip	_ar9003_hw_spur_ofdm_9565
.subsections_via_symbols
