	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_apply_tuning_caps
_ar9003_hw_apply_tuning_caps:           ## @ar9003_hw_apply_tuning_caps
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %r14d
	callq	_AR_SREV_9340
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_AR_SREV_9531
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	testb	$64, 8(%rbx)
	jne	LBB0_4
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	andl	$127, %r14d
	movq	_AR_CH0_XTAL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_AR_CH0_XTAL_CAPINDAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	callq	_REG_RMW_FIELD
	movl	(%r15), %esi
	movq	_AR_CH0_XTAL_CAPOUTDAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_RMW_FIELD                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_CH0_XTAL,4,2                ## @AR_CH0_XTAL
	.comm	_AR_CH0_XTAL_CAPINDAC,4,2       ## @AR_CH0_XTAL_CAPINDAC
	.comm	_AR_CH0_XTAL_CAPOUTDAC,4,2      ## @AR_CH0_XTAL_CAPOUTDAC
	.no_dead_strip	_ar9003_hw_apply_tuning_caps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_apply_tuning_caps
_ar9003_hw_apply_tuning_caps:           ; @ar9003_hw_apply_tuning_caps
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w20, [x8]
	bl	_AR_SREV_9340
	cbnz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_AR_SREV_9531
	cbnz	x0, LBB0_3
; %bb.2:
	ldrb	w8, [x19, #8]
	tbnz	w8, #6, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	and	w20, w20, #0x7f
Lloh0:
	adrp	x21, _AR_CH0_XTAL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AR_CH0_XTAL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _AR_CH0_XTAL_CAPINDAC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR_CH0_XTAL_CAPINDAC@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_REG_RMW_FIELD
Lloh5:
	adrp	x8, _AR_CH0_XTAL_CAPOUTDAC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AR_CH0_XTAL_CAPOUTDAC@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_REG_RMW_FIELD
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_CH0_XTAL,4,2                ; @AR_CH0_XTAL
	.comm	_AR_CH0_XTAL_CAPINDAC,4,2       ; @AR_CH0_XTAL_CAPINDAC
	.comm	_AR_CH0_XTAL_CAPOUTDAC,4,2      ; @AR_CH0_XTAL_CAPOUTDAC
	.no_dead_strip	_ar9003_hw_apply_tuning_caps
.subsections_via_symbols
