	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps2_adjust_timeout
_ps2_adjust_timeout:                    ## @ps2_adjust_timeout
	.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
	movl	%edx, %ebx
	cmpl	$129, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$128, %esi
	jne	LBB0_8
## %bb.2:
	movl	$100, %edi
	callq	_msecs_to_jiffies
	cmpl	%ebx, %eax
	jae	LBB0_8
## %bb.3:
	movl	$100, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_msecs_to_jiffies               ## TAILCALL
LBB0_4:
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	4(%rax), %edi
	cmpl	$170, %edi
	jne	LBB0_6
## %bb.5:
	movl	8(%r14), %edi
	callq	_serio_pause_rx
	movl	$0, 16(%r14)
	movl	8(%r14), %edi
	callq	_serio_continue_rx
	movq	(%r14), %rax
	movl	4(%rax), %edi
	xorl	%ebx, %ebx
LBB0_6:
	callq	_ps2_is_keyboard_id
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	8(%r14), %edi
	callq	_serio_pause_rx
	movq	$0, 12(%r14)
	movl	8(%r14), %edi
	callq	_serio_continue_rx
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ps2_adjust_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps2_adjust_timeout
_ps2_adjust_timeout:                    ; @ps2_adjust_timeout
	.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	x19, x2
	cmp	w1, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #128
	b.ne	LBB0_8
; %bb.2:
	mov	w0, #100
	bl	_msecs_to_jiffies
	cmp	w0, w19
	b.hs	LBB0_8
; %bb.3:
	mov	w0, #100
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_msecs_to_jiffies
LBB0_4:
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w0, [x8, #4]
	cmp	w0, #170
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x20, #8]
	bl	_serio_pause_rx
	str	wzr, [x20, #16]
	ldr	w0, [x20, #8]
	bl	_serio_continue_rx
	mov	w19, #0
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
LBB0_6:
	bl	_ps2_is_keyboard_id
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	w0, [x20, #8]
	bl	_serio_pause_rx
	stp	wzr, wzr, [x20, #12]
	ldr	w0, [x20, #8]
	bl	_serio_continue_rx
	mov	w19, #0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ps2_adjust_timeout
.subsections_via_symbols
