	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function huawei_wmi_process_key
_huawei_wmi_process_key:                ## @huawei_wmi_process_key
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_dev_get_drvdata
	movq	%rax, %r14
	cmpl	$128, %ebx
	jne	LBB0_6
## %bb.1:
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -40(%rbp)
	movl	$0, -32(%rbp)
	movq	_WMI0_EXPENSIVE_GUID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rdx
	xorl	%esi, %esi
	callq	_wmi_query_block
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_9
## %bb.2:
	movq	-48(%rbp), %rdi
	movl	$128, %ebx
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	movq	(%rdi), %rax
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	(%rdi), %ebx
LBB0_5:
	callq	_kfree
LBB0_6:
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_sparse_keymap_entry_from_scancode
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	(%r14), %edi
	movq	%rax, %rsi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_sparse_keymap_report_entry
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_dev_info
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ## @ACPI_ALLOCATE_BUFFER
	.comm	_WMI0_EXPENSIVE_GUID,4,2        ## @WMI0_EXPENSIVE_GUID
	.comm	_ACPI_TYPE_INTEGER,8,3          ## @ACPI_TYPE_INTEGER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown key pressed, code: 0x%04x\n"

	.no_dead_strip	_huawei_wmi_process_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function huawei_wmi_process_key
_huawei_wmi_process_key:                ; @huawei_wmi_process_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x1
	mov	x19, x0
	bl	_dev_get_drvdata
	mov	x20, x0
	cmp	w21, #128
	b.ne	LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _ACPI_ALLOCATE_BUFFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	stp	x8, xzr, [sp, #8]
	str	wzr, [sp, #24]
Lloh3:
	adrp	x8, _WMI0_EXPENSIVE_GUID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WMI0_EXPENSIVE_GUID@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	w1, #0
	bl	_wmi_query_block
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_10
; %bb.2:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w21, [x0]
	b	LBB0_6
LBB0_5:
	mov	w21, #128
LBB0_6:
	bl	_kfree
LBB0_7:
	ldr	w0, [x20]
	mov	x1, x21
	bl	_sparse_keymap_entry_from_scancode
	cbz	x0, LBB0_9
; %bb.8:
	mov	x1, x0
	ldr	w0, [x20]
	mov	w2, #1
	mov	w3, #1
	bl	_sparse_keymap_report_entry
	b	LBB0_10
LBB0_9:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_info
LBB0_10:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ; @ACPI_ALLOCATE_BUFFER
	.comm	_WMI0_EXPENSIVE_GUID,4,2        ; @WMI0_EXPENSIVE_GUID
	.comm	_ACPI_TYPE_INTEGER,8,3          ; @ACPI_TYPE_INTEGER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown key pressed, code: 0x%04x\n"

	.no_dead_strip	_huawei_wmi_process_key
.subsections_via_symbols
