	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_wmi_notify_queue_flush
_asus_wmi_notify_queue_flush:           ## @asus_wmi_notify_queue_flush
	.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	_WMI_EVENT_QUEUE_SIZE@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	js	LBB0_7
## %bb.1:
	movl	$-1, %r12d
	movq	_WMI_EVENT_VALUE_ATK@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_asus_wmi_get_event_code
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_WMI_EVENT_QUEUE_END@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_WMI_EVENT_MASK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r12d
	cmpl	(%r15), %r12d
	jl	LBB0_3
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_pr_warn
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_warn
	movl	%ebx, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_EVENT_QUEUE_SIZE,4,2       ## @WMI_EVENT_QUEUE_SIZE
	.comm	_WMI_EVENT_VALUE_ATK,4,2        ## @WMI_EVENT_VALUE_ATK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get event during flush: %d\n"

	.comm	_WMI_EVENT_QUEUE_END,4,2        ## @WMI_EVENT_QUEUE_END
	.comm	_WMI_EVENT_MASK,4,2             ## @WMI_EVENT_MASK
L_.str.1:                               ## @.str.1
	.asciz	"Failed to flush event queue\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_asus_wmi_notify_queue_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_wmi_notify_queue_flush
_asus_wmi_notify_queue_flush:           ; @asus_wmi_notify_queue_flush
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x20, _WMI_EVENT_QUEUE_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _WMI_EVENT_QUEUE_SIZE@GOTPAGEOFF]
	ldr	w8, [x20]
	tbnz	w8, #31, LBB0_5
; %bb.1:
	mov	w21, #-1
Lloh2:
	adrp	x22, _WMI_EVENT_VALUE_ATK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _WMI_EVENT_VALUE_ATK@GOTPAGEOFF]
Lloh4:
	adrp	x23, _WMI_EVENT_QUEUE_END@GOTPAGE
Lloh5:
	ldr	x23, [x23, _WMI_EVENT_QUEUE_END@GOTPAGEOFF]
Lloh6:
	adrp	x24, _WMI_EVENT_MASK@GOTPAGE
Lloh7:
	ldr	x24, [x24, _WMI_EVENT_MASK@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_asus_wmi_get_event_code
	mov	x19, x0
	tbnz	w0, #31, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
	ldr	w9, [x24]
	cmp	w19, w8
	ccmp	w19, w9, #4, ne
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20]
	add	w21, w21, #1
	cmp	w21, w8
	b.lt	LBB0_2
LBB0_5:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_8
LBB0_6:
	str	x19, [sp]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	b	LBB0_8
LBB0_7:
	mov	w19, #0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_EVENT_QUEUE_SIZE,4,2       ; @WMI_EVENT_QUEUE_SIZE
	.comm	_WMI_EVENT_VALUE_ATK,4,2        ; @WMI_EVENT_VALUE_ATK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get event during flush: %d\n"

	.comm	_WMI_EVENT_QUEUE_END,4,2        ; @WMI_EVENT_QUEUE_END
	.comm	_WMI_EVENT_MASK,4,2             ; @WMI_EVENT_MASK
l_.str.1:                               ; @.str.1
	.asciz	"Failed to flush event queue\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_asus_wmi_notify_queue_flush
.subsections_via_symbols
