	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_waiting_buffer_scan_tap        ## -- Begin function waiting_buffer_scan_tap
	.p2align	4, 0x90
_waiting_buffer_scan_tap:               ## @waiting_buffer_scan_tap
	.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	_tapping_key@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jg	LBB0_8
## %bb.1:
	movq	_tapping_key@GOTPCREL(%rip), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_8
## %bb.2:
	movq	_waiting_buffer_tail@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_waiting_buffer_head@GOTPCREL(%rip), %r15
	cmpl	(%r15), %ebx
	jne	LBB0_3
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_waiting_buffer@GOTPCREL(%rip), %r12
	movq	_WAITING_BUFFER_SIZE@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	movl	%ebx, %eax
	cltd
	idivl	(%r13)
	movl	%edx, %ebx
	cmpl	(%r15), %edx
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movslq	%ebx, %rcx
	leaq	(%rcx,%rcx,2), %r14
	movl	8(%rax,%r14,4), %edi
	callq	_IS_TAPPING_KEY
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rax
	cmpl	$0, 4(%rax,%r14,4)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rax,%r14,4), %rax
	addq	$4, %rax
	movq	(%rax), %rdi
	callq	_WITHIN_TAPPING_TERM
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	_tapping_key@GOTPCREL(%rip), %rdi
	movl	$1, (%rdi)
	movq	(%r12), %rax
	movl	$1, (%rax,%r14,4)
	callq	_process_record
	leaq	L_.str(%rip), %rdi
	callq	_debug
	movl	%ebx, %edi
	callq	_debug_dec
	leaq	L_.str.1(%rip), %rdi
	callq	_debug
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_debug_waiting_buffer           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tapping_key,8,2                ## @tapping_key
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"waiting_buffer_scan_tap: found at ["

L_.str.1:                               ## @.str.1
	.asciz	"]\n"

	.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_scan_tap        ; -- Begin function waiting_buffer_scan_tap
	.p2align	2
_waiting_buffer_scan_tap:               ; @waiting_buffer_scan_tap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x19, _tapping_key@GOTPAGE
Lloh1:
	ldr	x19, [x19, _tapping_key@GOTPAGEOFF]
	ldp	w8, w9, [x19]
	cmp	w8, #0
	ccmp	w9, #0, #4, le
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _waiting_buffer_tail@GOTPAGE
Lloh3:
	ldr	x8, [x8, _waiting_buffer_tail@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x21, _waiting_buffer_head@GOTPAGE
Lloh6:
	ldr	x21, [x21, _waiting_buffer_head@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ne	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh7:
	adrp	x22, _waiting_buffer@GOTPAGE
Lloh8:
	ldr	x22, [x22, _waiting_buffer@GOTPAGEOFF]
	mov	w23, #12
Lloh9:
	adrp	x24, _WAITING_BUFFER_SIZE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _WAITING_BUFFER_SIZE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w20, #1
	ldr	w9, [x24]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	ldr	w9, [x21]
	cmp	w8, w9
	b.eq	LBB0_2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	sxtw	x20, w8
	smaddl	x8, w8, w23, x9
	ldr	w0, [x8, #8]
	bl	_IS_TAPPING_KEY
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22]
	madd	x8, x20, x23, x8
	ldr	w9, [x8, #4]!
	cbnz	w9, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x8]
	bl	_WITHIN_TAPPING_TERM
	cbz	x0, LBB0_4
; %bb.8:
	mov	w8, #1
	str	w8, [x19]
	ldr	x9, [x22]
	mov	w10, #12
	mul	x10, x20, x10
	str	w8, [x9, x10]
	mov	x0, x19
	bl	_process_record
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug
	mov	x0, x20
	bl	_debug_dec
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debug
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_debug_waiting_buffer
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_tapping_key,8,2                ; @tapping_key
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"waiting_buffer_scan_tap: found at ["

l_.str.1:                               ; @.str.1
	.asciz	"]\n"

	.comm	_WAITING_BUFFER_SIZE,4,2        ; @WAITING_BUFFER_SIZE
.subsections_via_symbols
