	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_channel_timeout                ## -- Begin function channel_timeout
	.p2align	4, 0x90
_channel_timeout:                       ## @channel_timeout
	.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
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	_channel_tick@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	movslq	%esi, %rax
	imulq	$-2004318071, %rax, %rcx        ## imm = 0x88888889
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$5, %ecx
	addl	%edx, %ecx
	imull	$60, %ecx, %ecx
	subl	%ecx, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movl	%eax, (%rdi)
	movq	_channel_tick@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	_channel_watchdog@GOTPCREL(%rip), %rsi
	leaq	_channel_timeout.ev(%rip), %rbx
	movq	%rbx, %rdi
	movq	%rbx, %rdx
	callq	_evtimer_set
	xorl	%edi, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_channel_watchdog               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_channel_timeout.ev,4,2 ## @channel_timeout.ev
	.comm	_channel_tick,4,2               ## @channel_tick
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_channel_timeout                ; -- Begin function channel_timeout
	.p2align	2
_channel_timeout:                       ; @channel_timeout
	.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	x8, _channel_tick@GOTPAGE
Lloh1:
	ldr	x8, [x8, _channel_tick@GOTPAGEOFF]
	cbz	w1, LBB0_2
; %bb.1:
	ldr	w9, [x8]
	mov	w10, #34953
	movk	w10, #34952, lsl #16
	add	w9, w9, w1
	smull	x10, w9, w10
	lsr	x10, x10, #32
	add	w10, w10, w9
	asr	w11, w10, #5
	add	w10, w11, w10, lsr #31
	mov	w11, #60
	msub	w9, w10, w11, w9
	b	LBB0_3
LBB0_2:
	mov	w9, #0
LBB0_3:
	str	w9, [x0]
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh2:
	adrp	x1, _channel_watchdog@GOTPAGE
Lloh3:
	ldr	x1, [x1, _channel_watchdog@GOTPAGEOFF]
Lloh4:
	adrp	x19, _channel_timeout.ev@PAGE
Lloh5:
	add	x19, x19, _channel_timeout.ev@PAGEOFF
	mov	x0, x19
	mov	x2, x19
	bl	_evtimer_set
	mov	w0, #0
	mov	w1, #0
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_channel_watchdog
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_channel_timeout.ev,4,2 ; @channel_timeout.ev
	.comm	_channel_tick,4,2               ; @channel_tick
.subsections_via_symbols
