	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_regulatory_hint_found_beacon   ## -- Begin function regulatory_hint_found_beacon
	.p2align	4, 0x90
_regulatory_hint_found_beacon:          ## @regulatory_hint_found_beacon
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	cmpq	$0, 24(%rsi)
	jne	LBB0_8
## %bb.1:
	movq	%rsi, %rbx
	movq	_IEEE80211_CHAN_RADAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	jne	LBB0_8
## %bb.2:
	movl	%edx, %r12d
	movq	%rdi, %r15
	movq	8(%rbx), %rax
	movq	_IEEE80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	16(%rbx), %edi
	callq	_freq_is_chan_12_13_14
	testl	%eax, %eax
	je	LBB0_8
LBB0_4:
	movq	_reg_pending_beacons_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_bh
	movq	%rbx, %rdi
	callq	_pending_reg_beacon
	movl	%eax, %r13d
	movq	_reg_pending_beacons_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_bh
	testl	%r13d, %r13d
	jne	LBB0_8
## %bb.5:
	movl	$8, %edi
	movl	%r12d, %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r12
	movl	16(%rbx), %r13d
	movl	%r13d, %edi
	callq	_ieee80211_frequency_to_channel
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_wiphy_name
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_REG_DBG_PRINT
	movq	%r12, %rdi
	addq	$4, %rdi
	movq	%rbx, %rsi
	movl	$32, %edx
	callq	_memcpy
	movq	_reg_pending_beacons_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	_reg_pending_beacons@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_list_add_tail
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	_reg_work@GOTPCREL(%rip), %rdi
	callq	_schedule_work
	jmp	LBB0_8
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CHAN_RADAR,4,2       ## @IEEE80211_CHAN_RADAR
	.comm	_IEEE80211_BAND_2GHZ,8,3        ## @IEEE80211_BAND_2GHZ
	.comm	_reg_pending_beacons_lock,4,2   ## @reg_pending_beacons_lock
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Found new beacon on frequency: %d MHz (Ch %d) on %s\n"

	.comm	_reg_pending_beacons,4,2        ## @reg_pending_beacons
	.comm	_reg_work,4,2                   ## @reg_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_regulatory_hint_found_beacon   ; -- Begin function regulatory_hint_found_beacon
	.p2align	2
_regulatory_hint_found_beacon:          ; @regulatory_hint_found_beacon
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x1, #24]
	cbnz	x8, LBB0_7
; %bb.1:
	mov	x19, x1
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _IEEE80211_CHAN_RADAR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_CHAN_RADAR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.2:
	mov	x21, x2
	mov	x20, x0
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _IEEE80211_BAND_2GHZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_BAND_2GHZ@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19, #16]
	bl	_freq_is_chan_12_13_14
	cbz	w0, LBB0_8
LBB0_4:
Lloh6:
	adrp	x22, _reg_pending_beacons_lock@GOTPAGE
Lloh7:
	ldr	x22, [x22, _reg_pending_beacons_lock@GOTPAGEOFF]
	mov	x0, x22
	bl	_spin_lock_bh
	mov	x0, x19
	bl	_pending_reg_beacon
	mov	x23, x0
	mov	x0, x22
	bl	_spin_unlock_bh
	cbnz	w23, LBB0_7
; %bb.5:
	mov	w0, #8
	mov	x1, x21
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.6:
	mov	x21, x0
	ldr	w22, [x19, #16]
	mov	x0, x22
	bl	_ieee80211_frequency_to_channel
	mov	x23, x0
	mov	x0, x20
	bl	_wiphy_name
	mov	x3, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x23
	bl	_REG_DBG_PRINT
	add	x0, x21, #4
	mov	x1, x19
	mov	w2, #32
	bl	_memcpy
Lloh10:
	adrp	x19, _reg_pending_beacons_lock@GOTPAGE
Lloh11:
	ldr	x19, [x19, _reg_pending_beacons_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_spin_lock_bh
Lloh12:
	adrp	x1, _reg_pending_beacons@GOTPAGE
Lloh13:
	ldr	x1, [x1, _reg_pending_beacons@GOTPAGEOFF]
	mov	x0, x21
	bl	_list_add_tail
	mov	x0, x19
	bl	_spin_unlock_bh
Lloh14:
	adrp	x0, _reg_work@GOTPAGE
Lloh15:
	ldr	x0, [x0, _reg_work@GOTPAGEOFF]
	bl	_schedule_work
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CHAN_RADAR,4,2       ; @IEEE80211_CHAN_RADAR
	.comm	_IEEE80211_BAND_2GHZ,8,3        ; @IEEE80211_BAND_2GHZ
	.comm	_reg_pending_beacons_lock,4,2   ; @reg_pending_beacons_lock
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Found new beacon on frequency: %d MHz (Ch %d) on %s\n"

	.comm	_reg_pending_beacons,4,2        ; @reg_pending_beacons
	.comm	_reg_work,4,2                   ; @reg_work
.subsections_via_symbols
