	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_pcc_init_input
_acpi_pcc_init_input:                   ## @acpi_pcc_init_input
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_input_allocate_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_ACPI_PCC_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_ACPI_PCC_INPUT_PHYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_BUS_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
	movl	$256, 8(%rbx)                   ## imm = 0x100
	movq	_panasonic_keymap@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_sparse_keymap_setup
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_7
LBB0_4:
	movq	%rbx, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
LBB0_6:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
	movq	%rbx, %rdi
	callq	_input_free_device
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, (%r15)
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ACPI_PCC_DRIVER_NAME,4,2       ## @ACPI_PCC_DRIVER_NAME
	.comm	_ACPI_PCC_INPUT_PHYS,4,2        ## @ACPI_PCC_INPUT_PHYS
	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_panasonic_keymap,4,2           ## @panasonic_keymap
	.comm	_ACPI_DB_ERROR,4,2              ## @ACPI_DB_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to setup input device keymap\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to register input device\n"

	.no_dead_strip	_acpi_pcc_init_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_pcc_init_input
_acpi_pcc_init_input:                   ; @acpi_pcc_init_input
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	bl	_input_allocate_device
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _ACPI_PCC_DRIVER_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_PCC_DRIVER_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ACPI_PCC_INPUT_PHYS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ACPI_PCC_INPUT_PHYS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
Lloh6:
	adrp	x8, _BUS_HOST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BUS_HOST@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	movi.2s	v0, #1
	str	d0, [x0]
	mov	w9, #256
	stp	w9, w8, [x0, #8]
Lloh9:
	adrp	x8, _panasonic_keymap@GOTPAGE
Lloh10:
	ldr	x8, [x8, _panasonic_keymap@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_sparse_keymap_setup
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_input_register_device
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.5:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_6:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_DEBUG_PRINT
	mov	x0, x19
	bl	_input_free_device
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	str	x19, [x21]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ACPI_PCC_DRIVER_NAME,4,2       ; @ACPI_PCC_DRIVER_NAME
	.comm	_ACPI_PCC_INPUT_PHYS,4,2        ; @ACPI_PCC_INPUT_PHYS
	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_panasonic_keymap,4,2           ; @panasonic_keymap
	.comm	_ACPI_DB_ERROR,4,2              ; @ACPI_DB_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to setup input device keymap\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to register input device\n"

	.no_dead_strip	_acpi_pcc_init_input
.subsections_via_symbols
