	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl12xx_process_mailbox_events  ## -- Begin function wl12xx_process_mailbox_events
	.p2align	4, 0x90
_wl12xx_process_mailbox_events:         ## @wl12xx_process_mailbox_events
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movl	36(%r12), %edi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	movl	32(%r12), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	notl	%ebx
	andl	%r15d, %ebx
	movq	_DEBUG_EVENT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_wl1271_debug
	movq	_SCAN_COMPLETE_EVENT_ID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.1:
	movl	(%r15), %edi
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_wl1271_debug
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_wl12xx_scan_completed
LBB0_3:
	movq	_PERIODIC_SCAN_REPORT_EVENT_ID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_wl1271_debug
	movq	%r14, %rdi
	callq	_wlcore_scan_sched_scan_results
LBB0_5:
	movq	_PERIODIC_SCAN_COMPLETE_EVENT_ID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_wlcore_event_sched_scan_completed
LBB0_7:
	movq	_SOFT_GEMINI_SENSE_EVENT_ID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.8:
	movl	28(%r12), %esi
	movq	%r14, %rdi
	callq	_wlcore_event_soft_gemini_sense
LBB0_9:
	movq	_BSS_LOSE_EVENT_ID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movl	$255, %esi
	callq	_wlcore_event_beacon_loss
LBB0_11:
	movq	_RSSI_SNR_TRIGGER_0_EVENT_ID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_13
## %bb.12:
	movl	24(%r12), %esi
	movq	%r14, %rdi
	callq	_wlcore_event_rssi_trigger
LBB0_13:
	movq	_BA_SESSION_RX_CONSTRAINT_EVENT_ID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_15
## %bb.14:
	movl	20(%r12), %edi
	callq	_BIT
	movl	16(%r12), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_wlcore_event_ba_rx_constraint
LBB0_15:
	movq	_CHANNEL_SWITCH_COMPLETE_EVENT_ID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_17
## %bb.16:
	movl	12(%r12), %edx
	movq	%r14, %rdi
	movl	$255, %esi
	callq	_wlcore_event_channel_switch
LBB0_17:
	movq	_DUMMY_PACKET_EVENT_ID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_wlcore_event_dummy_packet
LBB0_19:
	movq	_MAX_TX_RETRY_EVENT_ID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_21
## %bb.20:
	movl	8(%r12), %edi
	callq	_le16_to_cpu
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_wlcore_event_max_tx_failure
LBB0_21:
	movq	_INACTIVE_STA_EVENT_ID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_23
## %bb.22:
	movl	4(%r12), %edi
	callq	_le16_to_cpu
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_wlcore_event_inactive_sta
LBB0_23:
	movq	_REMAIN_ON_CHANNEL_COMPLETE_EVENT_ID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_25
## %bb.24:
	movq	%r14, %rdi
	callq	_wlcore_event_roc_complete
LBB0_25:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	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	"MBOX vector: 0x%x"

	.comm	_SCAN_COMPLETE_EVENT_ID,4,2     ## @SCAN_COMPLETE_EVENT_ID
L_.str.1:                               ## @.str.1
	.asciz	"status: 0x%x"

	.comm	_PERIODIC_SCAN_REPORT_EVENT_ID,4,2 ## @PERIODIC_SCAN_REPORT_EVENT_ID
