	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_wmi_bssinfo_event_rx
_ath6kl_wmi_bssinfo_event_rx:           ## @ath6kl_wmi_bssinfo_event_rx
	.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
	cmpl	$24, %edx
	ja	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_24
LBB0_3:
	movq	%rcx, %r14
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_ATH6KL_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%rsi), %edx
	movl	(%rsi), %ecx
	leal	-95(%rcx), %r8d
	movl	16(%rsi), %r9d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	pushq	8(%rbx)
	callq	_ath6kl_dbg
	addq	$16, %rsp
	movq	8(%rbx), %rax
	movq	_BEACON_FTYPE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%r15d, %r15d
	cmpq	%rcx, %rax
	je	LBB0_5
## %bb.4:
	movq	_PROBERESP_FTYPE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_5
LBB0_24:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	cmpq	%rcx, %rax
	jne	LBB0_8
## %bb.6:
	movq	_CLEAR_BSSFILTER_ON_BEACON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r14), %r13
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_CLEAR_BSSFILTER_ON_BEACON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_clear_bit
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movl	16(%r14), %esi
	movq	_NONE_BSS_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_ath6kl_wmi_bssfilter_cmd
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r13d
	movl	20(%rbx), %edi
	callq	_le16_to_cpu
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ieee80211_get_channel
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	movq	%rax, %r13
	leal	-24(%r12), %eax
	cmpl	$11, %eax
	jle	LBB0_1
## %bb.10:
	movq	8(%rbx), %rax
	movq	_BEACON_FTYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.11:
	movq	_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r14), %rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_test_bit
	movq	_BEACON_FTYPE@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	movl	16(%rbx), %edi
	movl	12(%r14), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcmp
	movq	_BEACON_FTYPE@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_13
LBB0_16:
	leaq	96(%rbx), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	8(%rbx), %rax
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.18:
	movq	_CFG80211_BSS_FTYPE_BEACON@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_17:
	movq	_CFG80211_BSS_FTYPE_PRESP@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	16(%rbx), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	callq	_get_unaligned_le64
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	leaq	116(%rbx), %rdi
	callq	_get_unaligned_le16
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leaq	112(%rbx), %rdi
	callq	_get_unaligned_le16
                                        ## kill: def $eax killed $eax def $rax
	addl	$-36, %r12d
	imull	$100, (%rbx), %r10d
	addq	$144, %rbx
	addl	$-9500, %r10d                   ## imm = 0xDAE4
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	subq	$8, %rsp
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r11
	pushq	%r10
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	callq	_cfg80211_inform_bss
	addq	$48, %rsp
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edi
	movq	%rax, %rsi
	callq	_cfg80211_put_bss
	movq	_SCHED_SCANNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r14), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_timer_pending
	testl	%eax, %eax
	jne	LBB0_24
## %bb.23:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_ATH6KL_SCHED_SCAN_RESULT_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mod_timer
	jmp	LBB0_24
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_13:
	movq	_WLAN_EID_TIM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	144(%rbx), %rsi
	leal	-36(%r12), %edx
	callq	_cfg80211_find_ie
	movq	_BEACON_FTYPE@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	cmpl	$2, 4(%rax)
	jl	LBB0_16
