	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function channel_watchdog
_channel_watchdog:                      ## @channel_watchdog
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	_channel_tick@GOTPCREL(%rip), %r12
	movslq	(%r12), %r15
	movl	$0, (%r12)
	movq	_channel_list@GOTPCREL(%rip), %rdi
	callq	_LIST_FIRST
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	imulq	$-2004318071, %r15, %rax        ## imm = 0x88888889
	shrq	$32, %rax
	addl	%r15d, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$5, %eax
	addl	%ecx, %eax
	imull	$60, %eax, %eax
	negl	%eax
	leal	(%r15,%rax), %r13d
	incl	%r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_channel_close
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rbx
	testq	%r15, %r15
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_LIST_NEXT
	movq	%rax, %r15
	movl	(%rbx), %eax
	cmpl	%r13d, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, (%r12)
	jmp	LBB0_6
LBB0_7:
	cmpl	$0, (%r12)
	je	LBB0_9
## %bb.8:
	leaq	_channel_watchdog.tv(%rip), %rsi
	movq	%r14, %rdi
	callq	_evtimer_add
	testq	%rax, %rax
	js	LBB0_10
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str(%rip), %rdi
	callq	_log_err
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @channel_watchdog.tv
_channel_watchdog.tv:
	.long	1                               ## 0x1

	.comm	_channel_tick,4,2               ## @channel_tick
	.comm	_channel_list,4,2               ## @channel_list
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not add watchdog event: %m"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.no_dead_strip	_channel_watchdog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function channel_watchdog
_channel_watchdog:                      ; @channel_watchdog
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
Lloh0:
	adrp	x22, _channel_tick@GOTPAGE
Lloh1:
	ldr	x22, [x22, _channel_tick@GOTPAGEOFF]
	ldrsw	x21, [x22]
	str	wzr, [x22]
Lloh2:
	adrp	x0, _channel_list@GOTPAGE
Lloh3:
	ldr	x0, [x0, _channel_list@GOTPAGEOFF]
	bl	_LIST_FIRST
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	mov	x8, #-30583
	movk	x8, #34952, lsl #16
	mul	x8, x21, x8
	lsr	x8, x8, #32
	add	w8, w8, w21
	asr	w9, w8, #5
	add	w8, w9, w8, lsr #31
	mov	w9, #60
	msub	w8, w8, w9, w21
	add	w23, w8, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_channel_close
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x21
	cbz	x21, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x20
	bl	_LIST_NEXT
	mov	x21, x0
	ldr	w8, [x20]
	cmp	w8, w23
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w23, [x22]
	b	LBB0_3
LBB0_7:
	ldr	w8, [x22]
	cbz	w8, LBB0_9
; %bb.8:
Lloh4:
	adrp	x1, _channel_watchdog.tv@PAGE
Lloh5:
	add	x1, x1, _channel_watchdog.tv@PAGEOFF
	mov	x0, x19
	bl	_evtimer_add
	tbnz	x0, #63, LBB0_10
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
Lloh8:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @channel_watchdog.tv
_channel_watchdog.tv:
	.long	1                               ; 0x1

	.comm	_channel_tick,4,2               ; @channel_tick
	.comm	_channel_list,4,2               ; @channel_list
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not add watchdog event: %m"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.no_dead_strip	_channel_watchdog
.subsections_via_symbols
