	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dell_wmi_notify
_dell_wmi_notify:                       ## @dell_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
	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, %rbx
	movq	%rdi, %r15
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	(%rbx), %rsi
	movq	_ACPI_TYPE_BUFFER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_19
## %bb.1:
	movq	8(%rbx), %rdx
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_pr_debug
	movq	8(%rbx), %r12
	movl	(%rbx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	leaq	(%r12,%rcx,4), %rcx
	cmpq	$0, (%r14)
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
## %bb.2:
	cmpl	$2, %eax
	jl	LBB0_4
## %bb.3:
	movslq	(%r12), %rax
	leaq	(%r12,%rax,4), %rax
	addq	$4, %rax
	cmpq	%rax, %rcx
	cmovaq	%rax, %rcx
LBB0_4:
	cmpq	%rcx, %r12
	jae	LBB0_18
## %bb.5:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.4(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_pr_info
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, %r12
	jae	LBB0_18
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movl	(%r12), %r13d
	testl	%r13d, %r13d
	je	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %r15
	leal	1(%r13), %r14d
	movslq	%r14d, %rax
	leaq	(%r12,%rax,4), %r12
	cmpq	%rcx, %r12
	ja	LBB0_20
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	leal	(%r14,%r14), %esi
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rdx
	callq	_pr_debug
	movl	4(%r15), %esi
	leal	-16(%rsi), %eax
	cmpl	$2, %eax
	jae	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$2, %r13d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jl	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%r15), %edx
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_dell_wmi_process_key
	cmpl	$3, %r14d
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r14d, %r14d
	movl	$3, %ebx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	4(%r15), %esi
	movl	(%r15,%rbx,4), %edx
	movq	%r13, %rdi
	callq	_dell_wmi_process_key
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_15
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	testl	%esi, %esi
	jne	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$2, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jl	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%r15), %edx
	xorl	%esi, %esi
	callq	_dell_wmi_process_key
	jmp	LBB0_17
LBB0_19:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_warn                        ## TAILCALL
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_warn                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_TYPE_BUFFER,8,3           ## @ACPI_TYPE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad response type %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Received WMI event (%*ph)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid length of WMI event\n"

L_.str.3:                               ## @.str.3
	.asciz	"Process buffer (%*ph)\n"

L_.str.4:                               ## @.str.4
	.asciz	"Unknown WMI event type 0x%x\n"

	.no_dead_strip	_dell_wmi_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dell_wmi_notify
_dell_wmi_notify:                       ; @dell_wmi_notify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_dev_get_drvdata
	ldr	x1, [x21]
Lloh0:
	adrp	x8, _ACPI_TYPE_BUFFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_TYPE_BUFFER@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_17
; %bb.1:
	mov	x22, x0
	ldr	x2, [x21, #8]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_pr_debug
	ldr	x20, [x21, #8]
	ldr	w8, [x21]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	add	x23, x20, w9, sxtw #2
	ldr	x9, [x22]
	cmp	x9, #0
	ccmp	w8, #2, #8, eq
	b.lt	LBB0_3
; %bb.2:
	ldrsw	x8, [x20]
	add	x8, x20, x8, lsl #2
	add	x8, x8, #4
	cmp	x23, x8
	csel	x23, x8, x23, hi
LBB0_3:
	cmp	x20, x23
	b.hs	LBB0_18
; %bb.4:
Lloh5:
	adrp	x21, l_.str.3@PAGE
Lloh6:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh7:
	adrp	x22, l_.str.4@PAGE
Lloh8:
	add	x22, x22, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	bl	_pr_info
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x20, x24
	cmp	x24, x23
	b.hs	LBB0_18
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	w26, [x20]
	cbz	w26, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w25, w26, #1
	add	x24, x20, w25, sxtw #2
	cmp	x24, x23
	b.hi	LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	lsl	w1, w25, #1
	mov	x0, x21
	mov	x2, x20
	bl	_pr_debug
	ldr	w1, [x20, #4]
	sub	w8, w1, #16
	cmp	w8, #2
	b.hs	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w26, #2
	b.lt	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x20, #8]
	mov	x0, x19
	bl	_dell_wmi_process_key
	cmp	w25, #3
	b.eq	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	sub	x25, x25, #3
	add	x26, x20, #12
LBB0_13:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x20, #4]
	ldr	w2, [x26], #4
	mov	x0, x19
	bl	_dell_wmi_process_key
	subs	x25, x25, #1
	b.ne	LBB0_13
	b	LBB0_6
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	cbnz	w1, LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w26, #2
	b.lt	LBB0_6
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x20, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_dell_wmi_process_key
	b	LBB0_6
LBB0_17:
	str	x1, [sp]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
LBB0_18:
	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
	add	sp, sp, #96
	ret
LBB0_19:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	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
	add	sp, sp, #96
	b	_pr_warn
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_TYPE_BUFFER,8,3           ; @ACPI_TYPE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad response type %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Received WMI event (%*ph)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid length of WMI event\n"

l_.str.3:                               ; @.str.3
	.asciz	"Process buffer (%*ph)\n"

l_.str.4:                               ; @.str.4
	.asciz	"Unknown WMI event type 0x%x\n"

	.no_dead_strip	_dell_wmi_notify
.subsections_via_symbols
