	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_wmi_notify
_asus_wmi_notify:                       ## @asus_wmi_notify
	.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, %r15
	movq	%rdi, %r12
	movl	$-1, %r13d
	movq	_WMI_EVENT_MASK@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_asus_wmi_get_event_code
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_WMI_EVENT_QUEUE_END@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	(%r14), %ebx
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_asus_wmi_handle_event_code
	cmpl	$0, (%r15)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_WMI_EVENT_VALUE_ATK@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%r13d
	movq	_WMI_EVENT_QUEUE_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jl	LBB0_1
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_3
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
LBB0_3:
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_warn                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_EVENT_QUEUE_SIZE,4,2       ## @WMI_EVENT_QUEUE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get notify code: %d\n"

	.comm	_WMI_EVENT_QUEUE_END,4,2        ## @WMI_EVENT_QUEUE_END
	.comm	_WMI_EVENT_MASK,4,2             ## @WMI_EVENT_MASK
	.comm	_WMI_EVENT_VALUE_ATK,8,3        ## @WMI_EVENT_VALUE_ATK
L_.str.1:                               ## @.str.1
	.asciz	"Failed to process event queue, last code: 0x%x\n"

	.no_dead_strip	_asus_wmi_notify
.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
_asus_wmi_notify:                       ; @asus_wmi_notify
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	mov	w23, #-1
Lloh0:
	adrp	x25, _WMI_EVENT_QUEUE_END@GOTPAGE
Lloh1:
	ldr	x25, [x25, _WMI_EVENT_QUEUE_END@GOTPAGEOFF]
Lloh2:
	adrp	x24, l_.str@PAGE
Lloh3:
	add	x24, x24, l_.str@PAGEOFF
Lloh4:
	adrp	x26, _WMI_EVENT_MASK@GOTPAGE
Lloh5:
	ldr	x26, [x26, _WMI_EVENT_MASK@GOTPAGEOFF]
Lloh6:
	adrp	x27, _WMI_EVENT_VALUE_ATK@GOTPAGE
Lloh7:
	ldr	x27, [x27, _WMI_EVENT_VALUE_ATK@GOTPAGEOFF]
Lloh8:
	adrp	x28, _WMI_EVENT_QUEUE_SIZE@GOTPAGE
Lloh9:
	ldr	x28, [x28, _WMI_EVENT_QUEUE_SIZE@GOTPAGEOFF]
Lloh10:
	adrp	x21, l_.str.1@PAGE
Lloh11:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_asus_wmi_get_event_code
	mov	x22, x0
	tbnz	w0, #31, LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x25]
	ldr	w9, [x26]
	cmp	w22, w8
	ccmp	w22, w9, #4, ne
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	mov	x1, x19
	bl	_asus_wmi_handle_event_code
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x27]
	cmp	x8, x20
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x28]
	add	w23, w23, #1
	cmp	w23, w8
	b.lt	LBB0_1
	b	LBB0_8
LBB0_6:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x21, x24
LBB0_8:
	mov	x0, x21
	mov	x1, x22
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_pr_warn
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_EVENT_QUEUE_SIZE,4,2       ; @WMI_EVENT_QUEUE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get notify code: %d\n"

	.comm	_WMI_EVENT_QUEUE_END,4,2        ; @WMI_EVENT_QUEUE_END
	.comm	_WMI_EVENT_MASK,4,2             ; @WMI_EVENT_MASK
	.comm	_WMI_EVENT_VALUE_ATK,8,3        ; @WMI_EVENT_VALUE_ATK
l_.str.1:                               ; @.str.1
	.asciz	"Failed to process event queue, last code: 0x%x\n"

	.no_dead_strip	_asus_wmi_notify
.subsections_via_symbols
