	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_waiting_buffer_has_anykey_pressed ## -- Begin function waiting_buffer_has_anykey_pressed
	.p2align	4, 0x90
_waiting_buffer_has_anykey_pressed:     ## @waiting_buffer_has_anykey_pressed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_waiting_buffer_tail@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_waiting_buffer_head@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%eax, %eax
	cmpl	%r8d, %edx
	je	LBB0_5
## %bb.1:
	movq	_waiting_buffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_WAITING_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%edx, %rax
	movq	(%rsi,%rax,8), %rcx
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%edx
	movl	%edx, %eax
	cltd
	idivl	%edi
	cmpl	%r8d, %edx
	jne	LBB0_2
LBB0_4:
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_waiting_buffer_tail,4,2        ## @waiting_buffer_tail
	.comm	_waiting_buffer_head,4,2        ## @waiting_buffer_head
	.comm	_waiting_buffer,8,3             ## @waiting_buffer
	.comm	_WAITING_BUFFER_SIZE,4,2        ## @WAITING_BUFFER_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_waiting_buffer_has_anykey_pressed ; -- Begin function waiting_buffer_has_anykey_pressed
	.p2align	2
_waiting_buffer_has_anykey_pressed:     ; @waiting_buffer_has_anykey_pressed
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _waiting_buffer_tail@GOTPAGE
Lloh1:
	ldr	x8, [x8, _waiting_buffer_tail@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _waiting_buffer_head@GOTPAGE
Lloh4:
	ldr	x8, [x8, _waiting_buffer_head@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w9, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
Lloh6:
	adrp	x10, _waiting_buffer@GOTPAGE
Lloh7:
	ldr	x10, [x10, _waiting_buffer@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _WAITING_BUFFER_SIZE@GOTPAGE
Lloh10:
	ldr	x11, [x11, _WAITING_BUFFER_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10, w9, sxtw #3]
	cbnz	x12, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w9, #1
	sdiv	w13, w9, w11
	msub	w9, w13, w11, w9
	cmp	w9, w8
	b.ne	LBB0_3
LBB0_5:
	cmp	x12, #0
	cset	w0, ne
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_waiting_buffer_tail,4,2        ; @waiting_buffer_tail
	.comm	_waiting_buffer_head,4,2        ; @waiting_buffer_head
	.comm	_waiting_buffer,8,3             ; @waiting_buffer
	.comm	_WAITING_BUFFER_SIZE,4,2        ; @WAITING_BUFFER_SIZE
.subsections_via_symbols
