	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	_HGPK_MODEL_C@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	_autorecal@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.3:
	movq	8(%rbx), %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_psmouse_dbg
	movq	_PSMOUSE_INITIALIZING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_psmouse_set_state
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_hgpk_reset_device
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movq	%rbx, %rdi
	callq	_psmouse_activate
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_10
## %bb.5:
	movq	_tpdebug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_psmouse_dbg
LBB0_7:
	movq	_recal_guard_time@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	callq	_msecs_to_jiffies
	addq	%rbx, %rax
	movq	%rax, (%r14)
	jmp	LBB0_9
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_psmouse_dbg
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HGPK_MODEL_C,8,3               ## @HGPK_MODEL_C
	.comm	_autorecal,4,2                  ## @autorecal
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"recalibration disabled, ignoring\n"

L_.str.1:                               ## @.str.1
	.asciz	"recalibrating touchpad..\n"

	.comm	_PSMOUSE_INITIALIZING,4,2       ## @PSMOUSE_INITIALIZING
	.comm	_tpdebug,8,3                    ## @tpdebug
L_.str.2:                               ## @.str.2
	.asciz	"touchpad reactivated\n"

	.comm	_recal_guard_time,8,3           ## @recal_guard_time
	.comm	_jiffies,8,3                    ## @jiffies
	.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	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
	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.lt	LBB0_6
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _autorecal@GOTPAGE
Lloh4:
	ldr	x8, [x8, _autorecal@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	x20, [x19, #8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_psmouse_dbg
Lloh8:
	adrp	x8, _PSMOUSE_INITIALIZING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PSMOUSE_INITIALIZING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_psmouse_set_state
	mov	x0, x19
	mov	w1, #1
	bl	_hgpk_reset_device
	cbnz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_psmouse_activate
	cbz	x0, LBB0_8
; %bb.4:
	mov	w0, #-1
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_psmouse_dbg
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh13:
	adrp	x8, _tpdebug@GOTPAGE
Lloh14:
	ldr	x8, [x8, _tpdebug@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_psmouse_dbg
LBB0_10:
Lloh18:
	adrp	x8, _recal_guard_time@GOTPAGE
Lloh19:
	ldr	x8, [x8, _recal_guard_time@GOTPAGEOFF]
Lloh20:
	ldr	x0, [x8]
	cbz	x0, LBB0_7
; %bb.11:
Lloh21:
	adrp	x8, _jiffies@GOTPAGE
Lloh22:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh23:
	ldr	x19, [x8]
	bl	_msecs_to_jiffies
	mov	x8, x0
	mov	w0, #0
	add	x8, x8, x19
	str	x8, [x20]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_HGPK_MODEL_C,8,3               ; @HGPK_MODEL_C
	.comm	_autorecal,4,2                  ; @autorecal
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"recalibration disabled, ignoring\n"

l_.str.1:                               ; @.str.1
	.asciz	"recalibrating touchpad..\n"

	.comm	_PSMOUSE_INITIALIZING,4,2       ; @PSMOUSE_INITIALIZING
	.comm	_tpdebug,8,3                    ; @tpdebug
l_.str.2:                               ; @.str.2
	.asciz	"touchpad reactivated\n"

	.comm	_recal_guard_time,8,3           ; @recal_guard_time
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_hgpk_force_recalibrate
.subsections_via_symbols
