	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmi_event_handle
_wmi_event_handle:                      ## @wmi_event_handle
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	8(%rsi), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	movq	(%r14), %rax
	movq	_WIL_MBOX_HDR_TYPE_WMI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.1:
	cmpl	$16, %ebx
	jb	LBB0_14
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	24(%r14), %edi
	callq	_le16_to_cpu
	movl	%eax, %r15d
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %r12
	movl	%eax, %edi
	callq	_eventid2name
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %r8d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %r9
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_wil_dbg_wmi
	movq	_MID_BROADCAST@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	cmovneq	%r12, %r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_GET_MAX_VIFS
	cmpq	%rax, %r13
	jae	LBB0_3
## %bb.5:
	movq	32(%rbx), %rax
	movq	(%rax,%r13,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.7:
	addq	$32, %r14
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:
	cmpl	%r15d, %eax
	jne	LBB0_12
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%r13, 8(%rax)
	jne	LBB0_12
## %bb.10:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, 24(%rbx)
	je	LBB0_11
## %bb.17:
	movl	%r15d, %edi
	callq	_eventid2name
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wil_err                        ## TAILCALL
LBB0_14:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_wil_err
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DUMP_PREFIX_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	$16, %ebx
	leaq	L_.str.7(%rip), %rsi
	movl	$16, %ecx
	movl	$1, %r8d
	movq	%r14, %r9
	pushq	$1
	pushq	%rbx
	callq	_print_hex_dump
	addq	$40, %rsp
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_12:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addl	$-16, %ecx
	movl	%r15d, %esi
	movq	%r14, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_wmi_evt_call_handler
	testl	%eax, %eax
	je	LBB0_13
## %bb.15:
	addq	$24, %rsp
	jmp	LBB0_16
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movq	%rbx, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wil_dbg_wmi                    ## TAILCALL
LBB0_13:
	leaq	L_.str.5(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wil_info                       ## TAILCALL
LBB0_11:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addl	$-16, %ecx
	movl	%r15d, %esi
	movq	%r14, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_wmi_evt_call_handler
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_wil_dbg_wmi
	addq	$16, %rbx
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_complete                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WIL_MBOX_HDR_TYPE_WMI,8,3      ## @WIL_MBOX_HDR_TYPE_WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Handle %s (0x%04x) (reply_id 0x%04x,%d)\n"

	.comm	_MID_BROADCAST,8,3              ## @MID_BROADCAST
L_.str.1:                               ## @.str.1
	.asciz	"invalid mid %d, event skipped\n"

L_.str.2:                               ## @.str.2
	.asciz	"event for empty VIF(%d), skipped\n"

L_.str.3:                               ## @.str.3
	.asciz	"Old event (%d, %s) while wmi_call is waiting. Drop it and Continue waiting\n"

L_.str.4:                               ## @.str.4
	.asciz	"event_handle: Complete WMI 0x%04x\n"

L_.str.5:                               ## @.str.5
	.asciz	"Unhandled event 0x%04x\n"

L_.str.6:                               ## @.str.6
	.asciz	"Unknown event type\n"

	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
L_.str.7:                               ## @.str.7
	.asciz	"evt?? "

	.comm	_DUMP_PREFIX_OFFSET,4,2         ## @DUMP_PREFIX_OFFSET
	.no_dead_strip	_wmi_event_handle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmi_event_handle
_wmi_event_handle:                      ; @wmi_event_handle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x1
	mov	x19, x0
	ldr	w0, [x1, #8]
	bl	_le16_to_cpu
	mov	x21, x0
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _WIL_MBOX_HDR_TYPE_WMI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WIL_MBOX_HDR_TYPE_WMI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w0, #16, #0, eq
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str.6@PAGE
Lloh4:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_wil_err
Lloh5:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _DUMP_PREFIX_OFFSET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DUMP_PREFIX_OFFSET@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	w6, w21, #16
Lloh11:
	adrp	x1, l_.str.7@PAGE
Lloh12:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w3, #16
	mov	w4, #1
	mov	x5, x22
	mov	w7, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_print_hex_dump
LBB0_2:
	ldr	w0, [x22, #24]
	bl	_le16_to_cpu
	mov	x20, x0
	ldr	x23, [x22, #16]
	bl	_eventid2name
	mov	x2, x0
	ldr	x8, [x19, #8]
	ldr	w9, [x19]
	stp	x9, x8, [sp, #8]
	str	x20, [sp]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_wmi
Lloh15:
	adrp	x8, _MID_BROADCAST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MID_BROADCAST@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x23, x8
	csel	x23, xzr, x23, eq
	mov	x0, x19
	bl	_GET_MAX_VIFS
	cmp	x23, x0
	b.hs	LBB0_9
; %bb.3:
	ldr	x8, [x19, #32]
	ldr	x0, [x8, x23, lsl #3]
	cbz	x0, LBB0_12
; %bb.4:
	add	x2, x22, #32
	ldr	w8, [x19]
	cbz	w8, LBB0_10
; %bb.5:
	cmp	w8, w20
	b.ne	LBB0_10
; %bb.6:
	ldr	x8, [x19, #8]
	cmp	x8, x23
	b.ne	LBB0_10
; %bb.7:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_15
; %bb.8:
	mov	x0, x20
	bl	_eventid2name
                                        ; kill: def $w0 killed $w0 def $x0
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	stp	x20, x0, [sp]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_wil_err
	b	LBB0_11
LBB0_9:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_10:
	sub	w3, w21, #16
	mov	x1, x20
	bl	_wmi_evt_call_handler
	cbz	w0, LBB0_14
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_13:
	mov	x0, x19
	mov	x2, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_wil_dbg_wmi
LBB0_14:
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_wil_info
LBB0_15:
	sub	w3, w21, #16
	mov	x1, x20
	bl	_wmi_evt_call_handler
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_wil_dbg_wmi
	add	x0, x19, #16
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_complete
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_WIL_MBOX_HDR_TYPE_WMI,8,3      ; @WIL_MBOX_HDR_TYPE_WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Handle %s (0x%04x) (reply_id 0x%04x,%d)\n"

	.comm	_MID_BROADCAST,8,3              ; @MID_BROADCAST
l_.str.1:                               ; @.str.1
	.asciz	"invalid mid %d, event skipped\n"

l_.str.2:                               ; @.str.2
	.asciz	"event for empty VIF(%d), skipped\n"

l_.str.3:                               ; @.str.3
	.asciz	"Old event (%d, %s) while wmi_call is waiting. Drop it and Continue waiting\n"

l_.str.4:                               ; @.str.4
	.asciz	"event_handle: Complete WMI 0x%04x\n"

l_.str.5:                               ; @.str.5
	.asciz	"Unhandled event 0x%04x\n"

l_.str.6:                               ; @.str.6
	.asciz	"Unknown event type\n"

	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
l_.str.7:                               ; @.str.7
	.asciz	"evt?? "

	.comm	_DUMP_PREFIX_OFFSET,4,2         ; @DUMP_PREFIX_OFFSET
	.no_dead_strip	_wmi_event_handle
.subsections_via_symbols
