	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hgpk_force_recalibrate
_hgpk_force_recalibrate:                ## @hgpk_force_recalibrate
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_HGPK_MODEL_C@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jl	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	leaq	16(%rdi), %r15
	movq	8(%rdi), %r12
	movq	_PSMOUSE_INITIALIZING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_psmouse_set_state
	movq	%rbx, %rdi
	callq	_psmouse_reset
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$245, %edx
	callq	_ps2_command
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$245, %edx
	callq	_ps2_command
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$230, %edx
	callq	_ps2_command
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$245, %edx
	callq	_ps2_command
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movl	$150, %edi
	callq	_msleep
	movq	_PSMOUSE_CMD_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ps2_command
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	_PSMOUSE_ACTIVATED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_psmouse_set_state
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_recal_guard_time@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%rbx, %rax
	movq	%rax, (%r12)
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HGPK_MODEL_C,8,3               ## @HGPK_MODEL_C
	.comm	_PSMOUSE_INITIALIZING,4,2       ## @PSMOUSE_INITIALIZING
	.comm	_PSMOUSE_CMD_ENABLE,4,2         ## @PSMOUSE_CMD_ENABLE
	.comm	_PSMOUSE_ACTIVATED,4,2          ## @PSMOUSE_ACTIVATED
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_recal_guard_time,4,2           ## @recal_guard_time
	.no_dead_strip	_hgpk_force_recalibrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hgpk_force_recalibrate
_hgpk_force_recalibrate:                ; @hgpk_force_recalibrate
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _HGPK_MODEL_C@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HGPK_MODEL_C@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	mov	x19, x0
	add	x20, x0, #16
	ldr	x21, [x0, #8]
Lloh3:
	adrp	x8, _PSMOUSE_INITIALIZING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PSMOUSE_INITIALIZING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_psmouse_set_state
	mov	x0, x19
	bl	_psmouse_reset
	mov	x0, x20
	mov	x1, #0
	mov	w2, #245
	bl	_ps2_command
	cbnz	x0, LBB0_7
; %bb.3:
	mov	x0, x20
	mov	x1, #0
	mov	w2, #245
	bl	_ps2_command
	cbnz	x0, LBB0_7
; %bb.4:
	mov	x0, x20
	mov	x1, #0
	mov	w2, #230
	bl	_ps2_command
	cbnz	x0, LBB0_7
; %bb.5:
	mov	x0, x20
	mov	x1, #0
	mov	w2, #245
	bl	_ps2_command
	cbnz	x0, LBB0_7
; %bb.6:
	mov	w0, #150
	bl	_msleep
Lloh6:
	adrp	x8, _PSMOUSE_CMD_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PSMOUSE_CMD_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, #0
	bl	_ps2_command
	cbz	x0, LBB0_9
LBB0_7:
	mov	w0, #-1
LBB0_8:
	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_9:
Lloh9:
	adrp	x8, _PSMOUSE_ACTIVATED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PSMOUSE_ACTIVATED@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_psmouse_set_state
Lloh12:
	adrp	x8, _jiffies@GOTPAGE
Lloh13:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh14:
	ldr	x19, [x8]
Lloh15:
	adrp	x8, _recal_guard_time@GOTPAGE
Lloh16:
	ldr	x8, [x8, _recal_guard_time@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x8, x0
	mov	w0, #0
	add	x8, x8, x19
	str	x8, [x21]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HGPK_MODEL_C,8,3               ; @HGPK_MODEL_C
	.comm	_PSMOUSE_INITIALIZING,4,2       ; @PSMOUSE_INITIALIZING
	.comm	_PSMOUSE_CMD_ENABLE,4,2         ; @PSMOUSE_CMD_ENABLE
	.comm	_PSMOUSE_ACTIVATED,4,2          ; @PSMOUSE_ACTIVATED
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_recal_guard_time,4,2           ; @recal_guard_time
	.no_dead_strip	_hgpk_force_recalibrate
.subsections_via_symbols
