	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TestInput                      ## -- Begin function TestInput
	.p2align	4, 0x90
_TestInput:                             ## @TestInput
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	_CurPer@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	%esi, %edi
	callq	*(%rax)
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_printf
	xorl	%eax, %eax
	callq	_YabauseGetTicks
	movl	%eax, %r13d
	xorl	%eax, %eax
	callq	_YabauseGetTicks
	movl	%eax, %ebx
	movq	(%r14), %rax
	movl	%r12d, %edi
	callq	*(%rax)
	testl	%eax, %eax
	sete	%cl
	jne	LBB0_4
## %bb.1:
	imull	-44(%rbp), %r15d                ## 4-byte Folded Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	subl	%r13d, %ebx
	cmpl	%r15d, %ebx
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_YabauseGetTicks
	movl	%eax, %ebx
	movq	(%r14), %rax
	movl	%r12d, %edi
	callq	*(%rax)
	testl	%eax, %eax
	sete	%cl
	je	LBB0_2
LBB0_4:
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_8
LBB0_6:
	xorl	%ebx, %ebx
	testb	%cl, %cl
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CurPer,8,3                     ## @CurPer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s Timeout in %d seconds\n"

L_.str.1:                               ## @.str.1
	.asciz	"Data present before press. result code: %08X"

L_.str.2:                               ## @.str.2
	.asciz	"result code: %08X"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TestInput                      ; -- Begin function TestInput
	.p2align	2
_TestInput:                             ; @TestInput
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x25, _CurPer@GOTPAGE
Lloh1:
	ldr	x25, [x25, _CurPer@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	x8, [x8]
	mov	x0, x1
	blr	x8
	mov	x19, x0
	stp	x21, x23, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	bl	_YabauseGetTicks
	mov	x21, x0
	bl	_YabauseGetTicks
	mov	x24, x0
	mul	w23, w22, w23
	ldr	x8, [x25]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #0
	cset	w8, eq
	sub	w9, w24, w21
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w0, #0
	ccmp	w9, w23, #0, eq
	b.ge	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_YabauseGetTicks
	mov	x22, x0
	ldr	x8, [x25]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #0
	cset	w8, eq
	sub	w9, w22, w21
	b	LBB0_1
LBB0_3:
	cbz	w19, LBB0_5
; %bb.4:
	str	x19, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	tbz	w8, #0, LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	str	x0, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CurPer,8,3                     ; @CurPer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s Timeout in %d seconds\n"

l_.str.1:                               ; @.str.1
	.asciz	"Data present before press. result code: %08X"

l_.str.2:                               ; @.str.2
	.asciz	"result code: %08X"

.subsections_via_symbols
