	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8812ae_fixspur
_rtl8812ae_fixspur:                     ## @rtl8812ae_fixspur
	.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
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_rtl_priv
	movl	%eax, %edi
	callq	_rtl_hal
	movq	%rax, %rbx
	movl	8(%rax), %edi
	callq	_IS_VENDOR_8812A_C_CUT
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	_HT_CHANNEL_WIDTH_20_40@GOTPCREL(%rip), %rbx
	movq	_RRFMOD@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	cmpl	$11, %r12d
	jne	LBB0_8
## %bb.2:
	cmpl	%r15d, (%rbx)
	jne	LBB0_8
## %bb.3:
	movq	%r14, %rdi
	movl	$3072, %edx                     ## imm = 0xC00
	movl	$3, %ecx
	callq	_rtl_set_bbreg
	jmp	LBB0_4
LBB0_12:
	movq	(%rbx), %rax
	movq	_HARDWARE_TYPE_RTL8812AE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.13:
	leal	-13(%r12), %eax
	cmpl	$1, %eax
	ja	LBB0_17
## %bb.14:
	movq	_HT_CHANNEL_WIDTH_20@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_17
## %bb.15:
	movq	_RRFMOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$768, %edx                      ## imm = 0x300
	movl	$3, %ecx
	jmp	LBB0_16
LBB0_8:
	movq	%r14, %rdi
	movl	$3072, %edx                     ## imm = 0xC00
	movl	$2, %ecx
	callq	_rtl_set_bbreg
	leal	-13(%r12), %eax
	cmpl	$1, %eax
	ja	LBB0_4
## %bb.9:
	movq	_HT_CHANNEL_WIDTH_20@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_4
## %bb.10:
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	$768, %edx                      ## imm = 0x300
	movl	$3, %ecx
	callq	_rtl_set_bbreg
	jmp	LBB0_11
LBB0_4:
	cmpl	$11, %r12d
	jne	LBB0_6
## %bb.5:
	cmpl	%r15d, (%rbx)
	jne	LBB0_6
LBB0_11:
	movq	_RADC_BUF_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$30, %edi
	callq	_BIT
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	$1, %ecx
	jmp	LBB0_16
LBB0_6:
	movq	_HT_CHANNEL_WIDTH_80@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_19
## %bb.7:
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	$768, %edx                      ## imm = 0x300
	movl	$2, %ecx
	callq	_rtl_set_bbreg
	movq	_RADC_BUF_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$30, %edi
	callq	_BIT
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_16
LBB0_17:
	cmpl	$14, %r12d
	jg	LBB0_19
## %bb.18:
	movq	_RRFMOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$768, %edx                      ## imm = 0x300
	movl	$2, %ecx
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl_set_bbreg                  ## TAILCALL
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HT_CHANNEL_WIDTH_20_40,4,2     ## @HT_CHANNEL_WIDTH_20_40
	.comm	_RRFMOD,4,2                     ## @RRFMOD
	.comm	_HT_CHANNEL_WIDTH_20,4,2        ## @HT_CHANNEL_WIDTH_20
	.comm	_RADC_BUF_CLK,4,2               ## @RADC_BUF_CLK
	.comm	_HT_CHANNEL_WIDTH_80,4,2        ## @HT_CHANNEL_WIDTH_80
	.comm	_HARDWARE_TYPE_RTL8812AE,8,3    ## @HARDWARE_TYPE_RTL8812AE
	.no_dead_strip	_rtl8812ae_fixspur
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8812ae_fixspur
_rtl8812ae_fixspur:                     ; @rtl8812ae_fixspur
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x22, x0
	ldr	w0, [x0, #8]
	bl	_IS_VENDOR_8812A_C_CUT
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x23, _HT_CHANNEL_WIDTH_20_40@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HT_CHANNEL_WIDTH_20_40@GOTPAGEOFF]
Lloh2:
	adrp	x22, _RRFMOD@GOTPAGE
Lloh3:
	ldr	x22, [x22, _RRFMOD@GOTPAGEOFF]
	ldr	w1, [x22]
	cmp	w21, #11
	b.ne	LBB0_8
; %bb.2:
	ldr	w8, [x23]
	cmp	w8, w20
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x19
	mov	w2, #3072
	mov	w3, #3
	bl	_rtl_set_bbreg
	b	LBB0_11
LBB0_4:
	ldr	x8, [x22]
Lloh4:
	adrp	x9, _HARDWARE_TYPE_RTL8812AE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _HARDWARE_TYPE_RTL8812AE@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.5:
	sub	w8, w21, #13
	cmp	w8, #1
	b.hi	LBB0_16
; %bb.6:
Lloh7:
	adrp	x8, _HT_CHANNEL_WIDTH_20@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HT_CHANNEL_WIDTH_20@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_16
; %bb.7:
Lloh10:
	adrp	x8, _RRFMOD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RRFMOD@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #768
	mov	w3, #3
	b	LBB0_18
LBB0_8:
	mov	x0, x19
	mov	w2, #3072
	mov	w3, #2
	bl	_rtl_set_bbreg
	sub	w8, w21, #13
	cmp	w8, #1
	b.hi	LBB0_11
; %bb.9:
Lloh13:
	adrp	x8, _HT_CHANNEL_WIDTH_20@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HT_CHANNEL_WIDTH_20@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_11
; %bb.10:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #768
	mov	w3, #3
	bl	_rtl_set_bbreg
	b	LBB0_13
LBB0_11:
	cmp	w21, #11
	b.ne	LBB0_14
; %bb.12:
	ldr	w8, [x23]
	cmp	w8, w20
	b.ne	LBB0_14
LBB0_13:
Lloh16:
	adrp	x8, _RADC_BUF_CLK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RADC_BUF_CLK@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
	mov	w0, #30
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	b	LBB0_18
LBB0_14:
Lloh19:
	adrp	x8, _HT_CHANNEL_WIDTH_80@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HT_CHANNEL_WIDTH_80@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_19
; %bb.15:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #768
	mov	w3, #2
	bl	_rtl_set_bbreg
Lloh22:
	adrp	x8, _RADC_BUF_CLK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RADC_BUF_CLK@GOTPAGEOFF]
Lloh24:
	ldr	w20, [x8]
	mov	w0, #30
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	b	LBB0_18
LBB0_16:
	cmp	w21, #14
	b.gt	LBB0_19
; %bb.17:
Lloh25:
	adrp	x8, _RRFMOD@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RRFMOD@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #768
	mov	w3, #2
LBB0_18:
	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	_rtl_set_bbreg
LBB0_19:
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_HT_CHANNEL_WIDTH_20_40,4,2     ; @HT_CHANNEL_WIDTH_20_40
	.comm	_RRFMOD,4,2                     ; @RRFMOD
	.comm	_HT_CHANNEL_WIDTH_20,4,2        ; @HT_CHANNEL_WIDTH_20
	.comm	_RADC_BUF_CLK,4,2               ; @RADC_BUF_CLK
	.comm	_HT_CHANNEL_WIDTH_80,4,2        ; @HT_CHANNEL_WIDTH_80
	.comm	_HARDWARE_TYPE_RTL8812AE,8,3    ; @HARDWARE_TYPE_RTL8812AE
	.no_dead_strip	_rtl8812ae_fixspur
.subsections_via_symbols
