	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_preprocess_tap_dance           ## -- Begin function preprocess_tap_dance
	.p2align	4, 0x90
_preprocess_tap_dance:                  ## @preprocess_tap_dance
	.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
	cmpl	$0, (%rsi)
	je	LBB0_9
## %bb.1:
	movq	_highest_td@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.2:
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	movq	%rdi, %r14
	movq	$-1, %r13
	xorl	%ebx, %ebx
	movq	_tap_dance_actions@GOTPCREL(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rcx,%rbx), %r12
	movl	$1, 8(%rcx,%rbx)
	movq	%r14, 16(%rcx,%rbx)
	movq	%r12, %rdi
	callq	_process_tap_dance_action_on_dance_finished
	movq	%r12, %rdi
	callq	_reset_tap_dance
	movq	_highest_td@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	%eax, %rcx
	incq	%r13
	addq	$32, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	cmpq	$0, 24(%rcx,%rbx)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r14, (%rcx,%rbx)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_last_td@GOTPCREL(%rip), %rdx
	cmpq	%r14, (%rdx)
	je	LBB0_8
	jmp	LBB0_7
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_highest_td,4,2                 ## @highest_td
	.comm	_tap_dance_actions,8,3          ## @tap_dance_actions
	.comm	_last_td,8,3                    ## @last_td
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_preprocess_tap_dance           ; -- Begin function preprocess_tap_dance
	.p2align	2
_preprocess_tap_dance:                  ; @preprocess_tap_dance
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w9, [x1]
Lloh0:
	adrp	x21, _highest_td@GOTPAGE
Lloh1:
	ldr	x21, [x21, _highest_td@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w9, #0
	ccmn	w8, #1, #4, ne
	b.eq	LBB0_7
; %bb.1:
	tbnz	w8, #31, LBB0_7
; %bb.2:
	mov	x19, x0
	mov	x22, #0
	mov	x23, #-1
Lloh2:
	adrp	x24, _tap_dance_actions@GOTPAGE
Lloh3:
	ldr	x24, [x24, _tap_dance_actions@GOTPAGEOFF]
Lloh4:
	adrp	x25, _last_td@GOTPAGE
Lloh5:
	ldr	x25, [x25, _last_td@GOTPAGEOFF]
	mov	w26, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	add	x22, x22, #32
	cmp	x23, w8, sxtw
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	add	x20, x9, x22
	ldr	x10, [x20, #24]
	cbz	x10, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x9, x22]
	ldr	x11, [x25]
	cmp	x10, x19
	ccmp	x11, x19, #0, eq
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x9, x22
	str	w26, [x8, #8]
	str	x19, [x8, #16]
	mov	x0, x20
	bl	_process_tap_dance_action_on_dance_finished
	mov	x0, x20
	bl	_reset_tap_dance
	ldr	w8, [x21]
	b	LBB0_3
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_highest_td,4,2                 ; @highest_td
	.comm	_tap_dance_actions,8,3          ; @tap_dance_actions
	.comm	_last_td,8,3                    ; @last_td
.subsections_via_symbols
