	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_start_nfcal           ## -- Begin function ath9k_hw_start_nfcal
	.p2align	4, 0x90
_ath9k_hw_start_nfcal:                  ## @ath9k_hw_start_nfcal
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	_NFCAL_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_bit
LBB0_2:
	movq	_AR_PHY_AGC_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_AR_PHY_AGC_CONTROL_ENABLE_NF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_REG_SET_BIT
	movl	(%r15), %esi
	movq	_AR_PHY_AGC_CONTROL_NO_UPDATE_NF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	callq	_REG_CLR_BIT
	jmp	LBB0_5
LBB0_4:
	callq	_REG_SET_BIT
LBB0_5:
	movl	(%r15), %esi
	movq	_AR_PHY_AGC_CONTROL_NF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_SET_BIT                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NFCAL_PENDING,4,2              ## @NFCAL_PENDING
	.comm	_AR_PHY_AGC_CONTROL,4,2         ## @AR_PHY_AGC_CONTROL
	.comm	_AR_PHY_AGC_CONTROL_ENABLE_NF,4,2 ## @AR_PHY_AGC_CONTROL_ENABLE_NF
	.comm	_AR_PHY_AGC_CONTROL_NO_UPDATE_NF,4,2 ## @AR_PHY_AGC_CONTROL_NO_UPDATE_NF
	.comm	_AR_PHY_AGC_CONTROL_NF,4,2      ## @AR_PHY_AGC_CONTROL_NF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_start_nfcal           ; -- Begin function ath9k_hw_start_nfcal
	.p2align	2
_ath9k_hw_start_nfcal:                  ; @ath9k_hw_start_nfcal
	.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	x20, x1
	mov	x19, x0
	ldr	x1, [x0]
	cbz	x1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _NFCAL_PENDING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFCAL_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_set_bit
LBB0_2:
Lloh3:
	adrp	x21, _AR_PHY_AGC_CONTROL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _AR_PHY_AGC_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _AR_PHY_AGC_CONTROL_ENABLE_NF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AR_PHY_AGC_CONTROL_ENABLE_NF@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_SET_BIT
	ldr	w1, [x21]
Lloh8:
	adrp	x8, _AR_PHY_AGC_CONTROL_NO_UPDATE_NF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AR_PHY_AGC_CONTROL_NO_UPDATE_NF@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	cbz	w20, LBB0_4
; %bb.3:
	bl	_REG_CLR_BIT
	b	LBB0_5
LBB0_4:
	bl	_REG_SET_BIT
LBB0_5:
	ldr	w1, [x21]
Lloh11:
	adrp	x8, _AR_PHY_AGC_CONTROL_NF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AR_PHY_AGC_CONTROL_NF@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	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_SET_BIT
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NFCAL_PENDING,4,2              ; @NFCAL_PENDING
	.comm	_AR_PHY_AGC_CONTROL,4,2         ; @AR_PHY_AGC_CONTROL
	.comm	_AR_PHY_AGC_CONTROL_ENABLE_NF,4,2 ; @AR_PHY_AGC_CONTROL_ENABLE_NF
	.comm	_AR_PHY_AGC_CONTROL_NO_UPDATE_NF,4,2 ; @AR_PHY_AGC_CONTROL_NO_UPDATE_NF
	.comm	_AR_PHY_AGC_CONTROL_NF,4,2      ; @AR_PHY_AGC_CONTROL_NF
.subsections_via_symbols
