	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl_reg_apply_active_scan_flags
__rtl_reg_apply_active_scan_flags:      ## @_rtl_reg_apply_active_scan_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	(%rdi), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.1:
	movq	_NL80211_REGDOM_SET_BY_COUNTRY_IE@GOTPCREL(%rip), %rax
	movq	(%rbx), %r15
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.5:
	movq	%rdi, %r12
	movl	92(%r15), %esi
	callq	_freq_reg_info
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	_NL80211_RRF_PASSIVE_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_9
## %bb.7:
	movl	88(%r15), %eax
	movq	_IEEE80211_CHAN_PASSIVE_SCAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_9
## %bb.8:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 88(%r15)
LBB0_9:
	movq	(%rbx), %r15
	movl	100(%r15), %esi
	movq	%r12, %rdi
	callq	_freq_reg_info
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	_NL80211_RRF_PASSIVE_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_13
## %bb.11:
	movl	96(%r15), %ecx
	movq	_IEEE80211_CHAN_PASSIVE_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, %eax
	jne	LBB0_12
	jmp	LBB0_13
LBB0_2:
	movl	88(%r15), %ecx
	movq	_IEEE80211_CHAN_PASSIVE_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %edx
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, 88(%r15)
LBB0_4:
	movl	96(%r15), %ecx
	testl	%eax, %ecx
	je	LBB0_13
LBB0_12:
	addq	$96, %r15
	notl	%eax
	andl	%ecx, %eax
	movl	%eax, (%r15)
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_NL80211_REGDOM_SET_BY_COUNTRY_IE,4,2 ## @NL80211_REGDOM_SET_BY_COUNTRY_IE
	.comm	_IEEE80211_CHAN_PASSIVE_SCAN,4,2 ## @IEEE80211_CHAN_PASSIVE_SCAN
	.comm	_NL80211_RRF_PASSIVE_SCAN,4,2   ## @NL80211_RRF_PASSIVE_SCAN
	.no_dead_strip	__rtl_reg_apply_active_scan_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl_reg_apply_active_scan_flags
__rtl_reg_apply_active_scan_flags:      ; @_rtl_reg_apply_active_scan_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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x22, [x8, x9, lsl #3]
	cbz	x22, LBB0_13
; %bb.1:
Lloh3:
	adrp	x8, _NL80211_REGDOM_SET_BY_COUNTRY_IE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_REGDOM_SET_BY_COUNTRY_IE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x21, [x22]
	cmp	w8, w1
	b.ne	LBB0_9
; %bb.2:
	mov	x19, x0
	ldr	w1, [x21, #92]
	bl	_freq_reg_info
	mov	x20, x0
	bl	_IS_ERR
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _NL80211_RRF_PASSIVE_SCAN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NL80211_RRF_PASSIVE_SCAN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x21, #88]
Lloh9:
	adrp	x9, _IEEE80211_CHAN_PASSIVE_SCAN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_CHAN_PASSIVE_SCAN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	bic	w8, w8, w9
	str	w8, [x21, #88]
LBB0_6:
	ldr	x21, [x22]
	ldr	w1, [x21, #100]
	mov	x0, x19
	bl	_freq_reg_info
	mov	x19, x0
	bl	_IS_ERR
	cbnz	w0, LBB0_13
; %bb.7:
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _NL80211_RRF_PASSIVE_SCAN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NL80211_RRF_PASSIVE_SCAN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_13
; %bb.8:
	ldr	w9, [x21, #96]!
Lloh15:
	adrp	x8, _IEEE80211_CHAN_PASSIVE_SCAN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IEEE80211_CHAN_PASSIVE_SCAN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w9
	b.ne	LBB0_12
	b	LBB0_13
LBB0_9:
	ldr	w9, [x21, #88]
Lloh18:
	adrp	x8, _IEEE80211_CHAN_PASSIVE_SCAN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IEEE80211_CHAN_PASSIVE_SCAN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_11
; %bb.10:
	bic	w9, w9, w8
	str	w9, [x21, #88]
LBB0_11:
	ldr	w9, [x21, #96]!
	tst	w9, w8
	b.eq	LBB0_13
LBB0_12:
	bic	w8, w9, w8
	str	w8, [x21]
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_REGDOM_SET_BY_COUNTRY_IE,4,2 ; @NL80211_REGDOM_SET_BY_COUNTRY_IE
	.comm	_IEEE80211_CHAN_PASSIVE_SCAN,4,2 ; @IEEE80211_CHAN_PASSIVE_SCAN
	.comm	_NL80211_RRF_PASSIVE_SCAN,4,2   ; @NL80211_RRF_PASSIVE_SCAN
	.no_dead_strip	__rtl_reg_apply_active_scan_flags
.subsections_via_symbols
