	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x02_dfs_set_domain
_mt76x02_dfs_set_domain:                ## @mt76x02_dfs_set_domain
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpl	%r15d, 4(%rbx)
	je	LBB0_2
## %bb.1:
	leaq	24(%rbx), %r12
	movq	%r12, %rdi
	callq	_tasklet_disable
	cmpq	$0, 16(%rbx)
	setne	%al
	movq	_NL80211_DFS_ETSI@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_mt76x02_edcca_init
	movl	%r15d, 4(%rbx)
	movq	%rbx, %rdi
	callq	_mt76x02_dfs_init_params
	movq	%r12, %rdi
	callq	_tasklet_enable
LBB0_2:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_DFS_ETSI,4,2           ## @NL80211_DFS_ETSI
	.no_dead_strip	_mt76x02_dfs_set_domain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x02_dfs_set_domain
_mt76x02_dfs_set_domain:                ; @mt76x02_dfs_set_domain
	.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
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x20, #4]
	cmp	w8, w21
	b.eq	LBB0_2
; %bb.1:
	add	x22, x20, #24
	mov	x0, x22
	bl	_tasklet_disable
	ldr	x8, [x20, #16]
	cmp	x8, #0
Lloh0:
	adrp	x8, _NL80211_DFS_ETSI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_DFS_ETSI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w8, w21, #0, ne
	cset	w8, eq
	str	w8, [x20]
	mov	x0, x20
	bl	_mt76x02_edcca_init
	str	w21, [x20, #4]
	mov	x0, x20
	bl	_mt76x02_dfs_init_params
	mov	x0, x22
	bl	_tasklet_enable
LBB0_2:
	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	_NL80211_DFS_ETSI,4,2           ; @NL80211_DFS_ETSI
	.no_dead_strip	_mt76x02_dfs_set_domain
.subsections_via_symbols
