	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function huawei_wmi_input_setup
_huawei_wmi_input_setup:                ## @huawei_wmi_input_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_devm_input_allocate_device
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%rax)
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	_BUS_HOST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	%rbx, 16(%rax)
	movq	_huawei_wmi_keymap@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_sparse_keymap_setup
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:
	movq	(%r14), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_input_register_device          ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Huawei WMI hotkeys"

L_.str.1:                               ## @.str.1
	.asciz	"wmi/input0"

	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_huawei_wmi_keymap,4,2          ## @huawei_wmi_keymap
	.no_dead_strip	_huawei_wmi_input_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function huawei_wmi_input_setup
_huawei_wmi_input_setup:                ; @huawei_wmi_input_setup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_dev_get_drvdata
	mov	x19, x0
	mov	x0, x20
	bl	_devm_input_allocate_device
	str	x0, [x19]
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	stp	x8, x9, [x0]
Lloh4:
	adrp	x8, _BUS_HOST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BUS_HOST@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	str	x20, [x0, #16]
Lloh7:
	adrp	x8, _huawei_wmi_keymap@GOTPAGE
Lloh8:
	ldr	x8, [x8, _huawei_wmi_keymap@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_sparse_keymap_setup
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_input_register_device
LBB0_3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Huawei WMI hotkeys"

l_.str.1:                               ; @.str.1
	.asciz	"wmi/input0"

	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_huawei_wmi_keymap,4,2          ; @huawei_wmi_keymap
	.no_dead_strip	_huawei_wmi_input_setup
.subsections_via_symbols
