	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i8042_start
_i8042_start:                           ## @i8042_start
	.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
	movq	8(%rdi), %r14
	movl	$1, %esi
	callq	_device_set_wakeup_capable
	xorl	%eax, %eax
	callq	_pm_suspend_default_s2idle
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_i8042_ports@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_I8042_KBD_PORT_NO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rbx, (%rax,%rcx,8)
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_device_set_wakeup_enable
LBB0_3:
	movq	_i8042_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movl	$1, (%r14)
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i8042_ports,8,3                ## @i8042_ports
	.comm	_I8042_KBD_PORT_NO,8,3          ## @I8042_KBD_PORT_NO
	.comm	_i8042_lock,4,2                 ## @i8042_lock
	.no_dead_strip	_i8042_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i8042_start
_i8042_start:                           ; @i8042_start
	.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	x19, x0
	ldr	x20, [x0, #8]
	mov	w21, #1
	mov	w1, #1
	bl	_device_set_wakeup_capable
	bl	_pm_suspend_default_s2idle
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _i8042_ports@GOTPAGE
Lloh1:
	ldr	x8, [x8, _i8042_ports@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _I8042_KBD_PORT_NO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I8042_KBD_PORT_NO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cmp	x8, x19
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #1
	bl	_device_set_wakeup_enable
LBB0_3:
Lloh6:
	adrp	x19, _i8042_lock@GOTPAGE
Lloh7:
	ldr	x19, [x19, _i8042_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_spin_lock_irq
	str	w21, [x20]
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_i8042_ports,8,3                ; @i8042_ports
	.comm	_I8042_KBD_PORT_NO,8,3          ; @I8042_KBD_PORT_NO
	.comm	_i8042_lock,4,2                 ; @i8042_lock
	.no_dead_strip	_i8042_start
.subsections_via_symbols