## %bb.15:
	movl	12(%rax), %eax
	movl	%eax, (%r14)
	movq	_DTIM_PERIOD_AVAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_bit
	movq	_BEACON_FTYPE@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATH6KL_DBG_WMI,4,2             ## @ATH6KL_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bss info evt - ch %u, snr %d, rssi %d, bssid \"%pM\" frame_type=%d\n"

	.comm	_BEACON_FTYPE,8,3               ## @BEACON_FTYPE
	.comm	_PROBERESP_FTYPE,8,3            ## @PROBERESP_FTYPE
	.comm	_CLEAR_BSSFILTER_ON_BEACON,4,2  ## @CLEAR_BSSFILTER_ON_BEACON
	.comm	_NONE_BSS_FILTER,4,2            ## @NONE_BSS_FILTER
	.comm	_CONNECTED,4,2                  ## @CONNECTED
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_WLAN_EID_TIM,4,2               ## @WLAN_EID_TIM
	.comm	_DTIM_PERIOD_AVAIL,4,2          ## @DTIM_PERIOD_AVAIL
	.comm	_CFG80211_BSS_FTYPE_BEACON,4,2  ## @CFG80211_BSS_FTYPE_BEACON
	.comm	_CFG80211_BSS_FTYPE_PRESP,4,2   ## @CFG80211_BSS_FTYPE_PRESP
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SCHED_SCANNING,4,2             ## @SCHED_SCANNING
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_ATH6KL_SCHED_SCAN_RESULT_DELAY,4,2 ## @ATH6KL_SCHED_SCAN_RESULT_DELAY
	.no_dead_strip	_ath6kl_wmi_bssinfo_event_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_wmi_bssinfo_event_rx
