	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_macro_tapdance_fn              ## -- Begin function macro_tapdance_fn
	.p2align	4, 0x90
_macro_tapdance_fn:                     ## @macro_tapdance_fn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_dprintf
	movq	_is_macro1_recording@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_DYN_REC_STOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	$0, (%rax)
	jmp	LBB0_5
LBB0_2:
	cmpl	$1, (%rbx)
	jne	LBB0_4
## %bb.3:
	movq	_DYN_MACRO_PLAY1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	movq	_DYN_REC_START1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	$1, (%rax)
LBB0_5:
	movq	_current_layer_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_layer_state_set_user
LBB0_6:
	movl	$1, -24(%rbp)
	leaq	-24(%rbp), %r14
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_process_record_dynamic_macro
	movl	$0, -24(%rbp)
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_process_record_dynamic_macro
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"macro_tap_dance_fn %d\n"

	.comm	_is_macro1_recording,4,2        ## @is_macro1_recording
	.comm	_DYN_REC_STOP,4,2               ## @DYN_REC_STOP
	.comm	_current_layer_state,4,2        ## @current_layer_state
	.comm	_DYN_MACRO_PLAY1,4,2            ## @DYN_MACRO_PLAY1
	.comm	_DYN_REC_START1,4,2             ## @DYN_REC_START1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_macro_tapdance_fn              ; -- Begin function macro_tapdance_fn
	.p2align	2
_macro_tapdance_fn:                     ; @macro_tapdance_fn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w1, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintf
Lloh2:
	adrp	x8, _is_macro1_recording@GOTPAGE
Lloh3:
	ldr	x8, [x8, _is_macro1_recording@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_2
; %bb.1:
Lloh4:
	adrp	x9, _DYN_REC_STOP@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DYN_REC_STOP@GOTPAGEOFF]
Lloh6:
	ldr	w19, [x9]
	str	wzr, [x8]
	b	LBB0_5
LBB0_2:
	ldr	w9, [x19]
	cmp	w9, #1
	b.ne	LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _DYN_MACRO_PLAY1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DYN_MACRO_PLAY1@GOTPAGEOFF]
Lloh9:
	ldr	w19, [x8]
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x9, _DYN_REC_START1@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DYN_REC_START1@GOTPAGEOFF]
Lloh12:
	ldr	w19, [x9]
	mov	w9, #1
	str	w9, [x8]
LBB0_5:
Lloh13:
	adrp	x8, _current_layer_state@GOTPAGE
Lloh14:
	ldr	x8, [x8, _current_layer_state@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_layer_state_set_user
LBB0_6:
	mov	w8, #1
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_process_record_dynamic_macro
	str	wzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_process_record_dynamic_macro
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"macro_tap_dance_fn %d\n"

	.comm	_is_macro1_recording,4,2        ; @is_macro1_recording
	.comm	_DYN_REC_STOP,4,2               ; @DYN_REC_STOP
	.comm	_current_layer_state,4,2        ; @current_layer_state
	.comm	_DYN_MACRO_PLAY1,4,2            ; @DYN_MACRO_PLAY1
	.comm	_DYN_REC_START1,4,2             ; @DYN_REC_START1
.subsections_via_symbols
