	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_process_event          ## -- Begin function mwifiex_process_event
	.p2align	4, 0x90
_mwifiex_process_event:                 ## @mwifiex_process_event
	.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	%rdi, %r13
	movq	_MWIFIEX_BSS_ROLE_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mwifiex_get_priv
	movq	16(%r13), %r14
	movl	(%r13), %r15d
	movq	_EVENT_ID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	movq	_EVENT_RADAR_DETECTED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.1:
	movl	4(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.2:
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r13), %rcx
	movq	(%rcx,%rbx,8), %r15
	testq	%r15, %r15
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_mwifiex_is_11h_active
	testq	%rax, %rax
	jne	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r13), %eax
	jmp	LBB0_6
LBB0_7:
	movl	(%r13), %r15d
	jmp	LBB0_8
LBB0_16:
	movl	(%r15), %eax
	movl	4(%r15), %r15d
	movzbl	%al, %eax
	shll	$16, %eax
	shll	$24, %r15d
	orl	%eax, %r15d
	orl	(%r13), %r15d
	movl	%r15d, (%r13)
LBB0_8:
	movl	24(%r13), %eax
	incl	%eax
	movq	_DBG_CMD_NUM@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%edx, 24(%r13)
	movslq	%r15d, %rbx
	movq	32(%r13), %rax
	movslq	%edx, %rcx
	movq	%rbx, (%rax,%rcx,8)
	movl	%ebx, %edi
	callq	_EVENT_GET_BSS_NUM
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_EVENT_GET_BSS_TYPE
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_mwifiex_get_priv_by_id
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_MWIFIEX_BSS_ROLE_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_mwifiex_get_priv
	movq	%rax, %r12
LBB0_10:
	movq	_EVENT_ID_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movl	%r15d, (%r13)
	testq	%r14, %r14
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_MWIFIEX_SKB_RXCB
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	(%r12), %eax
	movl	%eax, (%rbx)
	movl	4(%r12), %eax
	movl	%eax, 4(%rbx)
	movq	_EVT_D@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %r8d
	movl	4(%r14), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	callq	_mwifiex_dbg_dump
LBB0_12:
	movq	_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movl	%r15d, %ecx
	callq	_mwifiex_dbg
	movq	8(%r12), %rax
	movq	_MWIFIEX_BSS_ROLE_UAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	movq	%r12, %rdi
	callq	_mwifiex_process_uap_event
	jmp	LBB0_15
LBB0_14:
	movq	%r12, %rdi
	callq	_mwifiex_process_sta_event
LBB0_15:
	movl	%eax, %ebx
	movl	$0, (%r13)
	movq	$0, 16(%r13)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	*8(%r13)
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_BSS_ROLE_ANY,4,2       ## @MWIFIEX_BSS_ROLE_ANY
	.comm	_EVENT_ID_MASK,4,2              ## @EVENT_ID_MASK
	.comm	_EVENT_RADAR_DETECTED,4,2       ## @EVENT_RADAR_DETECTED
	.comm	_DBG_CMD_NUM,4,2                ## @DBG_CMD_NUM
	.comm	_EVT_D,4,2                      ## @EVT_D
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Event Buf:"

	.comm	_EVENT,4,2                      ## @EVENT
L_.str.1:                               ## @.str.1
	.asciz	"EVENT: cause: %#x\n"

	.comm	_MWIFIEX_BSS_ROLE_UAP,8,3       ## @MWIFIEX_BSS_ROLE_UAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_process_event          ; -- Begin function mwifiex_process_event
	.p2align	2
_mwifiex_process_event:                 ; @mwifiex_process_event
	.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	x19, x0
Lloh0:
	adrp	x24, _MWIFIEX_BSS_ROLE_ANY@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MWIFIEX_BSS_ROLE_ANY@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_mwifiex_get_priv
	ldr	x20, [x19, #16]
	ldr	w21, [x19]
Lloh2:
	adrp	x23, _EVENT_ID_MASK@GOTPAGE
Lloh3:
	ldr	x23, [x23, _EVENT_ID_MASK@GOTPAGEOFF]
	ldr	w8, [x23]
	and	w8, w8, w21
Lloh4:
	adrp	x9, _EVENT_RADAR_DETECTED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _EVENT_RADAR_DETECTED@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.1:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x22, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #40]
	ldr	x21, [x9, x22, lsl #3]
	cbz	x21, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_mwifiex_is_11h_active
	cbnz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #4]
	b	LBB0_3
LBB0_7:
	ldr	w21, [x19]
	b	LBB0_9
LBB0_8:
	ldp	w8, w9, [x21]
	lsl	w9, w9, #24
	bfi	w9, w8, #16, #8
	ldr	w8, [x19]
	orr	w21, w9, w8
	str	w21, [x19]
LBB0_9:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
Lloh7:
	adrp	x9, _DBG_CMD_NUM@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DBG_CMD_NUM@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x19, #24]
	sxtw	x9, w21
	ldr	x10, [x19, #32]
	str	x9, [x10, w8, sxtw #3]
	mov	x0, x21
	bl	_EVENT_GET_BSS_NUM
	mov	x22, x0
	mov	x0, x21
	bl	_EVENT_GET_BSS_TYPE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_mwifiex_get_priv_by_id
	mov	x22, x0
	cbnz	x0, LBB0_11
; %bb.10:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_mwifiex_get_priv
	mov	x22, x0
LBB0_11:
	ldr	w8, [x23]
	and	w21, w8, w21
	str	w21, [x19]
	cbz	x20, LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_MWIFIEX_SKB_RXCB
	mov	x23, x0
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	d0, [x22]
	str	d0, [x23]
Lloh10:
	adrp	x8, _EVT_D@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EVT_D@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldp	w4, w3, [x20]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg_dump
LBB0_13:
Lloh15:
	adrp	x8, _EVENT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EVENT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	bl	_mwifiex_dbg
	ldr	x8, [x22, #8]
Lloh20:
	adrp	x9, _MWIFIEX_BSS_ROLE_UAP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MWIFIEX_BSS_ROLE_UAP@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	mov	x0, x22
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
	bl	_mwifiex_process_uap_event
	b	LBB0_16
LBB0_15:
	bl	_mwifiex_process_sta_event
LBB0_16:
	mov	x21, x0
	str	wzr, [x19]
	str	xzr, [x19, #16]
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	x0, x21
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_BSS_ROLE_ANY,4,2       ; @MWIFIEX_BSS_ROLE_ANY
	.comm	_EVENT_ID_MASK,4,2              ; @EVENT_ID_MASK
	.comm	_EVENT_RADAR_DETECTED,4,2       ; @EVENT_RADAR_DETECTED
	.comm	_DBG_CMD_NUM,4,2                ; @DBG_CMD_NUM
	.comm	_EVT_D,4,2                      ; @EVT_D
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Event Buf:"

	.comm	_EVENT,4,2                      ; @EVENT
l_.str.1:                               ; @.str.1
	.asciz	"EVENT: cause: %#x\n"

	.comm	_MWIFIEX_BSS_ROLE_UAP,8,3       ; @MWIFIEX_BSS_ROLE_UAP
.subsections_via_symbols