_ath6kl_wmi_bssinfo_event_rx:           ; @ath6kl_wmi_bssinfo_event_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	subs	w23, w2, #24
	b.hi	LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_3:
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	ldr	x28, [x0]
Lloh2:
	adrp	x8, _ATH6KL_DBG_WMI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ATH6KL_DBG_WMI@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w3, [x1]
	sub	w4, w3, #95
	ldp	w5, w2, [x1, #16]
	ldr	x6, [x1, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ath6kl_dbg
	ldr	x8, [x20, #8]
Lloh7:
	adrp	x25, _BEACON_FTYPE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _BEACON_FTYPE@GOTPAGEOFF]
	ldr	x9, [x25]
Lloh9:
	adrp	x10, _PROBERESP_FTYPE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PROBERESP_FTYPE@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_16
; %bb.4:
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
Lloh12:
	adrp	x24, _CLEAR_BSSFILTER_ON_BEACON@GOTPAGE
Lloh13:
	ldr	x24, [x24, _CLEAR_BSSFILTER_ON_BEACON@GOTPAGEOFF]
	ldr	w0, [x24]
	add	x22, x19, #8
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x24]
	mov	x1, x22
	bl	_clear_bit
	ldr	w0, [x28, #4]
	ldr	w1, [x19, #16]
Lloh14:
	adrp	x8, _NONE_BSS_FILTER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NONE_BSS_FILTER@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_ath6kl_wmi_bssfilter_cmd
LBB0_7:
	ldr	w22, [x28]
	ldr	w0, [x20, #20]
	bl	_le16_to_cpu
	mov	x1, x0
	mov	x0, x22
	bl	_ieee80211_get_channel
	cbz	x0, LBB0_1
; %bb.8:
	cmp	w23, #11
	b.le	LBB0_1
; %bb.9:
	mov	x22, x0
	add	x23, x20, #96
	ldr	x8, [x20, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:
Lloh17:
	adrp	x8, _CONNECTED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CONNECTED@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	add	x24, x19, #8
	mov	x1, x24
	bl	_test_bit
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w0, [x20, #16]
	ldr	w1, [x19, #12]
Lloh20:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	bl	_memcmp
	cbz	x0, LBB0_19
LBB0_12:
	ldr	w24, [x28]
	ldr	x8, [x20, #8]
	ldr	x9, [x25]
Lloh23:
	adrp	x10, _CFG80211_BSS_FTYPE_BEACON@GOTPAGE
Lloh24:
	ldr	x10, [x10, _CFG80211_BSS_FTYPE_BEACON@GOTPAGEOFF]
Lloh25:
	adrp	x11, _CFG80211_BSS_FTYPE_PRESP@GOTPAGE
Lloh26:
	ldr	x11, [x11, _CFG80211_BSS_FTYPE_PRESP@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w25, [x8]
	ldr	w26, [x20, #16]
	mov	x0, x23
	bl	_get_unaligned_le64
	mov	x23, x0
	add	x0, x20, #116
	bl	_get_unaligned_le16
	mov	x27, x0
	add	x0, x20, #112
	bl	_get_unaligned_le16
	mov	x6, x0
	add	x7, x20, #144
	sub	w8, w21, #36
	ldr	w9, [x20]
	mov	w10, #100
	mov	w11, #-9500
	madd	w9, w9, w10, w11
Lloh27:
	adrp	x10, _GFP_ATOMIC@GOTPAGE
Lloh28:
	ldr	x10, [x10, _GFP_ATOMIC@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	stp	w9, w10, [sp, #4]
	str	w8, [sp]
	mov	x0, x24
	mov	x1, x22
	mov	x2, x25
	mov	x3, x26
	mov	x4, x23
	mov	x5, x27
	bl	_cfg80211_inform_bss
	cbz	x0, LBB0_18
; %bb.13:
	mov	x1, x0
	ldr	w0, [x28]
	bl	_cfg80211_put_bss
Lloh30:
	adrp	x8, _SCHED_SCANNING@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SCHED_SCANNING@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbz	x0, LBB0_17
; %bb.14:
	add	x19, x19, #4
	mov	x0, x19
	bl	_timer_pending
	cbnz	w0, LBB0_16
; %bb.15:
Lloh33:
	adrp	x8, _jiffies@GOTPAGE
Lloh34:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh35:
	ldr	x20, [x8]
Lloh36:
	adrp	x8, _ATH6KL_SCHED_SCAN_RESULT_DELAY@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ATH6KL_SCHED_SCAN_RESULT_DELAY@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x1, x0, x20
	mov	x0, x19
	bl	_mod_timer
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_18:
Lloh39:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_19:
Lloh41:
	adrp	x8, _WLAN_EID_TIM@GOTPAGE
Lloh42:
	ldr	x8, [x8, _WLAN_EID_TIM@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	add	x1, x20, #144
	sub	w2, w21, #36
	bl	_cfg80211_find_ie
	cbz	x0, LBB0_12
; %bb.20:
	ldr	w8, [x0, #4]
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.21:
	ldr	w8, [x0, #12]
	str	w8, [x19]
Lloh44:
	adrp	x8, _DTIM_PERIOD_AVAIL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _DTIM_PERIOD_AVAIL@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_set_bit
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATH6KL_DBG_WMI,4,2             ; @ATH6KL_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bss info evt - ch %u, snr %d, rssi %d, bssid \"%pM\" frame_type=%d\n"

	.comm	_BEACON_FTYPE,8,3               ; @BEACON_FTYPE
	.comm	_PROBERESP_FTYPE,8,3            ; @PROBERESP_FTYPE
	.comm	_CLEAR_BSSFILTER_ON_BEACON,4,2  ; @CLEAR_BSSFILTER_ON_BEACON
	.comm	_NONE_BSS_FILTER,4,2            ; @NONE_BSS_FILTER
	.comm	_CONNECTED,4,2                  ; @CONNECTED
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_WLAN_EID_TIM,4,2               ; @WLAN_EID_TIM
	.comm	_DTIM_PERIOD_AVAIL,4,2          ; @DTIM_PERIOD_AVAIL
	.comm	_CFG80211_BSS_FTYPE_BEACON,4,2  ; @CFG80211_BSS_FTYPE_BEACON
	.comm	_CFG80211_BSS_FTYPE_PRESP,4,2   ; @CFG80211_BSS_FTYPE_PRESP
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SCHED_SCANNING,4,2             ; @SCHED_SCANNING
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_ATH6KL_SCHED_SCAN_RESULT_DELAY,4,2 ; @ATH6KL_SCHED_SCAN_RESULT_DELAY
	.no_dead_strip	_ath6kl_wmi_bssinfo_event_rx
.subsections_via_symbols
