	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_reg_beacon
_handle_reg_beacon:                     ## @handle_reg_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rdx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %r15
	movl	%esi, %ebx
	shlq	$4, %rbx
	movq	(%r15,%rbx), %rax
	xorl	%edi, %edi
	cmpq	8(%rdx), %rax
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	cmpl	$0, 8(%r15,%rbx)
	je	LBB0_2
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	(%r15,%rbx), %rax
	addq	$8, %rax
	movl	$1, (%rax)
	movq	%r14, %rdi
	callq	_reg_is_world_roaming
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	movq	_WIPHY_FLAG_DISABLE_BEACON_HINTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_9
## %bb.4:
	leaq	(%r15,%rbx), %rdx
	movq	(%rdx), %rax
	movq	%rax, -40(%rbp)
	leaq	(%r15,%rbx), %rax
	addq	$12, %rax
	movl	12(%r15,%rbx), %ecx
	movl	%ecx, -28(%rbp)
	movl	12(%r15,%rbx), %ecx
	movq	_IEEE80211_CHAN_PASSIVE_SCAN@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%ecx, %esi
	je	LBB0_5
## %bb.6:
	notl	%esi
	andl	%esi, %ecx
	movl	%ecx, (%rax)
	movq	_IEEE80211_CHAN_NO_IBSS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%ecx, %esi
	jne	LBB0_7
	jmp	LBB0_8
LBB0_5:
	movq	_IEEE80211_CHAN_NO_IBSS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%ecx, %esi
	je	LBB0_9
LBB0_7:
	notl	%esi
	andl	%ecx, %esi
	movl	%esi, (%rax)
LBB0_8:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_nl80211_send_beacon_hint_event
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_WIPHY_FLAG_DISABLE_BEACON_HINTS,4,2 ## @WIPHY_FLAG_DISABLE_BEACON_HINTS
	.comm	_IEEE80211_CHAN_PASSIVE_SCAN,4,2 ## @IEEE80211_CHAN_PASSIVE_SCAN
	.comm	_IEEE80211_CHAN_NO_IBSS,4,2     ## @IEEE80211_CHAN_NO_IBSS
	.no_dead_strip	_handle_reg_beacon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_reg_beacon
_handle_reg_beacon:                     ; @handle_reg_beacon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldp	x9, x10, [x2]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x22, [x8]
	add	x20, x22, w1, uxtw #4
	ldr	x8, [x20]
	cmp	x8, x10
	cset	w0, ne
	bl	_likely
	cbnz	x0, LBB0_2
; %bb.1:
	mov	w21, w21
	add	x8, x22, x21, lsl #4
	ldr	w9, [x8, #8]!
	cbz	w9, LBB0_3
LBB0_2:
	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
	add	sp, sp, #64
	ret
LBB0_3:
	mov	w9, #1
	str	w9, [x8]
	mov	x0, x19
	bl	_reg_is_world_roaming
	cbz	w0, LBB0_2
; %bb.4:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _WIPHY_FLAG_DISABLE_BEACON_HINTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WIPHY_FLAG_DISABLE_BEACON_HINTS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.5:
	ldr	x8, [x20]
	str	x8, [sp]
	add	x8, x22, x21, lsl #4
	ldr	w9, [x8, #12]!
	str	w9, [sp, #12]
	ldr	w9, [x8]
Lloh3:
	adrp	x10, _IEEE80211_CHAN_PASSIVE_SCAN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IEEE80211_CHAN_PASSIVE_SCAN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.6:
	bic	w9, w9, w10
	str	w9, [x8]
Lloh6:
	adrp	x10, _IEEE80211_CHAN_NO_IBSS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IEEE80211_CHAN_NO_IBSS@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_8
	b	LBB0_9
LBB0_7:
Lloh9:
	adrp	x10, _IEEE80211_CHAN_NO_IBSS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IEEE80211_CHAN_NO_IBSS@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
LBB0_8:
	bic	w9, w9, w10
	str	w9, [x8]
LBB0_9:
	mov	x1, sp
	mov	x0, x19
	mov	x2, x20
	bl	_nl80211_send_beacon_hint_event
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WIPHY_FLAG_DISABLE_BEACON_HINTS,4,2 ; @WIPHY_FLAG_DISABLE_BEACON_HINTS
	.comm	_IEEE80211_CHAN_PASSIVE_SCAN,4,2 ; @IEEE80211_CHAN_PASSIVE_SCAN
	.comm	_IEEE80211_CHAN_NO_IBSS,4,2     ; @IEEE80211_CHAN_NO_IBSS
	.no_dead_strip	_handle_reg_beacon
.subsections_via_symbols
