	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_doubler_fix
_ar9003_doubler_fix:                    ## @ar9003_doubler_fix
	.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, %rbx
	callq	_AR_SREV_9300
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_AR_SREV_9580
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_AR_SREV_9550
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	movq	_AR_PHY_65NM_CH0_RXTX2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rax, %r13
	movq	_AR_PHY_65NM_CH0_RXTX2_SYNTHON_MASK_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %al
	movq	%rcx, %r15
	movq	_AR_PHY_65NM_CH0_RXTX2_SYNTHOVR_MASK_S@GOTPCREL(%rip), %r12
	movb	(%r12), %cl
	movl	$1, %r14d
	movl	$1, %edx
	shll	%cl, %edx
	btsl	%eax, %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW
	movq	_AR_PHY_65NM_CH1_RXTX2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	(%r15), %al
	movb	(%r12), %cl
	movl	$1, %edx
	shll	%cl, %edx
	btsl	%eax, %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW
	movq	_AR_PHY_65NM_CH2_RXTX2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	(%r15), %al
	movb	(%r12), %cl
	movl	$1, %edx
	shll	%cl, %edx
	btsl	%eax, %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW
	movl	$200, %edi
	callq	_udelay
	movl	(%r13), %esi
	movq	%r13, %r12
	movq	_AR_PHY_65NM_CH0_RXTX2_SYNTHON_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_REG_CLR_BIT
	movq	_AR_PHY_65NM_CH1_RXTX2@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_REG_CLR_BIT
	movq	_AR_PHY_65NM_CH2_RXTX2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_REG_CLR_BIT
	movl	$1, %edi
	callq	_udelay
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movl	(%r15), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_65NM_CH2_RXTX2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movl	$200, %edi
	callq	_udelay
	movq	_AR_PHY_65NM_CH0_SYNTH12@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_65NM_CH0_SYNTH12_VREFMUL3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$15, %ecx
	callq	_REG_RMW_FIELD
	movl	(%r12), %esi
	movq	_AR_PHY_65NM_CH0_RXTX2_SYNTHON_MASK_S@GOTPCREL(%rip), %r13
	movb	(%r13), %dl
	movq	_AR_PHY_65NM_CH0_RXTX2_SYNTHOVR_MASK_S@GOTPCREL(%rip), %r12
	movb	(%r12), %cl
	movl	$1, %eax
	shll	%cl, %eax
	btsl	%edx, %eax
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_REG_RMW
	movl	(%r15), %esi
	movb	(%r13), %dl
	movb	(%r12), %cl
	movl	$1, %eax
	shll	%cl, %eax
	btsl	%edx, %eax
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_REG_RMW
	movb	(%r12), %cl
	shll	%cl, %r14d
	movq	_AR_PHY_65NM_CH2_RXTX2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	(%r13), %al
	btsl	%eax, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_RMW                        ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_PHY_65NM_CH0_RXTX2,4,2      ## @AR_PHY_65NM_CH0_RXTX2
	.comm	_AR_PHY_65NM_CH0_RXTX2_SYNTHON_MASK_S,4,2 ## @AR_PHY_65NM_CH0_RXTX2_SYNTHON_MASK_S
	.comm	_AR_PHY_65NM_CH0_RXTX2_SYNTHOVR_MASK_S,4,2 ## @AR_PHY_65NM_CH0_RXTX2_SYNTHOVR_MASK_S
	.comm	_AR_PHY_65NM_CH1_RXTX2,4,2      ## @AR_PHY_65NM_CH1_RXTX2
	.comm	_AR_PHY_65NM_CH2_RXTX2,4,2      ## @AR_PHY_65NM_CH2_RXTX2
	.comm	_AR_PHY_65NM_CH0_RXTX2_SYNTHON_MASK,4,2 ## @AR_PHY_65NM_CH0_RXTX2_SYNTHON_MASK
	.comm	_AR_PHY_65NM_CH0_SYNTH12,4,2    ## @AR_PHY_65NM_CH0_SYNTH12
	.comm	_AR_PHY_65NM_CH0_SYNTH12_VREFMUL3,4,2 ## @AR_PHY_65NM_CH0_SYNTH12_VREFMUL3
	.no_dead_strip	_ar9003_doubler_fix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_doubler_fix
_ar9003_doubler_fix:                    ; @ar9003_doubler_fix
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_AR_SREV_9300
	cbnz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_AR_SREV_9580
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_AR_SREV_9550
	cbz	x0, LBB0_4
LBB0_3:
Lloh0:
	adrp	x23, _AR_PHY_65NM_CH0_RXTX2@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AR_PHY_65NM_CH0_RXTX2@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x21, _AR_PHY_65NM_CH0_RXTX2_SYNTHON_MASK_S@GOTPAGE
Lloh3:
	ldr	x21, [x21, _AR_PHY_65NM_CH0_RXTX2_SYNTHON_MASK_S@GOTPAGEOFF]
	ldr	w8, [x21]
	mov	w20, #1
	lsl	w8, w20, w8
Lloh4:
	adrp	x22, _AR_PHY_65NM_CH0_RXTX2_SYNTHOVR_MASK_S@GOTPAGE
