	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_pcc_generate_keyinput
_acpi_pcc_generate_keyinput:            ## @acpi_pcc_generate_keyinput
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	8(%rdi), %rbx
	movl	(%rdi), %edi
	movq	_METHOD_HKEY_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rcx
	xorl	%edx, %edx
	callq	_acpi_evaluate_integer
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
LBB0_10:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
	jmp	LBB0_11
LBB0_2:
	movq	-16(%rbp), %rdx
	movl	%edx, %esi
	andl	$15, %esi
	cmpq	$10, %rsi
	je	LBB0_4
## %bb.3:
	cmpl	$7, %esi
	jne	LBB0_8
LBB0_4:
	movq	_sleep_keydown_seen@GOTPCREL(%rip), %rax
	testb	$-128, %dl
	jne	LBB0_5
## %bb.6:
	cmpl	$0, (%rax)
	jne	LBB0_8
## %bb.7:
	movl	$128, %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_sparse_keymap_report_event
	movq	-16(%rbp), %rdx
	movl	%edx, %esi
	andl	$15, %esi
	jmp	LBB0_8
LBB0_5:
	movl	$1, (%rax)
LBB0_8:
	andl	$128, %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_sparse_keymap_report_event
	testl	%eax, %eax
	je	LBB0_9
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_9:
	movl	-16(%rbp), %edi
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_METHOD_HKEY_QUERY,4,2          ## @METHOD_HKEY_QUERY
	.comm	_ACPI_DB_ERROR,4,2              ## @ACPI_DB_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error getting hotkey status\n"

	.comm	_sleep_keydown_seen,4,2         ## @sleep_keydown_seen
	.no_dead_strip	_acpi_pcc_generate_keyinput
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_pcc_generate_keyinput
_acpi_pcc_generate_keyinput:            ; @acpi_pcc_generate_keyinput
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x19, [x0, #8]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _METHOD_HKEY_QUERY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _METHOD_HKEY_QUERY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x2, #0
	bl	_acpi_evaluate_integer
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_DEBUG_PRINT
	b	LBB0_9
LBB0_3:
	ldr	x8, [sp, #8]
	and	x1, x8, #0xf
	cmp	x1, #10
	ccmp	x1, #7, #4, ne
	b.ne	LBB0_8
; %bb.4:
Lloh5:
	adrp	x9, _sleep_keydown_seen@GOTPAGE
Lloh6:
	ldr	x9, [x9, _sleep_keydown_seen@GOTPAGEOFF]
	tbnz	w8, #7, LBB0_7
; %bb.5:
	ldr	w9, [x9]
	cbnz	w9, LBB0_8
; %bb.6:
	mov	x0, x19
	mov	w2, #128
	mov	w3, #0
	bl	_sparse_keymap_report_event
	ldr	x8, [sp, #8]
	and	x1, x8, #0xf
	b	LBB0_8
LBB0_7:
	mov	w10, #1
	str	w10, [x9]
LBB0_8:
	and	x2, x8, #0x80
	mov	x0, x19
	mov	w3, #0
	bl	_sparse_keymap_report_event
	cbz	w0, LBB0_10
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_10:
	ldr	w0, [sp, #8]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_METHOD_HKEY_QUERY,4,2          ; @METHOD_HKEY_QUERY
	.comm	_ACPI_DB_ERROR,4,2              ; @ACPI_DB_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error getting hotkey status\n"

	.comm	_sleep_keydown_seen,4,2         ; @sleep_keydown_seen
	.no_dead_strip	_acpi_pcc_generate_keyinput
.subsections_via_symbols
