	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmi_input_setup
_wmi_input_setup:                       ## @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
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	_wmi_input_dev@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%rax)
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 8(%rdi)
	movq	_BUS_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	movq	_wmi_keymap@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_sparse_keymap_setup
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movq	(%rbx), %rdi
	callq	_input_register_device
	testq	%rax, %rax
	je	LBB0_3
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_info
	movq	(%rbx), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_input_free_device              ## TAILCALL
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pr_info                        ## TAILCALL
LBB0_3:
	movq	_INIT_SPARSE_KEYMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_inited@GOTPCREL(%rip), %r14
	orl	%eax, (%r14)
	movq	_WMI_EVENT_GUID0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_wmi_notify@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_wmi_install_notify_handler
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_INIT_INPUT_WMI_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_5:
	movq	_WMI_EVENT_GUID2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movl	$2, %edx
	callq	_wmi_install_notify_handler
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_INIT_INPUT_WMI_2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wmi_input_dev,8,3              ## @wmi_input_dev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LG WMI hotkeys"

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

	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_wmi_keymap,4,2                 ## @wmi_keymap
L_.str.2:                               ## @.str.2
	.asciz	"Cannot initialize input device"

	.comm	_INIT_SPARSE_KEYMAP,4,2         ## @INIT_SPARSE_KEYMAP
	.comm	_inited,4,2                     ## @inited
	.comm	_WMI_EVENT_GUID0,4,2            ## @WMI_EVENT_GUID0
	.comm	_wmi_notify,4,2                 ## @wmi_notify
	.comm	_INIT_INPUT_WMI_0,4,2           ## @INIT_INPUT_WMI_0
	.comm	_WMI_EVENT_GUID2,4,2            ## @WMI_EVENT_GUID2
	.comm	_INIT_INPUT_WMI_2,4,2           ## @INIT_INPUT_WMI_2
L_.str.3:                               ## @.str.3
	.asciz	"Cannot allocate input device"

	.no_dead_strip	_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 wmi_input_setup
_wmi_input_setup:                       ; @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
	bl	_input_allocate_device
Lloh0:
	adrp	x19, _wmi_input_dev@GOTPAGE
Lloh1:
	ldr	x19, [x19, _wmi_input_dev@GOTPAGEOFF]
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, l_.str@PAGE
Lloh3:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
	ldr	x0, [x19]
Lloh4:
	adrp	x8, l_.str.1@PAGE
Lloh5:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh6:
	adrp	x9, _BUS_HOST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BUS_HOST@GOTPAGEOFF]
	str	x8, [x0, #8]
Lloh8:
	ldr	w8, [x9]
	str	w8, [x0, #16]
Lloh9:
	adrp	x8, _wmi_keymap@GOTPAGE
Lloh10:
	ldr	x8, [x8, _wmi_keymap@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_sparse_keymap_setup
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x19]
	bl	_input_register_device
	cbz	x0, LBB0_5
LBB0_3:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_input_free_device
LBB0_4:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pr_info
LBB0_5:
Lloh16:
	adrp	x8, _INIT_SPARSE_KEYMAP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _INIT_SPARSE_KEYMAP@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x19, _inited@GOTPAGE
Lloh20:
	ldr	x19, [x19, _inited@GOTPAGEOFF]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh21:
	adrp	x8, _WMI_EVENT_GUID0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WMI_EVENT_GUID0@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x20, _wmi_notify@GOTPAGE
Lloh25:
	ldr	x20, [x20, _wmi_notify@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x2, #0
	bl	_wmi_install_notify_handler
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_7
; %bb.6:
Lloh26:
	adrp	x8, _INIT_INPUT_WMI_0@GOTPAGE
Lloh27:
	ldr	x8, [x8, _INIT_INPUT_WMI_0@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_7:
Lloh29:
	adrp	x8, _WMI_EVENT_GUID2@GOTPAGE
Lloh30:
	ldr	x8, [x8, _WMI_EVENT_GUID2@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldr	w1, [x20]
	mov	w2, #2
	bl	_wmi_install_notify_handler
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_9
; %bb.8:
Lloh32:
	adrp	x8, _INIT_INPUT_WMI_2@GOTPAGE
Lloh33:
	ldr	x8, [x8, _INIT_INPUT_WMI_2@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_wmi_input_dev,8,3              ; @wmi_input_dev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LG WMI hotkeys"

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

	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_wmi_keymap,4,2                 ; @wmi_keymap
l_.str.2:                               ; @.str.2
	.asciz	"Cannot initialize input device"

	.comm	_INIT_SPARSE_KEYMAP,4,2         ; @INIT_SPARSE_KEYMAP
	.comm	_inited,4,2                     ; @inited
	.comm	_WMI_EVENT_GUID0,4,2            ; @WMI_EVENT_GUID0
	.comm	_wmi_notify,4,2                 ; @wmi_notify
	.comm	_INIT_INPUT_WMI_0,4,2           ; @INIT_INPUT_WMI_0
	.comm	_WMI_EVENT_GUID2,4,2            ; @WMI_EVENT_GUID2
	.comm	_INIT_INPUT_WMI_2,4,2           ; @INIT_INPUT_WMI_2
l_.str.3:                               ; @.str.3
	.asciz	"Cannot allocate input device"

	.no_dead_strip	_wmi_input_setup
.subsections_via_symbols
