	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_run_diablo_macro_check         ## -- Begin function run_diablo_macro_check
	.p2align	4, 0x90
_run_diablo_macro_check:                ## @run_diablo_macro_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%edi, %edi
	callq	_check_dtimer
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_diablo_key_time@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_timer_read
	movq	_diablo_timer@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	xorl	%edi, %edi
	callq	_send_diablo_keystroke
LBB0_3:
	movl	$1, %edi
	callq	_check_dtimer
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_diablo_key_time@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_timer_read
	movq	_diablo_timer@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 4(%rcx)
	movl	$1, %edi
	callq	_send_diablo_keystroke
LBB0_6:
	movl	$2, %edi
	callq	_check_dtimer
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	_diablo_key_time@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_timer_read
	movq	_diablo_timer@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 8(%rcx)
	movl	$2, %edi
	callq	_send_diablo_keystroke
LBB0_9:
	movl	$3, %edi
	callq	_check_dtimer
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_diablo_key_time@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_11
## %bb.12:
	xorl	%eax, %eax
	callq	_timer_read
	movq	_diablo_timer@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 12(%rcx)
	movl	$3, %edi
	popq	%rbp
	jmp	_send_diablo_keystroke          ## TAILCALL
LBB0_11:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_diablo_key_time,8,3            ## @diablo_key_time
	.comm	_diablo_timer,8,3               ## @diablo_timer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_run_diablo_macro_check         ; -- Begin function run_diablo_macro_check
	.p2align	2
_run_diablo_macro_check:                ; @run_diablo_macro_check
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	w0, #0
	bl	_check_dtimer
Lloh0:
	adrp	x19, _diablo_key_time@GOTPAGE
Lloh1:
	ldr	x19, [x19, _diablo_key_time@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	bl	_timer_read
Lloh2:
	adrp	x8, _diablo_timer@GOTPAGE
Lloh3:
	ldr	x8, [x8, _diablo_timer@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	w0, [x8]
	mov	w0, #0
	bl	_send_diablo_keystroke
LBB0_3:
	mov	w0, #1
	bl	_check_dtimer
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_6
; %bb.5:
	bl	_timer_read
Lloh5:
	adrp	x8, _diablo_timer@GOTPAGE
Lloh6:
	ldr	x8, [x8, _diablo_timer@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	w0, [x8, #4]
	mov	w0, #1
	bl	_send_diablo_keystroke
LBB0_6:
	mov	w0, #2
	bl	_check_dtimer
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_9
; %bb.8:
	bl	_timer_read
Lloh8:
	adrp	x8, _diablo_timer@GOTPAGE
Lloh9:
	ldr	x8, [x8, _diablo_timer@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	w0, [x8, #8]
	mov	w0, #2
	bl	_send_diablo_keystroke
LBB0_9:
	mov	w0, #3
	bl	_check_dtimer
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x8, [x19]
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_12
; %bb.11:
	bl	_timer_read
Lloh11:
	adrp	x8, _diablo_timer@GOTPAGE
Lloh12:
	ldr	x8, [x8, _diablo_timer@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	w0, [x8, #12]
	mov	w0, #3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_send_diablo_keystroke
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_diablo_key_time,8,3            ; @diablo_key_time
	.comm	_diablo_timer,8,3               ; @diablo_timer
.subsections_via_symbols
