	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dynamic_macro_record_end       ## -- Begin function dynamic_macro_record_end
	.p2align	4, 0x90
_dynamic_macro_record_end:              ## @dynamic_macro_record_end
	.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
	xorl	%eax, %eax
	callq	_dynamic_macro_led_blink
	movq	_dynamic_macros@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%rbx,2), %rbx
	movq	(%r14,%rbx,8), %r15
	movq	16(%r14,%rbx,8), %r13
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_dprintf
	cmpq	$1, %r15
	je	LBB0_4
## %bb.1:
	leaq	(%r14,%rbx,8), %rbx
	leaq	-8(,%r15,8), %r14
	leaq	L_.str.1(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r13,%r14)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_dprintln
	decq	(%rbx)
	addq	$-8, %r14
	jne	LBB0_2
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_dynamic_macros,8,3             ## @dynamic_macros
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dynamic_macro: macro length before trimming: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"dynamic macro: trimming a trailing key-down event"

L_.str.2:                               ## @.str.2
	.asciz	"dynamic macro: slot %d saved, length: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dynamic_macro_record_end       ; -- Begin function dynamic_macro_record_end
	.p2align	2
_dynamic_macro_record_end:              ; @dynamic_macro_record_end
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	bl	_dynamic_macro_led_blink
Lloh0:
	adrp	x8, _dynamic_macros@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dynamic_macros@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #24
	madd	x22, x19, x9, x8
	ldr	x20, [x22]
	ldr	x23, [x22, #16]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_dprintf
	cmp	x20, #1
	b.eq	LBB0_4
; %bb.1:
	lsl	x8, x20, #3
	sub	x24, x8, #8
Lloh5:
	adrp	x21, l_.str.1@PAGE
Lloh6:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, x24]
	cbz	x8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_dprintln
	ldr	x8, [x22]
	sub	x8, x8, #1
	str	x8, [x22]
	subs	x24, x24, #8
	b.ne	LBB0_2
LBB0_4:
	str	x20, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_dprintf
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_dynamic_macros,8,3             ; @dynamic_macros
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dynamic_macro: macro length before trimming: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"dynamic macro: trimming a trailing key-down event"

l_.str.2:                               ; @.str.2
	.asciz	"dynamic macro: slot %d saved, length: %d\n"

.subsections_via_symbols
