	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function linuxraw_input_poll
_linuxraw_input_poll:                   ## @linuxraw_input_poll
	.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
	movq	%rdi, %rbx
	movq	_STDIN_FILENO@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	-44(%rbp), %rsi
	movl	$1, %edx
	callq	_read
	testq	%rax, %rax
	jle	LBB0_10
## %bb.1:
	movq	_KEY_C@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_getpid
	movq	_SIGINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kill
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rax
	andq	$-129, %rax
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	testb	$-128, %r14b
	sete	%cl
	movq	(%rbx), %rdx
	movl	%ecx, (%rdx,%rax,4)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_read
	testq	%rax, %rax
	jle	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	-44(%rbp), %r14
	cmpl	(%r13), %r14d
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	movq	_KEY_LEFTCTRL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_KEY_RIGHTCTRL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	jne	LBB0_5
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	leaq	-48(%rbp), %rsi
	movl	$2, %edx
	callq	_read
	jmp	LBB0_9
LBB0_10:
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*(%rcx)                         ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_KEY_C,4,2                      ## @KEY_C
	.comm	_KEY_LEFTCTRL,8,3               ## @KEY_LEFTCTRL
	.comm	_KEY_RIGHTCTRL,8,3              ## @KEY_RIGHTCTRL
	.comm	_SIGINT,4,2                     ## @SIGINT
	.no_dead_strip	_linuxraw_input_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function linuxraw_input_poll
_linuxraw_input_poll:                   ; @linuxraw_input_poll
	.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	x19, x0
Lloh0:
	adrp	x20, _STDIN_FILENO@GOTPAGE
Lloh1:
	ldr	x20, [x20, _STDIN_FILENO@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w21, #1
	add	x1, sp, #12
	mov	w2, #1
	bl	_read
	cmp	x0, #1
	b.lt	LBB0_10
; %bb.1:
Lloh2:
	adrp	x22, _KEY_C@GOTPAGE
Lloh3:
	ldr	x22, [x22, _KEY_C@GOTPAGEOFF]
Lloh4:
	adrp	x23, _KEY_LEFTCTRL@GOTPAGE
Lloh5:
	ldr	x23, [x23, _KEY_LEFTCTRL@GOTPAGEOFF]
Lloh6:
	adrp	x24, _KEY_RIGHTCTRL@GOTPAGE
Lloh7:
	ldr	x24, [x24, _KEY_RIGHTCTRL@GOTPAGEOFF]
Lloh8:
	adrp	x25, _SIGINT@GOTPAGE
Lloh9:
	ldr	x25, [x25, _SIGINT@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_getpid
	ldr	w1, [x25]
	bl	_kill
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ands	w8, w26, #0xffffff7f
	str	w8, [sp, #12]
	b.eq	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_6 Depth=1
	bic	w9, w21, w26, lsr #7
	ldr	x10, [x19]
	str	w9, [x10, w8, sxtw #2]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x20]
	add	x1, sp, #12
	mov	w2, #1
	bl	_read
	cmp	x0, #0
	b.le	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w26, [sp, #12]
	ldr	w8, [x22]
	cmp	w26, w8
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x23]
	ldr	w9, [x8, x9, lsl #2]
	cbnz	w9, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x24]
	ldr	w8, [x8, x9, lsl #2]
	cbnz	w8, LBB0_2
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x20]
	add	x1, sp, #8
	mov	w2, #2
	bl	_read
	b	LBB0_5
LBB0_10:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	x0, [x8]
	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
	br	x0
LBB0_12:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_KEY_C,4,2                      ; @KEY_C
	.comm	_KEY_LEFTCTRL,8,3               ; @KEY_LEFTCTRL
	.comm	_KEY_RIGHTCTRL,8,3              ; @KEY_RIGHTCTRL
	.comm	_SIGINT,4,2                     ; @SIGINT
	.no_dead_strip	_linuxraw_input_poll
.subsections_via_symbols
