	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zd_op_bss_info_changed
_zd_op_bss_info_changed:                ## @zd_op_bss_info_changed
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	callq	_zd_hw_mac
	movq	%rax, %rbx
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_zd_mac_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%r12d, %edx
	callq	_dev_dbg_f
	movq	(%rbx), %rax
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.12:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	4(%r14), %edi
	callq	_is_valid_ether_addr
	movl	%eax, %r13d
	jmp	LBB0_13
LBB0_3:
	movq	_BSS_CHANGED_BEACON@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_6
## %bb.4:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_ieee80211_beacon_get
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %r14
	leaq	20(%rbx), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_zd_chip_disable_hwint
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_zd_mac_config_beacon
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_zd_chip_enable_hwint
LBB0_6:
	movq	_BSS_CHANGED_BEACON_ENABLED@GOTPCREL(%rip), %rax
	movl	$1, %r13d
	testl	%r12d, (%rax)
	je	LBB0_7
## %bb.8:
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 16(%rax)
	je	LBB0_9
## %bb.10:
	movl	8(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	12(%rax), %r12d
	jmp	LBB0_11
LBB0_7:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_9:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
LBB0_11:
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	movl	%r12d, 32(%r15)
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, 28(%r15)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	leaq	20(%rbx), %rdi
	movq	(%r15), %rcx
	movl	%r12d, %esi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_zd_set_beacon_interval
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	-64(%rbp), %r12d                ## 4-byte Reload
LBB0_13:
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movl	%r13d, 8(%r15)
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	_BSS_CHANGED_ERP_PREAMBLE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_14
## %bb.15:
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movl	(%r14), %eax
	movl	%eax, 16(%r15)
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movl	(%r14), %esi
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_rts_cts                    ## TAILCALL
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"changes: %x\n"

	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ## @NL80211_IFTYPE_MESH_POINT
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_BSS_CHANGED_BEACON,4,2         ## @BSS_CHANGED_BEACON
	.comm	_BSS_CHANGED_BEACON_ENABLED,4,2 ## @BSS_CHANGED_BEACON_ENABLED
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_BSS_CHANGED_ERP_PREAMBLE,4,2   ## @BSS_CHANGED_ERP_PREAMBLE
	.no_dead_strip	_zd_op_bss_info_changed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zd_op_bss_info_changed
_zd_op_bss_info_changed:                ; @zd_op_bss_info_changed
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x23, x1
	mov	x22, x0
	bl	_zd_hw_mac
	mov	x20, x0
	bl	_zd_mac_dev
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg_f
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh6:
	ldr	x10, [x10, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
Lloh8:
	adrp	x11, _NL80211_IFTYPE_AP@GOTPAGE
Lloh9:
	ldr	x11, [x11, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_7
; %bb.1:
Lloh11:
	adrp	x8, _BSS_CHANGED_BEACON@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BSS_CHANGED_BEACON@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x22
	mov	x1, x23
	bl	_ieee80211_beacon_get
	cbz	x0, LBB0_4
; %bb.3:
	mov	x23, x0
	add	x24, x20, #20
	mov	x0, x24
	bl	_zd_chip_disable_hwint
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	bl	_zd_mac_config_beacon
	mov	x0, x24
	bl	_zd_chip_enable_hwint
LBB0_4:
Lloh14:
	adrp	x8, _BSS_CHANGED_BEACON_ENABLED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BSS_CHANGED_BEACON_ENABLED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_10
; %bb.5:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.6:
	ldp	w23, w22, [x19, #8]
	b	LBB0_9
LBB0_7:
	ldr	w0, [x19, #4]
	bl	_is_valid_ether_addr
	mov	x23, x0
	b	LBB0_11
LBB0_8:
	mov	w23, #0
	mov	w22, #0
LBB0_9:
	add	x24, x20, #12
	mov	x0, x24
	bl	_spin_lock_irq
	str	w22, [x20, #32]
Lloh17:
	adrp	x8, _jiffies@GOTPAGE
Lloh18:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	stp	w8, w23, [x20, #24]
	mov	x0, x24
	bl	_spin_unlock_irq
	add	x0, x20, #20
	ldr	x3, [x20]
	mov	x1, x23
	mov	x2, x22
	bl	_zd_set_beacon_interval
LBB0_10:
	mov	w23, #1
LBB0_11:
	add	x22, x20, #12
	mov	x0, x22
	bl	_spin_lock_irq
	str	w23, [x20, #8]
	mov	x0, x22
	bl	_spin_unlock_irq
Lloh20:
	adrp	x8, _BSS_CHANGED_ERP_PREAMBLE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BSS_CHANGED_ERP_PREAMBLE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x22
	bl	_spin_lock_irq
	ldr	w8, [x19]
	str	w8, [x20, #16]
	mov	x0, x22
	bl	_spin_unlock_irq
	ldr	w1, [x19]
	mov	x0, x20
	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
	b	_set_rts_cts
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"changes: %x\n"

	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ; @NL80211_IFTYPE_MESH_POINT
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_BSS_CHANGED_BEACON,4,2         ; @BSS_CHANGED_BEACON
	.comm	_BSS_CHANGED_BEACON_ENABLED,4,2 ; @BSS_CHANGED_BEACON_ENABLED
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_BSS_CHANGED_ERP_PREAMBLE,4,2   ; @BSS_CHANGED_ERP_PREAMBLE
	.no_dead_strip	_zd_op_bss_info_changed
.subsections_via_symbols
