	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_handspring_reset               ## -- Begin function handspring_reset
	.p2align	4, 0x90
_handspring_reset:                      ## @handspring_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_VCC_PIN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_PinLevelLow@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_digitalWrite
	movl	$5, %edi
	callq	__delay_ms
	movl	(%rbx), %edi
	movq	_PinLevelHigh@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_digitalWrite
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_handspring_handshake
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_timer_read
	movq	_last_activity@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_disconnect_counter@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	$1, %ebx
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_print
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VCC_PIN,4,2                    ## @VCC_PIN
	.comm	_PinLevelLow,4,2                ## @PinLevelLow
	.comm	_PinLevelHigh,4,2               ## @PinLevelHigh
	.comm	_last_activity,4,2              ## @last_activity
	.comm	_disconnect_counter,8,3         ## @disconnect_counter
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-HSreset"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_handspring_reset               ; -- Begin function handspring_reset
	.p2align	2
_handspring_reset:                      ; @handspring_reset
	.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
Lloh0:
	adrp	x19, _VCC_PIN@GOTPAGE
Lloh1:
	ldr	x19, [x19, _VCC_PIN@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _PinLevelLow@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PinLevelLow@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_digitalWrite
	mov	w0, #5
	bl	__delay_ms
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _PinLevelHigh@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PinLevelHigh@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_digitalWrite
	bl	_handspring_handshake
	cbz	x0, LBB0_2
; %bb.1:
	bl	_timer_read
Lloh8:
	adrp	x8, _last_activity@GOTPAGE
Lloh9:
	ldr	x8, [x8, _last_activity@GOTPAGEOFF]
Lloh10:
	str	w0, [x8]
Lloh11:
	adrp	x8, _disconnect_counter@GOTPAGE
Lloh12:
	ldr	x8, [x8, _disconnect_counter@GOTPAGEOFF]
Lloh13:
	str	xzr, [x8]
	mov	w0, #1
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_print
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_VCC_PIN,4,2                    ; @VCC_PIN
	.comm	_PinLevelLow,4,2                ; @PinLevelLow
	.comm	_PinLevelHigh,4,2               ; @PinLevelHigh
	.comm	_last_activity,4,2              ; @last_activity
	.comm	_disconnect_counter,8,3         ; @disconnect_counter
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-HSreset"

.subsections_via_symbols