Lloh5:
	ldr	x22, [x22, _AR_PHY_65NM_CH0_RXTX2_SYNTHOVR_MASK_S@GOTPAGEOFF]
	ldr	w9, [x22]
	lsl	w9, w20, w9
	orr	w2, w9, w8
	mov	x0, x19
	mov	w3, #0
	bl	_REG_RMW
Lloh6:
	adrp	x24, _AR_PHY_65NM_CH1_RXTX2@GOTPAGE
Lloh7:
	ldr	x24, [x24, _AR_PHY_65NM_CH1_RXTX2@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w8, [x21]
	lsl	w8, w20, w8
	ldr	w9, [x22]
	lsl	w9, w20, w9
	orr	w2, w9, w8
	mov	x0, x19
	mov	w3, #0
	bl	_REG_RMW
Lloh8:
	adrp	x25, _AR_PHY_65NM_CH2_RXTX2@GOTPAGE
Lloh9:
	ldr	x25, [x25, _AR_PHY_65NM_CH2_RXTX2@GOTPAGEOFF]
	ldr	w1, [x25]
	ldr	w8, [x21]
	lsl	w8, w20, w8
	ldr	w9, [x22]
	lsl	w9, w20, w9
	orr	w2, w9, w8
	mov	x0, x19
	mov	w3, #0
	bl	_REG_RMW
	mov	w0, #200
	bl	_udelay
	ldr	w1, [x23]
Lloh10:
	adrp	x26, _AR_PHY_65NM_CH0_RXTX2_SYNTHON_MASK@GOTPAGE
Lloh11:
	ldr	x26, [x26, _AR_PHY_65NM_CH0_RXTX2_SYNTHON_MASK@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x0, x19
	bl	_REG_CLR_BIT
	ldr	w1, [x24]
	ldr	w2, [x26]
	mov	x0, x19
	bl	_REG_CLR_BIT
	ldr	w1, [x25]
	ldr	w2, [x26]
	mov	x0, x19
	bl	_REG_CLR_BIT
	mov	w0, #1
	bl	_udelay
	ldr	w1, [x23]
	ldr	w2, [x26]
	mov	x0, x19
	mov	w3, #1
	bl	_REG_RMW_FIELD
	ldr	w1, [x24]
	ldr	w2, [x26]
	mov	x0, x19
	mov	w3, #1
	bl	_REG_RMW_FIELD
	ldr	w1, [x25]
	ldr	w2, [x26]
	mov	x0, x19
	mov	w3, #1
	bl	_REG_RMW_FIELD
	mov	w0, #200
	bl	_udelay
Lloh12:
	adrp	x8, _AR_PHY_65NM_CH0_SYNTH12@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AR_PHY_65NM_CH0_SYNTH12@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _AR_PHY_65NM_CH0_SYNTH12_VREFMUL3@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AR_PHY_65NM_CH0_SYNTH12_VREFMUL3@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #15
	bl	_REG_RMW_FIELD
	ldr	w1, [x23]
	ldr	w8, [x21]
	lsl	w8, w20, w8
	ldr	w9, [x22]
	lsl	w9, w20, w9
	orr	w3, w9, w8
	mov	x0, x19
	mov	w2, #0
	bl	_REG_RMW
	ldr	w1, [x24]
	ldr	w8, [x21]
	lsl	w8, w20, w8
	ldr	w9, [x22]
	lsl	w9, w20, w9
	orr	w3, w9, w8
	mov	x0, x19
	mov	w2, #0
	bl	_REG_RMW
	ldr	w1, [x25]
	ldr	w8, [x21]
	lsl	w8, w20, w8
	ldr	w9, [x22]
	lsl	w9, w20, w9
	orr	w3, w9, w8
	mov	x0, x19
	mov	w2, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_REG_RMW
LBB0_4:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_PHY_65NM_CH0_RXTX2,4,2      ; @AR_PHY_65NM_CH0_RXTX2
	.comm	_AR_PHY_65NM_CH0_RXTX2_SYNTHON_MASK_S,4,2 ; @AR_PHY_65NM_CH0_RXTX2_SYNTHON_MASK_S
	.comm	_AR_PHY_65NM_CH0_RXTX2_SYNTHOVR_MASK_S,4,2 ; @AR_PHY_65NM_CH0_RXTX2_SYNTHOVR_MASK_S
	.comm	_AR_PHY_65NM_CH1_RXTX2,4,2      ; @AR_PHY_65NM_CH1_RXTX2
	.comm	_AR_PHY_65NM_CH2_RXTX2,4,2      ; @AR_PHY_65NM_CH2_RXTX2
	.comm	_AR_PHY_65NM_CH0_RXTX2_SYNTHON_MASK,4,2 ; @AR_PHY_65NM_CH0_RXTX2_SYNTHON_MASK
	.comm	_AR_PHY_65NM_CH0_SYNTH12,4,2    ; @AR_PHY_65NM_CH0_SYNTH12
	.comm	_AR_PHY_65NM_CH0_SYNTH12_VREFMUL3,4,2 ; @AR_PHY_65NM_CH0_SYNTH12_VREFMUL3
	.no_dead_strip	_ar9003_doubler_fix
.subsections_via_symbols
