	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_haptic_feedback_toggle         ## -- Begin function haptic_feedback_toggle
	.p2align	4, 0x90
_haptic_feedback_toggle:                ## @haptic_feedback_toggle
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_haptic_config@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, (%rbx)
	movq	_HAPTIC_FEEDBACK_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.1:
	movq	_KEY_PRESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_2:
	xorl	%esi, %esi
	testq	%rax, %rax
	sete	%sil
	leaq	L_.str(%rip), %rdi
	callq	_xprintf
	movl	8(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_eeconfig_update_haptic         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_haptic_config,16,3             ## @haptic_config
	.comm	_HAPTIC_FEEDBACK_MAX,8,3        ## @HAPTIC_FEEDBACK_MAX
	.comm	_KEY_PRESS,8,3                  ## @KEY_PRESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"haptic_config.feedback = %u\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_haptic_feedback_toggle         ; -- Begin function haptic_feedback_toggle
	.p2align	2
_haptic_feedback_toggle:                ; @haptic_feedback_toggle
	.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
Lloh0:
	adrp	x19, _haptic_config@GOTPAGE
Lloh1:
	ldr	x19, [x19, _haptic_config@GOTPAGEOFF]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
Lloh2:
	adrp	x9, _HAPTIC_FEEDBACK_MAX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HAPTIC_FEEDBACK_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _KEY_PRESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KEY_PRESS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_2:
	cmp	x8, #0
	cset	w1, eq
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_xprintf
	ldr	w0, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_eeconfig_update_haptic
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_haptic_config,16,3             ; @haptic_config
	.comm	_HAPTIC_FEEDBACK_MAX,8,3        ; @HAPTIC_FEEDBACK_MAX
	.comm	_KEY_PRESS,8,3                  ; @KEY_PRESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"haptic_config.feedback = %u\n"

.subsections_via_symbols
