	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solenoid_check                 ## -- Begin function solenoid_check
	.p2align	4, 0x90
_solenoid_check:                        ## @solenoid_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_solenoid_on@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.1:
	movq	_solenoid_start@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_timer_elapsed
	movq	_solenoid_dwell@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_2
## %bb.8:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_solenoid_stop                  ## TAILCALL
LBB0_2:
	movq	_haptic_config@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_7
## %bb.3:
	movq	_SOLENOID_MIN_DWELL@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movq	_solenoid_buzzing@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testb	$1, %al
	jne	LBB0_6
## %bb.4:
	testl	%edx, %edx
	jne	LBB0_7
## %bb.5:
	movl	$1, (%rcx)
	movq	_SOLENOID_PIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_writePinHigh                   ## TAILCALL
LBB0_6:
	testl	%edx, %edx
	je	LBB0_7
## %bb.9:
	movl	$0, (%rcx)
	movq	_SOLENOID_PIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_writePinLow                    ## TAILCALL
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_solenoid_on,4,2                ## @solenoid_on
	.comm	_solenoid_start,4,2             ## @solenoid_start
	.comm	_solenoid_dwell,4,2             ## @solenoid_dwell
	.comm	_haptic_config,8,3              ## @haptic_config
	.comm	_SOLENOID_MIN_DWELL,4,2         ## @SOLENOID_MIN_DWELL
	.comm	_solenoid_buzzing,4,2           ## @solenoid_buzzing
	.comm	_SOLENOID_PIN,4,2               ## @SOLENOID_PIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solenoid_check                 ; -- Begin function solenoid_check
	.p2align	2
_solenoid_check:                        ; @solenoid_check
	.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, _solenoid_on@GOTPAGE
Lloh1:
	ldr	x8, [x8, _solenoid_on@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.1:
Lloh3:
	adrp	x8, _solenoid_start@GOTPAGE
Lloh4:
	ldr	x8, [x8, _solenoid_start@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_timer_elapsed
Lloh6:
	adrp	x8, _solenoid_dwell@GOTPAGE
Lloh7:
	ldr	x8, [x8, _solenoid_dwell@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.le	LBB0_3
; %bb.2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_solenoid_stop
LBB0_3:
Lloh9:
	adrp	x8, _haptic_config@GOTPAGE
Lloh10:
	ldr	x8, [x8, _haptic_config@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.4:
Lloh12:
	adrp	x8, _SOLENOID_MIN_DWELL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SOLENOID_MIN_DWELL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	sdiv	w10, w0, w8
Lloh15:
	adrp	x8, _solenoid_buzzing@GOTPAGE
Lloh16:
	ldr	x8, [x8, _solenoid_buzzing@GOTPAGEOFF]
	ldr	w9, [x8]
	tbnz	w10, #0, LBB0_7
; %bb.5:
	cbnz	w9, LBB0_9
; %bb.6:
	mov	w9, #1
	str	w9, [x8]
Lloh17:
	adrp	x8, _SOLENOID_PIN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SOLENOID_PIN@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_writePinHigh
LBB0_7:
	cbz	w9, LBB0_9
; %bb.8:
	str	wzr, [x8]
Lloh20:
	adrp	x8, _SOLENOID_PIN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SOLENOID_PIN@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_writePinLow
LBB0_9:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_solenoid_on,4,2                ; @solenoid_on
	.comm	_solenoid_start,4,2             ; @solenoid_start
	.comm	_solenoid_dwell,4,2             ; @solenoid_dwell
	.comm	_haptic_config,8,3              ; @haptic_config
	.comm	_SOLENOID_MIN_DWELL,4,2         ; @SOLENOID_MIN_DWELL
	.comm	_solenoid_buzzing,4,2           ; @solenoid_buzzing
	.comm	_SOLENOID_PIN,4,2               ; @SOLENOID_PIN
.subsections_via_symbols