L_.str.2:                               ## @.str.2
	.asciz	"PERIODIC_SCAN_REPORT_EVENT (status 0x%0x)"

	.comm	_PERIODIC_SCAN_COMPLETE_EVENT_ID,4,2 ## @PERIODIC_SCAN_COMPLETE_EVENT_ID
	.comm	_SOFT_GEMINI_SENSE_EVENT_ID,4,2 ## @SOFT_GEMINI_SENSE_EVENT_ID
	.comm	_BSS_LOSE_EVENT_ID,4,2          ## @BSS_LOSE_EVENT_ID
	.comm	_RSSI_SNR_TRIGGER_0_EVENT_ID,4,2 ## @RSSI_SNR_TRIGGER_0_EVENT_ID
	.comm	_BA_SESSION_RX_CONSTRAINT_EVENT_ID,4,2 ## @BA_SESSION_RX_CONSTRAINT_EVENT_ID
	.comm	_CHANNEL_SWITCH_COMPLETE_EVENT_ID,4,2 ## @CHANNEL_SWITCH_COMPLETE_EVENT_ID
	.comm	_DUMMY_PACKET_EVENT_ID,4,2      ## @DUMMY_PACKET_EVENT_ID
	.comm	_MAX_TX_RETRY_EVENT_ID,4,2      ## @MAX_TX_RETRY_EVENT_ID
	.comm	_INACTIVE_STA_EVENT_ID,4,2      ## @INACTIVE_STA_EVENT_ID
	.comm	_REMAIN_ON_CHANNEL_COMPLETE_EVENT_ID,4,2 ## @REMAIN_ON_CHANNEL_COMPLETE_EVENT_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl12xx_process_mailbox_events  ; -- Begin function wl12xx_process_mailbox_events
	.p2align	2
