	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function input_interrupt
_input_interrupt:                       ## @input_interrupt
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	$0, -32(%rbp)
	leaq	-36(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_FD_ZERO
	movq	_remote_desc@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_FD_SET
	movq	(%r14), %rdi
	incq	%rdi
	leaq	-32(%rbp), %r8
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_select
	testq	%rax, %rax
	jle	LBB0_5
## %bb.1:
	movq	(%r14), %rdi
	leaq	-17(%rbp), %rsi
	movl	$1, %edx
	callq	_read
	movb	-17(%rbp), %cl
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.2:
	cmpb	$3, %cl
	jne	LBB0_3
## %bb.4:
	movq	_the_target@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SIGINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	callq	*(%rax)
	jmp	LBB0_5
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movsbl	%cl, %ecx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_fprintf
LBB0_5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_remote_desc,8,3                ## @remote_desc
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"input_interrupt, cc = %d c = %d\n"

	.comm	_the_target,8,3                 ## @the_target
	.comm	_SIGINT,4,2                     ## @SIGINT
	.no_dead_strip	_input_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function input_interrupt
_input_interrupt:                       ; @input_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	xzr, [sp, #16]
	sub	x0, x29, #20
	bl	_FD_ZERO
Lloh0:
	adrp	x19, _remote_desc@GOTPAGE
Lloh1:
	ldr	x19, [x19, _remote_desc@GOTPAGEOFF]
	ldr	x0, [x19]
	sub	x1, x29, #20
	bl	_FD_SET
	ldr	x8, [x19]
	add	x0, x8, #1
	sub	x1, x29, #20
	add	x4, sp, #16
	mov	w2, #0
	mov	w3, #0
	bl	_select
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	x0, [x19]
	add	x1, sp, #15
	mov	w2, #1
	bl	_read
	ldrb	w8, [sp, #15]
	cmp	w0, #1
	ccmp	w8, #3, #0, eq
	b.eq	LBB0_3
; %bb.2:
	mov	x2, x0
Lloh2:
	adrp	x9, _stderr@GOTPAGE
Lloh3:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
	sxtb	w3, w8
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _the_target@GOTPAGE
Lloh8:
	ldr	x8, [x8, _the_target@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _SIGINT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SIGINT@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x9]
	blr	x8
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_remote_desc,8,3                ; @remote_desc
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"input_interrupt, cc = %d c = %d\n"

	.comm	_the_target,8,3                 ; @the_target
	.comm	_SIGINT,4,2                     ; @SIGINT
	.no_dead_strip	_input_interrupt
.subsections_via_symbols
