	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hgpk_disconnect
_hgpk_disconnect:                       ## @hgpk_disconnect
	.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), %rdi
	movq	16(%rbx), %r14
	movq	_psmouse_attr_powered@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movq	8(%rbx), %rdi
	movq	_psmouse_attr_hgpk_mode@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movq	(%rbx), %rax
	movq	_HGPK_MODEL_C@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.1:
	movq	8(%rbx), %rdi
	movq	_psmouse_attr_recalibrate@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
LBB0_2:
	movq	%rbx, %rdi
	callq	_psmouse_reset
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_psmouse_attr_powered,4,2       ## @psmouse_attr_powered
	.comm	_psmouse_attr_hgpk_mode,4,2     ## @psmouse_attr_hgpk_mode
	.comm	_HGPK_MODEL_C,8,3               ## @HGPK_MODEL_C
	.comm	_psmouse_attr_recalibrate,4,2   ## @psmouse_attr_recalibrate
	.no_dead_strip	_hgpk_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hgpk_disconnect
_hgpk_disconnect:                       ; @hgpk_disconnect
	.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	x20, x0
	ldp	x0, x19, [x0, #8]
Lloh0:
	adrp	x1, _psmouse_attr_powered@GOTPAGE
Lloh1:
	ldr	x1, [x1, _psmouse_attr_powered@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	x0, [x20, #8]
Lloh2:
	adrp	x1, _psmouse_attr_hgpk_mode@GOTPAGE
Lloh3:
	ldr	x1, [x1, _psmouse_attr_hgpk_mode@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	x8, [x20]
Lloh4:
	adrp	x9, _HGPK_MODEL_C@GOTPAGE
Lloh5:
	ldr	x9, [x9, _HGPK_MODEL_C@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_2
; %bb.1:
	ldr	x0, [x20, #8]
Lloh7:
	adrp	x1, _psmouse_attr_recalibrate@GOTPAGE
Lloh8:
	ldr	x1, [x1, _psmouse_attr_recalibrate@GOTPAGEOFF]
	bl	_device_remove_file
LBB0_2:
	mov	x0, x20
	bl	_psmouse_reset
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_psmouse_attr_powered,4,2       ; @psmouse_attr_powered
	.comm	_psmouse_attr_hgpk_mode,4,2     ; @psmouse_attr_hgpk_mode
	.comm	_HGPK_MODEL_C,8,3               ; @HGPK_MODEL_C
	.comm	_psmouse_attr_recalibrate,4,2   ; @psmouse_attr_recalibrate
	.no_dead_strip	_hgpk_disconnect
.subsections_via_symbols
