	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ath_reg_apply_beaconing_flags
___ath_reg_apply_beaconing_flags:       ## @__ath_reg_apply_beaconing_flags
	.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
	movq	%rcx, %r15
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	8(%rcx), %edi
	callq	_ath_is_radar_freq
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movl	(%r15), %eax
	movq	_IEEE80211_CHAN_RADAR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpl	$128, %r12d
	je	LBB0_5
## %bb.3:
	cmpl	$129, %r12d
	je	LBB0_4
## %bb.6:
	cmpl	$0, 4(%r15)
	je	LBB0_8
## %bb.7:
	movq	_IEEE80211_CHAN_NO_IR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r15)
	jmp	LBB0_8
LBB0_5:
	movq	%rbx, %rdi
	callq	_ath_reg_dyn_country_user_allow
	testl	%eax, %eax
	je	LBB0_8
LBB0_4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath_force_clear_no_ir_chan     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CHAN_RADAR,4,2       ## @IEEE80211_CHAN_RADAR
	.comm	_IEEE80211_CHAN_NO_IR,4,2       ## @IEEE80211_CHAN_NO_IR
	.no_dead_strip	___ath_reg_apply_beaconing_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ath_reg_apply_beaconing_flags
___ath_reg_apply_beaconing_flags:       ; @__ath_reg_apply_beaconing_flags
	.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, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x3, #8]
	bl	_ath_is_radar_freq
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _IEEE80211_CHAN_RADAR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_CHAN_RADAR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
	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_3:
	cmp	w22, #128
	b.eq	LBB0_7
; %bb.4:
	cmp	w22, #129
	b.eq	LBB0_8
; %bb.5:
	ldr	w9, [x19, #4]
	cbz	w9, LBB0_2
; %bb.6:
Lloh3:
	adrp	x9, _IEEE80211_CHAN_NO_IR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_CHAN_NO_IR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x19]
	b	LBB0_2
LBB0_7:
	mov	x0, x21
	bl	_ath_reg_dyn_country_user_allow
	cbz	w0, LBB0_2
LBB0_8:
	mov	x0, x20
	mov	x1, 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	_ath_force_clear_no_ir_chan
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CHAN_RADAR,4,2       ; @IEEE80211_CHAN_RADAR
	.comm	_IEEE80211_CHAN_NO_IR,4,2       ; @IEEE80211_CHAN_NO_IR
	.no_dead_strip	___ath_reg_apply_beaconing_flags
.subsections_via_symbols
