	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_set_coverage_class
_ath9k_set_coverage_class:              ## @ath9k_set_coverage_class
	.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	%rsi, %r15
	movq	(%rdi), %rbx
	movq	8(%rbx), %r14
	movq	_CONFIG_ATH9K_TX99@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %rdi
	callq	_mutex_lock
	testq	%r15, %r15
	js	LBB0_5
## %bb.2:
	movq	%r15, 8(%r14)
	cmpl	$0, (%r14)
	je	LBB0_4
## %bb.3:
	movl	$0, (%r14)
	movq	%rbx, %rdi
	callq	_ath_calcrxfilter
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ath9k_hw_setrxfilter
LBB0_4:
	movq	%rbx, %rdi
	callq	_ath9k_ps_wakeup
	movq	%r14, %rdi
	callq	_ath9k_hw_init_global_settings
	movq	%rbx, %rdi
	callq	_ath9k_ps_restore
	jmp	LBB0_7
LBB0_5:
	cmpl	$0, (%r14)
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_ath9k_enable_dynack
LBB0_7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_ATH9K_TX99,4,2          ## @CONFIG_ATH9K_TX99
	.no_dead_strip	_ath9k_set_coverage_class
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_set_coverage_class
_ath9k_set_coverage_class:              ; @ath9k_set_coverage_class
	.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	x21, x1
	ldr	x19, [x0]
	ldr	x20, [x19, #8]
Lloh0:
	adrp	x8, _CONFIG_ATH9K_TX99@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_ATH9K_TX99@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_2
; %bb.1:
	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_2:
	mov	x0, x19
	bl	_mutex_lock
	tbnz	x21, #63, LBB0_6
; %bb.3:
	str	x21, [x20, #8]
	ldr	w8, [x20]
	cbz	w8, LBB0_5
; %bb.4:
	str	wzr, [x20]
	mov	x0, x19
	bl	_ath_calcrxfilter
	mov	x1, x0
	mov	x0, x20
	bl	_ath9k_hw_setrxfilter
LBB0_5:
	mov	x0, x19
	bl	_ath9k_ps_wakeup
	mov	x0, x20
	bl	_ath9k_hw_init_global_settings
	mov	x0, x19
	bl	_ath9k_ps_restore
	b	LBB0_8
LBB0_6:
	ldr	w8, [x20]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_ath9k_enable_dynack
LBB0_8:
	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	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_ATH9K_TX99,4,2          ; @CONFIG_ATH9K_TX99
	.no_dead_strip	_ath9k_set_coverage_class
.subsections_via_symbols
