	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reschedule
_reschedule:                            ## @reschedule
	.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, %rbx
	callq	_serial_is_async_p
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movl	(%rbx), %r14d
	cmpl	$128, %r14d
	je	LBB0_5
## %bb.2:
	cmpl	$129, %r14d
	jne	LBB0_7
## %bb.3:
	cmpl	$0, 8(%rbx)
	je	LBB0_10
## %bb.4:
	movl	4(%rbx), %edi
	callq	_delete_file_handler
	jmp	LBB0_6
LBB0_5:
	cmpl	$0, 8(%rbx)
	je	LBB0_9
LBB0_6:
	movq	_push_event@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	movq	%rbx, %rdx
	callq	_create_timer
	movl	%eax, %r14d
	jmp	LBB0_11
LBB0_7:
	cmpl	$0, 8(%rbx)
	jne	LBB0_11
## %bb.8:
	movl	%r14d, %edi
	callq	_delete_timer
LBB0_9:
	movl	4(%rbx), %edi
	movq	_fd_event@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_add_file_handler
LBB0_10:
	movl	$129, %r14d
LBB0_11:
	movq	%rbx, %rdi
	callq	_serial_debug_p
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:
	movl	(%rbx), %eax
	cmpl	$129, %r14d
	jne	LBB0_15
## %bb.13:
	cmpl	$129, %eax
	je	LBB0_18
## %bb.14:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_17
LBB0_15:
	cmpl	$129, %eax
	jne	LBB0_18
## %bb.16:
	leaq	L_.str.1(%rip), %rsi
LBB0_17:
	movq	_gdb_stdlog@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %edx
	callq	_fprintf_unfiltered
LBB0_18:
	movl	%r14d, (%rbx)
LBB0_19:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_push_event,4,2                 ## @push_event
	.comm	_fd_event,4,2                   ## @fd_event
	.comm	_gdb_stdlog,4,2                 ## @gdb_stdlog
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[fd%d->fd-scheduled]\n"

L_.str.1:                               ## @.str.1
	.asciz	"[fd%d->timer-scheduled]\n"

	.no_dead_strip	_reschedule
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reschedule
_reschedule:                            ; @reschedule
	.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
	bl	_serial_is_async_p
	cbz	x0, LBB0_19
; %bb.1:
	ldr	w20, [x19]
	cmp	w20, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w20, #129
	b.ne	LBB0_7
; %bb.3:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_10
; %bb.4:
	ldr	w0, [x19, #4]
	bl	_delete_file_handler
	b	LBB0_6
LBB0_5:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_9
LBB0_6:
Lloh0:
	adrp	x8, _push_event@GOTPAGE
Lloh1:
	ldr	x8, [x8, _push_event@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #0
	mov	x2, x19
	bl	_create_timer
	mov	x20, x0
	b	LBB0_11
LBB0_7:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_11
; %bb.8:
	mov	x0, x20
	bl	_delete_timer
LBB0_9:
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x8, _fd_event@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fd_event@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_add_file_handler
LBB0_10:
	mov	w20, #129
LBB0_11:
	mov	x0, x19
	bl	_serial_debug_p
	cbz	x0, LBB0_18
; %bb.12:
	ldr	w8, [x19]
	cmp	w20, #129
	b.ne	LBB0_15
; %bb.13:
	cmp	w8, #129
	b.eq	LBB0_18
; %bb.14:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_17
LBB0_15:
	cmp	w8, #129
	b.ne	LBB0_18
; %bb.16:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_17:
Lloh10:
	adrp	x8, _gdb_stdlog@GOTPAGE
Lloh11:
	ldr	x8, [x8, _gdb_stdlog@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w2, [x19, #4]
	bl	_fprintf_unfiltered
LBB0_18:
	str	w20, [x19]
LBB0_19:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_push_event,4,2                 ; @push_event
	.comm	_fd_event,4,2                   ; @fd_event
	.comm	_gdb_stdlog,4,2                 ; @gdb_stdlog
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[fd%d->fd-scheduled]\n"

l_.str.1:                               ; @.str.1
	.asciz	"[fd%d->timer-scheduled]\n"

	.no_dead_strip	_reschedule
.subsections_via_symbols
