	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1251_event_process
_wl1251_event_process:                  ## @wl1251_event_process
	.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
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_wl1251_event_mbox_dump
	movl	4(%r12), %ebx
	notl	%ebx
	andl	(%r12), %ebx
	movq	_DEBUG_EVENT@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wl1251_debug
	movq	_SCAN_COMPLETE_EVENT_ID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_wl1251_event_scan_complete
	testl	%eax, %eax
	js	LBB0_24
LBB0_2:
	movq	_BSS_LOSE_EVENT_ID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.3:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wl1251_debug
	cmpq	$0, 24(%r14)
	je	LBB0_6
## %bb.4:
	movq	_STATION_ACTIVE_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rsi, (%r14)
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_wl1251_ps_set_mode
	testl	%eax, %eax
	js	LBB0_24
LBB0_6:
	movq	_PS_REPORT_EVENT_ID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wl1251_debug
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_wl1251_event_ps_report
	testl	%eax, %eax
	js	LBB0_24
LBB0_8:
	movq	_SYNCHRONIZATION_TIMEOUT_EVENT_ID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_12
## %bb.9:
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wl1251_debug
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.10:
	movq	(%rdi), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	callq	_ieee80211_beacon_loss
LBB0_12:
	movq	_REGAINED_BSS_EVENT_ID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_15
## %bb.13:
	cmpq	$0, 24(%r14)
	je	LBB0_15
## %bb.14:
	movq	_STATION_POWER_SAVE_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_wl1251_ps_set_mode
	testl	%eax, %eax
	js	LBB0_24
LBB0_15:
	xorl	%r15d, %r15d
	cmpq	$0, 8(%r14)
	je	LBB0_25
## %bb.16:
	cmpq	$0, 16(%r14)
	je	LBB0_25
## %bb.17:
	movq	_ROAMING_TRIGGER_LOW_RSSI_EVENT_ID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_19
## %bb.18:
	movl	(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wl1251_debug
	movq	8(%r14), %rdi
	movq	_NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	callq	_ieee80211_cqm_rssi_notify
LBB0_19:
	movq	_ROAMING_TRIGGER_REGAINED_RSSI_EVENT_ID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_25
## %bb.20:
	movl	(%r13), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_wl1251_debug
	movq	8(%r14), %rdi
	movq	_NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	callq	_ieee80211_cqm_rssi_notify
	jmp	LBB0_25
LBB0_24:
	movl	%eax, %r15d
LBB0_25:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_EVENT,4,2                ## @DEBUG_EVENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vector: 0x%x"

	.comm	_SCAN_COMPLETE_EVENT_ID,4,2     ## @SCAN_COMPLETE_EVENT_ID
	.comm	_BSS_LOSE_EVENT_ID,4,2          ## @BSS_LOSE_EVENT_ID
L_.str.1:                               ## @.str.1
	.asciz	"BSS_LOSE_EVENT"

	.comm	_STATION_ACTIVE_MODE,8,3        ## @STATION_ACTIVE_MODE
	.comm	_PS_REPORT_EVENT_ID,4,2         ## @PS_REPORT_EVENT_ID
L_.str.2:                               ## @.str.2
	.asciz	"PS_REPORT_EVENT"

	.comm	_SYNCHRONIZATION_TIMEOUT_EVENT_ID,4,2 ## @SYNCHRONIZATION_TIMEOUT_EVENT_ID
L_.str.3:                               ## @.str.3
	.asciz	"SYNCHRONIZATION_TIMEOUT_EVENT"

	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_REGAINED_BSS_EVENT_ID,4,2      ## @REGAINED_BSS_EVENT_ID
	.comm	_STATION_POWER_SAVE_MODE,8,3    ## @STATION_POWER_SAVE_MODE
	.comm	_ROAMING_TRIGGER_LOW_RSSI_EVENT_ID,4,2 ## @ROAMING_TRIGGER_LOW_RSSI_EVENT_ID
L_.str.4:                               ## @.str.4
	.asciz	"ROAMING_TRIGGER_LOW_RSSI_EVENT"

	.comm	_NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW,4,2 ## @NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ROAMING_TRIGGER_REGAINED_RSSI_EVENT_ID,4,2 ## @ROAMING_TRIGGER_REGAINED_RSSI_EVENT_ID
L_.str.5:                               ## @.str.5
	.asciz	"ROAMING_TRIGGER_REGAINED_RSSI_EVENT"

	.comm	_NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH,4,2 ## @NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH
	.no_dead_strip	_wl1251_event_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1251_event_process
_wl1251_event_process:                  ; @wl1251_event_process
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_wl1251_event_mbox_dump
	ldp	w8, w9, [x20]
	bic	w22, w8, w9
Lloh0:
	adrp	x21, _DEBUG_EVENT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DEBUG_EVENT@GOTPAGEOFF]
	ldr	w0, [x21]
	str	x22, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1251_debug
Lloh4:
	adrp	x8, _SCAN_COMPLETE_EVENT_ID@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SCAN_COMPLETE_EVENT_ID@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_wl1251_event_scan_complete
	tbnz	w0, #31, LBB0_22
