	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_haptic_init                    ## -- Begin function haptic_init
	.p2align	4, 0x90
_haptic_init:                           ## @haptic_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_debug_enable@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_eeconfig_is_enabled
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_eeconfig_init
LBB0_2:
	xorl	%eax, %eax
	callq	_eeconfig_read_haptic
	movq	_haptic_config@GOTPCREL(%rip), %rcx
	movl	%eax, 4(%rcx)
	cmpl	$0, (%rcx)
	jg	LBB0_4
## %bb.3:
	movl	$1, (%rcx)
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_eeconfig_debug_haptic          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_debug_enable,4,2               ## @debug_enable
	.comm	_haptic_config,8,2              ## @haptic_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_haptic_init                    ; -- Begin function haptic_init
	.p2align	2
_haptic_init:                           ; @haptic_init
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _debug_enable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug_enable@GOTPAGEOFF]
	mov	w9, #1
Lloh2:
	str	w9, [x8]
	bl	_eeconfig_is_enabled
	cbnz	w0, LBB0_2
; %bb.1:
	bl	_eeconfig_init
LBB0_2:
	bl	_eeconfig_read_haptic
Lloh3:
	adrp	x8, _haptic_config@GOTPAGE
Lloh4:
	ldr	x8, [x8, _haptic_config@GOTPAGEOFF]
	str	w0, [x8, #4]
	ldr	w9, [x8]
	cmp	w9, #0
	b.le	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_eeconfig_debug_haptic
LBB0_4:
	mov	w9, #1
	str	w9, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_eeconfig_debug_haptic
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_debug_enable,4,2               ; @debug_enable
	.comm	_haptic_config,8,2              ; @haptic_config
.subsections_via_symbols