_wl12xx_process_mailbox_events:         ; @wl12xx_process_mailbox_events
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldr	x21, [x0, #8]
	ldr	w0, [x21, #36]
	bl	_le32_to_cpu
	mov	x20, x0
	ldr	w0, [x21, #32]
	bl	_le32_to_cpu
	bic	w20, w20, w0
Lloh0:
	adrp	x22, _DEBUG_EVENT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DEBUG_EVENT@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_wl1271_debug
Lloh4:
	adrp	x8, _SCAN_COMPLETE_EVENT_ID@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SCAN_COMPLETE_EVENT_ID@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.1:
	ldr	w0, [x22]
	ldr	w2, [x21]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wl1271_debug
	ldr	x1, [x19]
	cbz	x1, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_wl12xx_scan_completed
LBB0_3:
Lloh9:
	adrp	x8, _PERIODIC_SCAN_REPORT_EVENT_ID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PERIODIC_SCAN_REPORT_EVENT_ID@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x22]
	ldr	w2, [x21]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wl1271_debug
	mov	x0, x19
	bl	_wlcore_scan_sched_scan_results
LBB0_5:
Lloh14:
	adrp	x8, _PERIODIC_SCAN_COMPLETE_EVENT_ID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PERIODIC_SCAN_COMPLETE_EVENT_ID@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_wlcore_event_sched_scan_completed
LBB0_7:
Lloh17:
	adrp	x8, _SOFT_GEMINI_SENSE_EVENT_ID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SOFT_GEMINI_SENSE_EVENT_ID@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	ldr	w1, [x21, #28]
	mov	x0, x19
	bl	_wlcore_event_soft_gemini_sense
LBB0_9:
Lloh20:
	adrp	x8, _BSS_LOSE_EVENT_ID@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BSS_LOSE_EVENT_ID@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x19
	mov	w1, #255
	bl	_wlcore_event_beacon_loss
LBB0_11:
Lloh23:
	adrp	x8, _RSSI_SNR_TRIGGER_0_EVENT_ID@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RSSI_SNR_TRIGGER_0_EVENT_ID@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_13
; %bb.12:
	ldr	w1, [x21, #24]
	mov	x0, x19
	bl	_wlcore_event_rssi_trigger
LBB0_13:
Lloh26:
	adrp	x8, _BA_SESSION_RX_CONSTRAINT_EVENT_ID@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BA_SESSION_RX_CONSTRAINT_EVENT_ID@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_15
; %bb.14:
	ldr	w0, [x21, #20]
	bl	_BIT
	mov	x1, x0
	ldr	w2, [x21, #16]
	mov	x0, x19
	bl	_wlcore_event_ba_rx_constraint
LBB0_15:
Lloh29:
	adrp	x8, _CHANNEL_SWITCH_COMPLETE_EVENT_ID@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CHANNEL_SWITCH_COMPLETE_EVENT_ID@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_17
; %bb.16:
	ldr	w2, [x21, #12]
	mov	x0, x19
	mov	w1, #255
	bl	_wlcore_event_channel_switch
LBB0_17:
Lloh32:
	adrp	x8, _DUMMY_PACKET_EVENT_ID@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DUMMY_PACKET_EVENT_ID@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_wlcore_event_dummy_packet
LBB0_19:
Lloh35:
	adrp	x8, _MAX_TX_RETRY_EVENT_ID@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MAX_TX_RETRY_EVENT_ID@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_21
; %bb.20:
	ldr	w0, [x21, #8]
	bl	_le16_to_cpu
	mov	x1, x0
	mov	x0, x19
	bl	_wlcore_event_max_tx_failure
LBB0_21:
Lloh38:
	adrp	x8, _INACTIVE_STA_EVENT_ID@GOTPAGE
Lloh39:
	ldr	x8, [x8, _INACTIVE_STA_EVENT_ID@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_23
; %bb.22:
	ldr	w0, [x21, #4]
	bl	_le16_to_cpu
	mov	x1, x0
	mov	x0, x19
	bl	_wlcore_event_inactive_sta
LBB0_23:
Lloh41:
	adrp	x8, _REMAIN_ON_CHANNEL_COMPLETE_EVENT_ID@GOTPAGE
Lloh42:
	ldr	x8, [x8, _REMAIN_ON_CHANNEL_COMPLETE_EVENT_ID@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_25
; %bb.24:
	mov	x0, x19
	bl	_wlcore_event_roc_complete
LBB0_25:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_EVENT,4,2                ; @DEBUG_EVENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MBOX vector: 0x%x"

	.comm	_SCAN_COMPLETE_EVENT_ID,4,2     ; @SCAN_COMPLETE_EVENT_ID
l_.str.1:                               ; @.str.1
	.asciz	"status: 0x%x"

	.comm	_PERIODIC_SCAN_REPORT_EVENT_ID,4,2 ; @PERIODIC_SCAN_REPORT_EVENT_ID
l_.str.2:                               ; @.str.2
	.asciz	"PERIODIC_SCAN_REPORT_EVENT (status 0x%0x)"

	.comm	_PERIODIC_SCAN_COMPLETE_EVENT_ID,4,2 ; @PERIODIC_SCAN_COMPLETE_EVENT_ID
	.comm	_SOFT_GEMINI_SENSE_EVENT_ID,4,2 ; @SOFT_GEMINI_SENSE_EVENT_ID
	.comm	_BSS_LOSE_EVENT_ID,4,2          ; @BSS_LOSE_EVENT_ID
	.comm	_RSSI_SNR_TRIGGER_0_EVENT_ID,4,2 ; @RSSI_SNR_TRIGGER_0_EVENT_ID
	.comm	_BA_SESSION_RX_CONSTRAINT_EVENT_ID,4,2 ; @BA_SESSION_RX_CONSTRAINT_EVENT_ID
	.comm	_CHANNEL_SWITCH_COMPLETE_EVENT_ID,4,2 ; @CHANNEL_SWITCH_COMPLETE_EVENT_ID
	.comm	_DUMMY_PACKET_EVENT_ID,4,2      ; @DUMMY_PACKET_EVENT_ID
	.comm	_MAX_TX_RETRY_EVENT_ID,4,2      ; @MAX_TX_RETRY_EVENT_ID
	.comm	_INACTIVE_STA_EVENT_ID,4,2      ; @INACTIVE_STA_EVENT_ID
	.comm	_REMAIN_ON_CHANNEL_COMPLETE_EVENT_ID,4,2 ; @REMAIN_ON_CHANNEL_COMPLETE_EVENT_ID
.subsections_via_symbols