LBB0_2:
Lloh7:
	adrp	x8, _BSS_LOSE_EVENT_ID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BSS_LOSE_EVENT_ID@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.3:
	ldr	w0, [x21]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wl1251_debug
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _STATION_ACTIVE_MODE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _STATION_ACTIVE_MODE@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x9]
	cmp	x8, x1
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_wl1251_ps_set_mode
	tbnz	w0, #31, LBB0_22
LBB0_6:
Lloh15:
	adrp	x8, _PS_REPORT_EVENT_ID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PS_REPORT_EVENT_ID@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.7:
	ldr	w0, [x21]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wl1251_debug
	mov	x0, x19
	mov	x1, x20
	bl	_wl1251_event_ps_report
	tbnz	w0, #31, LBB0_22
LBB0_8:
Lloh20:
	adrp	x8, _SYNCHRONIZATION_TIMEOUT_EVENT_ID@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SYNCHRONIZATION_TIMEOUT_EVENT_ID@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_12
; %bb.9:
	ldr	w0, [x21]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wl1251_debug
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x8, [x0]
Lloh25:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh26:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	bl	_ieee80211_beacon_loss
LBB0_12:
Lloh28:
	adrp	x8, _REGAINED_BSS_EVENT_ID@GOTPAGE
Lloh29:
	ldr	x8, [x8, _REGAINED_BSS_EVENT_ID@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_15
; %bb.13:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_15
; %bb.14:
Lloh31:
	adrp	x8, _STATION_POWER_SAVE_MODE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _STATION_POWER_SAVE_MODE@GOTPAGEOFF]
Lloh33:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_wl1251_ps_set_mode
	tbnz	w0, #31, LBB0_22
LBB0_15:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_21
; %bb.16:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_21
; %bb.17:
Lloh34:
	adrp	x8, _ROAMING_TRIGGER_LOW_RSSI_EVENT_ID@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ROAMING_TRIGGER_LOW_RSSI_EVENT_ID@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh38:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	tst	w8, w22
	b.eq	LBB0_19
; %bb.18:
	ldr	w0, [x21]
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wl1251_debug
	ldr	x0, [x19, #8]
Lloh41:
	adrp	x8, _NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW@GOTPAGE
Lloh42:
	ldr	x8, [x8, _NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	ldr	w3, [x20]
	mov	w2, #0
	bl	_ieee80211_cqm_rssi_notify
LBB0_19:
Lloh44:
	adrp	x8, _ROAMING_TRIGGER_REGAINED_RSSI_EVENT_ID@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ROAMING_TRIGGER_REGAINED_RSSI_EVENT_ID@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_21
; %bb.20:
	ldr	w0, [x21]
Lloh47:
	adrp	x1, l_.str.5@PAGE
Lloh48:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wl1251_debug
	ldr	x0, [x19, #8]
Lloh49:
	adrp	x8, _NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH@GOTPAGE
Lloh50:
	ldr	x8, [x8, _NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	ldr	w3, [x20]
	mov	w2, #0
	bl	_ieee80211_cqm_rssi_notify
LBB0_21:
	mov	w0, #0
LBB0_22:
	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
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_EVENT,4,2                ; @DEBUG_EVENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vector: 0x%x"

	.comm	_SCAN_COMPLETE_EVENT_ID,4,2     ; @SCAN_COMPLETE_EVENT_ID
	.comm	_BSS_LOSE_EVENT_ID,4,2          ; @BSS_LOSE_EVENT_ID
l_.str.1:                               ; @.str.1
	.asciz	"BSS_LOSE_EVENT"

	.comm	_STATION_ACTIVE_MODE,8,3        ; @STATION_ACTIVE_MODE
	.comm	_PS_REPORT_EVENT_ID,4,2         ; @PS_REPORT_EVENT_ID
l_.str.2:                               ; @.str.2
	.asciz	"PS_REPORT_EVENT"

	.comm	_SYNCHRONIZATION_TIMEOUT_EVENT_ID,4,2 ; @SYNCHRONIZATION_TIMEOUT_EVENT_ID
l_.str.3:                               ; @.str.3
	.asciz	"SYNCHRONIZATION_TIMEOUT_EVENT"

	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_REGAINED_BSS_EVENT_ID,4,2      ; @REGAINED_BSS_EVENT_ID
	.comm	_STATION_POWER_SAVE_MODE,8,3    ; @STATION_POWER_SAVE_MODE
	.comm	_ROAMING_TRIGGER_LOW_RSSI_EVENT_ID,4,2 ; @ROAMING_TRIGGER_LOW_RSSI_EVENT_ID
l_.str.4:                               ; @.str.4
	.asciz	"ROAMING_TRIGGER_LOW_RSSI_EVENT"

	.comm	_NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW,4,2 ; @NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ROAMING_TRIGGER_REGAINED_RSSI_EVENT_ID,4,2 ; @ROAMING_TRIGGER_REGAINED_RSSI_EVENT_ID
l_.str.5:                               ; @.str.5
	.asciz	"ROAMING_TRIGGER_REGAINED_RSSI_EVENT"

	.comm	_NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH,4,2 ; @NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH
	.no_dead_strip	_wl1251_event_process
.subsections_via_symbols
