	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltc2952_poweroff_timer_wde
_ltc2952_poweroff_timer_wde:            ## @ltc2952_poweroff_timer_wde
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_timer_wde@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_to_ltc2952
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	movq	_HRTIMER_NORESTART@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_gpiod_get_value
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	callq	_gpiod_set_value
	movq	%r14, %rdi
	callq	_hrtimer_cb_get_time
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_hrtimer_forward
	movq	_HRTIMER_RESTART@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_timer_wde,4,2                  ## @timer_wde
	.comm	_HRTIMER_NORESTART,4,2          ## @HRTIMER_NORESTART
	.comm	_HRTIMER_RESTART,4,2            ## @HRTIMER_RESTART
	.no_dead_strip	_ltc2952_poweroff_timer_wde
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltc2952_poweroff_timer_wde
_ltc2952_poweroff_timer_wde:            ; @ltc2952_poweroff_timer_wde
	.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	x19, x0
Lloh0:
	adrp	x8, _timer_wde@GOTPAGE
Lloh1:
	ldr	x8, [x8, _timer_wde@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_to_ltc2952
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _HRTIMER_NORESTART@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HRTIMER_NORESTART@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_gpiod_get_value
	ldr	w8, [x20, #4]
	cmp	w0, #0
	cset	w1, eq
	mov	x0, x8
	bl	_gpiod_set_value
	mov	x0, x19
	bl	_hrtimer_cb_get_time
	mov	x1, x0
	ldr	w2, [x20]
	mov	x0, x19
	bl	_hrtimer_forward
Lloh5:
	adrp	x8, _HRTIMER_RESTART@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HRTIMER_RESTART@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_timer_wde,4,2                  ; @timer_wde
	.comm	_HRTIMER_NORESTART,4,2          ; @HRTIMER_NORESTART
	.comm	_HRTIMER_RESTART,4,2            ; @HRTIMER_RESTART
	.no_dead_strip	_ltc2952_poweroff_timer_wde
.subsections_via_symbols
