	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_bstuck_nfcal          ## -- Begin function ath9k_hw_bstuck_nfcal
	.p2align	4, 0x90
_ath9k_hw_bstuck_nfcal:                 ## @ath9k_hw_bstuck_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_NFCAL_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_AR_PHY_AGC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_REG_READ
	movq	_AR_PHY_AGC_CONTROL_NF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_5
## %bb.4:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_ath9k_hw_getnf
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ath9k_hw_start_nfcal
LBB0_5:
	movq	_NFCAL_INTF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_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_NF,4,2      ## @AR_PHY_AGC_CONTROL_NF
	.comm	_NFCAL_INTF,4,2                 ## @NFCAL_INTF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_bstuck_nfcal          ; -- Begin function ath9k_hw_bstuck_nfcal
	.p2align	2
_ath9k_hw_bstuck_nfcal:                 ; @ath9k_hw_bstuck_nfcal
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	x19, [x0, #8]
	cmp	x19, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x8, _NFCAL_PENDING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFCAL_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	w0, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _AR_PHY_AGC_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR_PHY_AGC_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_REG_READ
Lloh6:
	adrp	x8, _AR_PHY_AGC_CONTROL_NF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR_PHY_AGC_CONTROL_NF@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_6
; %bb.4:
	ldr	w1, [x20]
	mov	x0, x20
	bl	_ath9k_hw_getnf
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	mov	w1, #1
	bl	_ath9k_hw_start_nfcal
LBB0_6:
Lloh9:
	adrp	x8, _NFCAL_INTF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NFCAL_INTF@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_set_bit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.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_NF,4,2      ; @AR_PHY_AGC_CONTROL_NF
	.comm	_NFCAL_INTF,4,2                 ; @NFCAL_INTF
.subsections_via_symbols
